/* ==========================================================================
   ARF — Kids Brain Games
   base.css: design tokens, reset, typography, buttons, header, footer,
             modals, toasts, utilities and motion preferences.
   Shared by every page.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --sky: #2e9bf0;
  --sky-600: #0c74c4;
  --sky-700: #075a9b;
  --sky-100: #e3f2fe;
  --sky-50: #f1f9ff;
  --sun: #ffc63d;
  --sun-600: #eda300;
  --sun-100: #fff4d6;
  --leaf: #1fc37d;
  --leaf-600: #0e9d63;
  --leaf-100: #e3fbf1;
  --coral: #ff7455;
  --coral-600: #e95232;
  --coral-100: #ffece6;
  --berry: #7b61ff;
  --berry-600: #6247e0;
  --berry-100: #efeaff;

  /* Ink & surfaces */
  --ink: #132a4a;
  --ink-2: #41597b;
  --ink-3: #5b6f8c;
  --cream: #fffbf5;
  --paper: #ffffff;
  --line: rgba(19, 42, 74, 0.09);
  --line-strong: rgba(19, 42, 74, 0.16);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(19, 42, 74, 0.06);
  --shadow-sm: 0 1px 2px rgba(19, 42, 74, 0.05), 0 6px 16px -8px rgba(19, 42, 74, 0.16);
  --shadow-md: 0 2px 6px rgba(19, 42, 74, 0.04), 0 22px 40px -26px rgba(19, 42, 74, 0.35);
  --shadow-lg: 0 10px 24px -16px rgba(19, 42, 74, 0.2), 0 48px 80px -46px rgba(19, 42, 74, 0.45);

  /* Shape */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-pill: 999px;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;

  /* Type */
  --font-display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--sky-600);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sky-700);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

strong,
b {
  font-weight: 800;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sky-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sun);
}

/* ---------- 3. Typography helpers ---------- */
.display-xl {
  font-size: clamp(2.55rem, 6vw, 4.5rem);
  line-height: 1.02;
}

.display-lg {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.06;
}

.display-md {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-100);
}

.section--dark .eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-dark);
  color: #d8e6f7;
}

.text-sky { color: var(--sky-600); }
.text-coral { color: var(--coral-600); }
.text-leaf { color: var(--leaf-600); }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 108px);
}

.section--tight {
  padding-block: clamp(44px, 6vw, 72px);
}

.section--paper {
  background: var(--paper);
}

.section--sky {
  background: linear-gradient(180deg, rgba(227, 242, 254, 0.55), rgba(255, 251, 245, 0.9));
}

.section--dark {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(46, 155, 240, 0.3), transparent 70%),
    radial-gradient(700px 380px at 90% 0%, rgba(123, 97, 255, 0.24), transparent 72%),
    #0f2340;
  color: #eaf2fc;
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section--dark p {
  color: #b9cbe2;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(34px, 4.5vw, 54px);
  text-align: center;
}

.section-head > * + * {
  margin-top: 16px;
}

.section-head .eyebrow {
  margin-bottom: 6px;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head--left .eyebrow {
  margin-bottom: 8px;
}

.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--sky-600);
  --btn-fg: #ffffff;
  --btn-shadow: var(--sky-700);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--btn-shadow), var(--shadow-sm);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--btn-shadow), var(--shadow-md);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-shadow);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--sky-600);
  --btn-shadow: var(--sky-700);
}

.btn--primary:hover {
  background: #0b80d8;
}

.btn--sun {
  --btn-bg: var(--sun);
  --btn-fg: var(--ink);
  --btn-shadow: var(--sun-600);
}

.btn--sun:hover {
  background: #ffd060;
}

.btn--leaf {
  --btn-bg: var(--leaf-600);
  --btn-shadow: #0a7d50;
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.92);
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 3px 0 rgba(19, 42, 74, 0.08);
}

.btn--ghost:hover {
  --btn-bg: #ffffff;
  border-color: var(--sky);
  color: var(--ink);
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-shadow: #081527;
}

.btn--white {
  --btn-bg: #ffffff;
  --btn-fg: var(--ink);
  --btn-shadow: rgba(3, 16, 35, 0.45);
}

.btn--sm {
  padding: 9px 17px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1.06rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.16s var(--ease), background 0.16s, border-color 0.16s;
}

