/* 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: 1140px;
}

* { 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 */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.site-head nav { margin-left: auto; display: flex; gap: 2px; }
.site-head nav a { color: var(--dim); text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 10px; border-radius: 8px; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }
@media (max-width: 560px) { .site-head nav .wide { display: none; } .site-head nav a { padding: 8px 6px; font-size: 15px; } .brand img { height: 38px; } }

/* 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: 120px; width: 100%; pointer-events: none; }
.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; display: grid; gap: 30px; align-items: center; padding-top: 84px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-top: 70px; } }
.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-top: 22px; color: var(--dim); font-size: 15px; }
.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; }

/* game cards */
.games-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .games-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
.game { --glow: var(--teal); position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.game:hover, .game:focus-within { box-shadow: 0 0 0 2px var(--glow), 0 18px 50px -10px color-mix(in srgb, var(--glow) 40%, transparent); }
.game::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--glow); z-index: 1; }
.game .shot { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.game h3 { font-size: 28px; }
.game h3 a { color: var(--ink); text-decoration: none; }
.game h3 a:hover { text-decoration: underline; text-decoration-color: var(--glow); }
.game .aka { color: var(--glow); font-weight: 800; margin: -8px 0 0; }
.game p { margin: 0; color: var(--dim); }
.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); }
.game .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.game .actions .btn { min-height: 48px; padding: 10px 20px; font-size: 17px; }
.game-rung { --glow: var(--teal); }
.game-fastrek { --glow: var(--orange); }
.game-carrom { --glow: var(--pink); }

.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); }
.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; }
.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; }
