/* Worthy Play site components. Requires tokens.css. Mobile-first. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wp-bg); color: var(--wp-text);
  font-family: var(--wp-font-ui); font-size: var(--wp-fs-body); line-height: var(--wp-lh-body);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--wp-primary-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
h1, h2, h3 { margin: 0; }
.display { font-family: var(--wp-font-display); font-weight: 800; font-variation-settings: var(--wp-display-axes); letter-spacing: -.01em; }
.h-hero { font-size: var(--wp-fs-hero); line-height: var(--wp-lh-hero); }
.h-display { font-size: var(--wp-fs-display); line-height: var(--wp-lh-display); }
.h-headline { font-size: var(--wp-fs-headline); line-height: var(--wp-lh-headline); }
.t-title { font-size: var(--wp-fs-title); line-height: var(--wp-lh-title); font-weight: 700; }
.t-sub { font-size: var(--wp-fs-subtitle); line-height: var(--wp-lh-subtitle); font-weight: 700; }
.t-label { font-size: var(--wp-fs-label); line-height: var(--wp-lh-label); font-weight: 700; }
.t-caption { font-size: var(--wp-fs-caption); line-height: var(--wp-lh-caption); color: var(--wp-muted); }
.muted { color: var(--wp-muted); }
.eyebrow { font-size: var(--wp-fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp-secondary-text); margin: 0 0 var(--wp-space-md); }

/* Focus: always visible for keyboard users (WCAG 2.4.7 / 2.4.11 / 2.4.13) */
:focus-visible { outline: var(--wp-focus-width) solid var(--wp-focus); outline-offset: var(--wp-focus-offset); border-radius: var(--wp-radius-sm); }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--wp-surface); color: var(--wp-text); padding: 12px 16px; border-radius: var(--wp-radius-md); box-shadow: var(--wp-shadow-2); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--wp-container) + 2 * var(--wp-gutter)); margin-inline: auto; padding-inline: var(--wp-gutter); }
.section { padding-block: var(--wp-section-y); }
.section-head { max-width: 720px; margin-bottom: var(--wp-space-3xl); }
.section-head p { margin: var(--wp-space-md) 0 0; color: var(--wp-muted); }

/* Buttons: 48 px min target */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--wp-target-min); padding: 12px 24px; border-radius: var(--wp-radius-pill); font: 700 var(--wp-fs-label)/1 var(--wp-font-ui); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color var(--wp-dur) var(--wp-ease), transform var(--wp-dur) var(--wp-ease); }
.btn-primary { background: var(--wp-primary); color: var(--wp-on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--wp-primary) 88%, var(--wp-text)); }
.btn-secondary { background: transparent; color: var(--wp-secondary-text); border-color: var(--wp-secondary); }
.btn-secondary:hover { background: color-mix(in srgb, var(--wp-secondary) 10%, transparent); }
.btn:active { transform: translateY(1px); }

/* Header (borrows Worthy Tech structure: logo left, nav, contact CTA, mobile menu) */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--wp-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp-border); }
.site-header .bar { display: flex; align-items: center; gap: var(--wp-space-xl); min-height: 72px; }
.brand { display: inline-flex; align-items: center; border-radius: var(--wp-radius-sm); }
.brand img { height: 52px; width: auto; margin-block: -4px; } /* lockup SVG carries its own 1X clear space */
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: var(--wp-target-min); padding: 0 14px; border-radius: var(--wp-radius-pill); color: var(--wp-text); text-decoration: none; font-weight: 700; font-size: var(--wp-fs-label); }
.nav a:hover { background: var(--wp-surface-2); }
.nav a[aria-current="page"] { color: var(--wp-primary-text); background: var(--wp-surface-2); }
.header-cta { display: none; }
.menu-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--wp-radius-pill); border: 1px solid var(--wp-border); background: var(--wp-surface); color: var(--wp-text); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--wp-radius-pill); border: 1px solid var(--wp-border); background: var(--wp-surface); color: var(--wp-text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 96px) clamp(56px, 7vw, 120px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; background:
  radial-gradient(40% 35% at 30% 30%, var(--wp-hero-wash-1), transparent 70%),
  radial-gradient(40% 40% at 70% 45%, var(--wp-hero-wash-2), transparent 70%),
  radial-gradient(35% 35% at 45% 75%, var(--wp-hero-wash-3), transparent 70%); pointer-events: none; }
