/* ==========================================================================
   2DGameChannel — public site styles
   Light, playful, rounded. Purple / blue / yellow / green.
   ========================================================================== */

@font-face {
  font-family: 'VAG Rounded';
  src: url('../../fonts/VAGRounded-Bold.woff2') format('woff2'),
       url('../../fonts/VAGRounded-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Palette taken from the Marble Race track: indigo/violet chute, mint green
     funnel, sky-blue world, cream rails, golden track and glossy marbles. */
  --purple: #6a3df0;
  --purple-dark: #4a22c9;
  --purple-soft: #eee8ff;
  --blue: #1f6bff;
  --blue-dark: #0f4fd6;
  --blue-soft: #e3eeff;
  --yellow: #f6b324;
  --yellow-dark: #d98e00;
  --yellow-soft: #fff3d6;
  --green: #2fd47f;
  --green-dark: #17a85f;
  --green-soft: #ddf8ea;
  --pink: #ff3d9a;
  --magenta: #f224d6;
  --red: #ff2d2d;
  --orange: #ff8a1f;
  --sky: #a9dcf7;
  --sky-soft: #e4f4fb;
  --cream: #f5f0e6;
  --navy: #1f2d4a;

  --ink: #1f2d4a;
  --text: #46506b;
  --muted: #8790a8;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #eef7fb;
  --ring: #e6f4fa;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(43, 45, 66, .06);
  --shadow: 0 10px 30px rgba(43, 45, 66, .08);
  --shadow-lg: 0 24px 60px rgba(43, 45, 66, .12);

  --font-head: 'VAG Rounded', 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1120px;
  --nav-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.text-purple { color: var(--purple) !important; }
.text-blue   { color: var(--blue) !important; }
.text-yellow { color: var(--yellow-dark) !important; }
.text-green  { color: var(--green) !important; }
.text-muted  { color: var(--muted) !important; }
.text-center { text-align: center; }
.hl          { color: var(--purple); font-weight: 700; }
.hl-blue     { color: var(--blue); font-weight: 700; }
.small       { font-size: .875rem; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Brand: coin + wordmark
   -------------------------------------------------------------------------- */
.coin {
  --size: 56px;
  width: var(--size);
  height: var(--size);
  flex: 0 0 var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, #ffd65a 0 52%, #ffc22e 53% 60%, #f6b100 61% 100%);
  box-shadow:
    inset 0 calc(var(--size) * -.06) 0 rgba(214, 140, 0, .45),
    0 calc(var(--size) * .08) calc(var(--size) * .18) rgba(242, 169, 0, .35);
}
.coin::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: calc(var(--size) * .035) solid rgba(255, 255, 255, .55);
}
.coin span {
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: calc(var(--size) * .36);
  color: #ffe9a6;
  letter-spacing: -.02em;
  text-shadow: 0 calc(var(--size) * .03) 0 #d98c00;
  line-height: 1;
}
.coin--sm { --size: 40px; }
.coin--lg { --size: 180px; }
.coin--xl { --size: 220px; }

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  color: #2f7bff;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff,
    0 -2px 0 #fff, 0 2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff,
    0 5px 0 var(--purple);
}
.wordmark b { color: var(--yellow); font-weight: 700; }
.wordmark--xl {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  text-shadow:
    -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff,
    0 -3px 0 #fff, 0 3px 0 #fff, -3px 0 0 #fff, 3px 0 0 #fff,
    0 9px 0 var(--purple), 0 18px 30px rgba(124, 92, 255, .25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
}
.brand:hover { color: inherit; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --c: var(--purple);
  --c-dark: var(--purple-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--c);
  background: var(--c);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  box-shadow: 0 4px 0 var(--c-dark);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 var(--c-dark); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c-dark); }
.btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

.btn--blue   { --c: var(--blue);   --c-dark: var(--blue-dark); }
.btn--green  { --c: var(--green);  --c-dark: var(--green-dark); }
.btn--yellow { --c: var(--yellow); --c-dark: var(--yellow-dark); color: #5a3d00; }
.btn--yellow:hover { color: #5a3d00; }
.btn--danger { --c: #ef4f6a; --c-dark: #c9314b; }

.btn--outline {
  background: #fff;
  color: var(--c);
  box-shadow: none;
}
.btn--outline:hover { background: var(--c); color: #fff; box-shadow: none; }
.btn--outline:active { box-shadow: none; }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover { color: var(--purple); background: var(--purple-soft); box-shadow: none; }

.btn--sm { font-size: .8rem; padding: .6em 1.15em; }
.btn--lg { font-size: 1.1rem; padding: 1em 2em; }
.btn--block { width: 100%; }

.btn--social {
  --c: var(--line);
  --c-dark: var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  box-shadow: none;
  width: 100%;
}
.btn--social:hover { color: var(--ink); background: var(--bg-soft); box-shadow: none; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  display: block;
  padding: .55em .9em;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  font-size: .95rem;
}
.nav-links a:not(.btn):hover { color: var(--purple); background: var(--purple-soft); }
.nav-links a.is-active { color: var(--purple); }
.nav-links .nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--bg-soft);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* User menu */
.user-menu { position: relative; }
.user-menu__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}
.user-menu__btn:hover { background: var(--bg-soft); }
.user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
}
.user-menu.is-open .user-menu__panel { display: block; }
.user-menu__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .6em .8em;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}
.user-menu__panel a:hover { background: var(--bg-soft); color: var(--purple); }
.user-menu__head { padding: .6em .8em; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu__head strong { display: block; color: var(--ink); }

.avatar {
  --size: 36px;
  width: var(--size);
  height: var(--size);
  flex: 0 0 var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: calc(var(--size) * .38);
  background-color: var(--purple);
  background-image:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .75) 0 8%, rgba(255, 255, 255, .2) 15%, transparent 32%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, .25), transparent 60%);
  box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(31, 45, 74, .18);
}
.avatar--sm { --size: 28px; }
.avatar--lg { --size: 64px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .25em .7em;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--purple-soft);
  color: var(--purple);
}
.badge--pro    { background: linear-gradient(135deg, #ffd65a, #ffb300); color: #5a3d00; }
.badge--green  { background: var(--green-soft); color: var(--green-dark); }
.badge--blue   { background: var(--blue-soft); color: var(--blue-dark); }
.badge--yellow { background: var(--yellow-soft); color: #9a6a00; }
.badge--muted  { background: var(--bg-soft); color: var(--muted); }

/* --------------------------------------------------------------------------
   Backgrounds
   -------------------------------------------------------------------------- */
.rings {
  position: relative;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 150px, transparent 151px),
    repeating-radial-gradient(circle at 50% 38%, var(--ring) 0 150px, #fff 151px 300px);
  overflow: hidden;
}
.rings--bottom {
  background:
    radial-gradient(circle at 50% 55%, #fff 0 150px, transparent 151px),
    repeating-radial-gradient(circle at 50% 55%, var(--ring) 0 150px, #fff 151px 300px);
}

.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: .8;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.band-soft { background: linear-gradient(180deg, #d8effb 0%, var(--bg-soft) 100%); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }

.hero { padding: 56px 0 72px; text-align: center; }
.hero .coin { margin: 0 auto 26px; }
.hero__title { margin: 0 auto 26px; }
.hero__lead {
  max-width: 520px;
  margin: 22px auto 0;
  font-size: 1.08rem;
  color: var(--text);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 820px;
  margin: 56px auto 0;
}
.feature { text-align: center; }
.feature__icon {
  --m: var(--blue);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .85) 0 7%, rgba(255, 255, 255, .25) 13%, transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, .28), transparent 60%),
    var(--m);
  box-shadow: 0 14px 22px -6px color-mix(in srgb, var(--m) 55%, transparent);
}
.feature__icon svg { position: relative; z-index: 1; }
.feature__icon--violet { --m: var(--purple); }
.feature__icon--green  { --m: var(--green); }
.feature__icon--orange { --m: var(--orange); }
.feature__icon--pink   { --m: var(--pink); }
.feature__icon--red    { --m: var(--red); }
.feature__icon svg { width: 52px; height: 52px; }
.feature h3 { font-size: 1.8rem; margin-bottom: .2em; }
.feature p { font-size: .95rem; color: var(--muted); max-width: 220px; margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.split--reverse > :first-child { order: 2; }
.split h2 { margin-bottom: .4em; }
.split h2 .line { display: block; }

.bullets { list-style: none; padding: 0; margin: 18px 0 0; }
.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--text);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--yellow));
}
.bullets--blue  { --dot: var(--blue); }
.bullets--green { --dot: var(--green); }
.bullets--purple{ --dot: var(--purple); }

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.blob--yellow { background: linear-gradient(160deg, #ffc94a, var(--yellow)); }
.blob--blue   { background: var(--sky); }
.section > .container { position: relative; z-index: 1; }

/* Tilted game collage */
.collage-wrap {
  position: relative;
  height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.collage {
  position: absolute;
  top: -40px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 210px);
  gap: 18px;
  transform: rotate(-14deg) translateX(10px);
}
.collage__col { display: grid; gap: 18px; }
.collage__col:nth-child(2) { margin-top: -70px; }
.collage__col:nth-child(3) { margin-top: 40px; }
.collage__card {
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card-bg, var(--purple));
  position: relative;
}
.collage__card img { width: 100%; height: 100%; object-fit: cover; }
.collage__card--short { height: 170px; }
.collage__card .collage__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

/* Device mock (laptop-ish frame) */
.device {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
}
.device::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -16px;
  height: 16px;
  background: linear-gradient(#f1f2f8, #e1e3ee);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 20px rgba(43, 45, 66, .08);
}
.device__title {
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.device--plain::after { display: none; }

/* Phone/card mock */
.mock-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 22px;
  max-width: 300px;
  position: relative;
}

/* --------------------------------------------------------------------------
   Leaderboard
   -------------------------------------------------------------------------- */
.board { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.board th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
  padding: 0 12px;
}
.board td {
  background: #fff;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.board td:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; }
.board td:last-child  { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; }
.board tr.is-me td { background: var(--yellow-soft); border-color: #ffe39a; }
.board .rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: .85rem;
  background: var(--bg-soft);
  color: var(--muted);
}
.board tr:nth-child(1) .rank { background: #ffd34d; color: #6b4a00; }
.board tr:nth-child(2) .rank { background: #dfe3ee; color: #4d556f; }
.board tr:nth-child(3) .rank { background: #f7c9a1; color: #7a4317; }
.board .player { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.board .score { font-family: var(--font-head); color: var(--purple); text-align: right; white-space: nowrap; }
.board th.score-h { text-align: right; }

.board--compact td { padding: 8px 10px; font-size: .9rem; }

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Cards / games grid
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.card--flat { box-shadow: none; }
.card h3 { margin-bottom: .4em; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  color: inherit;
}
a.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.game-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--card-bg, var(--purple));
  position: relative;
  overflow: hidden;
}
.game-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card__thumb .badge { position: absolute; top: 12px; left: 12px; }
.game-card__thumb .play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  transform: scale(.85);
  opacity: 0;
  transition: all .2s ease;
}
a.game-card:hover .play-dot { transform: scale(1); opacity: 1; }
.game-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.game-card__body h3 { font-size: 1.25rem; margin-bottom: .25em; }
.game-card__body p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; flex: 1; }
.game-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.game-card--soon { opacity: .75; }
.game-card--soon .game-card__thumb { filter: saturate(.6); }

.thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-head);
  font-size: 2.2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .18) 0 22%, transparent 23%),
    var(--card-bg, var(--purple));
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  padding: 56px 0 40px;
  text-align: center;
}
.page-head h1 { margin-bottom: .25em; }
.page-head p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.page-head--left { text-align: left; }
.page-head--left p { margin: 0; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
}
.tabs a {
  padding: .5em 1.1em;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  font-size: .9rem;
}
.tabs a.is-active { background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   Play page
   -------------------------------------------------------------------------- */
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.play-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.play-head p { margin: 4px 0 0; color: var(--muted); }

.stage {
  position: relative;
  background: #15132b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.stage--portrait { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 92, 255, .55), rgba(21, 19, 43, .95) 70%);
  z-index: 2;
}
.stage__overlay h2 { color: #fff; }
.stage__overlay p { color: rgba(255, 255, 255, .8); max-width: 380px; margin: 0 auto 20px; }
.stage__play {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--yellow);
  box-shadow: 0 8px 0 var(--yellow-dark), 0 18px 40px rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  transition: transform .15s ease;
}
.stage__play:hover { transform: scale(1.06); }
.stage__play svg { width: 40px; height: 40px; margin-left: 6px; }

.play-toolbar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 { font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--purple-soft);
}
.pb strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--purple); display: block; line-height: 1.1; }
.pb span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }

