@font-face { font-family: Geist; src: url(/tools/fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Anton; src: url(/projects/fonts/Anton.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url(/projects/fonts/PermanentMarker.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/tools/fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #07080a; --s1: rgba(14, 16, 20, .9); --s2: #15181d; --s3: #1d2127; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .18);
  --tx: #f3f5f7; --mid: #a0a8b3; --dim: #69717d; --gold: #ffd23f; --go: #19e28c; --stop: #ff2e63; --warm: #ff8a1f;
  --sans: Geist, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: Anton, Impact, 'Arial Narrow', sans-serif; --tag: 'Permanent Marker', Impact, sans-serif;
  --outline: 0 0 2px #000, 0 0 2px #000, 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; --mono: 'Geist Mono', ui-monospace, Menlo, monospace; --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--tx); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: 600 11px var(--mono); padding: 2px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: rgba(255, 255, 255, .06); margin-right: 2px; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- HUD */
.hud-top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.brand { display: flex; flex-direction: column; gap: 2px; text-shadow: 0 2px 12px #000; }
.brand { position: relative; padding-left: 46px; }
.brand-mask { position: absolute; left: 0; top: -2px; width: 38px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.intro-mask { display: block; width: 84px; height: auto; margin: -6px 0 10px; transform: rotate(-4deg); filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.brand b { font: 400 26px var(--tag); letter-spacing: .02em; color: var(--gold); text-shadow: var(--outline); transform: rotate(-2deg); transform-origin: left; }
.brand span { font: 500 12px var(--mono); color: var(--mid); max-width: calc(100vw - 150px); text-shadow: 0 1px 3px #000; }
.hud-right { display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.wallet { border: 1px solid var(--line2); background: var(--s1); border-radius: 999px; padding: 8px 14px; font-weight: 600; backdrop-filter: blur(8px); }
.wallet.on { border-color: rgba(25, 226, 140, .5); font-family: var(--mono); font-size: 13px; }
.ctrlbtn { display: inline-flex; gap: 8px; align-items: center; }
.ctrlbtn kbd { margin: 0; }
/* the controls pop-up */
.ctl { display: grid; gap: 2px; margin: 4px 0 8px; }
.ctl h4 { margin: 12px 0 4px; font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.ctl h4:first-child { margin-top: 2px; }
.ctl-row { display: grid; grid-template-columns: minmax(118px, 40%) 1fr; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ctl-row:last-child { border-bottom: 0; }
.ctl-k { color: var(--tx); font-weight: 600; white-space: nowrap; }
#controls .card { max-height: min(86vh, 760px); overflow: auto; }
#paused-ctrl { width: 100%; margin-top: 8px; }
/* the STAKED / NOT STAKED badge, top of the right column (owner, 2026-11-20) */
.stakestat { pointer-events: auto; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 8px 14px 8px 12px; border-radius: 14px; border: 2px solid var(--c); background: var(--s1); backdrop-filter: blur(8px); color: var(--tx); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
.stakestat i { grid-row: 1 / span 2; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.stakestat b { font: 800 14px var(--mono); letter-spacing: .08em; color: var(--c); }
.stakestat span { font: 600 12px var(--mono); color: var(--mid); }
.stakestat.on { --c: var(--go); } .stakestat.off { --c: var(--warm); } .stakestat.wait { --c: var(--mid); }
.stakestat.on i { animation: stakepulse 1.8s ease-in-out infinite; }
@keyframes stakepulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .stakestat.on i { animation: none; } }
.objective { position: fixed; top: max(84px, calc(env(safe-area-inset-top) + 72px)); left: 16px; max-width: min(320px, calc(100vw - 32px)); background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; pointer-events: none; backdrop-filter: blur(8px); }
.objective b { display: block; font-size: 13px; letter-spacing: .04em; color: var(--gold); margin-bottom: 2px; }
.objective span { font-size: 13px; color: var(--mid); }
.objective ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: s; }
.objective li { counter-increment: s; font-size: 13px; color: var(--dim); padding: 3px 0 3px 26px; position: relative; }
.objective li::before { content: counter(s); position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); font: 600 11px/16px var(--mono); text-align: center; }
.objective li.now { color: var(--tx); font-weight: 600; }
.objective li.now::before { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 10px rgba(255, 210, 63, .5); }
.objective li.done { color: var(--mid); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.objective li.done::before { content: '✓'; border-color: var(--go); color: var(--go); }
.sidecol { position: fixed; right: 16px; top: max(62px, calc(env(safe-area-inset-top) + 50px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.bag { display: flex; align-items: center; gap: 10px; background: var(--s1); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 12px; backdrop-filter: blur(8px); }
.bag-k, .heat-k { font: 700 11px var(--mono); letter-spacing: .16em; color: var(--mid); }
.cash { font: 600 20px var(--mono); color: var(--tx); }
.cash.pop { animation: pop .6s ease-out; }
@keyframes pop { 0% { transform: scale(1.3); color: var(--gold); } 100% { transform: scale(1); } }
.heat { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.heatbar { display: flex; gap: 3px; }
.heatbar i { width: 16px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.12); transform: skewX(-18deg); }
.heatbar i.red { background: #ff2e63; box-shadow: 0 0 8px #ff2e63; }
.heatbar i.blue { background: #2f6bff; box-shadow: 0 0 8px #2f6bff; }
.speedo { display: flex; align-items: baseline; gap: 6px; background: var(--s1); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 12px; }
.speedo b { font: 600 26px/1 var(--mono); color: var(--gold); min-width: 3ch; text-align: right; }
.speedo span { font: 700 10px var(--mono); letter-spacing: .14em; color: var(--mid); }
.blockmap { position: relative; width: 180px; height: 180px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.blockmap canvas { width: 100%; height: 100%; display: block; border-radius: 17px; border: 1px solid var(--line2); }
.bm-k { position: absolute; left: 10px; bottom: 8px; font: 700 10px var(--mono); letter-spacing: .12em; white-space: nowrap; color: rgba(255,255,255,.75); background: rgba(10,10,14,.72); padding: 2px 6px; border-radius: 6px; }
.mission { position: fixed; left: 50%; bottom: max(56px, calc(env(safe-area-inset-bottom) + 44px)); transform: translateX(-50%); max-width: min(720px, calc(100vw - 32px)); width: max-content; text-align: left; font: 600 17px/1.35 var(--sans); color: #fff; pointer-events: none; text-wrap: balance; background: rgba(8,9,12,.72); border-left: 4px solid var(--gold); border-radius: 4px 12px 12px 4px; padding: 9px 16px; backdrop-filter: blur(6px); }
.mission:empty { display: none; }
.mission em { font-style: normal; color: var(--gold); }
.mission em.go { color: var(--go); } .mission em.stop { color: var(--stop); }
.banner { position: fixed; left: 50%; top: 28%; transform: translate(-50%, -50%) rotate(-4deg); text-align: center; pointer-events: none; z-index: 15; width: max-content; max-width: calc(100vw - 32px); }
.banner b { display: inline-block; font: 400 clamp(38px, 7vw, 76px)/1.05 var(--tag); color: #111; background: var(--c, var(--gold)); padding: 6px 28px 2px; clip-path: polygon(2% 8%, 99% 0, 97% 92%, 0 100%); box-shadow: 0 0 40px var(--c, var(--gold)); }
.banner span { display: block; margin: 10px auto 0; width: max-content; max-width: 100%; font: 700 15px var(--mono); color: #fff; background: rgba(8,9,12,.85); padding: 6px 12px; border-radius: 6px; transform: rotate(2deg); }
.banner.show { animation: slam 3.2s ease-out forwards; }
@keyframes slam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(1.5); } 8% { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-4deg) scale(.98); } }
.crosshair { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); pointer-events: none; }
.prompt { position: fixed; left: 50%; bottom: max(118px, calc(env(safe-area-inset-bottom) + 104px)); transform: translateX(-50%); background: var(--s1); border: 1px solid var(--line2); border-radius: 999px; padding: 10px 18px; font-weight: 600; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; backdrop-filter: blur(8px); }
.vault-buttons { position: fixed; left: 50%; bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); transform: translateX(-50%); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 32px); }
.vbtn { min-width: 160px; padding: 14px 24px; border-radius: 14px; font: 400 30px var(--display); letter-spacing: .08em; border: 0; color: #04110a; }
.vbtn.stake { background: var(--go); box-shadow: 0 0 28px rgba(25, 226, 140, .45); }
.vbtn.unstake { background: var(--stop); color: #fff; box-shadow: 0 0 28px rgba(255, 46, 99, .35); }
.vbtn:focus-visible, .btn:focus-visible, .tab:focus-visible, .piece:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vkeys { width: 100%; text-align: center; font-size: 12px; color: var(--mid); }
.toast { position: fixed; left: 50%; top: max(64px, calc(env(safe-area-inset-top) + 52px)); transform: translate(-50%, -12px); opacity: 0; transition: .25s; background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 16px; max-width: min(520px, calc(100vw - 32px)); font-size: 14px; pointer-events: none; z-index: 30; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { border-color: rgba(25, 226, 140, .55); }
.toast.bad { border-color: rgba(255, 46, 99, .6); }

/* ---------------------------------------------------------------- touch */
.stick, .touch-buttons { display: none; }
body.touch .stick { display: block; position: fixed; left: 24px; bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); touch-action: none; }
.knob { position: absolute; left: 36px; top: 36px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
body.touch .touch-buttons { display: flex; flex-direction: column; gap: 10px; position: fixed; right: 16px; bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); }
.tbtn { min-width: 76px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s1); font-weight: 700; }
.tbtn.on { border-color: var(--gold); color: var(--gold); }
.tbtn.act { background: var(--gold); color: #1a1400; border: 0; }
/* phones: the FIRE button, where the right thumb rests */
.firebtn { display: none; }
body.touch .firebtn { display: grid; place-items: center; position: fixed; right: 108px; bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px)); width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid rgba(255, 46, 99, .75); background: rgba(255, 46, 99, .22); color: #fff; font: 800 15px var(--mono); letter-spacing: .06em; touch-action: none; user-select: none; -webkit-user-select: none; backdrop-filter: blur(6px); }
body.touch .firebtn .fire-ring { position: absolute; inset: 14px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); }
body.touch .firebtn.on-target { border-color: #ff2e63; box-shadow: 0 0 22px rgba(255, 46, 99, .65); }
body.touch .firebtn.firing { background: rgba(255, 46, 99, .5); transform: scale(.96); }
body.touch .crosshair, body.touch .vkeys, body:not(.touch) .touch-only { display: none; }
body.touch .desktop-only { display: none; }
body.touch .blockmap { width: 118px; height: 118px; } body.touch .cash { font-size: 16px; }
/* phones: keep the objective line and the action prompt in the lane between the stick and the buttons */
body.touch .mission { left: 16px; right: 108px; transform: none; width: auto; max-width: none; bottom: max(250px, calc(env(safe-area-inset-bottom) + 236px)); font-size: 14px; }
body.touch .prompt { left: 16px; right: 108px; transform: none; width: auto; max-width: none; text-align: center; white-space: normal; bottom: max(162px, calc(env(safe-area-inset-bottom) + 150px)); }
body.touch .banner { top: 46%; }
body.touch .vault-buttons { bottom: max(170px, calc(env(safe-area-inset-bottom) + 160px)); }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 30%, rgba(40, 20, 60, .55), rgba(4, 5, 8, .88)); z-index: 20; overflow-y: auto; }
.card { width: min(560px, 100%); background: var(--s1); border: 1px solid var(--line2); border-radius: 20px; padding: 28px; backdrop-filter: blur(10px); }
.card.small { width: min(360px, 100%); text-align: center; }
.intro h1 { margin: 2px 0 8px; font: 400 clamp(52px, 12vw, 92px)/.92 var(--tag); letter-spacing: .01em; transform: rotate(-2deg); color: var(--gold); text-shadow: 0 0 24px rgba(255, 210, 63, .35); text-wrap: balance; }
.kicker { margin: 0; font: 600 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--warm); }
.lede { font-size: 17px; color: var(--tx); margin: 0 0 16px; text-wrap: pretty; }
.how { margin: 0 0 16px; padding-left: 20px; color: var(--mid); }
.how li { margin: 4px 0; }
.how b { color: var(--tx); }
.keys { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--mid); margin: 0 0 18px; }
.btn { border: 1px solid var(--line2); background: var(--s3); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.btn.big { width: 100%; padding: 14px; font-size: 16px; font-weight: 800; background: var(--gold); color: #1a1400; border: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.fine { font-size: 12px; color: var(--dim); margin: 12px 0 0; text-wrap: pretty; }
/* "staking is called HIDE" (owner, 2026-11-16): first thing on the start and guide cards */
.warn-box { margin: 10px 0 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(255, 210, 63, .1); color: var(--tx); font-size: 14px; line-height: 1.45; text-align: left; text-wrap: pretty; }
.warn-box b { color: var(--gold); display: block; margin-bottom: 2px; }
.muted { color: var(--mid); font-size: 13px; }
.row { display: flex; justify-content: space-between; align-items: center; }
.row h2, .card h2 { margin: 0; font-size: 20px; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--mid); padding: 4px 8px; }
.map-list { display: grid; gap: 6px; margin-top: 10px; }
.mrow { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); }
.mrow:hover { border-color: var(--c); }
.mrow .mfit { grid-column: 2 / -1; color: var(--mid); font-size: 12px; margin-top: -4px; }
.advice { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 10px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--go); background: var(--s2); font-size: 14px; }
.advice.good { border-color: var(--line2); color: var(--mid); }
.advice .btn { flex: none; }
.mrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ---------------------------------------------------------------- stake panel */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: rgba(10, 11, 15, .97); border-left: 1px solid var(--line2); display: flex; flex-direction: column; z-index: 25; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: max(18px, env(safe-area-inset-top)) 16px 12px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 20px; letter-spacing: .02em; }
.sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--mid); }
.chip { display: inline-block; font: 600 11px var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--c, var(--line2)); color: var(--c, var(--tx)); }
.chip.ok { --c: var(--go); }
.chip.bad { --c: var(--stop); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px 20px max(24px, env(safe-area-inset-bottom)); }
.panel-body h4 { margin: 18px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); display: flex; justify-content: space-between; }
.count { font-family: var(--mono); color: var(--gold); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--s2); border-radius: 12px; }
.tab { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--mid); }
.tab.on { background: var(--s3); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line2); }
.pitch h3 { margin: 6px 0; font-size: 18px; }
.pitch p { margin: 0 0 14px; color: var(--mid); }
.loading { padding: 24px 0; color: var(--mid); }
.grid { display: grid; gap: 6px; }
.piece { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); }
.piece .pid { font-weight: 700; }
.piece .ptr { grid-column: 1; font-size: 12px; color: var(--mid); }
.piece .pw { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 15px var(--mono); }
.piece .pnote { grid-column: 1 / -1; font-size: 11px; color: var(--warm); margin-top: 2px; }
.piece.here { border-color: rgba(255, 210, 63, .35); }
.piece.on { border-color: var(--go); background: rgba(25, 226, 140, .08); }
.piece:disabled { opacity: .45; cursor: not-allowed; }
.total { margin: 14px 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); }
.total.warn { border-color: rgba(255, 138, 31, .5); }
.total p { margin: 4px 0 0; font-size: 13px; color: var(--warm); }
.sum { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--mid); }
.sum b { margin-left: auto; font-size: 22px; color: var(--gold); }
.actions { display: grid; gap: 8px; }
/* hide every crew at once (2026-11-15) */
.all { margin: 4px 0 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(25, 226, 140, .45); background: var(--s2); }
.all h4 { margin: 0 0 6px; }
.all p { margin: 0 0 10px; color: var(--mid); font-size: 14px; }
.all details { margin: 0 0 12px; }
.all summary { cursor: pointer; color: var(--gold); font-size: 13px; }
.plan { margin: 8px 0 0; padding: 0 0 0 22px; max-height: 240px; overflow: auto; display: grid; gap: 4px; font-size: 13px; }
.plan li span.pw { font: 700 13px var(--mono); margin-left: 8px; }
.plan li { display: list-item; }
.plan li > span:first-child { overflow-wrap: anywhere; }
.all .or { margin: 10px 0 0; text-align: center; }
.btn.warn { border-color: var(--stop); color: var(--stop); }
.stake { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); margin-bottom: 8px; display: grid; gap: 6px; }
.stake.broken { border-color: rgba(255, 46, 99, .4); }
.stake .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; color: var(--mid); }
.ghost-btn { justify-self: start; padding: 7px 12px; font-size: 13px; }
@media (max-width: 640px) {
  .panel { top: auto; left: 0; width: 100%; height: 82vh; border-left: 0; border-top: 1px solid var(--line2); border-radius: 18px 18px 0 0; }
  .card { padding: 22px 18px; }
  .objective { max-width: calc(100vw - 32px - 176px); }
  .cd-drop { display: none; }
  .tabs.five { display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabs.five .tab { flex: 1 0 auto; white-space: nowrap; padding: 8px 10px; font-size: 12px; }
}

/* health, strap, cuffing, the board */
.hp { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.hp-k { font: 700 11px var(--mono); letter-spacing: .16em; color: var(--mid); }
.hp-bar { width: 96px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
#hp-fill { height: 100%; width: 100%; background: var(--go); transition: width .2s; }
.hp.low #hp-fill { background: var(--stop); }
.cuff { position: fixed; left: 50%; top: 42%; transform: translateX(-50%); text-align: center; pointer-events: none; font: 700 13px var(--mono); letter-spacing: .14em; color: #fff; text-shadow: 0 2px 6px #000; }
.cuff div { margin-top: 6px; width: 220px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.cuff i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f6bff, #ff2e63); }
.card.wide { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.tabs.five { grid-template-columns: repeat(5, 1fr); margin: 12px 0; }
.tabs.five .tab { font-size: 13px; padding: 8px 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--mid); font-weight: 600; font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line2); }
.tbl td { padding: 7px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--mid); }
.lbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.lb ol { margin: 0; padding-left: 20px; }
.lb li { padding: 3px 0; font-size: 13px; }
.lb li span { font-family: var(--mono); }
.lb li b { float: right; font-variant-numeric: tabular-nums; }
.mission-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mission-row b { display: block; }
.mission-row span { color: var(--mid); font-size: 13px; }
.mission-row .mr-r { text-align: right; font: 600 14px var(--mono); white-space: nowrap; }
.mission-row .mr-r span { display: block; color: var(--gold); }
.mission-row.done { opacity: .55; }
.fine a, .card a { color: var(--gold); }

.fade { position: fixed; inset: 0; background: #000; opacity: 0; transition: opacity .8s; pointer-events: none; z-index: 14; }
.fade.on { opacity: 1; }

.namebox { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--mid); }
.namebox input { font: 600 17px var(--sans); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--s2); color: var(--tx); }
.namebox input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.mrow.go-first { border-color: var(--go); box-shadow: 0 0 0 1px var(--go); }

.guide-steps { margin: 12px 0 16px; padding-left: 22px; color: var(--mid); }
.guide-steps li { margin: 8px 0; }
.guide-steps b { color: var(--tx); }
.guide-steps b.g { color: var(--go); }



/* The weapon bar: everything you carry, numbered like the 1-5 keys; the one in your hand is lit. Guns show ∞. */
.wbar { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: auto; }
.wslot { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font: 700 12px var(--mono); letter-spacing: .12em; color: var(--mid); cursor: pointer; opacity: .6; }
.wslot i { font-style: normal; font-size: 11px; color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 0 5px; }
.wslot b { font: 600 15px var(--mono); color: var(--gold); letter-spacing: 0; }
.wslot.on { opacity: 1; color: var(--tx); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

/* The crosshair says what a click will do: a ring for a gun, a wider bracket for melee, red when someone is in
   reach, and a hit marker (white X; gold on a takedown) the moment an attack lands. */
.crosshair { transition: width .12s, height .12s, margin .12s, background .12s; }
.crosshair.armed { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: transparent; border: 2px solid rgba(255,255,255,.85); }
.crosshair.melee { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: transparent; border: 2px dashed rgba(255,255,255,.75); }
.crosshair.on-target { border-color: #ff2e63; box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 0 10px rgba(255,46,99,.7); }
.crosshair:not(.armed):not(.melee).on-target { background: #ff2e63; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; margin: -1.5px 0 0 -11px; background: #fff; opacity: 0; border-radius: 2px; }
.crosshair::before { transform: rotate(45deg); } .crosshair::after { transform: rotate(-45deg); }
.crosshair.hit::before, .crosshair.hit::after, .crosshair.kill::before, .crosshair.kill::after { animation: hitmark .28s ease-out; }
.crosshair.kill::before, .crosshair.kill::after { background: var(--gold); width: 30px; margin-left: -15px; }
@keyframes hitmark { 0% { opacity: 1; } 100% { opacity: 0; } }
/* The hide clock (2026-12-02): time in the period, a bar (solid = so far, outline = if it stays), bonuses, the slice. */
.stake .clock { display: grid; gap: 4px; font: 12px var(--mono); color: var(--mid); }
.stake .clock b { color: var(--tx); font-weight: 600; }
.stake .clock .bar { position: relative; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stake .clock .bar i, .stake .clock .bar s { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.stake .clock .bar s { border: 1px solid var(--go); background: transparent; }
.stake .clock .bar i { background: var(--go); z-index: 1; }
.stake .clock .warn-t { color: var(--stop); }
.advice.bad { border-color: var(--stop); color: var(--tx); }
/* The board's crew breakdown and bonus guide (2026-12-03): every bonus shown, even at zero, beside its maximum. */
.crewcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; background: var(--s2); display: grid; gap: 10px; }
.crewcard.broken { border-color: rgba(255, 46, 99, .45); }
.cc-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tbl.mini { font-size: 13px; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl tr.sum td { font-weight: 700; border-bottom: 0; }
.bons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.bon { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; }
.bon > span:first-child { color: var(--mid); font-weight: 600; }
.bon b { font-size: 17px; }
.bon.on { border-color: var(--gold); }
.bon.on b { color: var(--gold); }
.bon.total { border-color: var(--go); }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 6px; }
.guide h5 { margin: 4px 0; font-size: 12px; color: var(--mid); }
@media (max-width: 560px) { .guide { grid-template-columns: minmax(0, 1fr); } }
.warn-t { color: var(--stop); margin: 0; font-size: 13px; }