.hero .grid { position: relative; display: grid; gap: var(--wp-space-3xl); align-items: center; }
.hero-lockup { height: 44px; width: auto; margin-bottom: var(--wp-space-xl); }
.hero p.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; color: var(--wp-muted); max-width: 34ch; margin: var(--wp-space-xl) 0 var(--wp-space-2xl); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--wp-space-md); }
.stage { position: relative; aspect-ratio: 1 / 1; max-width: min(520px, 82vw); width: 100%; margin-inline: auto; }
.stage .kite { position: absolute; inset: 14%; }
.stage .tile { position: absolute; width: 27%; aspect-ratio: 1; border-radius: var(--wp-radius-icon); box-shadow: var(--wp-shadow-2); overflow: hidden; background: var(--wp-surface); outline: 1px solid var(--wp-border); outline-offset: -1px; }
.stage .tile img { width: 100%; height: 100%; }
.stage .t1 { left: 0; top: 4%; transform: rotate(-8deg); }
.stage .t2 { right: 0; top: 0; transform: rotate(7deg); }
.stage .t3 { left: 4%; bottom: 0; transform: rotate(6deg); }
.stage .t4 { right: 3%; bottom: 5%; transform: rotate(-6deg); }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: var(--wp-space-sm) var(--wp-space-md); margin: 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--wp-radius-pill); background: var(--wp-surface); border: 1px solid var(--wp-border); font-weight: 700; font-size: var(--wp-fs-label); }
.trust li svg { width: 18px; height: 18px; color: var(--wp-secondary-text); flex: none; }

/* Game card */
.game-grid { display: grid; gap: var(--wp-space-xl); grid-template-columns: 1fr; }
.game-card { position: relative; display: flex; flex-direction: column; gap: var(--wp-space-lg); padding: var(--wp-space-xl); background: var(--wp-surface); border: 1px solid var(--wp-border); border-radius: var(--wp-radius-xl); box-shadow: var(--wp-shadow-1); transition: box-shadow var(--wp-dur) var(--wp-ease), transform var(--wp-dur) var(--wp-ease); }
.game-card:hover, .game-card:focus-within { box-shadow: var(--wp-shadow-2); transform: translateY(-2px); }
.game-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--wp-space-md); }
.game-card .icon { width: 88px; height: 88px; border-radius: var(--wp-radius-icon); overflow: hidden; flex: none; outline: 1px solid var(--wp-border); outline-offset: -1px; } /* keeps white icons visible on white cards */
.game-card .icon img { width: 100%; height: 100%; }
.game-card h3 { font-family: var(--wp-font-display); font-weight: 800; font-variation-settings: var(--wp-display-axes); font-size: 1.5rem; line-height: 1.2; }
.game-card h3 a { color: var(--wp-text); text-decoration: none; }
.game-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--wp-radius-xl); } /* whole card clickable, one tab stop */
.game-card h3 a:focus-visible { outline: none; }
.game-card:has(h3 a:focus-visible) { outline: var(--wp-focus-width) solid var(--wp-focus); outline-offset: var(--wp-focus-offset); }
.game-card .by { margin-top: 2px; font-size: var(--wp-fs-caption); color: var(--wp-muted); }
.game-card .one-liner { margin: 0; color: var(--wp-muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: var(--wp-radius-pill); border: 1px solid var(--wp-border); background: var(--wp-bg); font-size: var(--wp-fs-caption); font-weight: 700; color: var(--wp-muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: var(--wp-radius-pill); font-size: var(--wp-fs-caption); font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-soon { background: var(--wp-chip-soon-bg); color: var(--wp-chip-soon-fg); }
.chip-live { background: var(--wp-chip-live-bg); color: var(--wp-chip-live-fg); }
.chip-pending { background: transparent; color: var(--wp-muted); border: 1.5px dashed var(--wp-muted); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--wp-space-sm); border-top: 1px solid var(--wp-border); }
.stores:empty { display: none; }
.store-slot { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--wp-radius-md); border: 1.5px dashed var(--wp-border); color: var(--wp-muted); font-size: var(--wp-fs-caption); font-weight: 700; }
.store-link { position: relative; z-index: 1; } /* sits above the card's stretched link */
.game-card.is-placeholder { border-style: dashed; box-shadow: none; }
.game-card .more { position: relative; z-index: 1; margin-top: auto; font-weight: 700; font-size: var(--wp-fs-label); }

/* Values */
.values { display: grid; gap: var(--wp-space-xl); }
.value { padding: var(--wp-space-xl); border-radius: var(--wp-radius-lg); background: var(--wp-surface); border: 1px solid var(--wp-border); }
.value .dot { width: 44px; height: 44px; border-radius: 14px; margin-bottom: var(--wp-space-lg); display: grid; place-items: center; }
.value .dot svg { width: 24px; height: 24px; }
.value h3 { font-size: var(--wp-fs-title); line-height: var(--wp-lh-title); font-weight: 700; margin-bottom: 8px; }
.value p { margin: 0; color: var(--wp-muted); }

/* Parents band */
.band { background: var(--wp-surface-2); border-radius: var(--wp-radius-xl); padding: clamp(28px, 4vw, 56px); display: grid; gap: var(--wp-space-2xl); }
.band .eyebrow { color: var(--wp-primary-text); } /* teal is 4.12:1 on surface-2; plum passes */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wp-space-md); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks li svg { width: 28px; height: 28px; color: var(--wp-secondary-text); }
.checks strong { display: block; }

