:root {
  --bg: #0A0B0F;
  --surface: #14161C;
  --line: #262A33;
  --line-strong: #3A3F4B;
  --text: #F4F5F7;
  --text-soft: #C9CDD6;
  --text-muted: #A3A9B5;
  --text-faint: #8A909C;
  --nav: #C9CDD6;
  --accent: #C6F432; /* C6F432 */
  --on-accent: #0A0B0F;
  --accentb: #22a0da; 
  
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --section-gap: 40px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}
a { color: var(--text); }
a:hover { color: var(--accent); }
img { display: block; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }

.container {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.logo img { height: 88px; width: auto; }
.logo--small img { height: 72px; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 600;
}
.main-nav__link {
  padding: 12px 0;
  color: var(--nav);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.btn svg { flex: 0 0 auto; }

/* pill: "Contact us" */
.btn--pill {
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}
.btn--pill:hover { color: var(--on-accent); }

/* solid light: flagship + "More games" store buttons */
.btn--solid {
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
}
.btn--solid:hover { color: var(--bg); }
.btn--solid-sm { min-height: 48px; padding: 0 20px; }

/* outline: store buttons on game cards */
.btn--outline {
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--wide { gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 4px 0 28px;
}
.hero__title {
  flex: 1 1 620px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* ---------- Key numbers ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.kpi {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 32px) clamp(10px, 2.2vw, 28px);
  background: var(--bg);
}
.kpi__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 3.8vw, 56px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--accent);
}
.kpi__label {
  margin-top: 8px;
  font-size: clamp(12px, 3vw, 15px);
  line-height: 1.35;
  color: var(--text-muted);
}

/* ---------- Section heading ---------- */
.section { margin-top: var(--section-gap); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Game media (art + hover video) ---------- */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: var(--art-bg, var(--surface));
}
.media__img,
.media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__img {
  object-position: var(--art-pos, 50% 50%);
  transform-origin: 50% 50%;
  will-change: transform;
  transition: opacity .12s ease;
  animation: media-zoom 9s ease-in-out infinite alternate;
}
.media__video {
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.media__video[data-on="1"] { opacity: 1; }
.media:has(.media__video[data-on="1"]) .media__img { opacity: 0; }
.game-card:nth-of-type(2n) .media__img { animation-delay: -3s; }
.game-card:nth-of-type(3n) .media__img { animation-delay: -6s; }

@keyframes media-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.88);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Flagship (2 For 2) ---------- */
.flagship {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.flagship__media {
  flex: 1 1 560px;
  min-width: 0;
  aspect-ratio: 5 / 4;
}
.flagship__media .badge { left: 20px; top: 20px; padding: 8px 14px; }
.flagship__body {
  flex: 1 1 420px;
  min-width: 0;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.flagship__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flagship__genre { font-size: 14px; color: var(--text-muted); }
.flagship__intro { display: flex; flex-direction: column; gap: 14px; }
.flagship__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.03em;
}
.flagship__lead { font-size: 18px; line-height: 1.55; color: var(--text-soft); }
.flagship__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 80px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.stat__label { margin-top: 4px; font-size: 14px; color: var(--text-muted); }

/* ---------- Game grid + card ---------- */
.game-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.game-card {
  flex: 1 1 520px;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.game-card__media { aspect-ratio: 16 / 10; }
.game-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.game-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.game-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.game-card__genre { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.game-card__metric { text-align: right; }
.game-card__metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
}
.game-card__metric-label { margin-top: 2px; min-height: 1em; font-size: 13px; color: var(--text-muted); }

/* ---------- More games (studio accounts) ---------- */
.more-games {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.more-games__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Recognition ---------- */
.awards { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.award {
  flex: 1 1 200px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact { margin-top: var(--section-gap); display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(36px, 6vw, 88px);
  border-radius: 32px;
  background: var(--accent);
  color: var(--on-accent);
}
.contact-card__intro { display: flex; flex-direction: column; gap: 20px; }
.contact-card__title {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.contact-card__text { max-width: 640px; font-size: 18px; line-height: 1.5; font-weight: 500; }
.contact-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 2px solid var(--on-accent);
}
.contact-card__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-card__email {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  color: var(--on-accent);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.18em;
}
.contact-card__email:hover { color: var(--on-accent); opacity: .8; }
.contact-card__email svg { flex: 0 0 auto; width: 0.8em; height: 0.8em; }

/* ---------- Legal entities ---------- */
.entities { display: flex; flex-wrap: wrap; gap: 16px; }
.entity {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.entity__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.entity__address { font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.entity__email { font-size: 14px; color: var(--text-faint); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 32px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  font-weight: 600;
}
.footer-nav__link { padding: 12px 0; color: var(--text-muted); text-decoration: none; }
.copyright { font-size: 14px; color: var(--text-faint); }

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal { max-width: 820px; padding: 16px 0 24px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.legal__title {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.legal__updated { margin-bottom: 32px; font-size: 14px; color: var(--text-faint); }
.legal h2 {
  margin: 40px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.legal h3 { margin: 28px 0 12px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.legal p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--text-soft); }
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
}
.legal strong { color: var(--text); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .media__img { animation: none; }
}

/* ---------- Per-game art backdrop (shown while the art loads) ---------- */
.media--2-for-2 { --art-bg: #FFF1DF; --art-pos: 50% 55%; }
.media--crowd-blast { --art-bg: #3DA5FF; }
.media--elevator-sorting { --art-bg: #8B5CF6; }
.media--ninja-battle { --art-bg: #F87171; }
.media--1200 { --art-bg: #4ADE80; }
.media--pawdoku { --art-bg: #FFB020; }
.media--card-stack { --art-bg: #2DD4BF; }
.media--blocks-64 { --art-bg: #F472B6; }
.media--room-quest { --art-bg: #22D3EE; }
