/* PackPlay web — DS-v3 tokens (ai-docs/02_DESIGN_SYSTEM.md) translated to CSS.
   No inline styles anywhere on the site: the CSP is style-src 'self'. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --primary: #7a5cff;
  --primary-strong: #5f43f0;
  --primary-depth: #4e34d1;
  --primary-soft: #efeaff;
  --primary-light: #8b5cff;
  --hero-blue: #4d7cff;
  --cyan: #5ad1ff;

  --ink: #1b1a30;
  --ink-2: #3a3757;
  --ink-secondary: #6f6d8c;
  --ink-muted: #9a99b5;

  --bg: #f5f6fc;
  --bg-alt: #e9eaf2;
  --surface: #ffffff;
  --surface-muted: #f2f0fb;
  --divider: #f3f1fa;
  --outline: #d8d4ee;
  --outline-dashed: #c9c2f2;

  --success: #17c964;  --success-surface: #e9fbf1; --success-text: #0c7a3c; --success-depth: #0e9a4c;
  --warning: #ff9f1c;  --warning-surface: #fff5e2; --warning-text: #b96e00; --warning-depth: #c47800;
  --error: #ff4d6d;    --error-surface: #ffecef;   --error-text: #c81e42;   --error-depth: #e11d48;
  --gold: #ffd23f;     --gold-deep: #ff9f1c;       --gold-ink: #7a4a00;

  --grad-cta: linear-gradient(135deg, #7a5cff, #5f43f0);
  --grad-gold: linear-gradient(135deg, #ffd23f, #ff9f1c);
  --grad-hero: linear-gradient(165deg, #8b5cff 0%, #6a4bf5 48%, #4d7cff 100%);
  --grad-fab: linear-gradient(135deg, #ff6b9d, #ff9f1c);

  --r-badge: 10px; --r-icon: 12px; --r-chip: 14px; --r-input: 16px;
  --r-button: 18px; --r-card: 22px; --r-card-lg: 28px; --r-pill: 999px;

  --sh-subtle: 0 4px 12px -4px rgba(90, 80, 160, .28);
  --sh-card: 0 10px 22px -18px rgba(90, 80, 160, .5);
  --sh-raised: 0 18px 36px -22px rgba(90, 80, 160, .6);
  --sh-floating: 0 12px 30px -10px rgba(70, 60, 130, .35);
  --sh-dialog: 0 30px 60px -20px rgba(10, 5, 40, .6);

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 700;
  --display-weight-semi: 600;

  --gutter: 20px;
  --max: 1160px;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}
/* height:auto keeps the width/height attributes as an aspect ratio only;
   without it a narrowed image keeps its attribute height and stretches. */
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--primary-depth); }
/* Fredoka has no Turkish Ğ, İ or Ş, so Turkish text (the KVKK notice) would
   mix two fonts inside one word. Content marked lang="tr" uses Nunito for
   headings too, as the app does for Turkish (locale-aware display font). */
:lang(tr) { --font-display: "Nunito", system-ui, sans-serif; --display-weight: 900; --display-weight-semi: 800; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: var(--display-weight-semi); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-chip); z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-secondary); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary-strong); background: var(--primary-soft);
  padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  --depth: var(--primary-depth);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--r-button);
  font-family: var(--font-display); font-weight: var(--display-weight-semi); font-size: 1.05rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s cubic-bezier(.3, 1.4, .5, 1), box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: 0 5px 0 var(--depth), 0 14px 26px -14px rgba(95, 67, 240, .8); }
.btn-primary:hover { color: #fff; }
.btn-primary:active, .btn-gold:active, .btn-danger:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--depth); }
.btn-gold { --depth: var(--warning-depth); background: var(--grad-gold); color: var(--gold-ink); box-shadow: 0 5px 0 var(--depth); }
.btn-gold:hover { color: var(--gold-ink); }
.btn-light { background: #fff; color: var(--ink-2); border: 2px solid #e6e3f0; box-shadow: 0 8px 18px -14px rgba(90, 80, 160, .5); }
.btn-light:hover { color: var(--ink); }
.btn-dark { background: #1b1a2e; color: #fff; box-shadow: 0 10px 22px -12px rgba(20, 10, 60, .6); }
.btn-dark:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--primary-strong); min-height: 44px; padding: 0 14px; }
.btn-danger { --depth: var(--error-depth); background: linear-gradient(135deg, #ff4d6d, #e11d48); color: #fff; box-shadow: 0 5px 0 var(--depth); }
.btn-danger:hover { color: #fff; }
.btn-on-hero { background: rgba(255, 255, 255, .16); color: #fff; border: 2px solid rgba(255, 255, 255, .35); }
.btn-on-hero:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; border-radius: var(--r-chip); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #eef0f7; color: #b0abcc; box-shadow: none; cursor: not-allowed; filter: none; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 246, 252, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(216, 212, 238, .5);
}
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 12px; box-shadow: var(--sh-subtle); }
.brand span { font-family: "Fredoka", var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-weight: 800;
  padding: 8px 12px; border-radius: var(--r-chip);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); }
.nav form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle summary {
  list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: var(--r-chip);
  display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh-subtle);
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle[open] .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px));
    background: var(--surface); border-radius: var(--r-card); padding: 10px;
    box-shadow: var(--sh-dialog);
  }
  .nav-toggle[open] .nav a, .nav-toggle[open] .nav .btn { justify-content: flex-start; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-hero);
  border-radius: 0 0 44px 44px;
  margin-top: -1px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; top: -200px; left: -160px; background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 70%); }
