/* Khel ON website styles, built on the Khel ON brand: navy night, neon play-mark gradient
   (orange, pink, purple) with teal, Outfit for headings and Nunito for text.
   Fonts are self-hosted (no third-party requests). No cookies, no trackers. */
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('fonts/outfit-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('fonts/nunito-latin-900-normal.woff2') format('woff2'); }

:root {
  /* brand tokens (same values as assets/khelon.css) */
  --bg: #141721;          /* the navy behind the Khel ON logo */
  --bg-2: #1b1d2e;
  --panel: #20223a;
  --panel-2: #272a47;
  --line: rgba(255, 255, 255, .1);
  --ink: #f5f3ff;
  --dim: #b4b3cf;
  --orange: #ff9a3c;
  --pink: #f04fa8;
  --purple: #8b5cf6;
  --teal: #2fd4c8;
  --grad: linear-gradient(100deg, var(--orange), var(--pink) 50%, var(--purple));
  --grad-btn: linear-gradient(100deg, var(--orange), var(--pink));
  --grad-cool: linear-gradient(100deg, var(--teal), var(--purple));
  --display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
b, strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--teal); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }
.in-app [data-web-only] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 25px; }
p { margin: 0 0 1em; }

/* logos: the brand files sit on the brand navy, so they blend into it */
.logo { mix-blend-mode: lighten; height: auto; }

/* header and menu: see "site header, Games menu and phone menu" below */

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--grad-btn); color: #141721; box-shadow: 0 8px 28px -6px rgba(240, 79, 168, .55); }
.btn-primary:hover { color: #141721; filter: brightness(1.08); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--teal); }

/* store badge (shown as coming soon until the app is live) */
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 18px 7px 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none; line-height: 1.1; font-family: var(--body); }
.store-badge svg { width: 26px; height: 28px; flex: none; }
.store-badge small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.store-badge b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.store-badge[aria-disabled="true"] { opacity: .8; cursor: default; }

/* hero: a string of lights switches on, beside the Khel ON mark */
.hero { position: relative; overflow: hidden; padding-block: 30px 60px; background:
  radial-gradient(55% 60% at 80% 55%, rgba(139,92,246,.22), transparent 70%),
  radial-gradient(45% 50% at 62% 70%, rgba(240,79,168,.14), transparent 70%),
  radial-gradient(50% 50% at 5% 0%, rgba(47,212,200,.14), transparent 70%), var(--bg); }