/* Toast */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
}
.toast {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-in .25s ease;
  font-weight: 600;
}
.toast a { color: var(--yellow); font-weight: 800; }
.toast--success { background: var(--green-dark); }
.toast--pb { background: linear-gradient(135deg, var(--purple), var(--green-dark)); }
.toast--error { background: #d93a56; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.plan {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured { border-color: var(--purple); box-shadow: 0 20px 50px rgba(124, 92, 255, .18); }
.plan__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}
.plan h3 { font-size: 1.5rem; margin-bottom: .2em; }
.plan__price { font-family: var(--font-head); font-size: 2.8rem; color: var(--ink); line-height: 1; margin: 14px 0 4px; }
.plan__price small { font-size: 1rem; color: var(--muted); font-family: var(--font-body); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 30px; position: relative; }
.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231fb465' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: grid;
  place-items: center;
  padding: 48px 20px 72px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  position: relative;
}
.auth-card .coin { margin: -76px auto 14px; }
.auth-card h1 { font-size: 1.8rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 22px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.field { margin-bottom: 16px; }
.field label, .label {
  display: block;
  font-weight: 800;
  font-size: .82rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.input, .field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .75em 1em;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: .93rem;
}
.alert--error   { background: #ffe8ec; color: #b4233d; }
.alert--success { background: var(--green-soft); color: #11804a; }
.alert--info    { background: var(--blue-soft); color: #1468a8; }

/* --------------------------------------------------------------------------
   Account
   -------------------------------------------------------------------------- */
.account-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.profile-card { text-align: center; }
.profile-card .avatar { margin: 0 auto 12px; }
.profile-card h2 { font-size: 1.4rem; margin-bottom: .2em; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stat {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 12px;
}
.stat strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--ink); }
.stat span { font-size: .75rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--card-bg, var(--purple));
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
}
.list-row__icon img { width: 100%; height: 100%; object-fit: cover; }
.list-row__main { flex: 1; min-width: 0; }
.list-row__main strong { display: block; color: var(--ink); }
.list-row__main span { font-size: .85rem; color: var(--muted); }
.list-row__value { font-family: var(--font-head); color: var(--purple); white-space: nowrap; }

details.danger {
  border: 2px solid #ffd6dd;
  border-radius: var(--radius);
  padding: 16px 20px;
}
details.danger summary { cursor: pointer; font-weight: 800; color: #c9314b; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* --------------------------------------------------------------------------
   Content pages (about, legal, faq)
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-head); color: var(--purple); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 18px; color: var(--text); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-grid .card { text-align: center; }
.value-grid .feature__icon { width: 72px; height: 72px; }
.value-grid .feature__icon svg { width: 38px; height: 38px; }

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.video-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  border-radius: var(--radius-lg);
  transition: transform .2s ease;
}
.video-card:hover { color: inherit; transform: translateY(-4px); }
.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-card:hover .video-card__thumb img { transform: scale(1.04); }
.video-card__thumb .badge { position: absolute; top: 10px; left: 10px; }
.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .8) 0 7%, rgba(255, 255, 255, .2) 14%, transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, .3), transparent 60%),
    var(--red);
  box-shadow: 0 10px 20px -6px rgba(255, 45, 45, .6);
  transition: transform .2s ease;
}
.video-card__play svg { width: 24px; height: 24px; margin-left: 3px; }
.video-card:hover .video-card__play { transform: scale(1.1); }
.video-card__body { padding: 14px 4px 4px; }
.video-card__body h3 {
  font-size: 1.05rem;
  margin-bottom: .35em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card__meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.video-card__game {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--ink);
}
.video-card__game::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .8) 0 15%, transparent 40%), var(--dot, var(--purple));
}
.badge--short { background: var(--red); color: #fff; }

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.video-player--short { aspect-ratio: 9 / 16; max-height: 80vh; margin: 0 auto; }
.video-player img { width: 100%; height: 100%; object-fit: cover; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-player.is-playing { cursor: default; }
.video-player__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .85) 0 7%, rgba(255, 255, 255, .2) 14%, transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(0, 0, 0, .3), transparent 60%),
    var(--red);
  box-shadow: 0 16px 30px -8px rgba(255, 45, 45, .7);
  transition: transform .15s ease;
}
.video-player:hover .video-player__btn { transform: scale(1.07); }
.video-player__btn svg { width: 38px; height: 38px; margin-left: 6px; }

