:root {
  color-scheme: dark;
  --bg: #0a1120;
  --panel: #101c30;
  --raised: #172740;
  --ink: #f3f5fa;
  --muted: #aab9cf;
  --line: #2a3d58;
  --gold: #f5d477;
  --focus: #9cceff;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --space: clamp(3.8rem, 7.2vw, 7.6rem);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 6.25rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
input, button { font: inherit; }
svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: calc(100% - clamp(2rem, 8vw, 8rem)); max-width: 1380px; margin-inline: auto; }
.pixel { image-rendering: pixelated; object-fit: contain; }
.skip-link { position: fixed; inset: .8rem auto auto .8rem; transform: translateY(-180%); z-index: 5; color: #182031; background: var(--gold); padding: .7rem 1rem; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 4; background: #0b1426f7; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .55rem; font-size: 1.06rem; letter-spacing: .02em; font-weight: 760; text-decoration: none; }
.brand img { image-rendering: pixelated; }
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.5rem); }
.main-nav a { color: var(--muted); font-size: .93rem; font-weight: 640; text-decoration: none; padding-block: .6rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--gold); }
.header-download { justify-self: end; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; gap: .55rem; min-height: 45px; padding: .58rem 1rem; border: 1px solid transparent; border-radius: 6px; font-weight: 730; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button-gold { background: var(--gold); color: #151c29; box-shadow: 0 2px 0 #9d7d3d; }
.button-gold:hover { background: #ffe59d; }
.button-dark { background: var(--raised); border-color: #415776; color: var(--ink); }
.button-dark:hover { background: #233957; border-color: #7895ba; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .91rem; font-weight: 600; text-underline-offset: .22em; }
.text-link:hover { color: var(--gold); }
.eyebrow { color: var(--gold); font: 650 .72rem/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase; }

.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 76% 34%, #213e5b 0, transparent 56%), linear-gradient(110deg, #101729, #0f1c31 55%, #0c1526); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .21; background: radial-gradient(circle at 28px 19px, #a8c3eb 0 .7px, transparent 1.3px) 0 0 / 113px 97px, radial-gradient(circle at 7px 37px, #a8c3eb 0 .55px, transparent 1.1px) 0 0 / 71px 83px; }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.75rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(3.2rem, 5.4vw, 5.5rem); }
.alpha-label { color: #c3d5ef; }
.alpha-label span, .capture-dot { display: inline-block; width: .44rem; height: .44rem; background: var(--gold); box-shadow: 0 0 11px #f5d47761; }
.alpha-label span { margin-right: .25rem; }
.hero-logo { width: clamp(218px, 29vw, 350px); aspect-ratio: 350 / 155; overflow: hidden; margin: .95rem 0 1.3rem; }
.hero-logo img { width: 122%; max-width: none; height: auto; transform: translate(-9.3%, -19%); }
.hero h1 { font-size: clamp(2.35rem, 3.9vw, 4.5rem); font-weight: 780; line-height: 1.02; letter-spacing: -.063em; }
.hero h1 span { color: var(--gold); }
.hero-intro { color: var(--muted); margin-top: 1.3rem; max-width: 29rem; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.65rem 0 1rem; }
.hero-actions .button { min-width: 125px; }
.hero-media { min-width: 0; }
.frame-label { display: flex; justify-content: space-between; gap: .6rem; color: #c0d1e9; font: 650 .72rem/1.4 var(--mono); letter-spacing: .12em; padding: 0 .05rem .65rem; }
.capture { min-width: 0; border: 1px solid #405674; border-radius: 8px; overflow: hidden; background: #101b2e; }
.hero-media .capture { box-shadow: 0 20px 50px #060c1880; }
.capture-link { display: block; position: relative; overflow: hidden; background: #0c1425; }
.capture-link:focus-visible { outline-offset: -4px; z-index: 1; }
.capture img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-media .capture img { aspect-ratio: 1.48; object-position: 52% 48%; }
.capture-zoom { position: absolute; right: .7rem; top: .7rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #9bb0cd94; border-radius: 4px; background: #0a1428de; color: var(--ink); font-size: 1.25rem; line-height: 1; transition: background-color .16s ease; }
.capture-link:hover .capture-zoom { background: #2a476a; }
.capture figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .63rem .8rem; color: #d2dced; font-size: .78rem; line-height: 1.35; }
.capture-label { margin-left: auto; color: var(--muted); font: 600 .65rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.section { padding-block: var(--space); }
.section-heading { max-width: 58rem; margin-bottom: clamp(1.4rem, 3vw, 2.6rem); }
.section-heading h2, .launch-inner h2 { font-size: clamp(2rem, 4.5vw, 4.1rem); line-height: 1.01; letter-spacing: -.055em; margin-top: .5rem; }
.section-heading > p:not(.eyebrow), .page-heading > p:not(.eyebrow) { max-width: 39rem; margin-top: .9rem; color: var(--muted); line-height: 1.65; font-size: 1.04rem; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(1.4rem, 4vw, 4rem); align-items: start; }
.game-grid .capture { position: sticky; top: 6rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.feature-list li:first-child { padding-top: 0; border-top: 0; }
.feature-list li:last-child { padding-bottom: 0; }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #1a2a41; border: 1px solid var(--line); border-radius: 5px; }
.feature-icon img { width: 28px; height: 28px; }
.feature-list h3 { font-size: 1.12rem; }
.feature-list p { margin-top: .32rem; line-height: 1.55; color: var(--muted); }

.worlds { background: radial-gradient(ellipse at 74% 18%, #172c46 0, transparent 59%), #0d1729; border-block: 1px solid var(--line); }
.world-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.world-selector a { display: flex; align-items: center; justify-content: center; min-height: 58px; gap: .5rem; color: var(--muted); background: #111e33; border: 1px solid var(--line); border-radius: 6px; font-weight: 720; text-decoration: none; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.world-selector a:hover { color: var(--ink); border-color: #6d8bb3; }
.world-selector a[aria-selected="true"] { background: #243047; border-color: #b89c62; color: var(--gold); }
.world-selector small { font: 550 .67rem var(--mono); color: var(--muted); margin-right: .18rem; }
.world-panel { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: center; gap: clamp(1.35rem, 3vw, 3rem); padding: clamp(1rem, 3vw, 2.65rem); margin-top: .65rem; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(ellipse at 0% 70%, #1b3a50, transparent 60%), var(--panel); }
.world-moon { background: radial-gradient(ellipse at 0% 70%, #29384e, transparent 60%), var(--panel); }
.world-mars { background: radial-gradient(ellipse at 0% 70%, #462c33, transparent 60%), var(--panel); }
.world-icon { margin: 0 0 .85rem -.25rem; }
.world-copy h3 { font-size: clamp(2.05rem, 4vw, 3.55rem); line-height: 1.05; letter-spacing: -.05em; margin: .35rem 0 .65rem; }
.world-copy p:not(.eyebrow) { line-height: 1.62; color: #b8c8dd; }
.traits { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }
.traits li { color: #c4d4eb; background: #10192bc9; border: 1px solid #536583; border-radius: 4px; padding: .34rem .5rem; font: 550 .71rem/1.3 var(--mono); }
.map-note { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: .75rem; padding: .78rem 1rem; border-left: 2px solid #607b9e; background: #121f34; border-radius: 0 4px 4px 0; }
.map-note p { color: var(--muted); flex: 1 1 15rem; font-size: .91rem; line-height: 1.5; }

.split-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; }
.release-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.release-row { display: grid; grid-template-columns: clamp(60px, 8vw, 99px) minmax(0, 1fr) auto; align-items: stretch; min-height: 86px; gap: clamp(.6rem, 2vw, 1.55rem); color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; overflow: clip; text-decoration: none; transition: border-color .16s ease, background-color .16s ease; }
.release-row:hover { background: #1a2940; border-color: #6f88ad; }
.release-art, .note-emblem { --tone: #1d3b5f; display: grid; place-items: center; background: radial-gradient(ellipse at center, var(--tone), #142137); }
.tone-warm { --tone: #60403a; }
.tone-stone { --tone: #3b465d; }
.tone-gold { --tone: #64513b; }
.tone-forest { --tone: #285445; }
.tone-ice { --tone: #344d69; }
.tone-social { --tone: #493e69; }
.release-art img { width: clamp(36px, 5.25vw, 60px); height: clamp(36px, 5.25vw, 60px); }
.release-copy { display: flex; flex-direction: column; justify-content: center; gap: .28rem; padding-block: .88rem; }
.release-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .75rem; font-size: .74rem; color: var(--muted); }
.release-meta > span { color: var(--gold); font: 650 .74rem/1.3 var(--mono); }
.release-copy strong { font-size: clamp(1.05rem, 2vw, 1.37rem); line-height: 1.2; }
.release-summary { color: var(--muted); line-height: 1.45; font-size: .93rem; margin-top: .12rem; }
.release-arrow { align-self: center; color: var(--muted); padding-right: clamp(.65rem, 2.5vw, 1.75rem); }
.release-row:hover .release-arrow { color: var(--gold); }
.release-featured .release-row { background: #17263d; border-color: #566c8c; }
.release-featured .release-row:hover { background: #1e304b; }

.launch-section { padding-block: clamp(2.8rem, 5vw, 4.6rem); background: linear-gradient(107deg, #142842, #172237); border-block: 1px solid var(--line); }
.launch-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.launch-inner p:not(.eyebrow) { color: var(--muted); margin-top: .65rem; line-height: 1.5; }
.site-footer { border-top: 1px solid #1f2b41; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.75rem; }
.footer-inner p { margin-top: .5rem; color: var(--muted); font-size: .83rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.footer-inner nav a { display: inline-flex; gap: .25rem; align-items: center; color: var(--muted); font-size: .84rem; text-underline-offset: .22em; }
.footer-inner nav a:hover { color: var(--gold); }

.subpage { max-width: 1100px; min-height: 65vh; }
.page-heading { margin-bottom: clamp(1.8rem, 4vw, 3.4rem); }
.page-heading h1, .note-header h1 { margin-top: .65rem; font-size: clamp(2.45rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.055em; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.platform { padding: clamp(1rem, 3vw, 2.1rem); border: 1px solid #435c7c; border-radius: 8px; background: radial-gradient(ellipse at 0% 0%, #203b5d, transparent 68%), var(--panel); }
.platform-title { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.2rem; }
.platform-title h2 { font-size: 1.45rem; line-height: 1.2; }
.platform-title p, .platform-steps { color: var(--muted); margin-top: .3rem; font-size: .95rem; line-height: 1.5; }
.platform-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; font-size: 1.55rem; border: 1px solid #5d7799; border-radius: 6px; background: #14253d; }
.platform-icon svg { width: 24px; height: 24px; }
.platform-steps { margin-top: .95rem; }
.install-guide { margin-top: clamp(2rem, 6vw, 4.5rem); }
.install-guide h2, .itch-note h2 { margin-top: .3rem; font-size: clamp(1.5rem, 3vw, 2.45rem); letter-spacing: -.035em; }
.numbered { list-style: none; counter-reset: install; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.15rem 0 0; padding: 0; }
.numbered li { padding: 1rem; border-top: 1px solid #566d8b; background: #121d31; counter-increment: install; }
.numbered li::before { content: "0" counter(install); display: block; color: var(--gold); font: 650 .78rem var(--mono); margin-bottom: .72rem; }
.numbered h3 { font-size: 1.06rem; }
.numbered p, .itch-note p { margin-top: .48rem; color: var(--muted); line-height: 1.55; }
.itch-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem; margin-top: 2.4rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 7px; }
.itch-note h2 { font-size: 1.25rem; }

.archive-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem 1rem; align-items: center; margin-bottom: 1.15rem; }
.archive-tools label { grid-column: 1 / -1; font-weight: 650; font-size: .91rem; }
.archive-tools input { min-width: 0; color: var(--ink); background: #111e34; border: 1px solid #516987; border-radius: 6px; padding: .65rem .8rem; }
.archive-tools input::placeholder { color: #a1b1c9; }
#release-count { color: var(--muted); font-size: .85rem; }
.note-page { max-width: 920px; }
.note-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding-bottom: 1.65rem; margin: 1.55rem 0 1.45rem; border-bottom: 1px solid var(--line); }
.note-header h1 { font-size: clamp(2.25rem, 5vw, 4.35rem); }
.note-date { color: var(--muted); margin-top: .75rem; }
.note-emblem { width: clamp(67px, 12vw, 115px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; }
.note-emblem img { width: 57%; height: auto; }
.note-content { max-width: 76ch; color: #c7d3e5; font-size: 1.01rem; line-height: 1.72; }
.note-content :is(h2,h3,h4,h5,h6) { color: var(--ink); margin-top: 1.65em; line-height: 1.2; }
.note-content h2 { font-size: 1.46rem; }
.note-content p { margin-top: .8rem; }
.note-content ul { padding-left: 1.45rem; }
.note-content ul ul { margin-block: .2rem; }
.note-content li + li { margin-top: .23rem; }
.note-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.note-content strong { color: var(--ink); }
.original-note { margin-top: 1.5rem; }
.adjacent-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 2rem; }
.adjacent-notes a { display: grid; gap: .35rem; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: .8rem; }
.adjacent-notes a:hover { border-color: var(--gold); }
.adjacent-notes span { color: var(--muted); font-size: .79rem; }

.lightbox { width: min(94vw, 1400px); max-height: 92dvh; padding: .65rem; background: #0c1527; color: var(--ink); border: 1px solid #5d7596; border-radius: 8px; }
.lightbox::backdrop { background: #050810dc; }
.lightbox form { display: flex; justify-content: end; margin-bottom: .55rem; }
.close-lightbox { min-height: 36px; min-width: 36px; font-size: 1.3rem; padding: 0; }
.lightbox img { width: 100%; max-height: calc(85dvh - 3.5rem); object-fit: contain; background: #060910; }
.lightbox figcaption { padding: .65rem .25rem .15rem; color: var(--muted); }

@media (max-width: 1030px) {
  .hero-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .hero h1 { font-size: clamp(2.15rem, 4.2vw, 3.4rem); }
  .hero-media .capture img { aspect-ratio: 1.16; }
}

@media (max-width: 760px) {
  .hero-layout { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.3rem 2.6rem; }
  .hero h1 { font-size: clamp(2.4rem, 7.7vw, 4.15rem); }
  .hero-media .capture img { aspect-ratio: 16 / 9; }
  .game-grid { grid-template-columns: 1fr; }
  .game-grid .capture { position: static; }
  .world-panel { grid-template-columns: minmax(0, 1fr); }
  .world-icon { float: right; width: 60px; height: 60px; margin-left: .55rem; }
  .launch-inner { grid-template-columns: auto 1fr; }
  .launch-inner .button { grid-column: 2; }
  .footer-inner { align-items: start; flex-direction: column; }
  .numbered { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  html { scroll-padding-top: 7.65rem; }
  .header-inner { grid-template-columns: 1fr auto; gap: .35rem .7rem; padding-block: .58rem .2rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid #263653; }
  .main-nav a { padding-block: .5rem; font-size: .87rem; }
  .header-download { grid-column: 2; grid-row: 1; min-height: 39px; font-size: .88rem; }
  .hero-logo { margin-block: .75rem .9rem; }
  .hero h1 { font-size: clamp(2.03rem, 8.4vw, 2.52rem); }
  .hero-intro { margin-top: .95rem; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.15rem; }
  .hero-actions .button { width: 100%; min-width: 0; padding-inline: .55rem; }
  .capture-label { display: none; }
  .world-selector a { gap: .2rem; min-height: 50px; font-size: .81rem; }
  .world-selector img { width: 25px; height: 25px; }
  .world-selector small { display: none; }
  .release-summary { display: none; }
  .launch-inner { grid-template-columns: 1fr; }
  .launch-inner .button { grid-column: 1; }
  .launch-inner img { width: 52px; height: 52px; }
  .platform-grid, .adjacent-notes { grid-template-columns: 1fr; }
  .archive-tools { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
}
