
:root {
 --ink: #0f1a14;
 --paper: #f4f1e8;
 --moss: #c6ab78;
 --deep: #10202c;
 --wyld-green: #85BD4E;
 --scrim: rgba(9, 18, 14, 0.62);
 --ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
 --num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body {
 margin: 0;
 min-height: 100dvh;
 font-family: var(--ui);
 color: var(--paper);
 background: var(--deep);
}
.backdrop {
 position: fixed;
 inset: 0;
 z-index: -1;
 background:
 linear-gradient(var(--scrim), var(--scrim)),
 url('../assets/bg.jpg') center / cover no-repeat;
}
.visually-hidden {
 position: absolute; width: 1px; height: 1px;
 margin: -1px; padding: 0; overflow: hidden;
 clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.gate {
 position: fixed; inset: 0; z-index: 50;
 display: grid; place-items: center;
 padding: 1.5rem;
 background: rgba(8, 16, 12, 0.92);
}
.gate__card {
 max-width: 24rem; width: 100%;
 text-align: center;
 background: var(--paper); color: var(--ink);
 border-radius: 14px; padding: 2rem 1.5rem;
}
.gate__logo { width: 190px; max-width: 70%; height: auto; margin-bottom: 1rem; }
.gate__card h1 { font-size: 1.25rem; margin: 0 0 .4rem; }
.gate__card p { margin: 0 0 1rem; font-size: .95rem; }
.gate__dob { display: flex; gap: .5rem; justify-content: center; margin-bottom: .6rem; }
.gate__dob label { display: grid; gap: .25rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.gate__dob input {
 width: 4.2rem; padding: .55rem; font-size: 1.1rem; text-align: center;
 font-family: var(--num);
 border: 1px solid #b9b2a0; border-radius: 8px; background: #fff; color: var(--ink);
}
.gate__dob label:last-child input { width: 5.6rem; }
.gate__error { color: #a3251b; min-height: 1.2em; font-size: .85rem; }
button {
 font: inherit; font-weight: 600;
 padding: .7rem 1.2rem; border: 0; border-radius: 999px;
 background: var(--wyld-green); color: #10250a;
 cursor: pointer;
}
button.ghost { background: rgba(255,255,255,.14); color: var(--paper); }
.result__card button.ghost,
.gate__card button.ghost {
 background: transparent;
 color: var(--ink);
 box-shadow: inset 0 0 0 2px rgba(15, 26, 20, .35);
}
.result__card button.ghost:hover,
.gate__card button.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
button:disabled { opacity: .4; cursor: default; }
.brandhead { text-align: center; padding: 2rem 1rem .5rem; }
.lockup { display: grid; justify-items: center; gap: 0; }
.lockup__mark { width: 210px; max-width: 62%; height: auto; filter: invert(1) brightness(1.9); }
.lockup__word {
 margin: -1.05rem 0 0; font-size: 1.28rem; letter-spacing: .38em;
 text-indent: .55em; font-weight: 300; line-height: 1;
}
.lockup--sm .lockup__mark { width: 96px; max-width: none; }
.lockup--sm .lockup__word { font-size: .66rem; letter-spacing: .3em; text-indent: .3em; margin-top: -.5rem; }
.presented {
 display: flex; align-items: center; justify-content: center; gap: .5rem;
 font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
 opacity: .75; margin: 1rem 0 0;
}
.presented img { height: 18px; width: auto; }
.mapbar {
 position: sticky; top: 0; z-index: 5;
 display: flex; align-items: center; justify-content: space-between; gap: 1rem;
 max-width: 34rem; margin: .5rem auto 0; padding: .6rem 1rem;
 background: rgba(8, 16, 12, .72); border-radius: 999px;
 backdrop-filter: blur(4px);
}
.mapbar__stars { margin: 0; font-family: var(--num); font-size: .82rem; color: var(--trail); }
.mapbar__sound { margin: 0; display: flex; gap: .4rem; }
.mapbar__sound .ghost { padding: .35rem .7rem; font-size: .7rem; }
.mapbar__sound [aria-pressed="false"] { opacity: .5; }
.map {
 position: relative;
 max-width: 34rem;
 margin: 0 auto 4rem;
}
.map__path { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.map__path-under { stroke: rgba(8, 18, 12, .55); }
.map__path-over { stroke: rgba(244, 241, 232, .5); stroke-dasharray: 3 7; stroke-linecap: round; }
.node {
 position: absolute; transform: translate(-50%, -50%);
 width: 3.4rem; height: 3.4rem; padding: 0;
 display: grid; place-content: center; gap: 0;
 border-radius: 50%; border: 2px solid rgba(255,255,255,.55);
 background: rgba(16, 32, 24, .82); color: var(--paper);
 box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.node__n { font-family: var(--num); font-size: 1.1rem; line-height: 1; }
.node__stars { font-size: .5rem; letter-spacing: .06em; color: var(--trail); line-height: 1.4; }
.node__name {
 position: absolute; top: calc(100% + .3rem); left: 50%; transform: translateX(-50%);
 white-space: nowrap; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
 opacity: .8; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.node--done { background: rgba(30, 62, 40, .9); border-color: rgba(133, 189, 78, .8); }
.node--next { border-color: var(--wyld-green); box-shadow: 0 0 0 4px rgba(133,189,78,.25), 0 4px 14px rgba(0,0,0,.4); }
.node--locked { opacity: .34; box-shadow: none; }
.node:not(:disabled):hover { border-color: var(--wyld-green); }
.playhead {
 display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
 gap: .6rem; padding: .9rem 1rem .2rem; max-width: 34rem; margin-inline: auto;
}
.playhead > .ghost { justify-self: start; padding: .5rem .9rem; font-size: .8rem; }
.attempt { font-size: .7rem; opacity: .6; margin: 0; justify-self: end; text-align: right; }
.levelname {
 font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
 opacity: .72; margin: .5rem 0 0; text-align: center;
}
.hud {
 display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
 max-width: 34rem; margin: .6rem auto; padding: .7rem 1rem;
 background: rgba(10, 20, 15, .55); border-radius: 14px;
}
.hud__stat { display: grid; }
.hud__label { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.hud__num { font-family: var(--num); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.hud__objectives { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; flex-wrap: wrap; flex: 1; }
.obj { display: flex; align-items: center; gap: .35rem; font-size: .8rem; }
.obj--done { opacity: .5; text-decoration: line-through; }
.obj__swatch { width: .8rem; height: .8rem; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.wind {
 width: min(92vw, 32rem);
 margin: .5rem auto .35rem;
 display: flex; align-items: center; gap: .6rem;
}
.wind__track {
 flex: 1; height: 6px; border-radius: 999px;
 background: rgba(10, 20, 15, .55);
 overflow: hidden;
}
.wind__fill {
 height: 100%; width: 0%;
 background: linear-gradient(90deg, rgba(133,189,78,.7), var(--wyld-green));
 transition: width 180ms ease-out;
}
.wind__label {
 margin: 0; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
 opacity: .5; white-space: nowrap;
}
.wind--full .wind__fill { background: linear-gradient(90deg, var(--wyld-green), #e8ffd0); }
.wind--full .wind__label { opacity: 1; color: var(--wyld-green); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .wind__fill { transition: none; } }
.boardwrap {
 width: min(92vw, 32rem);
 aspect-ratio: 1;
 margin-inline: auto;
 border-radius: 18px;
 overflow: hidden;
 background: rgba(6, 14, 10, .35);
}
#board {
 display: block; width: 100%; height: 100%;
 touch-action: none; 
 outline: none;
}
#board:focus-visible { box-shadow: inset 0 0 0 3px var(--wyld-green); }
.hint, .tools { text-align: center; font-size: .78rem; opacity: .7; margin: .8rem 1rem; }
.result {
 position: fixed; inset: 0; z-index: 40;
 display: grid; place-items: center; padding: 1.5rem;
 background: rgba(6, 12, 9, .78);
}
.result__card {
 max-width: 22rem; width: 100%; text-align: center;
 background: var(--paper); color: var(--ink);
 border-radius: 16px; padding: 1.8rem 1.5rem;
}
.result__kicker { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin: 0; }
.result__card h2 { margin: .3rem 0 .6rem; }
.result__stars { font-size: 1.6rem; letter-spacing: .2em; margin: 0 0 .4rem; color: var(--trail); }
.result__score { font-family: var(--num); margin: 0 0 1.2rem; }
.result__actions { display: flex; gap: .6rem; justify-content: center; }
.result__card .presented { opacity: .5; }
.result__card .presented img { filter: none; }
.howto { overflow-y: auto; padding: 1rem 0; align-items: flex-start; }
.howto__card { max-width: 33rem; text-align: left; margin: auto; }
.howto__card h1 { text-align: center; }
.howto__lede { text-align: center; opacity: .75; }
.howto__body h2 {
 font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
 margin: 1.3rem 0 .5rem; opacity: .6;
}
.howto__body h2:first-child { margin-top: .4rem; }
.howto__body p { font-size: .88rem; margin: 0 0 .6rem; }
.howto__row {
 display: flex; align-items: center; gap: .8rem; margin: 0 0 .9rem; flex-wrap: wrap;
}
.howto__fig { flex: none; border-radius: 8px; background: rgba(20, 30, 22, .5); }
.howto__cap { font-size: .8rem; margin: 0; line-height: 1.35; flex: 1 1 10rem; }
.howto__lede, .howto__cap, .howto__body p {
 text-wrap: balance;
 text-wrap: pretty;
}
.howto__capbody { display: block; margin-top: .2rem; opacity: .82; }
.howto__card > button { margin-top: 1.1rem; width: 100%; }
