/* Watch Your Step. Page shell, HUD and every screen. Brand tokens match wildroads.com.au (assets/site.css). */
@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: #13284b; 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 Watch Your Step\2026"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(245, 241, 234, .78); font: 600 20px/1.3 "Fraunces", Georgia, serif; }

.wys {
  --bone: #f5f1ea; --paper: #fffdf8; --sand: #ebe2d3; --ink: #1c2230; --muted: #5b6270; --navy: #13284b;
  --euc: #4b7055; --euc-soft: #dfe7dc; --ochre: #b5532a; --ochre-d: #8e3c1b; --gold: #e3a13a; --red: #c63b2b;
  --line: rgba(28, 34, 48, .14); --dk: rgba(12, 22, 40, .58);
  --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%;
}
.wys *, .wys *::before, .wys *::after { box-sizing: border-box; }
:where(.wys) :where(h1, h2, h3, p, ul, ol, table) { margin: 0; }
:where(.wys) :where(ul, ol) { list-style: none; padding: 0; }
.wys svg { display: block; }
.wys :focus { outline: none; }
.wys :focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.wys a { color: var(--ochre-d); 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, .days.on, .intro.on, .junc.on, .res.on, .fail.on, .pause.on, .album.on, .notes.on, .rot.on { pointer-events: auto; }

.panel { background: rgba(245, 241, 234, .96); border-radius: 22px; box-shadow: var(--sh); }
.kick { font: 700 11px/1.3 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--euc); }
.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; }
.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(--ochre); border-color: var(--ochre); color: #fff; }
.btn:active { transform: scale(.96); }
.btn.go { background: var(--ochre); border-color: var(--ochre); color: #fff; min-height: 50px; padding: 0 24px; font-size: 16px; box-shadow: 0 6px 18px rgba(181, 83, 42, .35); }
.btn.go:hover { background: var(--ochre-d); border-color: var(--ochre-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(--ochre-d); 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(--ochre); 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(28, 34, 48, .2); }
.st i.on { color: var(--gold); }
.st svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- 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(40px, 11vh, 84px)/.95 var(--fd); color: var(--navy); letter-spacing: -.02em; }
.pitch { font: 500 clamp(15px, 2.2vh + 7px, 20px)/1.3 var(--fd); color: var(--ochre-d); max-width: 34ch; }
.howto { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.howto .coarse, .wys.touch .howto .fine { display: none; }
.wys.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: 46px; margin: 6px 0 4px; } .pitch { font-size: 15px; } .row { margin-top: 10px; } }

