@font-face { font-family: Fraunces; font-style: normal; font-weight: 400 600; font-display: swap; src: url('./fonts/fraunces-latin.woff2') format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url('./fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('./fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #1b1914;
  --bg-deep: #14120e;
  --panel: #221e18;
  --panel-2: #2b261e;
  --panel-3: #362f25;
  --rule: #3d352a;
  --ink: #ede3cc;
  --ink-2: #b9ad91;
  --ink-3: #7f7562;
  --gold: #d4b870;
  --gold-2: #a88d4a;
  --grass: #9ebd87;
  --grass-deep: #4e8a46;
  --wood: #c48a52;
  --sand: #a89266;
  --rock: #3e3a30;
  --water: #3a6a7a;
  --serif: Fraunces, 'Iowan Old Style', Georgia, serif;
  --sans: Inter, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.icon { display: block; width: 25px; height: 25px; }
.skip-link { position: fixed; top: -80px; left: 15px; z-index: 100; background: var(--panel); color: var(--gold); padding: 10px 16px; border: 1px solid var(--gold); }
.skip-link:focus { top: 12px; }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 24px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border-bottom: 1px solid var(--rule); }
.hud-title { font: 500 19px var(--serif); white-space: nowrap; }
.hud-title small { color: var(--ink-2); font: 9px var(--mono); letter-spacing: .6px; margin-left: 12px; }
.res-strip { display: flex; align-items: center; gap: 7px; }
.res { display: flex; align-items: baseline; gap: 8px; background: var(--panel-3); border: 1px solid var(--rule); border-radius: 3px; padding: 5px 10px; white-space: nowrap; }
.res .k { font: 9px var(--mono); text-transform: uppercase; letter-spacing: .4px; color: var(--ink-2); }
.res .v { font: 500 13px var(--serif); }
.gold { color: var(--gold); }
.grass { color: var(--grass); }
.wood { color: var(--wood); }
.hud-links { display: flex; gap: 17px; font: 10px var(--mono); color: var(--ink-2); }
.hero { display: grid; grid-template-columns: 430px minmax(0, 1fr); min-height: 690px; }
.menu-panel { background: var(--panel); border-right: 1px solid var(--rule); padding: 45px 45px 30px; display: flex; flex-direction: column; }
.eyebrow { font: 9px/1.7 var(--mono); letter-spacing: 1.65px; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; }
.brand { font: 500 68px/.95 var(--serif); letter-spacing: -1px; margin: 0; }
.brand em { display: block; font: italic 400 23px/1.35 var(--serif); color: var(--ink-2); margin-top: 17px; letter-spacing: 0; }
.tagline { font: 400 15px/1.75 var(--serif); color: var(--ink-2); max-width: 32ch; margin: 22px 0 0; }
.platform-note { color: var(--gold); border-left: 2px solid var(--gold-2); padding-left: 10px; font: 10px/1.6 var(--sans); margin: 14px 0 0; }
.menu { list-style: none; margin: 25px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; justify-content: space-between; text-align: left; padding: 13px 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--rule); border-radius: 3px; font: 400 17px/1.4 var(--serif); color: var(--ink); transition: border-color .15s, transform .15s; }
.menu a:hover, .menu button:hover:not(:disabled) { border-color: var(--gold); transform: translateX(3px); }
.menu .primary > * { border-color: var(--gold-2); background: linear-gradient(180deg, #453822, #30271b); color: var(--gold); font-weight: 500; }
.menu .muted > * { color: var(--ink-2); font-size: 15px; }
.menu button:disabled { opacity: .45; }
.menu small { font: 10px var(--sans); display: block; color: var(--ink-2); margin-top: 4px; }
.menu .num { font: 9px var(--mono); color: var(--ink-2); }
.menu-foot { margin-top: auto; padding-top: 24px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 13px; font: 9px/1.6 var(--mono); }
.save-summary { display: flex; gap: 9px; padding: 13px 0 0; color: var(--ink-2); }
.save-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--grass); flex-shrink: 0; margin-top: 6px; }
.save-summary strong { font-size: 11px; color: var(--grass); font-weight: 500; }
.save-summary p { font: 9px/1.7 var(--mono); margin: 3px 0 0; }
.landing-status { color: var(--ink-2); font-size: 10px; line-height: 1.6; margin: 15px 0 0; }
.landing-status.error, .dialog-error { color: #efa78e; }
.text-link { background: none; border: 0; color: var(--gold); text-decoration: underline; text-decoration-color: #a88d4a80; text-underline-offset: 3px; padding: 7px 0; text-align: left; font-size: 10px; }
.scene { position: relative; overflow: hidden; background: linear-gradient(to bottom, #161c26 0%, #232c3a 62%, var(--bg-deep) 100%); display: flex; align-items: center; justify-content: center; min-height: 570px; isolation: isolate; }
.scene[data-light=day] { background: linear-gradient(to bottom, #7897a3 0%, #b4c6b4 62%, #494a34 100%); }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--ink); opacity: .5; animation: twinkle 4s ease-in-out infinite; }
.scene[data-light=day] .star { display: none; }
.celestial { position: absolute; right: 10%; top: 9%; border: none; padding: 0; border-radius: 50%; z-index: 6; transition: filter .2s; }
.celestial:hover { filter: brightness(1.1); }
.moon-body { width: 70px; height: 70px; background: radial-gradient(circle at 38% 38%, #fbf6e4 0%, #ddd2af 55%, #ddd2af00 75%); box-shadow: inset -7px -7px 16px #3c372880, 0 0 26px #f4ecd62e; }
.sun-body { width: 70px; height: 70px; background: radial-gradient(circle at 40% 40%, #fbe7b0 0%, #f0c878 55%, #f0c87800 72%); box-shadow: 0 0 34px #f0c87859; }
.scene-hint { position: absolute; right: 7%; top: calc(9% + 85px); color: var(--ink-2); font: 8px var(--mono); }
.scene[data-light=day] .scene-hint { color: #30271b; }
.island { position: relative; width: min(540px, 88%); height: 350px; margin-bottom: 65px; }
.layer { position: absolute; left: 50%; top: 50%; height: 170px; border-radius: 8px; box-shadow: 0 0 0 1px #0000002e; }
.layer.rock { width: 350px; background: linear-gradient(145deg, var(--rock), #2e2a22); transform: translate(-50%, calc(-50% + 58px)) rotate(45deg) skew(-15deg,-15deg); }
.layer.stone { width: 372px; background: linear-gradient(145deg, #5a5446, #494335); transform: translate(-50%, calc(-50% + 31px)) rotate(45deg) skew(-15deg,-15deg); }
.layer.sand { width: 392px; background: linear-gradient(145deg, var(--sand), #8a7550); transform: translate(-50%, calc(-50% + 4px)) rotate(45deg) skew(-15deg,-15deg); }
.layer.grass { width: 352px; background: linear-gradient(145deg, var(--grass-deep), #35632f); transform: translate(-50%, calc(-50% - 23px)) rotate(45deg) skew(-15deg,-15deg); }
.water-plane { position: absolute; left: 50%; top: 62%; width: 700px; height: 190px; transform: translate(-50%, -50%) rotate(45deg) skew(-15deg,-15deg); background: repeating-linear-gradient(90deg, var(--water) 0 8px, #284c57 8px 16px); opacity: .4; border-radius: 16px; z-index: -1; }
.prop { position: absolute; }
.tree { width: 20px; height: 34px; }
.tree .trunk { position: absolute; left: 50%; bottom: 0; width: 4px; height: 10px; background: #6a4a2c; transform: translateX(-50%); }
.tree .crown { position: absolute; left: 50%; bottom: 8px; width: 20px; height: 24px; background: #3d6d2f; border-radius: 40% 40% 50% 50%; transform: translateX(-50%); box-shadow: inset -3px -4px 0 #2e5424; }
.hut { width: 46px; height: 49px; }
.hut .body { position: absolute; left: 8px; bottom: 0; width: 30px; height: 25px; background: linear-gradient(to right, #9c8051, #c3a772 50%, #9c8051); border-radius: 2px 2px 0 0; box-shadow: inset 0 -3px 0 #4a4438; }
.hut .roof { position: absolute; left: 1px; bottom: 23px; width: 44px; height: 26px; background: linear-gradient(135deg, #d4b271, #8a6939); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hut .window { position: absolute; left: 20px; bottom: 7px; width: 6px; height: 9px; background: #e8c760; border-radius: 3px 3px 0 0; box-shadow: 0 0 8px #e8c760b3; }
.hearth { width: 22px; height: 25px; }
.hearth .stones { position: absolute; bottom: 0; width: 22px; height: 8px; background: #7f7562; border-radius: 50%; box-shadow: inset 0 -3px 0 #3e3a30; }
.hearth .fire { position: absolute; left: 50%; bottom: 5px; width: 12px; height: 19px; background: radial-gradient(ellipse at 50% 85%, #ffd86a 0%, #ff8a2a 55%, #c9442c 90%); border-radius: 50% 50% 30% 30%; transform: translateX(-50%); animation: flick 1.7s ease-in-out infinite; box-shadow: 0 0 18px #ff8a2a8c; }
.glow { position: absolute; width: 130px; height: 70px; border-radius: 50%; background: radial-gradient(ellipse, #ff963038, transparent 70%); pointer-events: none; }
.label { position: absolute; transform: translate(-50%, -100%); font: 8px var(--mono); padding: 4px 7px; border-radius: 3px; background: #14110ce0; color: var(--ink); white-space: nowrap; box-shadow: 0 1px 3px #0006; }
.label.chief { color: var(--gold); border: 1px solid #d4b87066; }
.colonist { width: 10px; height: 18px; }
.colonist .body { position: absolute; left: 2px; bottom: 0; width: 6px; height: 10px; background: #d9b14a; border-radius: 1px; }
.colonist .head { position: absolute; left: 1px; bottom: 10px; width: 8px; height: 8px; background: #ead3b0; border-radius: 50%; }
.colonist.second .body { background: #ba739a; }
.bubble { position: absolute; font: italic 12px var(--serif); color: var(--ink); background: var(--panel-2); border: 1px solid var(--rule); padding: 7px 10px; border-radius: 5px; white-space: nowrap; animation: float-up 7s ease-in-out infinite; }
.scene-caption { position: absolute; bottom: 30px; left: 35px; right: 35px; text-align: center; }
.scene-caption .eyebrow { font-size: 8px; letter-spacing: 2px; }
.scene-caption p { font: 400 24px/1.4 var(--serif); margin: 9px 0 13px; }
.scene-caption-note { font: 8px var(--mono); color: var(--ink-2); }
.scene[data-light=day] .scene-caption { color: var(--ink); text-shadow: 0 1px 6px #1b1914; }
.strata-cut { height: 26px; background: linear-gradient(to bottom, transparent 0 8px, #00000038 8px 9px, transparent 9px), repeating-linear-gradient(90deg, var(--panel-3) 0 34px, var(--panel-2) 34px 70px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pitch-line { max-width: 890px; margin: 0 auto; padding: 43px 22px 0; text-align: center; }
.pitch-line p { font: italic 17px/1.75 var(--serif); color: var(--ink-2); margin: 0; }
.ages, .mecas, .journal, .genese { max-width: 1160px; margin: 0 auto; padding: 36px 22px 18px; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.sect-head h2 { font: 500 25px var(--serif); margin: 0; }
.sect-head .meta { font: 9px/1.6 var(--mono); letter-spacing: .7px; text-transform: uppercase; color: var(--ink-2); }
.rail { display: flex; gap: 8px; overflow-x: auto; padding: 3px 0 14px; scrollbar-width: thin; scrollbar-color: var(--gold-2) var(--bg); scroll-snap-type: x proximity; }
.age { flex: 0 0 154px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--rule); border-radius: 4px; padding: 13px; display: flex; flex-direction: column; gap: 7px; min-height: 180px; scroll-snap-align: start; }
.age .no { font: 9px var(--mono); color: var(--ink-2); }
.age h3 { font: 500 17px/1.1 var(--serif); margin: 0; }
.age p { font-size: 11px; color: var(--ink-2); line-height: 1.5; margin: 0 0 auto; }
.age .state { font: 8px var(--mono); letter-spacing: .4px; text-transform: uppercase; padding: 4px 6px; border-radius: 2px; align-self: flex-start; background: var(--panel-3); color: var(--ink-2); }
.age.playable { border-color: #64764d; }
.age.playable .state { background: #9ebd8722; color: var(--grass); }
.age.playable .no { color: var(--grass); }
.age.future .state { color: var(--gold); background: #d4b87014; }
.section-note { font-size: 11px; color: var(--ink-2); line-height: 1.7; margin: 10px 0 0; }
.meca-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fiche { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--rule); border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fiche-icon { color: var(--gold); }
.fiche h3 { font: 500 17px var(--serif); margin: 0; }
.fiche p { font-size: 12px; color: var(--ink-2); line-height: 1.65; margin: 0; }
.fiche .tag { font: 8px/1.6 var(--mono); letter-spacing: .4px; text-transform: uppercase; color: var(--gold); margin-top: auto; padding-top: 6px; }
.journal-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.jentry { padding: 19px 21px; border-right: 1px solid var(--rule); }
.jentry:last-child { border-right: 0; }
.jentry .date { font: 9px var(--mono); letter-spacing: .6px; color: var(--gold); text-transform: uppercase; }
.jentry h3 { font: 500 18px var(--serif); margin: 9px 0 8px; }
.jentry p { font-size: 12px; color: var(--ink-2); margin: 0; line-height: 1.7; }
.genese { padding-bottom: 50px; }
.genese-inner { display: flex; align-items: center; gap: 27px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--rule); border-radius: 4px; padding: 23px 27px; }
.genese-logo-link { flex-shrink: 0; }
.genese img { display: block; border-radius: 5px; }
.genese .eyebrow { margin-bottom: 8px; }
.genese p:last-child { color: var(--ink-2); font-size: 13px; line-height: 1.8; margin: 0; }
.genese p a { color: var(--gold); text-decoration: underline; text-decoration-color: #a88d4a80; text-underline-offset: 3px; }
footer { border-top: 1px solid var(--rule); padding: 23px; display: flex; justify-content: space-between; font: 9px/1.8 var(--mono); color: var(--ink-2); flex-wrap: wrap; gap: 13px; }
footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
dialog { position: fixed; width: min(530px, calc(100vw - 30px)); max-height: calc(100dvh - 40px); overflow: auto; background: linear-gradient(145deg, var(--panel-2), var(--bg)); color: var(--ink); border: 1px solid #756044; border-radius: 5px; padding: 32px; box-shadow: 0 24px 100px #0007; }
dialog::backdrop { background: #100d09b8; backdrop-filter: blur(5px); }
dialog h2 { font: 500 28px/1.2 var(--serif); margin: 0 0 15px; }
dialog > p:not(.eyebrow) { color: var(--ink-2); font-size: 13px; line-height: 1.75; }
dialog .dialog-error { color: #efa78e !important; }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: none; color: var(--ink-2); font-size: 24px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.dialog-actions button { min-height: 38px; border: 1px solid var(--gold-2); background: linear-gradient(180deg, #55452a, #3a2e1d); color: var(--gold); font-size: 11px; padding: 9px 12px; border-radius: 3px; }
.dialog-actions .secondary { background: transparent; color: var(--ink-2); border-color: #65563d; }
.dialog-actions button:hover { border-color: var(--gold); color: var(--ink); }
@keyframes twinkle { 0%, 100% { opacity: .18; } 50% { opacity: .6; } }
@keyframes flick { 50% { transform: translateX(-50%) scaleY(1.16) scaleX(.9); } }
@keyframes float-up { 0% { opacity: 0; transform: translateY(4px); } 15%, 75% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 1150px) { .hud { gap: 13px; } .hud-title small { display: block; margin: 5px 0 0; } .hud-links { gap: 12px; font-size: 9px; } .hero { grid-template-columns: 385px minmax(0, 1fr); } .menu-panel { padding: 38px 32px 28px; } .island { transform: scale(.85); } }
@media (max-width: 850px) { .hud { flex-wrap: wrap; padding: 14px 18px; } .hud-links { margin-left: auto; } .res-strip { order: 3; width: 100%; } .res { flex: 1; justify-content: center; } .hero { grid-template-columns: 1fr; min-height: 0; } .menu-panel { border-right: 0; padding: 35px max(25px, calc((100vw - 500px) / 2)) 27px; } .brand { font-size: 60px; } .brand em br { display: none; } .brand em { font-size: 21px; } .tagline { max-width: 36ch; } .menu-foot { padding-top: 18px; } .scene { min-height: 460px; } .island { transform: scale(.95); } .scene-caption { bottom: 22px; } .scene-caption p { font-size: 21px; } .meca-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .journal-strip { grid-template-columns: 1fr; } .jentry { border-right: 0; border-bottom: 1px solid var(--rule); } .jentry:last-child { border-bottom: 0; } }
@media (max-width: 520px) { .hud-title { font-size: 18px; } .hud-title small { font-size: 7px; } .hud-links { gap: 9px; font-size: 8px; } .hud-links a:last-child { display: none; } .res { padding: 5px 7px; gap: 5px; } .res .k { font-size: 7px; } .res .v { font-size: 11px; } .menu-panel { padding: 31px 24px 24px; } .brand { font-size: 56px; } .brand em { font-size: 19px; } .eyebrow { font-size: 8px; } .menu a, .menu button { font-size: 17px; } .scene { min-height: 410px; } .island { width: 540px; min-width: 540px; transform: scale(.67); margin-bottom: 35px; } .celestial { width: 48px; height: 48px; top: 7%; right: 10%; } .scene-hint { top: calc(7% + 59px); right: 6%; font-size: 7px; } .scene-caption { bottom: 15px; left: 15px; right: 15px; } .scene-caption p { font-size: 18px; margin: 5px 0 7px; } .scene-caption .eyebrow { font-size: 7px; } .scene-caption-note { font-size: 7px; } .pitch-line { padding-top: 28px; } .pitch-line p { font-size: 16px; } .ages, .mecas, .journal, .genese { padding: 28px 18px 5px; } .sect-head h2 { font-size: 23px; } .sect-head .meta { font-size: 8px; } .meca-grid { grid-template-columns: 1fr; } .genese-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding: 20px; } .genese { padding-bottom: 30px; } dialog { padding: 28px 23px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .bubble { opacity: 1; } }
