/* Antariksha website. Mobile-first; the game's navy-and-gold look, Lilita One for titles and Fredoka for body text (both SIL OFL, see /fonts). */
@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --navy-950: #050b20;
  --navy-900: #08102b;
  --navy-800: #0e1a42;
  --navy-700: #16265a;
  --navy-600: #22377a;
  --gold: #ffd65c;
  --gold-deep: #e8a830;
  --orange: #ff9a1f;
  --sky: #9fd3ff;
  --text: #ffffff;
  --text-soft: #c9d3f2;
  --link: #9fd3ff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --title: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--navy-900); color: var(--text); font: 500 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.outline { text-shadow: 0 2px 0 var(--navy-950), 0 0 2px var(--navy-950), 2px 0 0 var(--navy-950), -2px 0 0 var(--navy-950), 0 -2px 0 var(--navy-950), 0 4px 10px rgba(0, 0, 0, .45); }
.gold { color: var(--gold); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; background: var(--gold); color: var(--navy-950); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--navy-950); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(8, 16, 43, .92); backdrop-filter: blur(8px); border-bottom: 2px solid rgba(255, 214, 92, .35); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .logo { width: auto; height: 44px; }  /* the owner's logo (2026-11-10), tools/make_brand_assets.py */
@media (min-width: 480px) { .brand .logo { height: 56px; } }
.footer-logo { width: 160px; height: auto; }
.hero-logo { display: block; width: 240px; height: auto; margin: 0 0 14px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
@media (min-width: 900px) { .hero-logo { width: 320px; } }
.site-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 9px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-700); color: var(--gold); }
@media (max-width: 479px) { .site-nav a { padding: 8px 7px; font-size: .95rem; } }
@media (min-width: 900px) { .site-nav { order: 0; width: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 14px; font: 400 1.15rem/1.1 var(--title); letter-spacing: .02em; text-decoration: none; border: 3px solid transparent; transition: transform .12s ease, filter .12s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-play { background: linear-gradient(#ffe27a, var(--orange)); color: var(--navy-950); border-color: #fff3c4; box-shadow: 0 4px 0 #b65d00, var(--shadow); }
.btn-play:hover { color: var(--navy-950); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.btn-soon { background: var(--navy-950); color: var(--text); border-color: var(--navy-600); cursor: default; }
.btn-soon:hover { transform: none; filter: none; color: var(--text); }
.btn-soon .play-mark { width: 26px; height: 26px; flex: none; }
.btn-soon small { display: block; font: 600 .75rem/1.2 var(--body); color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.btn-soon span { text-align: left; }
.btn-secondary { background: #1d5fd1; color: #fff; border-color: #8ec2ff; box-shadow: 0 4px 0 #0d3684; }
.btn-secondary:hover { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #3d8fe0; }
/* The hero is a layered scene (tools/build_website_motion.py): sky, drifting clouds, and the floating island with the Town Hall and three idling dragons, which bobs gently.
   .hero-scene is a 16:9 box that covers .hero-stage like object-fit: cover (container query units), so the layers keep their places at every size. */
.hero-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: size; }
.hero-scene { position: absolute; left: 70%; top: 50%; width: 100%; width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 9; transform: translate(-70%, -50%); }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-float { position: absolute; inset: 0; animation: island-bob 7s ease-in-out infinite alternate; }
.hero-island { position: absolute; left: 33.85%; top: 30.56%; width: 64.58%; }
.sprite.hero-dragon { position: absolute; }
.hero-dragon.water { left: 77.05%; top: 50.77%; width: 12.66%; aspect-ratio: 243 / 242; }
.hero-dragon.nature { left: 46.53%; top: 49.58%; width: 12.19%; aspect-ratio: 234 / 245; }
.hero-dragon.ember { left: 57.25%; top: 55.56%; width: 19.17%; aspect-ratio: 368 / 331; }
.hero-dragon.water > img { animation-delay: -.7s; }
.hero-dragon.nature > img { animation-delay: -1.3s; }
.hero-cloud { position: absolute; opacity: .85; animation: cloud-drift linear infinite; }
.hero-cloud.c1 { left: 40%; top: 6%; width: 20%; animation-duration: 95s; animation-delay: -30s; }
.hero-cloud.c2 { left: 72%; top: 18%; width: 22%; animation-duration: 130s; animation-delay: -90s; }
.hero-cloud.c3 { left: 4%; top: 64%; width: 15%; animation-duration: 110s; animation-delay: -10s; opacity: .7; }
@keyframes island-bob { from { transform: translateY(0); } to { transform: translateY(-1.4%); } }
@keyframes cloud-drift { from { left: -25%; } to { left: 105%; } }
.hero-copy { position: relative; padding: 24px 0 36px; background: linear-gradient(var(--navy-800), var(--navy-900)); }
.hero-copy .kicker { font: 700 .9rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 12px; }
.hero-copy .lede { font-size: 1.15rem; color: var(--text-soft); max-width: 34rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { background: rgba(5, 11, 32, .7); border: 1px solid var(--navy-600); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
@media (min-width: 900px) {
  .hero { min-height: min(86vh, 760px); display: grid; align-items: center; }
  .hero-stage { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-scene { left: 62%; transform: translate(-62%, -50%); }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 32, .92) 0%, rgba(5, 11, 32, .78) 32%, rgba(5, 11, 32, 0) 58%); }
  .hero-copy { z-index: 1; background: none; padding: 80px 0; }
  .hero-copy .inner { max-width: 560px; }
}

/* Hero copy entrance */
.hero-copy .inner > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy .inner > :nth-child(2) { animation-delay: .08s; }
.hero-copy .inner > :nth-child(3) { animation-delay: .16s; }
.hero-copy .inner > :nth-child(4) { animation-delay: .24s; }
.hero-copy .inner > :nth-child(5) { animation-delay: .32s; }
.hero-copy .inner > :nth-child(n+6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Dragon sprites: a horizontal strip of 12 idle frames inside a one-frame window, stepped with steps(12). Reduced motion shows the first frame as a still. */
.sprite { display: block; position: relative; overflow: hidden; }
span.sprite > img { position: absolute; left: 0; top: 0; width: 1200%; height: 100%; max-width: none; margin: 0; object-fit: fill; filter: none; animation: sprite-play 2s steps(12) infinite; }  /* exactly 12 windows wide: each step moves one window */
@keyframes sprite-play { to { left: -1200%; } }  /* left, not transform: stepped transforms on the compositor drifted between frames in Chromium */
.card-sprite { width: 112px; height: 112px; margin: 0 auto 6px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.feature-sprite { width: 132px; height: 132px; margin: -6px auto 8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.lost-sprite { width: 200px; height: 200px; }
.roster li:nth-child(3n+1) span.sprite > img { animation-delay: -.6s; }
.roster li:nth-child(3n+2) span.sprite > img { animation-delay: -1.3s; }
.roster li:nth-child(4n) span.sprite > img { animation-duration: 2.3s; }

/* Scroll reveal (js/reveal.js adds .js-reveal; without it everything is visible) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal .features .reveal:nth-child(3n+2), .js-reveal .gallery .reveal:nth-child(3n+2) { transition-delay: .08s; }
.js-reveal .features .reveal:nth-child(3n), .js-reveal .gallery .reveal:nth-child(3n) { transition-delay: .16s; }

/* Hover and press feedback */
.btn:active { transform: translateY(1px) scale(.97); filter: brightness(.96); }
.btn-soon:active { transform: none; filter: none; }
.feature, .dragon { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.js-reveal .feature.is-in, .js-reveal .dragon.is-in { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .6s ease; }
.feature:hover, .dragon:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 214, 92, .25); }
.dragon:hover span.sprite > img { animation-duration: 1.2s; }
.dragon:active, .feature:active { transform: translateY(-2px) scale(.98); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(var(--navy-800), var(--navy-900)); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head p { color: var(--text-soft); }
.panel { background: linear-gradient(var(--navy-700), var(--navy-800)); border: 3px solid var(--gold-deep); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .06); }

.features { display: grid; gap: 20px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 20px; display: flex; flex-direction: column; }
.feature img { width: 132px; height: 132px; object-fit: contain; margin: -6px auto 8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.feature h3 { color: var(--gold); }
.feature p { color: var(--text-soft); margin: 0; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-950); font: 700 .7rem/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

.roster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); list-style: none; padding: 0; margin: 0; }
.dragon { padding: 12px 10px 14px; text-align: center; border-width: 2px; }
.dragon b { display: block; font: 400 1.05rem/1.2 var(--title); }
.dragon span { font-size: .85rem; color: var(--gold); font-weight: 600; }

.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; border: 3px solid var(--gold-deep); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 8px 2px 0; color: var(--text-soft); font-size: .95rem; }

.cta-band { text-align: center; padding: 56px 20px; }
.cta-band .cta-row { justify-content: center; }
.cta-band p { color: var(--text-soft); max-width: 36rem; margin-inline: auto; }

/* Inner pages */
.page-head { padding: 48px 0 24px; background: linear-gradient(var(--navy-800), var(--navy-900)); border-bottom: 2px solid rgba(255, 214, 92, .25); }
.page-head p { color: var(--text-soft); max-width: 46rem; }
.prose { max-width: 50rem; padding-block: 40px 64px; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; color: var(--gold); }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--navy-600); }
.prose th { color: var(--gold); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.draft-banner { margin: 0 0 28px; padding: 16px 18px; border-radius: 14px; background: #3b2a00; border: 2px dashed var(--gold); color: #fff3cf; }
.draft-banner strong { color: var(--gold); font-family: var(--title); font-weight: 400; font-size: 1.2rem; letter-spacing: .03em; }
.review-note { margin: 0 0 1em; padding: 10px 14px; border-left: 4px solid var(--gold); background: rgba(255, 214, 92, .08); color: #fff3cf; font-size: .95rem; }
.slot-note { padding: 18px; border-radius: 14px; border: 2px dashed var(--sky); background: rgba(159, 211, 255, .08); }

.faq details { margin-bottom: 12px; padding: 0 18px; border-width: 2px; }
.faq summary { cursor: pointer; padding: 16px 0; font: 400 1.2rem/1.3 var(--title); list-style-position: outside; }
.faq details[open] summary { color: var(--gold); }
.faq details > div { padding-bottom: 14px; color: var(--text-soft); }

.factsheet { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0 0 1.4em; }
@media (min-width: 640px) { .factsheet { grid-template-columns: max-content 1fr; gap: 6px 18px; } }
.factsheet dt { color: var(--gold); font-weight: 600; margin-top: 8px; }
@media (min-width: 640px) { .factsheet dt { margin-top: 0; } }
.factsheet dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.downloads { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; padding: 0; margin: 0 0 1.4em; }
.downloads li { padding: 12px; border-width: 2px; }
.downloads img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--navy-950); border-radius: 10px; margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--navy-950); border-top: 2px solid rgba(255, 214, 92, .3); padding: 40px 0 28px; color: var(--text-soft); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: var(--gold); margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--gold); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--navy-700); padding-top: 18px; font-size: .85rem; }