/* Newsletter */
.newsletter { display: grid; gap: var(--wp-space-xl); align-items: end; padding: clamp(28px, 4vw, 48px); border-radius: var(--wp-radius-xl); border: 1px solid var(--wp-border); background: var(--wp-surface); }
.form-row { display: grid; gap: var(--wp-space-md); }
.field label { display: block; font-weight: 700; font-size: var(--wp-fs-label); margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--wp-radius-md); border: 1.5px solid var(--wp-muted); background: var(--wp-bg); color: var(--wp-text); font: inherit; }
.newsletter .fine { margin: 0; }

/* Footer */
.site-footer { background: var(--wp-footer-bg); color: var(--wp-footer-text); padding-block: var(--wp-space-4xl) var(--wp-space-2xl); margin-top: var(--wp-section-y); }
.site-footer a { color: var(--wp-footer-text); }
.site-footer :focus-visible { outline-color: #FFB070; }
.footer-grid { display: grid; gap: var(--wp-space-2xl); }
.footer-grid h2 { font-size: var(--wp-fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--wp-footer-muted); margin-bottom: var(--wp-space-md); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid ul a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.footer-grid ul a:hover { text-decoration: underline; }
.family { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--wp-space-lg); padding: 10px 16px; border-radius: var(--wp-radius-pill); border: 1px solid #46354F; text-decoration: none; font-weight: 700; font-size: var(--wp-fs-label); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--wp-space-md); margin-top: var(--wp-space-3xl); padding-top: var(--wp-space-xl); border-top: 1px solid #46354F; color: var(--wp-footer-muted); font-size: var(--wp-fs-caption); }

/* Detail page */
.detail-hero { display: grid; gap: var(--wp-space-2xl); align-items: center; padding-block: var(--wp-space-3xl); }
.detail-hero .big-icon { width: 144px; height: 144px; border-radius: var(--wp-radius-icon); overflow: hidden; box-shadow: var(--wp-shadow-2); outline: 1px solid var(--wp-border); outline-offset: -1px; }
.breadcrumb { font-size: var(--wp-fs-label); margin-bottom: var(--wp-space-xl); }
.breadcrumb ol { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--wp-muted); }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--wp-space-lg); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: var(--wp-radius-lg); border: 1px solid var(--wp-border); }
.shots figcaption { margin-top: 8px; font-size: var(--wp-fs-caption); color: var(--wp-muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--wp-muted); }

/* Breakpoints: sm 600, md 900, lg 1200 (content max 1200, comps at 390 / 1440) */
@media (min-width: 600px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
@media (min-width: 900px) {
  .nav, .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .hero .grid { grid-template-columns: 1.1fr .9fr; }
  .band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .detail-hero { grid-template-columns: auto 1fr; }
  .newsletter { grid-template-columns: 1fr 1.4fr; }
}
@media (min-width: 1200px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
}

/* Reduced motion: no transforms or transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .game-card:hover, .game-card:focus-within, .btn:active { transform: none; }
}
/* Windows High Contrast / forced colours */
@media (forced-colors: active) {
  .game-card, .badge, .chip, .btn { border: 1px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
/* logo swap */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-light { display: none; } :root:not([data-theme="light"]) .on-dark { display: block; } }
[data-theme="dark"] .on-light { display: none; } [data-theme="dark"] .on-dark { display: block; }
.stage .kite .a { fill: var(--wp-accent); } .stage .kite .p { fill: var(--wp-primary); } .stage .kite .t { fill: var(--wp-secondary); } .stage .kite .r { fill: var(--wp-extra); }
.media { border-radius: var(--wp-radius-xl); overflow: hidden; border: 1px solid var(--wp-border); }
.steps { display: grid; gap: var(--wp-space-xl); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: var(--wp-space-xl); border-radius: var(--wp-radius-lg); background: var(--wp-surface); border: 1px solid var(--wp-border); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wp-primary); color: var(--wp-on-primary); font-weight: 700; margin-bottom: 12px; }
.shot-ph { aspect-ratio: 9 / 16; display: grid; place-items: center; text-align: center; padding: 16px; border-radius: var(--wp-radius-lg); border: 1.5px dashed var(--wp-border); background: var(--wp-surface-2); color: var(--wp-muted); font-size: var(--wp-fs-caption); font-weight: 700; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