.icon-btn:hover {
  background: var(--sky-50);
  border-color: var(--sky);
  transform: translateY(-1px);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  color: var(--sky-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s, gap 0.16s;
}

.link-arrow:hover {
  border-color: currentColor;
  gap: 10px;
}

.link-arrow .icon {
  width: 17px;
  height: 17px;
}

/* ---------- 6. Skip link & utilities ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #ffffff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 251, 245, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  background: rgba(255, 251, 245, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -22px rgba(19, 42, 74, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  filter: drop-shadow(0 4px 8px rgba(12, 116, 196, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.brand-sub {
  margin-top: 5px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
}

.site-nav a:hover {
  background: rgba(46, 155, 240, 0.1);
  color: var(--sky-700);
}

.site-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.site-nav a.nav-cta {
  color: #ffffff;
  background: var(--sky-600);
  box-shadow: 0 3px 0 var(--sky-700);
}

.site-nav a.nav-cta:hover {
  color: #ffffff;
  background: #0b80d8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}

.wallet-btn:hover {
  border-color: var(--sky);
  background: var(--sky-50);
  transform: translateY(-1px);
}

.wallet-btn .icon {
  width: 17px;
  height: 17px;
  color: var(--sky-600);
}

.wallet-btn.is-connected {
  border-color: var(--leaf);
  background: var(--leaf-100);
  color: #0a6a45;
}

.wallet-btn.is-connected .icon {
  color: var(--leaf-600);
}

.nav-toggle {
  display: none;
}

.nav-cta {
  display: none;
}

.site-nav .nav-cta {
  display: none;
}

.header-play {
  display: inline-flex;
}

/* Age gate checkbox (wallet dialog) */
.gate-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}

.gate-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--sky-600);
}

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 84px) 0 28px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(46, 155, 240, 0.18), transparent 70%),
    linear-gradient(180deg, #0f2340 0%, #0a1a30 100%);
  color: #c6d6e8;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 48px);
}

.footer-brand .brand {
  color: #ffffff;
}

.footer-brand .brand-sub {
  color: #8fa8c4;
}

.footer-about {
  margin-top: 18px;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #a9bdd5;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: #d7e4f3;
  transition: background 0.16s, border-color 0.16s, transform 0.16s, color 0.16s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social .icon {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: #a9bdd5;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: #8fa8c4;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal-links a {
  color: #8fa8c4;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #8fa8c4;
}

/* ---------- 9. Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 21, 39, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s var(--ease-bounce);
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--ink-2);
  transition: background 0.16s, color 0.16s;
}

.modal__close:hover {
  background: var(--sky-100);
  color: var(--ink);
}

.modal__close .icon {
  width: 18px;
  height: 18px;
}

.modal__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--sky-100);
  color: var(--sky-700);
}

.modal__icon .icon {
  width: 30px;
  height: 30px;
}

.modal h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.modal p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1 1 auto;
}

.modal-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--sun-100);
  color: #7a5200;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
}

/* ---------- 10. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 13px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast .icon {
  width: 18px;
  height: 18px;
  color: var(--sun);
}

/* ---------- 11. Privacy bar ---------- */
.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 140;
  width: min(92vw, 410px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.consent.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.consent p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.consent strong {
  color: var(--ink);
}

.consent-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* ---------- 12. Reveal & motion ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[hidden] {
  display: none !important;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-y-sm {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--rot, 0deg)); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 13. Responsive chrome ---------- */
@media (max-width: 1080px) {
  .site-nav a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .wallet-btn span {
    display: none;
  }

  .wallet-btn {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 68px;
  }

  .nav-cta {
    display: inline-flex;
  }

  .site-nav .nav-cta {
    display: inline-flex;
  }

  .header-play {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
  }

  .nav-toggle .icon {
    width: 22px;
    height: 22px;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 14px;
    right: 14px;
    z-index: 95;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
    animation: pop-in 0.2s var(--ease);
  }

  .site-nav a {
    padding: 13px 16px;
    font-size: 1rem;
  }

  .site-nav .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .btn {
    padding: 12px 20px;
  }

  .brand-sub {
    display: none;
  }
}

/* ---------- 14. Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .consent,
  .toast,
  .skip-link,
  .modal {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