.toran { position: absolute; inset: 0 0 auto; height: max(120px, 10vw); width: 100%; pointer-events: none; z-index: 2; }
.toran path { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.4; }
.toran .bulb { fill: #3a3c55; }
.lit .toran .bulb { fill: var(--c); filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 12px var(--c)); }
@media (prefers-reduced-motion: no-preference) {
  .lit .toran .bulb { animation: bulb-on .5s both; animation-delay: calc(var(--i) * 55ms + 250ms); }
  @keyframes bulb-on { from { fill: #3a3c55; filter: none; } 55% { fill: #fff; } to { fill: var(--c); } }
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 30px; align-items: center; padding-top: max(118px, calc(10vw + 6px)); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-top: max(120px, calc(10vw + 10px)); } }
.hero h1 { font-size: clamp(52px, 8.6vw, 98px); line-height: .95; letter-spacing: -.03em; margin-bottom: 22px; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--dim); max-width: 36ch; margin-bottom: 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .fine { margin: 0; color: var(--dim); font-size: 15px; max-width: 36ch; line-height: 1.45; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.toran-narrow { display: none; }
@media (max-width: 619px) {
  .toran-wide { display: none; }
  .toran.toran-narrow { display: block; height: auto; }
  .hero .wrap { padding-top: calc(19.5vw + 16px); }
}
.hero-art { justify-self: center; width: min(100%, 500px); aspect-ratio: 1; position: relative; }
.hero-art video, .hero-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.hero-art video, .hero-art img { -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
@media (max-width: 899px) { .hero-art { width: min(92%, 420px); } }

/* sections */
.band { padding-block: 72px; }
.band-head { max-width: 46ch; margin-bottom: 34px; }
.band-head p { color: var(--dim); margin-top: 12px; }

.facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.facts li { font-size: 13px; font-weight: 900; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--dim); }
/* Khel ON Daily promo under the hero */
.daily-band { padding-block: 8px 0; }
.daily-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,154,60,.14), rgba(240,79,168,.10) 45%, rgba(139,92,246,.12)), #1b1d2e; border: 1px solid rgba(255,255,255,.1); }
.daily-copy { display: flex; flex-direction: column; gap: 12px; }
.daily-kicker { font-weight: 800; color: var(--orange); margin: 0; display: flex; align-items: center; gap: 8px; }
.daily-tag { background: var(--orange); color: #1a1206; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.daily-copy h2 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); }
.daily-copy p { margin: 0; color: var(--dim); }
.daily-art { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.daily-art img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .daily-promo { grid-template-columns: 1fr; padding: 18px; } .daily-art { order: -1; } }

.soon-head { margin: 46px 0 16px; font-size: 22px; color: var(--dim); }
.soon { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.soon article { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 18px; border: 1.5px dashed rgba(255,255,255,.18); }
.soon svg { width: 54px; height: 54px; }
.soon h4 { font-size: 21px; }
.soon p { margin: 4px 0 8px; color: var(--dim); font-size: 15px; line-height: 1.45; }
.soon .tag { font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 6px; background: var(--purple); color: #fff; }

/* why */
.why { background: radial-gradient(60% 80% at 0% 100%, rgba(47,212,200,.12), transparent 70%), radial-gradient(60% 80% at 100% 0%, rgba(240,79,168,.12), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.promises { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding: 0; margin: 0; list-style: none; }
.promises li { position: relative; background: var(--panel); border-radius: 20px; padding: 24px 22px 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.promises li::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.promises svg { width: 34px; height: 34px; margin-bottom: 12px; color: var(--teal); }
.promises h3 { font-size: 23px; margin-bottom: 8px; }
.promises p { margin: 0; color: var(--dim); font-size: 16px; }

/* install */
.install { display: grid; gap: 22px; align-items: center; padding: 28px; border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, rgba(47,212,200,.16), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(240,79,168,.16), transparent 60%), var(--panel); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 780px) { .install { grid-template-columns: auto 1fr auto; } }
.install img { width: 88px; height: 88px; border-radius: 22px; }
.install h2 { font-size: 30px; margin-bottom: 6px; }
.install p { margin: 0; color: var(--dim); max-width: 54ch; }
.install .btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* inner pages */
.page-hero { padding-block: 50px 40px; background: radial-gradient(60% 90% at 95% 0%, rgba(139,92,246,.2), transparent 70%), radial-gradient(50% 80% at 0% 0%, rgba(47,212,200,.12), transparent 70%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: -.03em; }
.page-hero .aka { font-weight: 800; font-size: 20px; margin: 12px 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.page-hero .lede { font-size: 20px; color: var(--dim); max-width: 46ch; margin: 18px 0 0; }
.crumbs { font-size: 15px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); display: inline-block; padding-block: 10px; }
.game-hero { display: grid; gap: 30px; align-items: end; }
@media (min-width: 860px) { .game-hero { grid-template-columns: 1.3fr 1fr; } }
.game-hero .side { display: grid; gap: 16px; justify-items: start; }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 46px 0 14px; }
.prose h3 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: #dcdaf0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.section-title { margin: 46px 0 18px; font-size: clamp(26px, 3.4vw, 34px); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; max-width: 72ch; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 76px; background: var(--panel); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); color: #141721; font-family: var(--display); font-weight: 800; font-size: 20px; }
.steps h3 { font-size: 21px; margin-bottom: 4px; }
.steps p { margin: 0; color: #dcdaf0; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; flex: none; width: 240px; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 24px; border: 6px solid #0b0c14; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -18px rgba(0,0,0,.8); background: #0b0c14; }
.shots figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; }
@media (min-width: 900px) { .shots { overflow: visible; } }

.cards-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cards-row > div { background: var(--panel); box-shadow: 0 0 0 1px var(--line); border-radius: 18px; padding: 18px 20px; }
.cards-row h3 { font-size: 21px; margin-bottom: 6px; }
.cards-row p { margin: 0; color: #dcdaf0; font-size: 16px; }

.play-strip { margin-top: 56px; padding: 26px 28px; border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,154,60,.18), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(139,92,246,.22), transparent 60%), var(--panel); box-shadow: 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.play-strip h2 { font-size: 30px; }
.play-strip p { margin: 4px 0 0; color: var(--dim); }

.note { padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.faq h2 { font-size: 23px !important; margin-top: 34px !important; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 15px; }
.site-foot .wrap { display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .site-foot .wrap { grid-template-columns: auto 1fr auto; gap: 28px; } }
.site-foot .foot-logo img { height: 40px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot nav a { color: var(--ink); text-decoration: none; font-weight: 800; }
/* comfortable tap targets on phones (at least 44px tall) */
.site-foot nav { row-gap: 0; }
.site-foot nav a, .site-foot .legal a { display: inline-block; padding-block: 10px; }
.site-foot .legal a { justify-self: start; }
@media (min-width: 860px) { .site-foot .legal a { justify-self: end; } }
.site-foot nav a:hover { color: var(--teal); }
.site-foot .legal { display: grid; gap: 2px; }
@media (min-width: 860px) { .site-foot .legal { text-align: right; } }
.site-foot .legal a { color: var(--dim); }
main { display: block; }
.space-top { padding-top: 54px; }
.space-bottom { padding-bottom: 72px; }
#friends .promises p.go { margin-top: 18px; }
#friends .note { margin-top: 20px; color: var(--dim); font-size: 15px; }

:root { --ico-friends: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='7' height='12' rx='1.6'/%3E%3Crect x='14.5' y='6' width='7' height='12' rx='1.6'/%3E%3Cpath d='M9.5 10.5c1.6-1.4 3.4-1.4 5 0M9.5 13.5c1.6 1.4 3.4 1.4 5 0'/%3E%3C/svg%3E"); }
html, body { caret-color: transparent; }
input, textarea, select { caret-color: auto; }
.btn, .nav-link, .tab, .chip, .fcard { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body { cursor: default; }
a, button, [role="button"], .btn { cursor: pointer; }

/* guide pages: Play and Play with friends side by side */
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .btn-friends::before, .game .actions .btn-friends::before { content: ''; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--ico-friends) center / contain no-repeat; mask: var(--ico-friends) center / contain no-repeat; }
.page-hero .btn-friends { box-shadow: inset 0 0 0 2px var(--teal); }
.page-hero .btn-friends:hover { background: rgba(47, 212, 200, .14); }
/* short pages (404, about): the footer sits at the bottom of the window, not halfway up it */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* 404: a few games to jump straight into */
.picks-title { margin: 40px 0 14px; color: var(--dim); font-weight: 800; }
.picks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 1000px; }
.pick { display: block; border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; transition: box-shadow .2s, transform .2s; }
.pick img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pick span { display: block; padding: 10px 12px 12px; }
.pick:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--teal); transform: translateY(-2px); }
/* guide pages: Play + Play with friends side by side; links to the other guides */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more-games ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more-games a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; }
.more-games a:hover { box-shadow: 0 0 0 2px var(--teal); color: var(--ink); }
.why .promises p a { color: var(--teal); }
.brand { padding-block: 4px; }

/* VR games (coming early 2027) */
.vr { background: radial-gradient(60% 70% at 100% 0%, rgba(47,212,200,.12), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(240,79,168,.10), transparent 70%), var(--bg-2); }
.vr-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px !important; color: var(--teal) !important; font-weight: 800; }
.vr-tag { background: var(--grad-cool); color: #121521; border-radius: 999px; padding: 3px 12px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.vr-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .vr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vr-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 26px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.vr-cook { --glow: var(--orange); } .vr-grow { --glow: #7cc85a; }
.vr-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--glow) 45%, transparent); }
.vr-shot { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.vr-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vr-soon { position: absolute; right: 14px; top: 14px; background: #121521; color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 2px var(--glow); }
.vr-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.vr-body h3 { font-size: 30px; margin: 0; }
.vr-aka { color: var(--glow); font-weight: 800; margin: -6px 0 0; }
.vr-body p { margin: 0; color: var(--dim); }
.vr-body .facts { margin-top: 4px; }

/* Phones and small tablets: logo animation first, even buttons */
@media (max-width: 899px) {
  .hero .wrap { gap: 6px; padding-top: calc(15vw + 10px); }
  .hero-art { order: -1; width: min(76%, 340px); margin-bottom: -6px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .ctas { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 420px; }
  .hero .ctas .btn { width: 100%; justify-content: center; }
  .hero-foot { max-width: 420px; }
}
@media (max-width: 560px) {
  .hero-btns { display: grid; grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}
/* DIWALI-START */
.diwali-band { padding-block: 26px 0; }
.diwali-promo { background: radial-gradient(120% 140% at 0% 0%, rgba(255,196,84,.22), transparent 55%), linear-gradient(135deg, rgba(255,154,60,.18), rgba(240,79,168,.12) 55%, rgba(139,92,246,.12)), #21182a; border-color: rgba(255,200,110,.35); }
.diwali-kicker { color: #ffc65a; }
.diwali-tag { background: #ffc65a; }
/* DIWALI-END */


/* ======================================================================
   site header, Games menu and phone menu (every page; code in app.js)
   ====================================================================== */
:root {
  --head-h: 66px;
  --g-cards: linear-gradient(135deg, #ff9a3c, #f04fa8);
  --g-board: linear-gradient(135deg, #2fd4c8, #5b8cf5);
  --g-party: linear-gradient(135deg, #b57bff, #f04fa8);
  --g-puzzles: linear-gradient(135deg, #8fd96a, #2fd4c8);
  --g-arcade: linear-gradient(135deg, #ffd451, #ff9a3c);
  --g-all: linear-gradient(135deg, #2fd4c8, #8b5cf6);
  --chip: rgba(255,255,255,.07);
  --soft: #c9cbe0;
}
@media (max-width: 899px) { :root { --head-h: 60px; } }
html { scrollbar-gutter: stable; }
html.has-modal { overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cat-cards { --cg: var(--g-cards); --cc: #ff9a3c; }
.cat-board { --cg: var(--g-board); --cc: #2fd4c8; }
.cat-party { --cg: var(--g-party); --cc: #c58bff; }
.cat-puzzles { --cg: var(--g-puzzles); --cc: #8fd96a; }
.cat-arcade { --cg: var(--g-arcade); --cc: #ffd451; }
.cat-all { --cg: var(--g-all); --cc: #2fd4c8; }
.dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--cg, var(--g-all)); }
.soon { font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #121521; background: var(--teal); border-radius: 999px; padding: 2px 7px; line-height: 1.3; }

.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
@media (prefers-reduced-motion: no-preference) { .site-head { transition: transform .28s ease; } }
.head-row { display: flex; align-items: center; gap: 10px; min-height: var(--head-h); }
.brand { display: block; flex: none; padding-block: 4px; margin-right: 10px; }
.brand img { height: 44px; width: auto; }
.head-nav { display: none; align-items: center; gap: 2px; min-width: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font: 800 16px/1.2 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-link[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 -1px var(--teal); }
.nav-link .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) { .nav-link .chev { transition: transform .2s; } }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-vr .nav-x { display: none; }
.search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); min-width: 0; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--teal); }
.search .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: #aab0cc; stroke-width: 2.5; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--ink); font: 700 16px var(--body); outline: none; padding: 0; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #9399b8; opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.head-search { display: none; margin-left: auto; flex: 0 1 320px; }
.menu-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 800 16px var(--body); text-decoration: none; }
.menu-btn:hover { color: var(--ink); background: var(--panel-2); }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
@media (min-width: 900px) {
  .head-nav { display: flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1100px) { .head-search { display: flex; } .is-home .head-search { display: none; } }
@media (min-width: 1240px) { .nav-vr .nav-x { display: inline; } }
@media (max-width: 899px) { .brand img { height: 40px; } }
@media (max-width: 359px) { .brand img { height: 34px; } .head-row { padding-inline: 14px; } .menu-btn { padding-inline: 10px 12px; } }

/* the Games menu (desktop) */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #181b2b; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.55); max-height: calc(100vh - var(--head-h) - 10px); max-height: calc(100dvh - var(--head-h) - 10px); overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: no-preference) { .mega:not([hidden]) { animation: mega-in .18s ease-out; } @keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } } }
.mega > .wrap { padding-block: 20px 18px; }
.mega-search { display: none; max-width: 520px; margin-bottom: 18px; }
@media (max-width: 1099px) { .mega-search { display: flex; } }
.is-home .mega-search { display: flex; }
.mega-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.mega-col { min-width: 0; }
.mega-cat { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 8px; margin-left: -8px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 800 18px/1.15 var(--display); }
.mega-cat .n { font: 800 13px var(--body); color: #9aa0bd; }
.mega-cat:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.mega-sub { margin: 10px 0 2px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #9aa0bd; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; align-items: center; min-height: 34px; padding: 4px 8px; margin-left: -8px; border-radius: 8px; color: #d4d7ea; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; }
.mega li a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
@media (pointer: coarse) { .mega li a { min-height: 44px; } }
.mega-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mega-foot-h { font-weight: 900; color: #9aa0bd; margin-right: 6px; }
.mega-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--chip); color: var(--ink); font-weight: 800; text-decoration: none; }
.mega-foot a:hover { background: rgba(255,255,255,.13); color: var(--ink); }
.mega-foot .mega-all { margin-left: auto; color: var(--teal); background: transparent; box-shadow: inset 0 0 0 2px rgba(47,212,200,.45); }

/* the phone menu: a full-height drawer from the right */
dialog.sheet, dialog.drawer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
dialog.sheet::backdrop, dialog.drawer::backdrop { background: rgba(8,10,18,.66); }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 90vw); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); box-shadow: -20px 0 60px rgba(0,0,0,.5); padding: calc(10px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 4px; }
@media (prefers-reduced-motion: no-preference) { dialog[open] .drawer-in { animation: drawer-in .24s cubic-bezier(.2,.8,.2,1); } @keyframes drawer-in { from { transform: translateX(100%); } } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer-title { font: 800 22px var(--display); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.14); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.drawer-search { margin-bottom: 8px; background: var(--bg-2); }
.drawer-h { margin: 14px 4px 4px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #9aa0bd; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer-cats a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font: 700 18px var(--display); }
.drawer-cats a:hover, .drawer-links a:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.drawer-cats .t { flex: 1; }
.drawer-cats .n { font: 800 14px var(--body); color: #9aa0bd; background: var(--chip); border-radius: 999px; padding: 2px 9px; }
.drawer-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qp-mini { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: 14px; background: var(--chip); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; line-height: 1.15; }
.qp-mini svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qp-mini:hover { background: rgba(255,255,255,.12); color: var(--ink); }
.drawer-links { margin-top: 14px !important; padding-top: 10px !important; border-top: 1px solid var(--line); }
.drawer-links a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; }

/* ======================================================================
   home: hero with quick picks, then the game finder
   ====================================================================== */
.hero.hero-finder { padding-block: 18px 30px; }
.hero-finder .wrap { align-items: center; }
@media (min-width: 900px) {
  .hero-finder .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; padding-top: max(104px, calc(8vw + 10px)); }
  .hero-finder .hero-art { width: min(100%, 380px); }
}
.hero-finder h1 { font-size: clamp(44px, 6.4vw, 82px); margin-bottom: 14px; }
.hero-finder .lede { max-width: 44ch; margin-bottom: 20px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.45; }
.quick-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.qp { display: flex; align-items: center; gap: 14px; height: 100%; min-height: 76px; padding: 14px 16px; border-radius: 20px; background: rgba(32,34,58,.88); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.qp:hover { color: var(--ink); background: var(--panel-2); box-shadow: 0 0 0 2px var(--qc), 0 14px 30px -12px var(--qc); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .qp:hover { transform: translateY(-2px); } }
.qp-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--qg); }
.qp-ico svg { width: 26px; height: 26px; fill: none; stroke: #141721; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qp-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qp-t b { font: 800 18px/1.15 var(--display); }
.qp-t small { color: #b9bbd3; font-size: 14px; font-weight: 700; line-height: 1.3; }
.qp-family { --qg: var(--g-party); --qc: #c58bff; }
.qp-online { --qg: var(--g-board); --qc: #2fd4c8; }
.qp-solo { --qg: var(--g-arcade); --qc: #ffb43c; }
.qp-little { --qg: var(--g-puzzles); --qc: #8fd96a; }
@media (max-width: 899px) {
  .hero.hero-finder { padding-block: 6px 22px; }
  .hero-finder .wrap { gap: 4px; }
  .hero-finder .hero-art { width: min(58vw, 250px); margin-bottom: 2px; }
  .hero-finder h1 { font-size: clamp(40px, 11vw, 64px); margin-bottom: 8px; }
  .hero-finder .lede { margin-bottom: 14px; font-size: 16.5px; }
  .quick-picks { gap: 10px; }
  .qp { min-height: 64px; padding: 10px 12px; gap: 10px; border-radius: 18px; }
  .qp-ico { width: 40px; height: 40px; border-radius: 12px; }
  .qp-ico svg { width: 22px; height: 22px; }
  .qp-t b { font-size: 16px; }
  .qp-t small { font-size: 12.5px; }
}
@media (max-width: 374px) {
  .qp { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (min-width: 620px) and (max-width: 899px) { .hero-finder .hero-art { width: min(40vw, 280px); } .quick-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; } .qp { flex-direction: column; align-items: flex-start; } }

/* the finder bar: search, Filters (phones) and category tabs; it sticks to the top while you browse */
.finder { position: relative; padding-bottom: 64px; }
.finder-bar { position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: rgba(20,23,33,.96); padding-block: 12px 10px; border-bottom: 1px solid transparent; }
@supports (backdrop-filter: blur(8px)) { .finder-bar { background: rgba(20,23,33,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.finder-bar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 24px -14px rgba(0,0,0,.7); }
@media (prefers-reduced-motion: no-preference) { .finder-bar { transition: top .28s ease; } }
html.head-away .site-head { transform: translateY(-100%); }
html.head-away .finder-bar { top: env(safe-area-inset-top, 0px); }
@media (max-height: 520px) { .finder-bar { position: relative; top: auto !important; } html.head-away .site-head { transform: none; } }
.fb-row { display: flex; align-items: center; gap: 10px; }
.f-search { flex: 1 1 auto; max-width: 560px; }
.f-q-clear { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--ink); cursor: pointer; }
.f-q-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.f-filter-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 46px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: var(--ink); font: 800 15px var(--body); cursor: pointer; }
.f-filter-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.f-filter-btn .badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #121521; font-size: 13px; font-weight: 900; }
.f-filter-btn.on { box-shadow: inset 0 0 0 2px var(--teal); }
.f-tabs { margin-top: 10px; }
.f-tabs-in { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.06); color: #d9dbec; font: 700 16px/1 var(--display); text-decoration: none; white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--ink); background: rgba(255,255,255,.11); }
.tab .n { font: 900 12px/1 var(--body); padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.09); color: #c4c7dc; }
.tab[aria-selected="true"] { background: #f3f4fb; color: #141721; }
.tab[aria-selected="true"] .n { background: rgba(20,23,33,.1); color: #3a3f5c; }
.tab:not(.cat-all)::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--cg); flex: none; }
@media (max-width: 899px) {
  .finder-bar { padding-block: 10px 8px; }
  .f-search { max-width: none; }
  .f-tabs { margin: 8px -20px 0; }
  .f-tabs-in { flex-wrap: nowrap; overflow-x: auto; padding: 0 20px 2px; scrollbar-width: none; scroll-padding-inline: 20px; }
  .f-tabs-in::-webkit-scrollbar { display: none; }
  .tab { font-size: 15px; padding: 0 14px; }
}
@media (max-width: 359px) { .f-tabs { margin-inline: -14px; } .f-tabs-in { padding-inline: 14px; } }

/* filters: a row under the bar on desktops, a bottom sheet on phones */
.f-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; padding: 10px 14px; border-radius: 18px; background: #1a1d2e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.f-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.f-label { font-size: 13px; font-weight: 900; color: #a3a8c3; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.07); color: #dadced; font: 800 14px var(--body); cursor: pointer; }
.chip:hover { background: rgba(255,255,255,.13); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--teal); color: #121521; }
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.f-surprise, .f-clear { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font: 900 15px var(--body); cursor: pointer; }
.f-surprise { margin-left: auto; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); padding-inline: 16px; }
.f-surprise:hover { box-shadow: inset 0 0 0 2px var(--orange); }
.f-clear { color: #ffb8c6; text-decoration: underline; text-underline-offset: 4px; }
.f-clear:hover { color: #fff; }
@media (pointer: coarse) { .f-surprise, .f-clear { min-height: 44px; } }

/* results */
.f-results { min-height: 40vh; }
.f-intro { margin: 22px 0 0; color: var(--dim); }
.f-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 26px; }
.f-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px 0 0; border: 0; background: transparent; color: var(--teal); font: 900 16px var(--body); cursor: pointer; }
.f-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.f-head h2 { font-size: clamp(28px, 3.4vw, 36px); display: flex; align-items: center; gap: 12px; }
.f-head h2 .dot { width: 16px; height: 16px; border-radius: 5px; }
.f-head .f-count { color: var(--dim); font-weight: 800; }
.f-head .f-surprise { margin-left: auto; align-self: center; }
.f-sec { padding-top: 30px; scroll-margin-top: 200px; }
.f-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 16px; margin-bottom: 14px; }
.f-sec-head > div { min-width: 0; flex: 1 1 auto; }
.f-sec-head h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.f-sec-head p { margin: 3px 0 0; color: var(--dim); font-size: 15px; font-weight: 700; line-height: 1.35; }
.see-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--ink); font: 900 15px var(--body); cursor: pointer; white-space: nowrap; }
.see-all:hover { background: rgba(255,255,255,.13); }
.see-all svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.f-sub { padding-top: 10px; }
.f-sub + .f-sub { padding-top: 22px; }
.f-sub-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 19px; }
.f-sub-h small { font: 800 14px var(--body); color: #9aa0bd; letter-spacing: 0; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.dot-pop { background: var(--teal); border-radius: 50%; box-shadow: 0 0 10px var(--teal); }

/* game cards */
.fcard { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s; }
.fcard::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--cg); z-index: 1; }
a.fcard:hover, a.fcard:focus-visible { color: var(--ink); background: var(--panel-2); box-shadow: 0 0 0 2px var(--cc), 0 16px 34px -14px rgba(0,0,0,.8); }
a.fcard:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { a.fcard:hover { transform: translateY(-3px); } }
.fcard-img { display: block; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.fcard img, .fcard-img img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fcard-b { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 11px 13px 13px; }
.fcard-n { font: 800 17px/1.15 var(--display); letter-spacing: -.01em; margin: 0; }
.fcard-n a { color: var(--ink); text-decoration: none; }
.fcard-t { margin: 0; color: #b6b8d0; font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 8px 0 0; margin-top: auto; list-style: none; }
.chips > * { font-size: 12px; font-weight: 900; line-height: 1.3; color: #c9cbe0; background: rgba(255,255,255,.08); padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.chips .on { color: #6ff0e6; background: rgba(47,212,200,.14); }
.fcard-how { margin: 8px 0 0; font-size: 14px; }
.fcard-static .fcard-n a::after { content: ''; position: absolute; inset: 0; }
.fcard-static .fcard-how a { position: relative; z-index: 2; display: inline-block; padding-block: 8px; }

/* phones: each section is a swipe row of compact cards; category and search views are lists */
.f-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.f-row::-webkit-scrollbar { display: none; }
.f-row .fcard { flex: none; width: 152px; scroll-snap-align: start; border-radius: 16px; }
.f-row .fcard-b { padding: 9px 10px 11px; }
.f-row .fcard-n { font-size: 15.5px; }
.f-row .fcard-t, .f-row .chips .age { display: none; }
.f-row .chips { padding-top: 6px; }
.f-row-end { flex: none; width: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); color: var(--ink); font: 900 14px var(--body); text-align: center; border: 0; cursor: pointer; scroll-snap-align: start; padding: 10px; }
.f-row-end svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--cg); fill: none; stroke: #141721; stroke-width: 3; stroke-linecap: round; }
@media (max-width: 359px) { .f-row { margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; } .f-row .fcard { width: 140px; } }
.f-list { display: grid; gap: 8px; }
@media (min-width: 600px) { .f-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.frow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 76px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; position: relative; overflow: hidden; }
.frow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cg); }
.frow:hover, .frow:focus-visible { color: var(--ink); background: var(--panel-2); }
.frow img { width: 96px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.frow-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.frow-n { font: 800 16.5px/1.15 var(--display); }
.frow-t { color: #b6b8d0; font-size: 13.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow-m { color: #cfd1e4; font-size: 12.5px; font-weight: 900; }
.frow-m .on { color: #6ff0e6; }
.frow > svg { width: 16px; height: 16px; fill: none; stroke: #7d83a3; stroke-width: 3; stroke-linecap: round; }

.f-empty { margin-top: 30px; padding: 36px 24px; border-radius: 22px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.f-empty b { font: 800 24px var(--display); }
.f-empty p { margin: 0; color: var(--dim); }
.f-empty .try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.f-empty .btn { min-height: 48px; }

/* game details: a drawer from the right on desktops, a bottom sheet on phones */
.gd-panel, .fs-panel { position: absolute; background: var(--panel); overflow-y: auto; overscroll-behavior: contain; }
.gd-panel { top: 0; right: 0; bottom: 0; width: min(460px, 100%); box-shadow: -24px 0 60px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: no-preference) { dialog[open] .gd-panel { animation: drawer-in .26s cubic-bezier(.2,.8,.2,1); } }
.gd-art { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); }
.gd-art img { width: 100%; height: 100%; object-fit: cover; }
.gd-art::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(32,34,58,.9)); pointer-events: none; }
.gd-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(20,23,33,.78); border-radius: 50%; }
.gd-close:hover { background: rgba(20,23,33,.95); }
.gd-body { position: relative; padding: 6px 24px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.gd-kicker { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #a3a8c3; }
.gd-body h2 { font-size: clamp(28px, 4vw, 36px); }
.gd-tag { margin: -4px 0 0; color: var(--cc); font-weight: 900; font-size: 17px; }
.gd-desc { margin: 0; color: #d6d8ea; font-size: 16.5px; line-height: 1.5; }
.gd-body .chips { padding: 0; }
.gd-body .chips > * { font-size: 13px; padding: 5px 10px; }
.gd-actions { display: grid; gap: 10px; margin-top: 6px; }
.gd-actions .btn { width: 100%; min-height: 54px; }
.gd-actions .btn-friends { box-shadow: inset 0 0 0 2px var(--teal); }
.gd-actions .btn-friends:hover { background: rgba(47,212,200,.12); }
.gd-actions .btn-friends::before { content: ''; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--ico-friends) center / contain no-repeat; mask: var(--ico-friends) center / contain no-repeat; }
.gd-actions .gd-how { min-height: 48px; font-size: 16px; }
.gd-more { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.gd-more h3 { font-size: 19px; margin-bottom: 4px; }
.gd-mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 56px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.04); color: var(--ink); text-decoration: none; }
.gd-mini:hover { background: rgba(255,255,255,.09); color: var(--ink); }
.gd-mini img { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; }
.gd-mini b { display: block; font-size: 15.5px; line-height: 1.2; }
.gd-mini small { display: block; color: #b6b8d0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-all { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--teal); font: 900 15px var(--body); cursor: pointer; }
.gd-all svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.sheet-grab { display: none; }
@media (max-width: 899px) {
  .gd-panel { top: auto; left: 0; width: 100%; max-height: calc(100% - 40px); max-height: 92dvh; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.55); }
  @media (prefers-reduced-motion: no-preference) { dialog[open] .gd-panel { animation: sheet-up .28s cubic-bezier(.2,.8,.2,1); } }
  .gd-art { border-radius: 26px 26px 0 0; overflow: hidden; }
  .gd-body { padding-inline: 18px; }
}
@media (min-width: 600px) and (max-width: 899px) { .gd-panel { left: 50%; width: 600px; margin-left: -300px; } }
@keyframes sheet-up { from { transform: translateY(100%); } }

/* the phone filter sheet */
.fs-panel { left: 0; right: 0; bottom: 0; max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -20px 60px rgba(0,0,0,.55); }
@media (min-width: 600px) { .fs-panel { left: 50%; right: auto; width: 560px; margin-left: -280px; } }
@media (prefers-reduced-motion: no-preference) { dialog[open] .fs-panel { animation: sheet-up .26s cubic-bezier(.2,.8,.2,1); } }
.sheet-grab { display: block; align-self: center; width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.22); }
.fs-top { display: flex; align-items: center; justify-content: space-between; }
.fs-top h2 { font-size: 24px; }
.fs-reset { min-height: 44px; padding: 0 8px; border: 0; background: none; color: #ffb8c6; font: 900 16px var(--body); cursor: pointer; }
.fs-panel .f-filters { margin: 0; padding: 0; background: none; box-shadow: none; flex-direction: column; align-items: stretch; gap: 18px; }
.fs-panel .f-group { gap: 8px; }
.fs-panel .f-label { flex-basis: 100%; margin: 0 0 2px; font-size: 14px; }
.fs-panel .chip { min-height: 44px; padding: 0 16px; font-size: 15px; }
.fs-panel .chip-online { justify-content: flex-start; min-height: 56px; border-radius: 16px; padding: 0 16px; font-size: 16px; }
.fs-panel .f-surprise, .fs-panel .f-clear { display: none; }
.fs-show { min-height: 56px; font-size: 19px; width: 100%; }

/* in the store apps, online play is not offered */
.in-app .chips .on, .in-app .frow-m .on { display: none; }
.f-note { margin: 8px 0 0; color: #ffd27a; font-weight: 800; }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.035); color: var(--dim); font-weight: 800; }
.f-foot .btn { min-height: 46px; font-size: 17px; }
@media (min-width: 900px) { .f-filter-btn { display: none !important; } }
/* tighter hero so the games show sooner */
@media (min-width: 900px) {
  .hero.hero-finder { padding-block: 10px 26px; }
  .hero-finder .wrap { padding-top: max(92px, calc(6.6vw + 6px)); gap: 32px; }
  .hero-finder h1 { font-size: clamp(44px, 5.2vw, 72px); margin-bottom: 10px; }
  .hero-finder .lede { margin-bottom: 18px; }
  .hero-finder .hero-art { width: min(100%, 330px); }
}
@media (min-width: 1100px) {
  .hero-finder .wrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr); }
  .quick-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
  .quick-picks .qp { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
}
.f-tabs-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.f-tabs-in::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tab { font-size: 15px; padding: 0 14px; gap: 7px; } .f-tabs-in { gap: 6px; padding: 2px; margin: -2px; } }
@media (max-width: 899px) {
  .hero-finder .hero-art { width: min(44vw, 190px); }
  .hero-finder .wrap { padding-top: calc(12vw + 6px); }
  .hero-finder .lede-more { display: none; }
}
@media (min-width: 1100px) {
  .quick-picks .qp { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; min-height: 74px; }
  .quick-picks .qp-ico { width: 40px; height: 40px; }
  .quick-picks .qp-t b { font-size: 17px; }
  .quick-picks .qp-t small { font-size: 13px; }
  .hero-finder .lede { max-width: 52ch; }
}
.mega-cat { display: block; padding-block: 9px; }
.mega-cat .dot { margin-right: 8px; vertical-align: -1px; }
.mega-cat .n { margin-left: 4px; }
@media (max-width: 899px) {
  .f-sec-head { flex-wrap: nowrap; align-items: center; margin-bottom: 10px; }
  .f-sec-head h3 { font-size: 21px; }
  .f-sec-head p { font-size: 14px; }
  .see-all { flex: none; padding: 0 10px 0 12px; font-size: 14px; background: transparent; color: var(--teal); }
  .f-sec { padding-top: 24px; }
  .f-head { padding-top: 14px; }
  .f-head h2 { font-size: 28px; }
}
.f-row .chips { gap: 4px; }
.f-row .chips > * { font-size: 11.5px; padding: 3px 6px; }
@media (min-width: 620px) and (max-width: 899px) { .hero-finder .hero-art { width: min(30vw, 220px); } .hero-finder .wrap { padding-top: calc(9vw + 6px); } }

/* Khel ON Drive feature band (home) */
.drive-band .drive-promo { box-shadow: inset 0 0 0 1px rgba(47,212,200,.35); }