.video-head { margin-top: 20px; }
.video-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .4em; }
.video-head__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

.up-next {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: inherit;
  align-items: flex-start;
}
.up-next:hover { color: var(--purple); }
.up-next img { width: 120px; flex: 0 0 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.up-next strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .9rem;
  line-height: 1.3;
  color: var(--ink);
}
.up-next span { font-size: .78rem; color: var(--muted); }

.video-game-cta { display: flex; gap: 14px; align-items: center; color: inherit; }
.video-game-cta:hover { color: inherit; box-shadow: var(--shadow); }
.video-game-cta__thumb {
  width: 96px;
  flex: 0 0 96px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg, var(--purple));
}
.video-game-cta__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */
.cta { padding: 110px 0 120px; text-align: center; }
.cta .coin { margin: 0 auto 26px; }
.cta .wordmark { margin-bottom: 30px; display: inline-block; }

.site-footer {
  background: linear-gradient(120deg, #3a1fb0 0%, var(--purple) 45%, #8b5cff 100%);
  color: rgba(255, 255, 255, .85);
  padding: 56px 0 40px;
  font-size: .9rem;
}
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  align-items: start;
}
.footer-brand .coin { margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: flex-end;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-weight: 700;
}
.socials { display: flex; gap: 14px; justify-content: flex-end; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  transition: background .15s ease;
}
.socials a:hover { background: rgba(255, 255, 255, .26); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255, 255, 255, .7);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .88rem;
}
.cookie-banner p { margin: 0; flex: 1; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .play-layout { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: 0; }
  .collage-wrap { height: 340px; border-radius: var(--radius-lg); }
  .blob { opacity: .5; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav, .socials { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: .8em 1em; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .nav-links .btn { width: 100%; }
  .user-menu__panel { position: static; display: block; box-shadow: none; border: 0; padding: 0; }
  .user-menu__btn { display: none; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .value-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand .wordmark { font-size: 1.15rem; }
  .coin--lg { --size: 140px; }
  .coin--xl { --size: 160px; }
  .auth-card { padding: 30px 20px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .board th:nth-child(4), .board td:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