.hero::after { width: 460px; height: 460px; bottom: -180px; right: -120px; background: radial-gradient(circle, rgba(90, 209, 255, .35) 0%, rgba(90, 209, 255, 0) 70%); }
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  padding-top: 56px; padding-bottom: 64px;
}
.hero h1 { color: #fff; text-shadow: 0 6px 24px rgba(20, 10, 60, .25); }
.hero .lead { font-size: 1.2rem; color: rgba(255, 255, 255, .9); max-width: 34ch; }
.hero .eyebrow { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(20, 10, 60, .35)); }
/* 3D chips (dice, star, chat) floating around the hero art. Scoped under
   .hero-art so the hero image rules (width: 100%) do not apply to them. */
.hero-art .chip-float {
  position: absolute; z-index: 1; width: 76px; height: 76px;
  filter: drop-shadow(0 12px 14px rgba(20, 10, 60, .35));
  animation: ppChipFloat 4.6s ease-in-out infinite;
}
.hero-art .chip-float.c1 { top: 2%; left: 0; rotate: -10deg; }
.hero-art .chip-float.c2 { top: -2%; right: 4%; rotate: 8deg; animation-delay: .8s; }
.hero-art .chip-float.c3 { bottom: 14%; right: -2%; animation-delay: 1.4s; }
@media (max-width: 640px) { .hero-art .chip-float { width: 56px; height: 56px; } }
@keyframes ppChipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.stats-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 14px; border-radius: var(--r-pill); font-weight: 800; font-size: .95rem;
}

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .stats-row { justify-content: center; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding-block: 88px; }
.section-tight { padding-block: 56px; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-secondary); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--r-card); padding: 24px;
  box-shadow: var(--sh-card); border: 1px solid rgba(216, 212, 238, .45);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.game-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 300px; padding: 30px; border-radius: var(--r-card-lg); color: #fff; box-shadow: var(--sh-raised);
}
.game-card.word { background: linear-gradient(150deg, #8b5cff, #5f43f0); }
.game-card.color { background: linear-gradient(150deg, #12b98a, #4d7cff); }
.game-card h3 { font-size: 1.8rem; color: #fff; }
.game-card p { color: rgba(255, 255, 255, .9); }
.game-card img { width: 100%; height: auto; filter: drop-shadow(0 20px 24px rgba(10, 5, 40, .35)); }
.game-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 900; background: rgba(255, 255, 255, .2); }
@media (max-width: 760px) { .game-card { grid-template-columns: 1fr; text-align: center; } .game-card img { max-width: 280px; margin: 0 auto; } .game-card .tags { justify-content: center; } }

.icon-box {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 14px; background: var(--primary-soft);
}
.icon-box.gold { background: var(--warning-surface); }
.icon-box.green { background: var(--success-surface); }
.icon-box.pink { background: #ffe9f4; }
.icon-box.blue { background: #e6f6ff; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 24px; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  background: var(--grad-cta); box-shadow: 0 4px 0 var(--primary-depth);
  transform: translateY(18px);
}
.step img { width: 100%; max-width: 220px; height: auto; margin: 0 auto 8px; }

/* minmax(0,1fr): a wide image must shrink with its column, never widen it. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } .split .art { max-width: 380px; margin: 0 auto; } }

.band {
  position: relative; overflow: hidden; border-radius: var(--r-card-lg); padding: 44px;
  background: var(--surface); box-shadow: var(--sh-raised);
}
.band.premium { background: linear-gradient(150deg, #fff7e0 0%, #ffffff 60%); border: 2px solid #ffe1ad; }
.band.cta { background: var(--grad-hero); color: #fff; text-align: center; }
.band.cta h2 { color: #fff; }
.band.cta p { color: rgba(255, 255, 255, .9); }

.characters { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 10px; }
.characters img { width: 16%; max-width: 150px; height: auto; margin: 0 -1.5%; filter: drop-shadow(0 16px 18px rgba(60, 50, 120, .25)); }
.characters img:nth-child(odd) { transform: translateY(14px); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 20px;
  border-radius: var(--r-button); background: #1b1a2e; color: #fff; text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(20, 10, 60, .6);
}
.store-badge:hover { color: #fff; filter: brightness(1.15); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge small { display: block; font-size: .72rem; opacity: .8; font-weight: 700; line-height: 1.2; }
.store-badge strong { display: block; font-family: "Fredoka", var(--font-display); font-size: 1.15rem; line-height: 1.2; font-weight: 600; }
.store-badge.soon { opacity: .75; cursor: default; }

.faq details {
  background: var(--surface); border-radius: var(--r-input); box-shadow: var(--sh-card);
  border: 1px solid rgba(216, 212, 238, .45); margin-bottom: 12px; padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display);
  font-weight: var(--display-weight-semi); font-size: 1.08rem; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-secondary); }

.pako-callout { display: flex; align-items: center; gap: 22px; }
.pako-callout img { width: 150px; height: auto; flex: none; }
@media (max-width: 640px) { .pako-callout { flex-direction: column; text-align: center; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { margin-top: 40px; padding: 56px 0 30px; background: #1b1a30; color: #c9c6e3; border-radius: 44px 44px 0 0; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.lang-switch { display: inline-flex; gap: 6px; }
.lang-switch a { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); }
.lang-switch a[aria-current="true"] { background: var(--primary); }
.site-footer .brand { color: #fff; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Page shell (legal, account) ─────────────────────────────────────── */
.page-hero { padding-block: 48px 30px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--ink-secondary); font-size: 1.1rem; max-width: 60ch; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 60px; }
.legal-nav { position: sticky; top: 90px; background: var(--surface); border-radius: var(--r-card); padding: 14px; box-shadow: var(--sh-card); }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 8px 12px; border-radius: var(--r-chip); text-decoration: none; color: var(--ink-2); font-weight: 800; font-size: .95rem; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); }
@media (max-width: 880px) {
  /* minmax(0,…): a wide table must scroll inside its wrapper, not widen the page. */
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  /* On phones the document comes first; the other documents follow it. */
  .legal-nav { position: static; order: 2; }
}

.prose { background: var(--surface); border-radius: var(--r-card-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--sh-card); font-weight: 600; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose th { background: var(--surface-muted); font-weight: 900; color: var(--ink); }
.prose .table-wrap { overflow-x: auto; }
/* A cookie name split at its hyphen reads as two names. */
.prose td code { white-space: nowrap; }
/* Wide three-column tables become one labelled card per row on phones, so
   nothing has to be read by scrolling sideways. Cells carry data-label. */
@media (max-width: 640px) {
  .prose .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose .stack-table, .prose .stack-table tbody, .prose .stack-table tr, .prose .stack-table td { display: block; width: 100%; }
  .prose .stack-table tr { border: 1px solid var(--divider); border-radius: var(--r-input); padding: 6px 0; margin-bottom: 12px; }
  .prose .stack-table td { border-bottom: 0; padding: 6px 14px; }
  .prose .stack-table td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 900; color: var(--ink-muted); }
}
.prose .meta { font-size: .9rem; color: var(--ink-muted); margin-bottom: 1.4em; }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-input); margin: 0 0 1.2em; font-weight: 700;
  background: var(--primary-soft); color: #5330d6; border: 1px solid #d5c9ff;
}
.notice.warning { background: var(--warning-surface); color: var(--warning-text); border-color: #ffe1ad; }
.notice.error { background: var(--error-surface); color: var(--error-text); border-color: #ffc9d3; }
.notice.success { background: var(--success-surface); color: var(--success-text); border-color: #b6eccd; }
.notice p:last-child { margin: 0; }

.narrow { max-width: 560px; margin: 0 auto; }
.panel { background: var(--surface); border-radius: var(--r-card-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--sh-raised); }
.panel-art { width: 140px; height: auto; margin: -85px auto 6px; }
/* Pako peeks over the panel's top edge: his fingers sit on the edge itself. */
.panel.has-peek { position: relative; margin-top: 110px; padding-top: clamp(44px, 6vw, 52px); }
.panel-peek {
  position: absolute; left: 50%; bottom: 100%; width: 150px;
  transform: translate(-50%, 16%); pointer-events: none;
}
.signin-buttons { display: grid; gap: 12px; margin: 22px 0 8px; }
.gsi-slot { min-height: 52px; display: flex; justify-content: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--outline); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--ink-secondary); font-weight: 800; }
.kv dd { margin: 0; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: var(--r-pill); font-size: .8rem; font-weight: 900;
  background: var(--primary-soft); color: #5330d6;
}
.badge.success { background: var(--success-surface); color: var(--success-text); }
.badge.warning { background: var(--warning-surface); color: var(--warning-text); }
.badge.error { background: var(--error-surface); color: var(--error-text); }
.badge.muted { background: var(--bg-alt); color: var(--ink-secondary); }

form .field { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-weight: 800; color: var(--ink); }
input[type="text"], input[type="search"], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 2px solid var(--outline); border-radius: var(--r-input);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(122, 92, 255, .18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex: none; }

.list-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--success-surface); color: var(--success-text); font-weight: 900; font-size: .85rem; }
.list-cross li::before { content: "✕"; background: var(--error-surface); color: var(--error-text); }
.list-info li::before { content: "i"; background: var(--primary-soft); color: #5330d6; }

.error-page { text-align: center; padding-block: 80px 40px; }
.error-page img { width: 180px; height: auto; margin: 0 auto 10px; }
.error-page .code { font-family: "Fredoka", var(--font-display); font-weight: 700; font-size: 4.5rem; color: var(--primary); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Two copies of the nav (collapsible on phones, inline on desktop); show one. */
.nav-desktop { margin-left: auto; }
.nav-desktop .nav { display: flex; }
.nav-toggle .nav { display: none; }
@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-toggle[open] .nav { display: flex; }
}
@media (min-width: 881px) { .nav-toggle { display: none; } }
.footer-tagline { margin-top: 14px; max-width: 30ch; }
.section-alt { background: linear-gradient(180deg, rgba(239, 234, 255, .6), rgba(245, 246, 252, 0)); }
.section-note { margin-top: 22px; }
.narrow-wide { max-width: 860px; }
.small { font-size: .9rem; }
.doc-cards a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.doc-cards a.card:hover { transform: translateY(-3px); box-shadow: var(--sh-raised); }
.doc-cards .card h3 { color: var(--ink); }
.controller-box { background: var(--surface-muted); border-radius: var(--r-input); padding: 16px 18px; margin-bottom: 1.2em; }
.controller-box p { margin: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps-list li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-cta); color: #fff; font-weight: 900; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.h3 { font-size: 1.2rem; }
.account-sub { margin-top: 28px; }
.signin-note { margin-top: 18px; }
.center-actions { justify-content: center; }
.dev-signin { text-align: left; }
.panel .kv { margin: 18px 0 8px; }

/* Step art is cut flat at the waist: fade that edge out. The hero, game and
   premium scenes are full-figure (feet included) and are shown as drawn. */
.fade-bottom, .step img {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-card { grid-template-columns: 1fr; align-content: space-between; gap: 10px; }
.game-card img { max-width: 360px; margin: 0 auto; }
.band.premium .art { align-self: center; }
.band.premium .art img { width: 100%; max-width: 380px; margin: 0 auto; }
@media (max-width: 860px) { .game-grid { grid-template-columns: 1fr; } }

/* Provider buttons: same 320×44 pill as Google's rendered "large/pill" button. */
/* minmax(0,1fr): Google renders a fixed-width iframe; it must not widen the column. */
.signin-buttons { justify-items: center; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.btn-provider {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 320px; height: 44px; padding: 0 18px;
  border-radius: 999px; font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer; transition: filter .15s;
}
.btn-provider svg { width: 18px; height: 18px; flex: none; }
.btn-apple { background: #000; color: #fff; border: 0; }
.btn-apple:hover:not([disabled]) { filter: brightness(1.25); }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-provider[disabled] { opacity: .5; cursor: not-allowed; }
.gsi-slot { min-height: 44px; width: 100%; max-width: 320px; display: flex; justify-content: center; }
/* The Google slot and the "continue" hint start hidden; display:flex above must not show them. */
.signin-buttons [hidden] { display: none !important; }
/* Visually hidden, still read by screen readers (labels in dense admin tables). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.report-status { display: grid; gap: 6px; min-width: 180px; }
.receipt { font-size: 1.1rem; letter-spacing: .06em; }
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .section-tight { padding-block: 36px; }
  .band { padding: 28px 22px; }
  .panel { padding: 22px 18px; }
}

/* Feature and support icons: 3D art stands on its own, no tinted box. */
.feature-icon { display: block; width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px;
  filter: drop-shadow(0 8px 10px rgba(90, 80, 160, .22)); }
