/* Get Low. Page shell, HUD and every screen. One web font (the site's Fraunces), everything else system. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
html, body { margin: 0; height: 100%; background: #1b2438; overflow: hidden; overscroll-behavior: none; }
#app { position: fixed; inset: 0; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ui { position: absolute; inset: 0; pointer-events: none; }
#ui:empty::before { content: "Loading Get Low\2026"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(245, 241, 234, .78); font: 600 20px/1.3 "Fraunces", Georgia, serif; }

.alp {
  --bone: #f4f1ea; --paper: #fffdf8; --ink: #1b2230; --muted: #59606e; --navy: #13284b; --alp: #24507c; --alp-d: #183a5c; --alp-soft: #dfe8f0;
  --gold: #e3a13a; --bolt: #ffd84a; --ochre: #b5532a; --ochre-d: #8e3c1b; --red: #c63b2b; --euc: #4b7055; --storm: #2f3448;
  --line: rgba(27, 34, 48, .14); --dk: rgba(12, 20, 36, .6);
  --fd: "Fraunces", Georgia, "Times New Roman", serif; --fb: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px);
  --pt: max(10px, var(--st)); --pr: max(12px, var(--sr)); --pb: max(10px, var(--sb)); --pl: max(12px, var(--sl));
  --sh: 0 18px 50px rgba(8, 14, 26, .34), 0 2px 8px rgba(8, 14, 26, .18);
  position: absolute; inset: 0; overflow: hidden; color: var(--ink); font: 15px/1.4 var(--fb);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.alp *, .alp *::before, .alp *::after { box-sizing: border-box; }
:where(.alp) :where(h1, h2, h3, h4, p, ul, ol, table) { margin: 0; }
:where(.alp) :where(ul, ol) { list-style: none; padding: 0; }
.alp svg { display: block; }
.alp :focus { outline: none; }
.alp :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.alp a { color: var(--alp); text-underline-offset: .18em; }

.L { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s; }
.L.on { visibility: visible; opacity: 1; transition: opacity .3s; }
.title.on, .map.on, .intro.on, .junc.on, .forkc.on, .res.on, .fail.on, .pause.on, .album.on, .notes.on, .rot.on { pointer-events: auto; }

.panel { background: rgba(244, 241, 234, .97); border-radius: 22px; box-shadow: var(--sh); }
.kick { font: 700 11px/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--alp); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.row.sm { margin-top: 10px; gap: 4px 16px; }
.col { display: grid; gap: 10px; margin-top: 16px; }
.sm { font-size: 13px; color: var(--muted); margin-top: 10px; }
small { font-size: .82em; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 99px;
  border: 2px solid var(--ink); background: var(--ink); color: var(--bone); font: 700 15px/1.1 var(--fb); text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: transform .15s, background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--alp); border-color: var(--alp); color: #fff; }
.btn:active { transform: scale(.96); }
.btn.go { background: var(--alp); border-color: var(--alp); color: #fff; min-height: 50px; padding: 0 24px; font-size: 16px; box-shadow: 0 6px 18px rgba(36, 80, 124, .35); }
.btn.go:hover { background: var(--alp-d); border-color: var(--alp-d); }
.btn.gh { background: transparent; color: var(--ink); }
.btn.gh:hover { background: var(--ink); color: var(--bone); }
.lnk { background: none; border: 0; padding: 4px 0; font: 600 13px/1.3 var(--fb); color: var(--alp); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.ib { width: 44px; height: 44px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; border: 0; padding: 0; background: var(--ink); color: var(--bone);
  cursor: pointer; font: 700 20px/1 var(--fb); transition: transform .15s, background-color .2s; }
.ib:hover { background: var(--alp); color: #fff; }
.ib:active { transform: scale(.93); }
.ib svg { width: 22px; height: 22px; fill: currentColor; }
.ib.dk { background: var(--dk); box-shadow: 0 2px 10px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.st { display: inline-flex; gap: 2px; }
.st i { width: 18px; height: 18px; color: rgba(27, 34, 48, .2); }
.st i.on { color: var(--gold); }
.st svg { width: 100%; height: 100%; fill: currentColor; }
.st.big i { width: 34px; height: 34px; }

/* ---------- title ---------- */
.title { display: flex; align-items: center; padding: var(--pt) var(--pr) var(--pb) var(--pl); }
.tcard { width: min(560px, 100%); padding: clamp(16px, 4vh, 36px) clamp(18px, 4vw, 36px); position: relative; max-height: 100%; overflow: auto; }
.title.on .tcard { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.tcard > .snd { position: absolute; top: 12px; right: 12px; }
.wm { margin: 10px 0 8px; font: 700 clamp(44px, 12vh, 92px)/.92 var(--fd); color: var(--navy); letter-spacing: -.02em; }
.wm::after { content: ""; display: block; width: 2.1em; height: .09em; margin-top: .12em; background: linear-gradient(90deg, var(--bolt), var(--gold)); border-radius: 2px; transform: skewX(-24deg); }
.pitch { font: 500 clamp(15px, 2.2vh + 7px, 20px)/1.3 var(--fd); color: var(--alp-d); max-width: 36ch; }
.howto { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.howto .coarse, .alp.touch .howto .fine { display: none; }
.alp.touch .howto .coarse { display: inline; }
.credit { font-size: 12.5px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-height: 430px) { .tcard { padding: 12px 20px; } .wm { font-size: 48px; margin: 6px 0 4px; } .pitch { font-size: 15px; } .row { margin-top: 10px; } }

/* ---------- the start map ---------- */
.map { background: linear-gradient(180deg, rgba(14, 22, 38, .82), rgba(14, 22, 38, .93)); overflow: auto; padding: var(--pt) var(--pr) var(--pb) var(--pl); -webkit-overflow-scrolling: touch; }
.mwrap { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.mhead { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; color: var(--bone); }
.mhead h2 { font: 700 clamp(22px, 4vh, 32px)/1.05 var(--fd); color: #fff; }
.mhead .kick { color: #b9cfe4; }
.mstats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mstats div { background: rgba(244, 241, 234, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 9px 12px; color: #fff; }
.mstats b { display: block; font: 700 clamp(17px, 3vh, 24px)/1.1 var(--fd); color: var(--bolt); }
.mstats span { display: block; font-size: 12px; color: #c9d6e3; margin-top: 2px; }
.mmap { grid-column: 1; background: #cfdbe4; border-radius: 18px; overflow: hidden; box-shadow: var(--sh); }
.mprof { grid-column: 1; background: rgba(244, 241, 234, .96); border-radius: 14px; padding: 6px 8px 2px; }
.msel { grid-column: 2; grid-row: 3 / span 2; padding: 16px 18px 18px; align-self: start; }
.msel h3 { font: 700 clamp(22px, 4vh, 30px)/1.08 var(--fd); color: var(--navy); margin: 4px 0 4px; }
.msel .lr { font: 600 16px/1.3 var(--fd); color: var(--alp-d); }
.msel .lf { margin-top: 6px; }
.msel .lb { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.fullw { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.fullw input { width: 18px; height: 18px; vertical-align: -3px; accent-color: var(--alp); }
.fullr { font-weight: 700; color: var(--alp-d); }
.mlist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lcard { width: 100%; text-align: left; display: grid; gap: 2px; padding: 11px 13px 10px; border-radius: 14px; border: 2px solid transparent; background: rgba(244, 241, 234, .95); color: var(--ink);
  font: 13.5px/1.3 var(--fb); cursor: pointer; transition: transform .15s, border-color .15s; }
.lcard:hover { transform: translateY(-2px); }
.lcard.sel { border-color: var(--bolt); box-shadow: 0 0 0 3px rgba(255, 216, 74, .35); }
.lcard .ln { font: 700 10.5px/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--alp); }
.lcard b { font: 700 16.5px/1.15 var(--fd); color: var(--navy); }
.lcard .lr { color: var(--alp-d); font-weight: 600; }
.lcard .lf { color: var(--muted); font-size: 12px; }
.mfine { grid-column: 1 / -1; color: #c9d6e3; font-size: 13px; display: grid; gap: 6px; padding: 4px 4px 12px; max-width: 90ch; }
.mfine b { color: #fff; }
.mfine a { color: var(--bolt); }
@media (max-width: 800px) {
  .mwrap { grid-template-columns: minmax(0, 1fr); }
  .mstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msel { grid-column: 1; grid-row: auto; }
}
@media (max-height: 460px) and (min-width: 700px) {
  .mwrap { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 10px; }
  .mstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mstats div { padding: 6px 10px; }
  .msel { padding: 12px 14px; }
}

/* the route map + profiles (SVG) */
.rmap { width: 100%; height: auto; }
.rmap .sea { fill: #a9c3d6; }
.rmap .land { fill: #ebe4d3; stroke: #8fa9bc; stroke-width: .25; }
.rmap .bd { fill: none; stroke: #8a8070; stroke-width: .28; stroke-dasharray: 1.2 .7; }
.rmap .st { font: 700 2.3px/1 system-ui, sans-serif; letter-spacing: .25em; fill: #a69c88; }
.rmap .lg { fill: none; stroke: #7b5a48; stroke-width: .75; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.rmap .lg:nth-child(4n+3) { stroke: #a36a3e; }
.rmap .lg.done { stroke: #3f7a5a; opacity: .95; }
.rmap .lg.sel { stroke: #13284b; stroke-width: 2.2; opacity: 1; }
.rmap .hit { fill: none; stroke: transparent; stroke-width: 5; cursor: pointer; pointer-events: stroke; }
.rmap .end { fill: #fffdf8; stroke: #13284b; stroke-width: .3; }
.rmap .end.big { fill: #e3a13a; }
.rmap .bdg { cursor: pointer; }
.rmap .bdg circle { fill: #fffdf8; stroke: #13284b; stroke-width: .3; }
.rmap .bdg.done circle { fill: #3f7a5a; }
.rmap .bdg.done text { fill: #fff; }
.rmap .bdg.sel circle { fill: #13284b; }
.rmap .bdg.sel text { fill: #ffd84a; }
.rmap .bdg text { font: 800 2.4px/1 system-ui, sans-serif; fill: #13284b; text-anchor: middle; }
.rmap .pk { fill: #59606e; }
.rmap .city { fill: #1b2230; }
.rmap .pl { font: 600 2px/1 system-ui, sans-serif; fill: #1b2230; paint-order: stroke; stroke: rgba(235, 228, 211, .9); stroke-width: .5px; }
.rmap .pl.city { font-weight: 800; }
.rmap .pl.end { font-weight: 800; fill: #8e3c1b; }
.rmap .cr { font: 500 1.5px/1 system-ui, sans-serif; fill: #59606e; }
.rprof { width: 100%; height: auto; }
.rprof .band { fill: transparent; cursor: pointer; }
.rprof .band:nth-child(even) { fill: rgba(36, 80, 124, .05); }
.rprof .band.done { fill: rgba(63, 122, 90, .14); }
.rprof .band.sel { fill: rgba(255, 216, 74, .4); }
.rprof .pf { fill: #4f6e8c; opacity: .9; pointer-events: none; }
.rprof .gl { stroke: rgba(27, 34, 48, .12); stroke-width: 1; }
.rprof .gt { font: 600 9px/1 system-ui, sans-serif; fill: #59606e; }
.rprof .lm { font: 700 9.5px/1 system-ui, sans-serif; fill: #13284b; pointer-events: none; paint-order: stroke; stroke: rgba(244, 241, 234, .9); stroke-width: 3px; }
.rprof .ln { font: 800 10px/1 system-ui, sans-serif; fill: #24507c; pointer-events: none; }
.prof { width: 100%; }
.prof .pf { fill: #4f6e8c; opacity: .88; }
.prof .pm { stroke: #fff; stroke-width: 1.2; opacity: .8; }
.prof .gt { font: 600 8px/1 system-ui, sans-serif; fill: #fff; }

/* ---------- intro card ---------- */
.intro { display: grid; place-items: center; padding: var(--pt) var(--pr) var(--pb) var(--pl); background: radial-gradient(ellipse at center, rgba(8, 14, 26, .15) 30%, rgba(8, 14, 26, .58)); }
.icard { display: grid; grid-template-columns: minmax(140px, .75fr) 1.3fr; gap: 18px; width: min(860px, 100%); max-height: 100%; overflow: auto; padding: clamp(14px, 3vh, 26px); }
.intro.on .icard { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.imap { display: grid; place-items: center; min-height: 0; border-radius: 14px; overflow: hidden; align-self: start; }
.imap svg { width: 100%; height: auto; }
.ititle { font: 700 clamp(26px, 5vh, 40px)/1.02 var(--fd); color: var(--navy); margin: 4px 0 6px; }
.iroute { font: 600 17px/1.3 var(--fd); color: var(--alp-d); }
.ifacts { margin-top: 4px; }
.iblurb { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.ifore { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--alp-soft); font-size: 14px; }
.iprof { margin-top: 10px; border-radius: 8px; overflow: hidden; background: #273a52; }
.iprof .prof { height: 56px; }
.ipack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-weight: 600; font-size: 14px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 14px; font: 700 14px/1 var(--fb); color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.on { background: var(--ink); color: var(--bone); }
.ipnote { flex-basis: 100%; }
@media (max-width: 640px) and (orientation: portrait) { .icard { grid-template-columns: 1fr; } .imap { max-width: 320px; } }
@media (max-height: 460px) { .icard { gap: 12px; } .iblurb { display: none; } .ifore { margin-top: 6px; } }

/* ---------- HUD ---------- */
.hud { color: #fff; }
.hud.on { pointer-events: none; }
.hud .hl, .hud .hr { position: absolute; top: var(--pt); display: flex; align-items: center; gap: 6px; }
.hud .hl { left: var(--pl); background: var(--dk); padding: 7px 14px; border-radius: 99px; font: 600 13px/1 var(--fb); gap: 10px; font-variant-numeric: tabular-nums; }
.hud .hl b { font-family: var(--fd); font-size: 15px; }
.hud .hr { right: var(--pr); pointer-events: auto; }
.hud .hp { position: absolute; top: var(--pt); left: 50%; transform: translateX(-50%); width: min(220px, 22vw); height: 34px; background: var(--dk); border-radius: 10px; overflow: hidden; }
.hud .hp .prof { width: 100%; height: 100%; }
.hud .hp .pf { fill: rgba(223, 232, 240, .55); }
.hud .hdot { position: absolute; top: 4px; bottom: 4px; width: 3px; margin-left: -1.5px; background: var(--bolt); border-radius: 2px; box-shadow: 0 0 6px var(--bolt); }
.meter { display: inline-flex; align-items: center; gap: 5px; background: var(--dk); padding: 6px 9px; border-radius: 99px; font: 700 12.5px/1 var(--fb); }
.meter svg { width: 15px; height: 15px; fill: currentColor; }
.meter i { width: 44px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; display: block; }
.meter i b { display: block; height: 100%; transition: width .3s; }
.meter.warm i b { background: linear-gradient(90deg, #6fb3e0, #e3a13a 60%, #e06a3a); }
.meter.wat i b { background: linear-gradient(90deg, #4f9fd8, #8fd0f0); }
.meter.warm.cold { animation: pulse 1s infinite; }
.meter.warm.cold svg { color: #7fc4ff; }
.meter.warm.hot svg { color: #ff9a6a; }
.meter.wat.low { animation: pulse 1s infinite; }
.meter em { font-style: normal; font-variant-numeric: tabular-nums; }
.hearts { display: inline-flex; gap: 2px; background: var(--dk); padding: 5px 8px; border-radius: 99px; }
.hearts i { width: 17px; height: 17px; color: rgba(255, 255, 255, .25); }
.hearts i.on { color: #f2c873; }
.hearts svg { width: 100%; height: 100%; fill: currentColor; }
@media (max-width: 1180px) { .hud .hp { display: none; } }
@media (max-width: 760px) { .meter i { width: 30px; } .hud .hl span.hkm { display: none; } }
@media (max-width: 520px) { .meter.food, .hud .hr .snd { display: none; } }
.prompt, .nudge { position: absolute; left: 50%; transform: translate(-50%, -6px); top: calc(var(--pt) + 48px); max-width: min(92vw, 560px); text-align: center;
  padding: 9px 16px; border-radius: 14px; font: 700 15px/1.25 var(--fb); opacity: 0; transition: opacity .2s, transform .2s; }
.prompt { background: rgba(198, 59, 43, .94); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.prompt.on { opacity: 1; transform: translate(-50%, 0); animation: throb 1s infinite; }
.nudge { top: calc(var(--pt) + 92px); background: rgba(19, 40, 75, .86); font-weight: 600; }
.nudge.on { opacity: 1; transform: translate(-50%, 0); }
.hud.tele .nudge { background: rgba(255, 216, 74, .96); color: #1b2230; font-weight: 800; font-size: 17px; animation: throb .35s infinite; }
.mark { position: absolute; left: 0; right: 0; top: 27%; text-align: center; opacity: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.mark b { display: block; font: 700 clamp(28px, 7vh, 54px)/1 var(--fd); letter-spacing: -.01em; }
.mark span { display: block; margin-top: 6px; font: 600 15px/1.3 var(--fb); letter-spacing: .04em; }
.mark.on { animation: markin 4.2s ease both; }
.hud.tele .mark { visibility: hidden; }
/* the storm counter */
.storm-w { position: absolute; left: var(--pl); top: calc(var(--pt) + 44px); display: none; align-items: center; gap: 7px; background: rgba(22, 26, 40, .78); padding: 6px 12px; border-radius: 99px;
  font: 600 13px/1 var(--fb); box-shadow: inset 0 0 0 1px rgba(255, 216, 74, .35); }
.hud.storm .storm-w { display: inline-flex; }
.storm-w svg { width: 16px; height: 16px; fill: var(--bolt); }
.storm-w b { font: 800 17px/1 var(--fb); color: var(--bolt); min-width: 1.2em; text-align: right; font-variant-numeric: tabular-nums; }
.storm-w em { font-style: normal; font-weight: 800; padding: 3px 8px; border-radius: 99px; margin-left: 4px; }
.storm-w em.ok { background: rgba(75, 112, 85, .9); }
.storm-w em.mid { background: rgba(181, 120, 42, .95); }
.storm-w em.bad { background: rgba(198, 59, 43, .95); }
/* controls: left thumb = brakes (STOP, GET LOW above it, jacket), right thumb = STEP */
.ctl { position: absolute; left: 0; right: 0; bottom: var(--pb); padding: 0 var(--pr) 0 var(--pl); display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.lcol { display: grid; gap: 10px; justify-items: start; }
.lrow { display: flex; align-items: flex-end; gap: 14px; }
.cb { pointer-events: auto; touch-action: none; width: 92px; height: 92px; border-radius: 50%; border: 0; display: grid; place-content: center; gap: 2px; text-align: center;
  background: rgba(12, 20, 36, .5); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .25); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .1s, background-color .15s; }
.cb b { font: 800 16px/1 var(--fb); letter-spacing: .06em; }
.cb small { font: 600 10px/1 var(--fb); opacity: .75; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.cb:active, .cb.on { transform: scale(.94); background: rgba(198, 59, 43, .75); }
.cb.step:active { background: rgba(75, 112, 85, .85); }
.cb.jk { width: 64px; height: 64px; }
.cb.jk svg { width: 26px; height: 26px; fill: currentColor; margin: 0 auto; }
.cb.jk.on { background: rgba(217, 154, 30, .9); transform: none; }
.cb.jk.busy { animation: pulse .5s infinite; }
.cb.low { display: none; width: 104px; height: 82px; border-radius: 26px; background: rgba(60, 52, 18, .62); box-shadow: inset 0 0 0 2px rgba(255, 216, 74, .8), 0 6px 18px rgba(0, 0, 0, .3); }
.cb.low svg { width: 24px; height: 24px; fill: var(--bolt); margin: 0 auto; }
.cb.low b { font-size: 15px; color: var(--bolt); }
.cb.low.on { background: rgba(255, 216, 74, .9); }
.cb.low.on b, .cb.low.on svg { color: #1b2230; fill: #1b2230; }
.hud.storm .cb.low { display: grid; }
.hud.tele .cb.low:not(.on) { animation: alarm .3s infinite; }
.hud.dogs .cb.stop { background: rgba(36, 80, 124, .85); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .8), 0 6px 18px rgba(0, 0, 0, .3); }
.hud.dogs .cb.stop b { font-size: 12.5px; }
.alp:not(.touch) .cb.stop, .alp:not(.touch) .cb.step { width: 76px; height: 76px; opacity: .85; }
.alp:not(.touch) .cb.low { width: 92px; height: 70px; }
.alp:not(.touch) .cb.stop small::after { content: " · shift"; }
.alp:not(.touch) .cb.step small::after { content: " · space"; }
.alp:not(.touch) .cb.jk small::after { content: " · J"; }
.alp:not(.touch) .cb.low small::after { content: " · G"; }
@media (max-height: 430px) { .cb { width: 82px; height: 82px; } .cb.low { width: 96px; height: 70px; } .lcol { gap: 8px; } }
.hud .nhud, .hud .fincap { display: none; }
.hud.night .ctl, .hud.night .hp, .hud.night .hl, .hud.night .meter, .hud.night .hearts, .hud.night .storm-w,
.hud.fin .ctl, .hud.fin .hp, .hud.fin .meter, .hud.fin .hearts, .hud.fin .hl, .hud.fin .storm-w { display: none; }
.hud.night .nhud { display: block; }
.nhud > span { position: absolute; top: var(--pt); display: inline-flex; align-items: center; gap: 6px; background: var(--dk); padding: 7px 12px; border-radius: 99px; font: 700 14px/1 var(--fb); }
.nhud .ntime { left: var(--pl); }
.nhud .nfood { left: calc(var(--pl) + 120px); }
.nhud svg { width: 16px; height: 16px; fill: currentColor; }
.nhud em { font-style: normal; }
.nhint { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--pt) + 46px); padding: 8px 14px; background: var(--dk); border-radius: 99px; font: 600 13px/1.2 var(--fb); white-space: nowrap; }
.hud.fin .fincap { display: block; position: absolute; left: 50%; bottom: calc(var(--pb) + 18px); transform: translateX(-50%); width: min(92vw, 620px); text-align: center; padding: 12px 18px;
  background: var(--dk); border-radius: 16px; font: 600 17px/1.35 var(--fd); opacity: 0; }
.hud.fin .fincap.on { animation: capin 4.2s ease both; }

/* the umbles: the colder you are, the worse the HUD behaves */
.alp.umble2 .hud .hl, .alp.umble2 .hud .hr .meter { animation: wobble 1.6s infinite; }
.alp.umble3 .hud .hl, .alp.umble3 .toasts { filter: blur(1.2px); }
.alp.umble1::before { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(170, 215, 255, .35); z-index: 1; }
.alp.umble3::before { box-shadow: inset 0 0 160px rgba(200, 230, 255, .7); }

/* ---------- toasts ---------- */
.toasts { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--pb) + 14px); display: grid; gap: 6px; justify-items: center; width: min(92vw, 520px); pointer-events: none; z-index: 2; }
.toast { padding: 7px 14px; border-radius: 12px; background: rgba(12, 20, 36, .8); color: #fff; font: 600 14px/1.3 var(--fb); text-align: center; animation: tin .25s ease both; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
.toast.good { background: rgba(75, 112, 85, .93); }
.toast.warn { background: rgba(181, 120, 42, .93); }
.toast.bad { background: rgba(198, 59, 43, .93); }
.toast.sight { background: rgba(19, 40, 75, .92); box-shadow: inset 0 0 0 1px rgba(227, 161, 58, .7); }
.toast.note { background: rgba(255, 216, 74, .96); color: #1b2230; font-weight: 700; }
@media (max-height: 430px) { .toasts { width: min(52vw, 440px); } .prompt { top: calc(var(--pt) + 42px); } .nudge { top: calc(var(--pt) + 80px); } .mark { top: 37%; } .mark b { font-size: 30px; } }

/* ---------- side trip + fork cards ---------- */
.junc, .forkc { display: grid; place-items: center; background: rgba(8, 14, 26, .25); padding: var(--pt) var(--pr) var(--pb) var(--pl); }
.jcard { width: min(460px, 100%); padding: 18px 22px 20px; position: relative; overflow: hidden; }
.jcard h3 { font: 700 26px/1.1 var(--fd); color: var(--navy); margin: 4px 0 6px; }
.jdist { font-weight: 600; }
.jnote, .fhint { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.fhint { color: var(--ink); background: var(--alp-soft); padding: 8px 12px; border-radius: 12px; }
.jwarn { color: var(--red); font-weight: 700; margin-top: 6px; }
.jwarn:empty { display: none; }
.jbar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--alp); }

/* ---------- results, fail, pause ---------- */
.res, .fail, .pause { display: grid; place-items: center; padding: var(--pt) var(--pr) var(--pb) var(--pl); background: rgba(8, 14, 26, .45); }
.rcard { width: min(580px, 100%); max-height: 100%; overflow: auto; padding: clamp(14px, 3vh, 26px) clamp(16px, 4vw, 28px); }
.res.on .rcard, .fail.on .rcard { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.rcard h2 { font: 700 clamp(26px, 5vh, 38px)/1.05 var(--fd); color: var(--navy); margin: 4px 0 6px; }
.rtime { margin: 8px 0; }
.lines { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.lines td { padding: 3px 0; border-bottom: 1px solid var(--line); }
.lines td:last-child { text-align: right; font-weight: 700; }
.lines .tot td { border: 0; padding-top: 8px; font: 700 18px/1 var(--fd); color: var(--alp-d); }
.lines em { font: 700 12px var(--fb); color: var(--euc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 10px; font: 600 13px var(--fb); cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--alp); }
.chip.nt { background: #fff4c8; border-color: rgba(227, 161, 58, .6); }
.fin { margin-top: 10px; font-weight: 600; color: var(--euc); }
.why { font-weight: 700; color: var(--red); margin: 6px 0; }
.tnote { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff4c8; border: 1px solid rgba(227, 161, 58, .5); }
.tnote h3 { font: 700 19px/1.2 var(--fd); color: var(--navy); margin: 2px 0 4px; }
.quiz { margin-top: 12px; }
.qq { font-weight: 700; }
.qo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qb { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 8px 11px; font: 600 13.5px/1.25 var(--fb); color: var(--ink); cursor: pointer; text-align: left; }
.qb.y { background: #d9ecd9; border-color: #4b7055; }
.qb.n { background: #f6d6d0; border-color: #c63b2b; text-decoration: line-through; }
.qr { margin-top: 6px; font-weight: 600; color: var(--alp-d); min-height: 1.3em; }
.pcard { width: min(360px, 100%); padding: 22px; text-align: center; }
.alp:has(.res.on) .toasts, .alp:has(.fail.on) .toasts, .alp:has(.notes.on) .toasts { display: none; }
@media (max-height: 520px) and (min-width: 700px) {
  .rcard { width: min(920px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-content: start; grid-auto-flow: row dense; }
  .rcard > * { grid-column: 1; }
  .res .rcard > .lines { grid-column: 2; grid-row: 1 / span 14; align-self: start; margin-top: 4px; }
  .fail .rcard > .fcol + .fcol { grid-column: 2; grid-row: 1; }
  .fail .rcard .quiz { margin-top: 0; }
}
.pcard h2 { font: 700 30px/1 var(--fd); color: var(--navy); }

/* ---------- album + notes ---------- */
.album, .notes { display: grid; place-items: center; padding: var(--pt) var(--pr) var(--pb) var(--pl); background: rgba(8, 14, 26, .5); z-index: 5; }
.sheet { width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.sheet header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet h2 { font: 700 26px/1 var(--fd); color: var(--navy); }
.sheet .grid, .sheet .nbody { overflow: auto; padding: 16px 18px 22px; -webkit-user-select: text; user-select: text; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sp, .tn { background: var(--paper); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); opacity: .65; }
.sp.seen, .tn.got { opacity: 1; }
.tn.got { background: #fffaf0; border-color: rgba(227, 161, 58, .55); }
.sp.focus, .tn.focus { box-shadow: 0 0 0 3px var(--gold); }
.sp h3, .tn h4 { font: 700 18px/1.2 var(--fd); color: var(--navy); }
.sp .sci { font-style: italic; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.sp p, .tn p { font-size: 14px; margin-top: 4px; }
.sp .where { color: var(--muted); font-size: 13px; }
.nbody section { margin-top: 16px; }
.nbody h3 { font: 700 20px/1.2 var(--fd); color: var(--navy); margin-bottom: 8px; }
.nintro { max-width: 70ch; }
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.about { max-width: 75ch; }

/* ---------- rotate hint ---------- */
.rot { z-index: 30; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% 30%, #2a3c62, #1b2438 70%); }
.rot p { font: 600 24px/1.25 var(--fd); max-width: 15ch; }

.alp.hit::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(198, 59, 43, .85); animation: hit .6s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }
@keyframes markin { 0% { opacity: 0; transform: translateY(8px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes capin { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes throb { 50% { transform: translate(-50%, 0) scale(1.03); } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes alarm { 50% { box-shadow: inset 0 0 0 4px rgba(255, 216, 74, 1), 0 0 26px rgba(255, 216, 74, .9); transform: scale(1.06); } }
@keyframes wobble { 25% { transform: translate(1px, -1px) rotate(-.6deg); } 75% { transform: translate(-1px, 1px) rotate(.6deg); } }
@keyframes hit { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .prompt.on, .meter.warm.cold, .meter.wat.low, .hud.tele .nudge, .hud.tele .cb.low:not(.on), .alp.umble2 .hud .hl, .alp.umble2 .hud .hr .meter { animation: none; } }
