/* ═══════════════════════════════════════════════════════════════════════════
   Playzone — themeable game-hub styles.  Themes: neon (default), sunrise, arcade, aurora.
   Every colour comes from the custom properties set on html[data-theme].
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bungee', 'Poppins', system-ui, sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: var(--font);
}

/* ── Themes ──────────────────────────────────────────────────────────────── */
html[data-theme="neon"] {
  --bg: #070716; --bg2: #0f0f2e; --body-bg: radial-gradient(1200px 700px at 85% -10%, #2a1670 0%, transparent 60%), radial-gradient(900px 600px at -10% 20%, #0a3a5c 0%, transparent 55%), linear-gradient(180deg, #070716, #0b0b26 60%, #070716);
  --text: #f3f3ff; --dim: #a7a9d0; --surface: rgba(255, 255, 255, .06); --surface2: rgba(255, 255, 255, .1); --border: rgba(255, 255, 255, .13);
  --accent: #8b5cff; --accent2: #ff4fd8; --accent3: #22d3ee; --gold: #ffd24a;
  --btn: linear-gradient(135deg, #7c3aed, #c026d3); --btn-text: linear-gradient(135deg, #b794ff, #ff7be8); --btn-ink: #fff; --btn-glow: rgba(176, 90, 255, .55);
  --header-bg: rgba(10, 10, 30, .62); --shadow: 0 24px 60px rgba(0, 0, 0, .5); --card-body: rgba(16, 16, 42, .72);
  --glow1: rgba(139, 92, 255, .5); --glow2: rgba(34, 211, 238, .35); --theme-color: #070716; color-scheme: dark;
}
html[data-theme="sunrise"] {
  --bg: #fff5ec; --bg2: #ffe6d2; --body-bg: radial-gradient(1000px 600px at 90% -10%, #ffd9a8 0%, transparent 60%), radial-gradient(800px 600px at -10% 10%, #ffc9d6 0%, transparent 55%), linear-gradient(180deg, #fff7ef, #ffeedd 60%, #ffe6d2);
  --text: #2b1a3a; --dim: #765f78; --surface: rgba(255, 255, 255, .72); --surface2: rgba(255, 255, 255, .95); --border: rgba(80, 40, 20, .13);
  --accent: #ff5a5f; --accent2: #ff9f1c; --accent3: #3b82f6; --gold: #f59e0b;
  --btn: linear-gradient(135deg, #ff6b6f, #ffa72e); --btn-text: linear-gradient(135deg, #e0373c, #d46a00); --btn-ink: #2b1a3a; --btn-glow: rgba(255, 110, 70, .45);
  --header-bg: rgba(255, 246, 236, .7); --shadow: 0 20px 50px rgba(150, 80, 30, .18); --card-body: rgba(255, 255, 255, .86);
  --glow1: rgba(255, 140, 80, .45); --glow2: rgba(255, 90, 140, .3); --theme-color: #fff5ec; color-scheme: light;
}
html[data-theme="arcade"] {
  --bg: #17052e; --bg2: #2a0a52; --body-bg: radial-gradient(1000px 600px at 50% 105%, #7a1b7a 0%, transparent 60%), radial-gradient(900px 500px at 50% -10%, #32106b 0%, transparent 60%), linear-gradient(180deg, #14042a, #230846 70%, #3a0b5c);
  --text: #fff0fb; --dim: #d3a9ea; --surface: rgba(255, 255, 255, .07); --surface2: rgba(255, 255, 255, .12); --border: rgba(255, 140, 220, .28);
  --accent: #ff2e97; --accent2: #ffb000; --accent3: #00e5ff; --gold: #ffd84a;
  --btn: linear-gradient(135deg, #ff4fa8, #ff9a1a); --btn-text: linear-gradient(135deg, #ff5fb4, #ffb000); --btn-ink: #1b0536; --btn-glow: rgba(255, 46, 151, .6);
  --header-bg: rgba(28, 6, 56, .68); --shadow: 0 24px 60px rgba(0, 0, 0, .55); --card-body: rgba(33, 8, 66, .76);
  --glow1: rgba(255, 46, 151, .5); --glow2: rgba(0, 229, 255, .35); --theme-color: #17052e; color-scheme: dark;
}
html[data-theme="aurora"] {
  --bg: #04141c; --bg2: #072830; --body-bg: radial-gradient(1100px 650px at 20% -10%, #0b4f55 0%, transparent 60%), radial-gradient(900px 600px at 100% 25%, #1b2a6b 0%, transparent 55%), linear-gradient(180deg, #03111a, #062229 65%, #03121a);
  --text: #eafff8; --dim: #96c4bc; --surface: rgba(255, 255, 255, .06); --surface2: rgba(255, 255, 255, .1); --border: rgba(120, 255, 220, .16);
  --accent: #2ee6a6; --accent2: #3ab0ff; --accent3: #b794ff; --gold: #ffe27a;
  --btn: linear-gradient(135deg, #2ee6a6, #3ab0ff); --btn-text: linear-gradient(135deg, #2ee6a6, #3ab0ff); --btn-ink: #03211c; --btn-glow: rgba(46, 230, 166, .5);
  --header-bg: rgba(4, 22, 30, .66); --shadow: 0 24px 60px rgba(0, 0, 0, .5); --card-body: rgba(6, 34, 42, .74);
  --glow1: rgba(46, 230, 166, .42); --glow2: rgba(58, 176, 255, .35); --theme-color: #04141c; color-scheme: dark;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background-color: var(--bg); background-image: var(--body-bg); background-attachment: fixed; color: var(--text); min-height: 100vh; overflow-x: hidden; transition: background-color .5s, color .4s; line-height: 1.5; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent3); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
main { position: relative; z-index: 1; }

.gradient-text { background: linear-gradient(100deg, var(--accent), var(--accent2), var(--gold), var(--accent3), var(--accent)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: 300% 0; } }

/* ── Effect layers ───────────────────────────────────────────────────────── */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-fx canvas { width: 100%; height: 100%; display: block; transition: opacity .25s linear; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent3), var(--accent), var(--accent2)); box-shadow: 0 0 12px var(--glow1); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle, var(--glow1), transparent 62%); mix-blend-mode: screen; will-change: transform; }
html[data-theme="sunrise"] .cursor-glow { mix-blend-mode: multiply; opacity: 0 !important; }
.cursor-glow.on { opacity: .34; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 200; pointer-events: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border-radius: 14px; font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; border: 0; text-decoration: none; letter-spacing: .01em; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .25s, filter .2s, background .2s; position: relative; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 8px 26px var(--btn-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--btn-glow); filter: brightness(1.08); }
.btn-primary::after, .play-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::after, .play-btn:hover::after, .gcard:hover .play-btn::after, .tile:hover .play-btn::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 28px var(--glow1); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 16px; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateY(3px); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); background: var(--header-bg); border-bottom: 1px solid var(--border); transition: padding .3s, box-shadow .3s; }
.header.scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; transition: height .3s; }
.header.scrolled .header-inner { height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { display: grid; transition: transform .4s var(--ease); filter: drop-shadow(0 4px 12px var(--glow1)); }
.logo:hover .logo-icon { transform: rotate(-12deg) scale(1.12); }
.logo-text { font-family: var(--display); font-size: 1.4rem; letter-spacing: .02em; }
.logo-accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { white-space: nowrap; color: var(--dim); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 12px; position: relative; transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface2); }
.nav-link.active::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 2px; border-radius: 2px; background: var(--btn); }
.theme-wrap { position: relative; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; min-height: 42px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 600 .88rem var(--font); cursor: pointer; backdrop-filter: blur(10px); transition: border-color .2s, box-shadow .25s, transform .2s; }
.theme-btn:hover { border-color: var(--accent); box-shadow: 0 6px 22px var(--glow1); transform: translateY(-1px); }
.theme-dot { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 20deg, var(--accent), var(--accent2), var(--gold), var(--accent3), var(--accent)); box-shadow: 0 0 12px var(--glow1); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.theme-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 262px; padding: 8px; border-radius: 18px; background: color-mix(in srgb, var(--bg2) 95%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(22px); animation: pop .22s var(--ease); z-index: 10; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
.theme-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 2px solid transparent; border-radius: 13px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font-family: var(--font); transition: background .2s, border-color .2s, transform .2s; }
.theme-menu button:hover { background: var(--surface2); transform: translateX(2px); }
.theme-menu button[aria-checked="true"] { border-color: var(--accent); background: var(--surface2); }
.theme-menu b { display: block; font-size: .92rem; } .theme-menu small { color: var(--dim); font-size: .76rem; }
.sw { width: 44px; height: 44px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .3); }
.sw-neon { background: radial-gradient(circle at 70% 25%, #ff4fd8, transparent 50%), radial-gradient(circle at 20% 80%, #22d3ee, transparent 50%), linear-gradient(135deg, #1a0f4d, #070716); }
.sw-sunrise { background: radial-gradient(circle at 75% 25%, #ffe08a, transparent 45%), linear-gradient(160deg, #ff5a5f, #ff9f1c 60%, #ffe6d2); }
.sw-arcade { background: linear-gradient(180deg, #2a0a52 0 45%, #ff2e97 45% 55%, #ffb000 55% 62%, #2a0a52 62%), #2a0a52; }
.sw-aurora { background: linear-gradient(120deg, #04141c 20%, #2ee6a6 45%, #3ab0ff 65%, #b794ff 85%), #04141c; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(44px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); margin-bottom: 22px; animation: rise .8s var(--ease) both; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #34e08a; box-shadow: 0 0 0 0 rgba(52, 224, 138, .7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 11px rgba(52, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 224, 138, 0); } }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6.3vw, 4.5rem); line-height: 1.05; letter-spacing: .005em; margin-bottom: 22px; }
.hero-title .line { display: block; animation: rise .9s var(--ease) both; text-shadow: 0 6px 30px var(--glow1); }
.hero-title .line:nth-child(2) { animation-delay: .12s; text-shadow: none; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--dim); max-width: 36em; margin-bottom: 30px; text-shadow: 0 1px 14px var(--bg); animation: rise .9s .22s var(--ease) both; }
.hero-tag { font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; color: var(--dim); animation: rise .9s .18s var(--ease) both; }
.rot { display: inline-block; font-weight: 800; color: var(--text); background: var(--btn-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: opacity .3s, transform .3s; }
.rot.out { opacity: 0; transform: translateY(-10px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; animation: rise .9s .34s var(--ease) both; }
.hero-stats { list-style: none; display: flex; gap: 14px; margin-top: 34px; animation: rise .9s .46s var(--ease) both; }
.hero-stats li { padding: 12px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); text-align: center; min-width: 96px; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; background: var(--btn-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats span { font-size: .74rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.hero-stage { --px: 0; --py: 0; position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; perspective: 1000px; }
.stage-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, var(--glow1), transparent 66%); filter: blur(24px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.14); opacity: .75; } }
.stage-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed var(--border); animation: spin 40s linear infinite; }
.stage-ring.r2 { inset: 20%; animation-duration: 26s; animation-direction: reverse; border-style: solid; opacity: .6; }
.stage-card { position: absolute; width: 37%; aspect-ratio: 4 / 5; border-radius: 26px; background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 26px 50px rgba(0, 0, 0, .4), inset 0 0 0 1.5px rgba(255, 255, 255, .28); display: grid; place-items: center; text-decoration: none; color: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .3s; transform: translate3d(calc(var(--px) * var(--dx, 14px)), calc(var(--py) * var(--dy, 14px)), 0) rotate(var(--rot, 0deg)); animation: bob 6s ease-in-out infinite; }
.stage-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .34), transparent 40%); }
.stage-card::after { content: ''; position: absolute; width: 80%; aspect-ratio: 1; right: -30%; top: -18%; border-radius: 50%; background: rgba(255, 255, 255, .17); }
.stage-card:hover { transform: translate3d(calc(var(--px) * var(--dx, 14px)), calc(var(--py) * var(--dy, 14px) - 8px), 0) rotate(var(--rot, 0deg)) scale(1.06); box-shadow: 0 34px 64px rgba(0, 0, 0, .5), 0 0 40px var(--c1); }
.sc-emoji { font-size: clamp(2.6rem, 8.4vw, 4.6rem); line-height: 1; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); position: relative; z-index: 1; margin-top: -14%; }
.sc-title { position: absolute; left: 0; right: 0; bottom: 20%; text-align: center; font: 800 clamp(.8rem, 2vw, 1.05rem) var(--font); text-shadow: 0 2px 8px rgba(0, 0, 0, .4); z-index: 1; }
.sc-tag { position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); font: 700 .66rem var(--font); letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .3); z-index: 1; white-space: nowrap; }
.sc1 { left: 7%; top: 3%; --rot: -8deg; --dx: 30px; --dy: 22px; animation-delay: -1s; }
.sc2 { right: 7%; top: 7%; --rot: 7deg; --dx: -22px; --dy: 30px; animation-delay: -3s; }
.sc3 { left: 12%; bottom: 3%; --rot: 5deg; --dx: 20px; --dy: -24px; animation-delay: -2s; }
.sc4 { right: 4%; bottom: 3%; --rot: -6deg; --dx: -34px; --dy: -16px; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }

/* marquee */
.marquee { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(8px); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; gap: 14px; animation: mq 46s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.mq-item i { font-style: normal; font-size: 1.15rem; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── Section headers ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 42px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; color: var(--accent); background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.1; margin-bottom: 12px; }
.section-sub { color: var(--dim); max-width: 38em; margin: 0 auto; }
section { position: relative; }
.fresh, .games-section, .kz-section, .app-section, .about-section { padding: clamp(46px, 7vw, 84px) 0; }

/* ── New-game tiles ──────────────────────────────────────────────────────── */
.fresh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tile { display: flex; flex-direction: column; text-decoration: none; border-radius: 28px; overflow: hidden; background: var(--card-body); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(16px); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; position: relative; }
.tile:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 34px 70px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent), 0 0 50px var(--glow1); }
.tile-art { position: relative; height: 230px; overflow: hidden; }
.tile-body { padding: 22px 26px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; flex: 1; }
.tile-body h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.tile-body p { color: var(--dim); font-size: .96rem; }
.tile-body .gbadge { position: absolute; right: 24px; top: -14px; }
.tile-body .play-btn { margin-top: auto; }
/* TypeDash scene */
.tile-td .lane { position: absolute; left: 0; right: 0; overflow: hidden; }
.lane-sky { top: 0; height: 36%; background: linear-gradient(180deg, #3d9bff, #bfe6ff); }
.lane-sea { top: 36%; height: 32%; background: linear-gradient(180deg, #5ac8f5, #0c5aa5); }
.lane-road { top: 68%; height: 32%; background: linear-gradient(180deg, #5b626e, #3b414b); }
html[data-theme="neon"] .lane-sky, html[data-theme="arcade"] .lane-sky, html[data-theme="aurora"] .lane-sky { background: linear-gradient(180deg, #050a1f, #1d2f66); }
html[data-theme="neon"] .lane-sea, html[data-theme="arcade"] .lane-sea, html[data-theme="aurora"] .lane-sea { background: linear-gradient(180deg, #0f3d73, #04122a); }
html[data-theme="neon"] .lane-road, html[data-theme="arcade"] .lane-road, html[data-theme="aurora"] .lane-road { background: linear-gradient(180deg, #232735, #12151d); }
.sun { position: absolute; right: 12%; top: 18%; width: 34px; height: 34px; border-radius: 50%; background: #fff7cc; box-shadow: 0 0 36px 10px rgba(255, 244, 190, .6); }
html:not([data-theme="sunrise"]) .sun { background: #f4f1d8; box-shadow: 0 0 30px 8px rgba(220, 230, 255, .35); }
.cloud { position: absolute; height: 14px; width: 54px; border-radius: 14px; background: rgba(255, 255, 255, .85); animation: drift 22s linear infinite; }
html:not([data-theme="sunrise"]) .cloud { background: rgba(140, 160, 220, .28); }
.cloud.c1 { top: 22%; left: -20%; } .cloud.c2 { top: 56%; left: -60%; width: 38px; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { to { transform: translateX(calc(100vw)); } }
.wave { position: absolute; left: 0; right: 0; height: 2px; opacity: .5; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 24px, transparent 24px 56px); animation: slide 3s linear infinite; }
.wave.w1 { top: 38%; } .wave.w2 { top: 72%; animation-duration: 2s; opacity: .3; }
@keyframes slide { to { background-position: -112px 0; } }
.road-line { position: absolute; left: 0; right: 0; top: 52%; height: 3px; background: repeating-linear-gradient(90deg, #fff 0 26px, transparent 26px 56px); animation: slide .6s linear infinite; }
.skyline { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: repeating-linear-gradient(90deg, rgba(120, 130, 160, .5) 0 20px, transparent 20px 26px, rgba(120, 130, 160, .35) 26px 54px, transparent 54px 64px); }
.veh { position: absolute; height: 78%; top: 11%; left: -26%; width: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); animation: cross 7s linear infinite; }
.v-boat { animation-duration: 9s; animation-delay: -3s; } .v-car { animation-duration: 5.5s; animation-delay: -1s; } .v-plane { animation-duration: 6.5s; animation-delay: -4s; }
@keyframes cross { from { transform: translateX(0); } to { transform: translateX(calc(100vw)); } }
.v-boat { animation-name: cross, bobb; } .v-plane { animation-name: cross, bobp; }
@keyframes bobb { 50% { margin-top: 3px; } } @keyframes bobp { 50% { margin-top: -5px; } }
.tile-td .keys { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; }
.keys span { width: 22px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 800 .78rem var(--font); color: #0c1230; background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); animation: keypress 2.2s infinite; }
.keys span.sp { width: 18px; opacity: .85; }
.keys span:nth-child(2n) { animation-delay: .2s; } .keys span:nth-child(3n) { animation-delay: .45s; } .keys span:nth-child(5n) { animation-delay: .9s; }
@keyframes keypress { 0%, 82%, 100% { transform: none; background: #fff; } 88% { transform: translateY(3px); background: var(--accent3); box-shadow: 0 0 0 rgba(0, 0, 0, 0); } }
/* Fleet Clash scene */
.fc-sea { position: absolute; inset: 0; background: radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .3), transparent 38%), linear-gradient(180deg, #1ec6f0, #0d5fb0 55%, #0a2f6d); overflow: hidden; }
html:not([data-theme="sunrise"]) .fc-sea { background: radial-gradient(circle at 78% 28%, rgba(220, 230, 255, .22), transparent 38%), linear-gradient(180deg, #0f3d73, #072041 60%, #04122a); }
.fc-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 10% 20%; }
.ship { position: absolute; height: 12%; border-radius: 4px 40% 40% 4px; background: linear-gradient(180deg, #b6c0cd, #667384); box-shadow: 0 3px 6px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(20, 30, 44, .7); animation: shipbob 4s ease-in-out infinite; }
.ship::after { content: ''; position: absolute; left: 30%; top: 22%; width: 22%; height: 56%; border-radius: 3px; background: #4c5766; }
.ship.s1 { left: 8%; top: 20%; width: 40%; } .ship.s2 { left: 52%; top: 60%; width: 32%; animation-delay: -1s; } .ship.s3 { left: 14%; top: 66%; width: 24%; animation-delay: -2s; } .ship.s4 { left: 64%; top: 22%; width: 20%; animation-delay: -3s; }
@keyframes shipbob { 50% { transform: translateY(-3px); } }
.hit { position: absolute; width: 10%; height: 20%; border-radius: 50%; background: radial-gradient(circle, #ffd45a, #ff5a22 60%, transparent 72%); animation: flame 1.1s ease-in-out infinite; }
.hit.h1 { left: 25%; top: 17%; } .hit.h2 { left: 70%; top: 56%; animation-delay: -.5s; }
@keyframes flame { 50% { transform: scale(1.3); filter: brightness(1.3); } }
.miss { position: absolute; width: 8%; height: 16%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); animation: ripple 2.6s ease-out infinite; }
.miss.m1 { left: 44%; top: 40%; } .miss.m2 { left: 12%; top: 46%; animation-delay: -1s; } .miss.m3 { left: 82%; top: 78%; animation-delay: -1.8s; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.radar { position: absolute; width: 150%; aspect-ratio: 1; left: -25%; top: -10%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(60, 255, 190, .0) 0deg, rgba(60, 255, 190, .0) 300deg, rgba(60, 255, 190, .28) 358deg, rgba(60, 255, 190, 0) 360deg); animation: spin 5s linear infinite; mix-blend-mode: screen; }
.reticle { position: absolute; width: 11%; height: 22%; left: 55%; top: 38%; border: 2px solid #ffd34d; border-radius: 4px; animation: aim 5s ease-in-out infinite; }
.reticle::before, .reticle::after { content: ''; position: absolute; background: #ffd34d; } .reticle::before { left: 50%; top: -30%; bottom: -30%; width: 2px; } .reticle::after { top: 50%; left: -30%; right: -30%; height: 2px; }
@keyframes aim { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-200%, 80%); } 50% { transform: translate(-380%, -10%); } 75% { transform: translate(-120%, 140%); } }

/* ── Badges, tags, play button ───────────────────────────────────────────── */
.gbadge { display: inline-block; font: 800 .7rem var(--font); letter-spacing: .1em; padding: 4px 11px; border-radius: 999px; background: #ffd24a; color: #3a2400; box-shadow: 0 4px 14px rgba(255, 190, 0, .5); }
.gbadge.new { background: linear-gradient(135deg, #ffe066, #ff9f1c); animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-6deg) scale(1.08); } 96% { transform: rotate(5deg) scale(1.08); } }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border); color: var(--dim); }
.play-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 14px; font: 800 .95rem var(--font); text-decoration: none; background: var(--btn); color: var(--btn-ink); box-shadow: 0 8px 22px var(--btn-glow); position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.play-btn svg { transition: transform .3s var(--ease); }
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--btn-glow); }
.play-btn:hover svg, .gcard:hover .play-btn svg, .tile:hover .play-btn svg { transform: translateX(5px); }

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; min-height: 42px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 700 .88rem var(--font); cursor: pointer; backdrop-filter: blur(8px); transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s; }
.chip i { font-style: normal; } .chip em { font-style: normal; font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: var(--surface2); color: var(--dim); }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip[aria-checked="true"] { background: var(--btn); color: var(--btn-ink); border-color: transparent; box-shadow: 0 8px 22px var(--btn-glow); }
.chip[aria-checked="true"] em { background: rgba(255, 255, 255, .28); color: inherit; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); backdrop-filter: blur(8px); color: var(--dim); min-width: min(100%, 250px); transition: border-color .2s, box-shadow .25s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow1); }
.search input { flex: 1; border: 0; background: transparent; color: var(--text); font: 500 .95rem var(--font); outline: none; min-width: 0; padding: 10px 0; }
.search input::placeholder { color: var(--dim); }
.result-count { min-height: 1.4em; color: var(--dim); font-size: .85rem; margin: 0 4px 18px; }

/* ── Game cards ──────────────────────────────────────────────────────────── */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.gcard { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card-body); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(14px); overflow: hidden; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s var(--ease), box-shadow .35s, border-color .3s, opacity .35s; will-change: transform; }
.gcard.hide { display: none; }
.gcard::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, .2), transparent 45%); }
.gcard::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 2px; opacity: 0; transition: opacity .35s; background: linear-gradient(var(--ang, 135deg), var(--c1), var(--accent), var(--c2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.gcard:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px) scale(1.015); box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 0 44px color-mix(in srgb, var(--c1) 45%, transparent); }
.gcard:hover::before, .gcard:hover::after, .gcard:focus-within::before, .gcard:focus-within::after { opacity: 1; }
.gcard.spot { animation: spot 1s var(--ease); box-shadow: 0 0 0 4px var(--gold), 0 0 70px var(--c1); transform: scale(1.04); }
@keyframes spot { 0% { transform: scale(1); } 40% { transform: scale(1.07) rotate(-1deg); } 100% { transform: scale(1.04); } }
.gcard-art { position: relative; height: 158px; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; display: grid; place-items: center; }
.gcard-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); transform: translateX(-130%); }
.gcard:hover .gcard-art::before { transform: translateX(130%); transition: transform .9s var(--ease); }
.deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); animation: floaty 7s ease-in-out infinite; }
.deco.d1 { width: 120px; height: 120px; right: -34px; top: -40px; } .deco.d2 { width: 60px; height: 60px; left: 10%; bottom: -20px; animation-delay: -2s; background: rgba(0, 0, 0, .12); } .deco.d3 { width: 18px; height: 18px; left: 22%; top: 18%; animation-delay: -4s; background: rgba(255, 255, 255, .35); }
@keyframes floaty { 50% { transform: translateY(-14px) scale(1.06); } }
.gart { position: relative; z-index: 2; display: grid; place-items: center; width: 100%; height: 100%; transition: transform .45s var(--ease); }
.gart span { position: absolute; line-height: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); animation: float 4.2s ease-in-out infinite; }
.gart .e1 { font-size: 4.2rem; } .gart .e2 { font-size: 2.1rem; right: 24%; bottom: 18%; animation-delay: -1.4s; transform: rotate(14deg); } .gart .e3 { font-size: 1.8rem; left: 22%; top: 14%; animation-delay: -2.6s; transform: rotate(-14deg); }
@keyframes float { 50% { translate: 0 -9px; } }
.gart-svg .game-art { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 14px 28px rgba(0, 0, 0, .4); animation: float 4.6s ease-in-out infinite; display: block; }
.gart-wide { padding-top: 26px; box-sizing: border-box; }
.gart-wide .game-art { width: auto; height: 108px; aspect-ratio: 280 / 160; border-radius: 16px; }
.gcard:hover .gart { transform: scale(1.14) rotate(-3deg); }
.gkind, .gplayers { position: absolute; z-index: 3; top: 12px; font: 700 .68rem var(--font); letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .34); color: #fff; backdrop-filter: blur(6px); }
.gkind { left: 12px; } .gplayers { right: 12px; }
.gcard-art .gbadge { position: absolute; z-index: 4; left: 12px; bottom: 12px; }
.gcard-body { padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard-title { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.gcard-desc { color: var(--dim); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-body .tags { margin-top: auto; padding-top: 6px; }
.gcard-foot { padding: 14px 20px 20px; }
.gcard-foot .play-btn { width: 100%; justify-content: center; position: relative; z-index: 5; }
.gcard-foot .play-btn span { position: relative; z-index: 1; }
.gcard .play-btn:focus-visible { outline-offset: 4px; }
/* the whole card is clickable through this invisible link */
.gcard .stretch { position: absolute; inset: 0; z-index: 2; }
.empty { text-align: center; padding: 56px 20px; color: var(--dim); } .empty span { font-size: 3rem; display: block; margin-bottom: 8px; } .empty .btn { margin-top: 14px; }

/* ── Kidzone banner ──────────────────────────────────────────────────────── */
.kz-banner { position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: 30px; text-decoration: none; overflow: hidden; color: #2b1a3a; background: linear-gradient(120deg, #ffe066, #ff9ecb 55%, #9ad7ff); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .3) inset; transition: transform .4s var(--ease), box-shadow .4s; }
.kz-banner:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 34px 70px rgba(0, 0, 0, .35), 0 0 60px rgba(255, 158, 203, .5); }
.kz-balloons i { position: absolute; font-style: normal; font-size: 2.6rem; bottom: -20px; animation: balloon 9s linear infinite; opacity: .9; }
.kz-balloons .b1 { right: 22%; } .kz-balloons .b2 { right: 10%; animation-delay: -3s; font-size: 2rem; } .kz-balloons .b3 { right: 36%; animation-delay: -6s; font-size: 1.7rem; }
@keyframes balloon { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-190px) rotate(8deg); opacity: 0; } }
.kz-art { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); position: relative; animation: float 4s ease-in-out infinite; }
.kz-text { display: flex; flex-direction: column; gap: 4px; flex: 1; position: relative; }
.kz-text strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; } .kz-text span { font-size: .95rem; opacity: .85; max-width: 40em; }
.kz-btn { position: relative; background: #2b1a3a; color: #fff; box-shadow: 0 8px 22px rgba(43, 26, 58, .4); }

/* ── App section ─────────────────────────────────────────────────────────── */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; max-width: 800px; margin: 0 auto; }
.app-card { background: var(--card-body); border: 1px solid var(--border); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; box-shadow: var(--shadow); backdrop-filter: blur(14px); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.app-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 40px var(--glow1); }
.app-card-head { display: flex; align-items: center; gap: 14px; align-self: stretch; }
.app-icon { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--btn); box-shadow: 0 8px 20px var(--btn-glow); }
.app-card-head h3 { font-size: 1.25rem; } .app-card-head p { color: var(--dim); font-size: .85rem; }
.qr-wrap { background: #fff; padding: 14px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); text-align: center; position: relative; }
.qr-wrap::after { content: ''; position: absolute; left: 14px; right: 14px; height: 3px; top: 14px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent3), transparent); box-shadow: 0 0 14px var(--accent3); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 14px; } 50% { top: calc(100% - 44px); } }
.qr { display: block; width: 176px; height: 176px; max-width: 100%; }
.qr-wrap figcaption { color: #4a4a60; font-size: .8rem; margin-top: 8px; font-weight: 600; }
.app-btn { width: 100%; }
.app-help { align-self: stretch; color: var(--dim); font-size: .88rem; } .app-help summary { cursor: pointer; font-weight: 700; color: var(--text); padding: 6px 0; } .app-help ol { margin: 8px 0 0 20px; display: grid; gap: 6px; }

/* ── About ───────────────────────────────────────────────────────────────── */
.about-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about-text .section-title { text-align: left; } .about-text p { color: var(--dim); margin-bottom: 14px; max-width: 34em; }
.about-text .eyebrow { margin-bottom: 14px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--card-body); border: 1px solid var(--border); border-radius: 22px; padding: 22px 10px; text-align: center; backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.stat:hover { transform: translateY(-6px) rotate(-1.5deg); }
.stat-num { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1.1; background: var(--btn-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(16px); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-logo { font-size: 1.2rem; } .footer-copy { color: var(--dim); font-size: .86rem; flex: 1; text-align: center; } .footer-copy a { text-decoration: underline; text-underline-offset: 3px; }
.to-top { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-weight: 800; background: var(--btn); color: var(--btn-ink); box-shadow: 0 8px 20px var(--btn-glow); transition: transform .25s var(--ease); }
.to-top:hover { transform: translateY(-4px); }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .gcard.reveal.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.js .gcard.reveal.done { transition: transform .25s var(--ease), box-shadow .35s, border-color .3s, opacity .35s; transition-delay: 0s; }
.js .gcard.reveal.in:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px) scale(1.015); }

/* ── Toast (Surprise me) + retro scanlines ─────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 150; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 24px; border-radius: 999px; background: var(--card-body); border: 1.5px solid var(--accent); box-shadow: var(--shadow), 0 0 40px var(--glow1); backdrop-filter: blur(18px); font-weight: 700; transition: transform .55s var(--ease); max-width: calc(100vw - 24px); }
.toast.show { transform: translate(-50%, 0); }
.play-btn.small { padding: 9px 20px; font-size: .9rem; }
html[data-theme="arcade"] .bg-fx::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
html[data-theme="arcade"] .hero-title .line:first-child { text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(0, 229, 255, .6); }
html[data-theme="arcade"] .section-title { text-shadow: 2px 2px 0 var(--accent), 4px 4px 0 rgba(0, 229, 255, .45); }
html[data-theme="aurora"] .hero-title .line:first-child { text-shadow: 0 0 40px rgba(46, 230, 166, .55); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { margin-inline: auto; } .hero-cta, .hero-stats { justify-content: center; }
  .hero-stage { max-width: 420px; }
  .fresh-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; } .about-text .section-title { text-align: center; } .about-text { text-align: center; } .about-text p { margin-inline: auto; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .nav-link-opt { display: none; } .theme-lbl { display: none; } .theme-btn { padding: 8px 10px; }
  .nav-link { padding: 8px 9px; font-size: .86rem; } .header-inner { gap: 8px; }
  .header-inner { height: 60px; } .logo-text { font-size: 1.2rem; }
  .nav { margin-left: auto; }
  .hero-stats li { min-width: 0; flex: 1; padding: 10px 8px; }
  .hero-stats { width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; } .chip { flex: none; }
  .search { min-width: 0; }
  .games-grid { grid-template-columns: 1fr; gap: 18px; }
  .gcard-art { height: 140px; } .gart-wide .game-art { height: 92px; }
  .kz-banner { flex-direction: column; text-align: center; padding: 24px 20px; } .kz-text strong { font-size: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; } .footer-copy { order: 3; }
  .theme-menu { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; }
  .tile-art { height: 200px; } .tile-body { padding: 20px; }
  .about-stats { gap: 10px; } .stat-num { font-size: 1.8rem; }
}

@media (hover: none) { .gcard:hover { transform: none; } .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mq-track { animation: none; }
}