/* ---------- day picker ---------- */
.days { background: rgba(10, 18, 34, .55); overflow: auto; padding: var(--pt) var(--pr) var(--pb) var(--pl); }
.dwrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(200px, 330px) 1fr; gap: 16px; align-items: start; }
.dhead { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; color: var(--bone); }
.dhead h2 { font: 700 30px/1 var(--fd); color: #fff; }
.dhead .kick { color: #cfe0cf; }
.dmap { background: rgba(245, 241, 234, .95); border-radius: 18px; padding: 8px; position: sticky; top: 0; }
.dlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dcard { width: 100%; text-align: left; display: grid; gap: 3px; padding: 14px 16px 12px; border-radius: 18px; border: 0; background: rgba(245, 241, 234, .96); color: var(--ink);
  font: 14px/1.35 var(--fb); cursor: pointer; box-shadow: var(--sh); transition: transform .15s; position: relative; }
.dcard:hover { transform: translateY(-2px); }
.dcard .dn { font: 700 11px/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--euc); }
.dcard b { font: 700 19px/1.15 var(--fd); color: var(--navy); }
.dcard .dr { color: var(--ochre-d); font-weight: 600; }
.dcard .df { color: var(--muted); font-size: 12.5px; }
.dcard .prof { width: 100%; height: 40px; margin: 6px 0 2px; }
.dcard .bs { position: absolute; right: 14px; top: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .dwrap { grid-template-columns: 1fr; } .dmap { position: static; max-height: 46vh; } .dmap svg { max-height: 44vh; margin: 0 auto; } }

/* ---------- route map + profiles ---------- */
.rmap { width: 100%; height: auto; }
.rmap .lk { fill: #8fb3c9; stroke: #6f97b0; stroke-width: 40; }
.rmap .tr { fill: none; stroke: #8e3c1b; stroke-width: 160; stroke-linecap: round; stroke-linejoin: round; opacity: .45; }
.rmap .hi { fill: none; stroke: #b5532a; stroke-width: 380; stroke-linecap: round; stroke-linejoin: round; }
.rmap .fe { fill: none; stroke: #13284b; stroke-width: 120; stroke-dasharray: 260 220; opacity: .6; }
.rmap .hut { fill: #fffdf8; stroke: #13284b; stroke-width: 110; }
.rmap .hut.on { fill: #e3a13a; }
.rmap .pk { fill: #5b6270; }
.rmap .pl { font: 600 760px/1 system-ui, sans-serif; fill: #5b6270; }
.rmap .lb { font: 600 800px/1 system-ui, sans-serif; fill: #1c2230; }
.rmap .lb.on { font-weight: 800; fill: #8e3c1b; }
.rmap .cr { font: 500 520px/1 system-ui, sans-serif; fill: #5b6270; }
.prof .pf { fill: #4b7055; opacity: .85; }
.prof .pm { stroke: #fff; stroke-width: 1.2; opacity: .8; }

/* ---------- 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, .55)); }
.icard { display: grid; grid-template-columns: minmax(150px, .8fr) 1.25fr; gap: 18px; width: min(840px, 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; }
.imap svg { max-height: min(62vh, 420px); width: auto; max-width: 100%; }
.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(--ochre-d); }
.ifacts { margin-top: 4px; color: var(--ink); }
.iblurb { margin-top: 8px; color: var(--muted); }
.ifore { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--euc-soft); font-size: 14px; }
.iprof { margin-top: 10px; }
.iprof .prof { width: 100%; height: 56px; }
@media (max-width: 640px) and (orientation: portrait) { .icard { grid-template-columns: 1fr; } .imap svg { max-height: 30vh; } }
@media (max-height: 440px) { .icard { gap: 12px; } .iblurb { display: none; } .imap svg { max-height: 80vh; } }

/* ---------- HUD ---------- */
.hud { color: #fff; }
.hud.on { pointer-events: none; }
.hud .hl, .hud .hr { position: absolute; top: var(--pt); display: flex; align-items: center; gap: 8px; }
.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(240px, 26vw); height: 34px; background: var(--dk); border-radius: 10px; overflow: hidden; }
.hud .hp .prof { width: 100%; height: 100%; }
.hud .hp .pf { fill: rgba(223, 231, 220, .55); }
.hud .hdot { position: absolute; top: 4px; bottom: 4px; width: 3px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; box-shadow: 0 0 6px var(--gold); }
.meter { display: inline-flex; align-items: center; gap: 5px; background: var(--dk); padding: 6px 10px; border-radius: 99px; font: 700 13px/1 var(--fb); }
.meter svg { width: 16px; height: 16px; fill: currentColor; }
.meter.warm i { width: 54px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; display: block; }
.meter.warm i b { display: block; height: 100%; background: linear-gradient(90deg, #6fb3e0, #e3a13a 60%, #e06a3a); transition: width .3s; }
.meter.warm.cold { animation: pulse 1s infinite; }
.meter.warm.cold svg { color: #7fc4ff; }
.meter.warm.hot svg { color: #ff9a6a; }
.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: 18px; height: 18px; color: rgba(255, 255, 255, .25); }
.hearts i.on { color: #f2c873; }
.hearts svg { width: 100%; height: 100%; fill: currentColor; }
.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, .92); 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, .85); font-weight: 600; }
.nudge.on { opacity: 1; transform: translate(-50%, 0); }
.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; }
.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; }
.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, 22, 40, .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; }
.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; margin-right: auto; margin-left: 16px; }
.cb.jk svg { width: 26px; height: 26px; fill: currentColor; margin: 0 auto; }
.cb.jk.on { background: rgba(198, 59, 43, .85); transform: none; }
.wys:not(.touch) .cb.stop, .wys:not(.touch) .cb.step { width: 76px; height: 76px; opacity: .8; }
.wys:not(.touch) .cb.stop small::after { content: " · shift"; }
.wys:not(.touch) .cb.step small::after { content: " · space"; }
.wys:not(.touch) .cb.jk small::after { content: " · J"; }
.hud .nhud, .hud .ferrycap { display: none; }
.hud.night .ctl, .hud.night .hp, .hud.night .hl, .hud.night .meter, .hud.night .hearts, .hud.ferry .ctl, .hud.ferry .hp, .hud.ferry .meter, .hud.ferry .hearts, .hud.ferry .hl { 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 .nboots { left: calc(var(--pl) + 190px); }
.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; }
.cb.cam { position: absolute; right: var(--pr); bottom: var(--pb); display: none; width: 104px; height: 104px; }
.cb.cam.show { display: grid; animation: throb 1.2s infinite; }
.cb.cam svg { width: 30px; height: 30px; fill: currentColor; margin: 0 auto; }
.cb.cam .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#7dffb0 calc(var(--p, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); }
.hud.ferry .ferrycap { 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.ferry .ferrycap.on { animation: capin 4.8s ease both; }

/* ---------- 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; }
.toast { padding: 7px 14px; border-radius: 12px; background: rgba(12, 22, 40, .78); 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, .92); }
.toast.warn { background: rgba(181, 120, 42, .92); }
.toast.bad { background: rgba(198, 59, 43, .92); }
.toast.sight { background: rgba(19, 40, 75, .9); box-shadow: inset 0 0 0 1px rgba(227, 161, 58, .7); }
.toast.ghost { background: rgba(40, 70, 100, .92); box-shadow: 0 0 18px rgba(150, 220, 255, .6); }
@media (max-height: 430px) { .toasts { width: min(56vw, 440px); } .prompt { top: calc(var(--pt) + 42px); } .nudge { top: calc(var(--pt) + 80px); } .mark { top: 30%; } .mark b { font-size: 30px; } }

/* ---------- junction ---------- */
.junc { display: grid; place-items: center; background: rgba(8, 14, 26, .25); padding: var(--pt) var(--pr) var(--pb) var(--pl); }
.jcard { width: min(440px, 100%); padding: 18px 22px 20px; position: relative; overflow: hidden; }
.jname { font: 700 26px/1.1 var(--fd); color: var(--navy); margin: 4px 0 6px; }
.jdist { font-weight: 600; }
.jnote { color: var(--muted); margin-top: 4px; font-size: 14px; }
.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(--ochre); }

/* ---------- 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(560px, 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; }
.bigst .st i { width: 34px; height: 34px; }
.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(--ochre-d); }
.lines em { font: 700 12px var(--fb); color: var(--euc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.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(--ochre); }
.fin { margin-top: 10px; font-weight: 600; color: var(--euc); }
.why { font-weight: 700; color: var(--red); margin: 6px 0; }
.pcard { width: min(360px, 100%); padding: 22px; text-align: center; }
.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(980px, 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 { background: var(--paper); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); opacity: .65; }
.sp.seen { opacity: 1; }
.sp.focus { box-shadow: 0 0 0 3px var(--gold); }
.sp h3 { 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 { font-size: 14px; margin-top: 4px; }
.sp .where { color: var(--muted); font-size: 13px; }
.nbody section { margin-top: 18px; max-width: 70ch; }
.nbody h3 { font: 700 20px/1.2 var(--fd); color: var(--navy); margin-bottom: 6px; }
.nbody p { margin-top: 6px; }
.nbody { display: grid; grid-template-columns: minmax(0, 1fr); }
.nmap { max-width: 420px; }
.nmap svg { max-height: 44vh; width: auto; max-width: 100%; }
@media (min-width: 760px) { .nbody { grid-template-columns: 300px minmax(0, 1fr); column-gap: 24px; } .nmap { grid-row: span 20; position: sticky; top: 0; } .nmap svg { max-height: 70vh; } }
.dtab { border-collapse: collapse; margin-top: 12px; font-size: 14px; width: 100%; max-width: 640px; }
.dtab th, .dtab td { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); }

/* ---------- 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%, #1d3a66, #13284b 70%); }
.rot p { font: 600 24px/1.25 var(--fd); max-width: 15ch; }

/* hit flash */
.wys.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); } }
.cb.cam.show { animation: none; }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes hit { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .prompt.on, .meter.warm.cold { animation: none; } }
