/* MULE.EXE — the palette of the cover: desktop teal, beige plastic, lavender keys, a grey donkey with pink ears. */
:root {
  --teal: #0b7d7d; --teal-d: #075858; --teal-l: #2fb3ad;
  --beige: #e9e2cc; --beige-d: #b9b19a; --lav: #b8a6e6; --lav-d: #7d6bb3;
  --ink: #101418; --win: #d9d4c4; --bar: #1f3e9e; --bar2: #3a72d6; --pink: #f0a6a6; --gold: #f7b733; --red: #e2414b;
  --font-px: 'Press Start 2P', ui-monospace, monospace; --font-vt: 'VT323', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--teal-d); color: var(--ink); font: 20px/1.25 var(--font-vt); }
#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: var(--teal); }
[hidden] { display: none !important; }
kbd { display: inline-block; padding: 0 5px; border: 2px solid currentColor; border-bottom-width: 3px; font: 12px/1.4 var(--font-px); }

/* ── HUD ── */
#hud { position: fixed; inset: 0; pointer-events: none; color: #fff; text-shadow: 2px 2px 0 #000; }
.hud-tl { position: absolute; left: 14px; top: 12px; display: grid; gap: 6px; }
.hearts { display: flex; gap: 3px; }
.heart { width: 26px; height: 24px; background: no-repeat center/contain; image-rendering: pixelated; }
.bray { display: flex; align-items: center; gap: 6px; font: 9px/1 var(--font-px); }
.bray i { width: 92px; height: 9px; border: 2px solid #fff; background: rgba(0,0,0,.45); box-shadow: 2px 2px 0 #000; }
.bray b { display: block; height: 100%; width: 0; background: var(--lav); }
.bray b.full { background: #fff; animation: pulse .6s steps(2) infinite; }
.hud-tc { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); }
.path { font: 11px/1 var(--font-px); padding: 6px 8px; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.7); }
.hud-tr { position: absolute; right: 14px; top: 12px; font: 12px/1 var(--font-px); }
.sats { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; background: rgba(0,0,0,.45); }
.sat-ico { width: 14px; height: 14px; background: var(--gold); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); box-shadow: inset -3px -3px 0 #c97f12; }
.lock { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); font: 10px/1 var(--font-px); color: var(--gold); letter-spacing: .2em; }
.boss { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(560px, 80vw); display: grid; gap: 6px; text-align: center; font: 11px/1 var(--font-px); }
.boss i { height: 12px; border: 2px solid #fff; background: rgba(0,0,0,.5); box-shadow: 2px 2px 0 #000; }
.boss b { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), #ffe08a); transition: width .3s steps(6); }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 10px/1.6 var(--font-px); color: #fff; opacity: .9; white-space: nowrap; }
.toast { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font: 14px/1.4 var(--font-px); color: var(--gold); text-align: center; padding: 10px 16px; background: rgba(0,0,0,.55); }
@keyframes pulse { 50% { opacity: .55; } }

/* ── retro windows ── */
.win { background: var(--win); border: 3px solid; border-color: #fff #4d4a42 #4d4a42 #fff; box-shadow: 0 0 0 2px #000, 6px 6px 0 rgba(0,0,0,.35); color: var(--ink); }
.win-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 6px 4px 8px; background: linear-gradient(90deg, var(--bar), var(--bar2)); color: #fff; font: 11px/1 var(--font-px); }
.win-x { display: inline-grid; place-items: center; width: 18px; height: 16px; background: var(--win); color: var(--ink); border: 2px solid; border-color: #fff #4d4a42 #4d4a42 #fff; font: 12px/1 var(--font-px); }
.win-body { padding: 14px 16px; }
.dialog { position: fixed; left: 50%; bottom: 7vh; transform: translateX(-50%); width: min(720px, 92vw); }
.dialog p { margin: 0; min-height: 3.6em; font: 24px/1.25 var(--font-vt); }
.dialog-next { display: block; text-align: right; font: 10px/1 var(--font-px); animation: pulse .8s steps(2) infinite; }

/* ── screens ── */
.screen { position: fixed; inset: 0; display: grid; place-items: center; z-index: 5; }
.dim { background: rgba(4, 30, 30, .62); }
.title { background: #000; color: #c7c7c7; overflow: auto; }
.boot { position: absolute; left: 4vw; top: 4vh; margin: 0; font: 22px/1.2 var(--font-vt); color: #c7c7c7; white-space: pre-wrap; }
.title-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4vw; padding: 3vh 4vw; background: radial-gradient(circle at 30% 40%, var(--teal-l), var(--teal) 55%, var(--teal-d)); position: absolute; inset: 0; }
.cover { width: min(46vh, 44vw); height: auto; image-rendering: pixelated; filter: drop-shadow(8px 8px 0 rgba(0,0,0,.35)); }
.title-side { max-width: 440px; color: #fff; text-shadow: 3px 3px 0 #053c3c; }
.logo { margin: 0 0 10px; font: clamp(30px, 5.4vw, 64px)/1 var(--font-px); color: var(--beige); text-shadow: 4px 4px 0 var(--lav-d), 8px 8px 0 #053c3c; letter-spacing: .02em; }
.logo span { color: var(--lav); }
.tag { margin: 0 0 22px; font: 26px/1.15 var(--font-vt); }
.btn { display: inline-block; margin: 0 8px 10px 0; padding: 12px 18px 11px; font: 13px/1 var(--font-px); color: var(--ink); background: var(--beige); border: 3px solid; border-color: #fff #6f6a5c #6f6a5c #fff; box-shadow: 0 0 0 2px #000; cursor: pointer; text-shadow: none; }
.btn:hover, .btn:focus-visible { background: #fff; outline: none; }
.btn:active { border-color: #6f6a5c #fff #fff #6f6a5c; }
.btn-sm { padding: 8px 10px 7px; font-size: 10px; }
.keys { margin: 8px 0 14px; font: 20px/1.35 var(--font-vt); color: #fff; }
.keys kbd { font-size: 9px; margin-right: 4px; }
.credit { margin: 6px 0 0; font: 18px/1.2 var(--font-vt); opacity: .85; }
.menu { width: min(420px, 92vw); }
.menu .btn { display: block; width: 100%; margin: 0 0 10px; }
.menu .keys { color: var(--ink); }
.menu.wide { width: min(560px, 94vw); }
.win-h { margin: 0 0 8px; font: 16px/1.3 var(--font-px); color: var(--bar); }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 14px; font: 22px/1.1 var(--font-vt); }
.stats dt { color: #4d4a42; } .stats dd { margin: 0; font-weight: bold; }
.teaser { font: 20px/1.2 var(--font-vt); padding: 8px 10px; background: #fff7d6; border: 2px dashed var(--gold); }
.teaser a { color: var(--bar); }
.blue { background: #1335a8; color: #fff; }
.over-box { max-width: 680px; padding: 24px; font: 26px/1.3 var(--font-vt); }
.over-box h2 { display: inline-block; margin: 0 0 18px; padding: 4px 10px; background: #c7c7c7; color: #1335a8; font: 16px/1.3 var(--font-px); }
.blink { animation: pulse 1s steps(2) infinite; }
.nojs { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; font: 24px var(--font-vt); }
@media (max-width: 700px) { .boot { font-size: 16px; } .hud-tc { top: 54px; } .hint { font-size: 8px; } }

/* ── touch controls (phones, tablets) ── */
.touch { position: fixed; inset: auto 0 0 0; height: 0; z-index: 3; pointer-events: none; }
.stick { position: fixed; left: 18px; bottom: 22px; width: 132px; height: 132px; border-radius: 50%; background: rgba(0,0,0,.28); border: 3px solid rgba(255,255,255,.55); pointer-events: auto; touch-action: none; }
.stick i { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(233,226,204,.85); box-shadow: 0 3px 0 #6f6a5c; }
.tbtns { position: fixed; right: 14px; bottom: 18px; display: grid; grid-template-columns: repeat(2, 70px); gap: 10px; pointer-events: auto; }
.tb { height: 54px; font: 10px/1 var(--font-px); color: var(--ink); background: var(--beige); border: 3px solid; border-color: #fff #6f6a5c #6f6a5c #fff; box-shadow: 0 0 0 2px #000; touch-action: none; user-select: none; }
.tb-kick { background: var(--gold); grid-column: span 2; height: 64px; font-size: 13px; }
.tb-lock.on { background: var(--lav); }
.tb-sm { height: 40px; }
.is-touch .hint { display: none; }

/* ── objectives, key prompts, hurt / heal wash, the prologue ── */
.obj { display: flex; gap: 6px; align-items: baseline; max-width: 42vw; margin-top: 4px; padding: 6px 9px; background: rgba(0,0,0,.5); border-left: 3px solid var(--gold); font: 20px/1.1 var(--font-vt); color: #fff; }
.obj b { color: var(--gold); font: 10px/1 var(--font-px); }
.obj.new { animation: objIn .6s steps(6); }
@keyframes objIn { from { transform: translateX(-20px); opacity: 0; } }
.prompt { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); }
.prompt kbd { display: inline-block; padding: 8px 12px 7px; font: 13px/1 var(--font-px); color: var(--ink); background: var(--gold); border: 3px solid #000; box-shadow: 3px 3px 0 #000; animation: pulse 1s steps(2) infinite; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; }
.vignette.hurt { box-shadow: inset 0 0 120px 40px rgba(226, 65, 75, .75); }
.vignette.heal { box-shadow: inset 0 0 120px 40px rgba(80, 230, 140, .6); }
.vignette.on { animation: wash .5s ease-out; }
@keyframes wash { from { opacity: 1; } to { opacity: 0; } }
.intro { position: fixed; inset: 0; z-index: 4; cursor: pointer; touch-action: none; }
.intro .bar { position: absolute; left: 0; right: 0; height: 12vh; background: #000; }
.intro .bar-top { top: 0; } .intro .bar-bot { bottom: 0; }
.intro-text { position: absolute; left: 50%; bottom: 15vh; transform: translateX(-50%); width: min(820px, 90vw); margin: 0; text-align: center; font: clamp(22px, 3vw, 34px)/1.25 var(--font-vt); color: #fff; text-shadow: 3px 3px 0 #000; min-height: 2.6em; }
.intro-skip { position: absolute; right: 18px; bottom: 3vh; margin: 0; display: flex; align-items: center; gap: 12px; font: 9px/1 var(--font-px); color: #c7c7c7; }
.over-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.over-btns .btn { margin: 0; }

/* ── the MULE TERMINAL (game/token/ui.js) ── */
.btn-token { background: #ffe2c2; }
.term-screen { z-index: 8; padding: 12px; }
.term { width: min(780px, 100%); max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.term .win-x { cursor: pointer; padding: 0; }
.term > .win-bar { flex: none; }
.term-note.term-warn { border-left-color: var(--red); background: #ffe3e3; }
.term-tabs { flex: none; display: flex; gap: 2px; padding: 6px 6px 0; overflow-x: auto; scrollbar-width: thin; background: #c9c3b1; }
.term-tab { flex: none; padding: 7px 9px 6px; font: 9px/1 var(--font-px); color: var(--ink); background: #d9d4c4; border: 2px solid; border-color: #fff #6f6a5c transparent #fff; cursor: pointer; }
.term-tab.on { background: var(--win); position: relative; top: 2px; }
.term-body { padding: 12px 14px 14px; overflow-y: auto; font: 20px/1.2 var(--font-vt); }
.term-body h4 { margin: 12px 0 6px; font: 10px/1.2 var(--font-px); color: var(--bar); }
.term-note { margin: 0 0 10px; padding: 6px 8px; background: #fff7d6; border-left: 4px solid var(--gold); font: 19px/1.15 var(--font-vt); }
.term-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed #b9b19a; }
.term-row span { color: #4d4a42; } .term-row b { text-align: right; overflow-wrap: anywhere; }
.term-row a, .term-table a { color: var(--bar); }
.term-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.term-btns .btn { margin: 0; text-decoration: none; }
.btn.on { background: #fff; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--bar); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.term-status { margin: 10px 0 0; padding: 6px 8px; font: 10px/1.5 var(--font-px); background: #101418; color: #d7ff2f; }
.term-status[data-kind="bad"] { color: #ff8a8a; } .term-status[data-kind="good"] { color: #7dff9a; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.term-card { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; text-align: center; background: #efeadb; border: 2px solid; border-color: #fff #8a8574 #8a8574 #fff; }
.term-card b { font: 9px/1.3 var(--font-px); } .term-card small { font: 17px/1 var(--font-vt); color: #4d4a42; }
.term-card .btn { margin: 4px 0 0; }
.term-card.r-rare { box-shadow: inset 0 0 0 2px #00cfea; } .term-card.r-epic { box-shadow: inset 0 0 0 2px #4d149c; }
.term-req { color: var(--red) !important; }
.term-prev { width: 64px; height: 64px; image-rendering: pixelated; background: #2c2a2d; }
.term-prev-x { display: grid; place-items: center; background: var(--c); color: #fff; font: 12px/1 var(--font-px); text-shadow: 2px 2px 0 #000; }
.term-inp { width: 100%; margin: 6px 0; padding: 8px; font: 20px/1 var(--font-vt); border: 2px solid; border-color: #6f6a5c #fff #fff #6f6a5c; background: #fff; }
.term-lbl { display: block; font: 9px/1.4 var(--font-px); }
.term-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #b9b19a; }
.term-slot-n { width: 84px; font: 9px/1 var(--font-px); }
.term-skin { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; font: 9px/1.2 var(--font-px); background: #efeadb; border: 2px solid; border-color: #fff #8a8574 #8a8574 #fff; cursor: pointer; }
.term-skin .term-prev { width: 32px; height: 32px; font-size: 8px; }
.term-skin.on { background: #fff; box-shadow: inset 0 0 0 2px var(--bar); }
.term-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.term-tier { display: grid; gap: 4px; padding: 8px; text-align: center; background: #efeadb; border: 2px solid #8a8574; }
.term-tier b { font: 10px/1 var(--font-px); } .term-tier small { font: 16px/1 var(--font-vt); }
.term-tier.t-bronze b { color: #9a5a1c; } .term-tier.t-silver b { color: #6f6f78; } .term-tier.t-gold b { color: #b07a00; }
.term-tier.on { background: #fff; box-shadow: inset 0 0 0 3px var(--gold); }
.term-list { margin: 6px 0; padding-left: 22px; } .term-list li { padding: 2px 0; } .term-list li.me, .term-list li.on { color: var(--bar); font-weight: bold; }
.term-herds li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .term-herds .btn { margin: 0 0 0 auto; }
.term-dot { display: inline-block; width: 12px; height: 12px; background: var(--c); border: 2px solid #000; }
.term-sw { width: 28px; height: 28px; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 2px #000; cursor: pointer; }
.term-sw.on { border-color: #000; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
.term-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.term-board { padding: 6px 8px; background: #efeadb; border: 2px solid #8a8574; } .term-board h4 { margin-top: 2px; }
.term-meter { position: relative; height: 26px; margin: 6px 0 10px; background: #2c2a2d; border: 2px solid #000; }
.term-meter b { display: block; height: 100%; background: repeating-linear-gradient(90deg, #ff8a1a 0 10px, #ffb366 10px 12px); }
.term-meter i { position: absolute; top: -6px; bottom: -6px; width: 3px; background: #e9e2cc; } .term-meter i.on { background: #d7ff2f; }
.term-table { width: 100%; border-collapse: collapse; font: 17px/1.15 var(--font-vt); }
.term-table th { font: 8px/1.2 var(--font-px); text-align: left; padding: 4px; background: #c9c3b1; } .term-table td { padding: 4px; border-bottom: 1px dashed #b9b19a; vertical-align: top; }
.term-table a { margin-right: 6px; }
@media (max-width: 560px) { .term-screen { padding: 8px; } .term-body { padding: 10px; } .term-tiers { grid-template-columns: 1fr; } .term-table { display: block; overflow-x: auto; } .term-slot-n { width: 100%; } }

/* ── the wallet up front (game/token/token.js) ── */
.wallet-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 2px 0 14px; padding: 8px 10px; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.45); font: 18px/1.15 var(--font-vt); }
.wallet-strip .ok { color: #d7ff2f; }
.wallet-strip .btn { margin: 0; }
.btn-go { background: #d7ff2f; }
.btn-go:hover, .btn-go:focus-visible { background: #ecff8a; }
.mule-bal { margin-left: 8px; color: #d7ff2f; }
.term-cta { border-left-color: #2fb3ad; background: #e3fbf8; font-weight: bold; }
.term-status { position: sticky; top: -12px; z-index: 2; margin: -2px 0 10px; }
.term-tier .term-prev { margin: 4px auto 0; width: 72px; height: 72px; }
.term-unlocks { font: 8px/1.3 var(--font-px) !important; color: var(--ink) !important; }

/* TX BLASTER RADIO on a phone: top right, under the sats, its panel opening downwards — the stick and the touch
   buttons own the bottom of the screen (the doubled id outranks the radio's own rules, injected after this sheet) */
@media (pointer: coarse) {
  #txb-radio#txb-radio { top: 52px; bottom: auto; left: auto; right: 12px; }
  #txb-radio#txb-radio .radio-fab { width: 38px; height: 38px; }
  #txb-radio#txb-radio .radio-panel { top: 46px; bottom: auto; left: auto; right: 0; }
}
.term-reach { margin-top: 2px; font: 8px/1.3 var(--font-px) !important; color: var(--red) !important; }
.term-reach.ok { color: #1f7a33 !important; }
.term-plan { margin: 8px 0; padding: 6px 8px; font: 19px/1.15 var(--font-vt); background: #efeadb; border-left: 4px solid #8a8574; }
.term-plan[data-kind="good"] { border-left-color: #1f7a33; color: #1f5a2a; } .term-plan[data-kind="bad"] { border-left-color: var(--red); color: #8a1f26; }

/* ── phones: nothing readable under the stick and the buttons (2026-10-19) ──
   portrait: the controls own the bottom ~270 px, so the dialogue, the boss bar, the key prompt and LOCK-ON sit above them;
   landscape: the stick is left and the buttons right, so they sit between the two at the bottom */
@media (max-width: 600px) {
  .is-touch .dialog { bottom: 290px; width: calc(100vw - 16px); }
  .is-touch .dialog p { font-size: 21px; min-height: 2.6em; }
  .is-touch .boss { bottom: 300px; width: calc(100vw - 28px); }
  .is-touch .prompt { bottom: 300px; }
  .is-touch .lock { bottom: 348px; }
  .is-touch .toast { top: 18%; max-width: calc(100vw - 24px); font-size: 12px; }
}
@media (min-width: 601px) {
  .is-touch .dialog { left: 165px; right: 170px; width: auto; transform: none; bottom: 10px; }
  .is-touch .dialog p { font-size: 20px; min-height: 2.4em; }
  .is-touch .boss { left: 165px; right: 170px; width: auto; transform: none; bottom: 12px; }
  .is-touch .prompt { bottom: 14px; }
}
.dialog { cursor: pointer; touch-action: manipulation; }
/* the installed app (game/pwa.js): the iPhone's two taps, under the title's buttons */
.install-tip { margin: 6px 0 0; max-width: 340px; font: 18px/1.15 var(--font-vt); color: #d7ff2f; }
/* the TERMINAL's live feed (TREASURY) and the GET tab */
.term-feed li { font: 18px/1.15 var(--font-vt); } .term-feed li small { color: #8a8574; font: 8px/1 var(--font-px) !important; }
.term-feed li.f-burn { color: #c0392b; } .term-feed li.f-prize { color: #1f7a33; }

/* ── THE WORLD (game/mp/): how many are here, the chat log and box, emotes, who is muted ──
   PC: the count top right under the sats, the log and the box bottom right (the radio is bottom left).
   Touch: CHAT · :) · ● n just over the stick, the log over those (both clear of the stick and of the action buttons,
   portrait and landscape); the box opens at the top of the screen, where the phone's keyboard does not cover it. */
.mp { position: fixed; inset: 0; z-index: 4; pointer-events: none; color: #fff; font: 18px/1.15 var(--font-vt); }
.mp-badge { position: fixed; top: 46px; right: 14px; padding: 5px 8px; font: 10px/1 var(--font-px); color: #d7ff2f; text-shadow: 2px 2px 0 #000; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.6); cursor: pointer; pointer-events: auto; }
.mp-panel { position: fixed; right: 14px; bottom: 14px; width: min(400px, 36vw); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.mp-log { display: flex; flex-direction: column; justify-content: flex-end; max-height: 7.6em; overflow: hidden; }
.mp-line { margin-top: 2px; padding: 1px 6px 2px; background: rgba(0,0,0,.5); text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; transition: opacity .6s; }
.mp-line.old { opacity: 0; }
.mp-who { font-weight: normal; color: #d7ff2f; } .mp-mine .mp-who { color: #ff8a1a; }
.mp-sys { color: #cfc2f2; } .mp-sys.mp-bad { color: #ff9a9a; }
.mp-open .mp-log { max-height: 15em; } .mp-open .mp-line.old { opacity: 1; }
.mp-guest { padding: 4px 6px; background: rgba(0,0,0,.6); border-left: 3px solid #d7ff2f; pointer-events: auto; }
.mp-guest .btn { margin: 4px 0 0; }
.mp-chat { display: flex; gap: 6px; pointer-events: auto; }
.mp-chat .btn { margin: 0; }
.mp-input { flex: 1; min-width: 0; padding: 7px 8px; font: 20px/1 var(--font-vt); color: var(--ink); background: #fff7d6; border: 3px solid; border-color: #6f6a5c #fff #fff #6f6a5c; box-shadow: 0 0 0 2px #000; }
.mp-emotes { display: flex; flex-wrap: wrap; gap: 4px; pointer-events: auto; }
.mp-emo { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 7px; font: 8px/1 var(--font-px); color: var(--ink); background: var(--beige); border: 2px solid; border-color: #fff #6f6a5c #6f6a5c #fff; box-shadow: 0 0 0 1px #000; cursor: pointer; touch-action: manipulation; }
.mp-emo kbd { padding: 0 3px; font-size: 7px; border-width: 1px 1px 2px; }
.mp-people { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, 92vw); max-height: 70vh; display: flex; flex-direction: column; z-index: 6; pointer-events: auto; }
.mp-people .win-x { cursor: pointer; padding: 0; }
.mp-people .win-body { overflow-y: auto; }
.mp-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #b9b19a; font: 20px/1.1 var(--font-vt); overflow-wrap: anywhere; }
.mp-person .btn { margin: 0; flex: none; }
.mp-person.is-muted .mp-person-name { opacity: .55; text-decoration: line-through; }
.mp-people-note { margin: 8px 0 0; font: 17px/1.15 var(--font-vt); color: #4d4a42; }
.mp-touchbar { position: fixed; left: 18px; bottom: 166px; display: flex; gap: 6px; pointer-events: auto; }
.mp-tb { height: 40px; min-width: 40px; padding: 0 8px; font-size: 9px; }
.mp-tb.mp-go { background: #d7ff2f; }
.mp-touchui .mp-badge, .mp-touchui .mp-guest { display: none; }
.mp-touchui .mp-panel { right: auto; left: 12px; bottom: 214px; width: min(206px, calc(100vw - 184px)); }
.mp-touchui .mp-log { max-height: 3.5em; font-size: 16px; }
.mp-touchui .mp-chat { position: fixed; top: 8px; left: 8px; right: 8px; z-index: 7; }
.mp-touchui.mp-open .mp-log { position: fixed; top: 62px; left: 8px; right: 8px; max-height: 40vh; }
.mp-touchui .mp-emotes { position: fixed; left: 12px; bottom: 214px; width: min(206px, calc(100vw - 184px)); display: grid; grid-template-columns: repeat(3, 1fr); }
.mp-touchui .mp-emo { padding: 9px 2px; font-size: 7px; }
.mp-touchui .mp-emo kbd { display: none; }
.mp-touchui.mp-emo-open .mp-log { visibility: hidden; }
@media (max-height: 500px) {
  .mp-touchui .mp-log { max-height: 2.4em; }
  .mp-touchui .mp-emotes { left: 175px; bottom: 166px; width: auto; max-width: calc(100vw - 360px); grid-template-columns: repeat(5, auto); }
}

/* ── the DRAG GLOVE (chapter 2, game/ch2/): a GRAB button right under KICK once MULE has the glove (body.has-glove);
   the other rows get a little shorter so the block is no taller than before — nothing new under the thumbs ── */
.tb-grab { display: none; background: #f7f5ee; }
.has-glove .tb-grab { display: block; }
.has-glove .tbtns .tb:not(.tb-kick):not(.tb-sm) { height: 48px; }
.mp-badge::before, .mp-tb[data-mp="people"]::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: -2px 7px 0 0; vertical-align: middle; background: #d7ff2f; box-shadow: 0 0 0 2px #000; }
.mp-tb[data-mp="people"]::before { background: #1f7a33; margin-right: 6px; }
/* the TERMINAL's BADGES tab (TX BLASTER BADGES as ordinals) */
.term-bset { color: var(--c); border-bottom: 3px solid var(--c); padding-bottom: 2px; }
.term-badge { border-top: 4px solid var(--c); } .term-badge.b-locked img { filter: grayscale(1) brightness(.35); }
.term-badge.b-minted { box-shadow: inset 0 0 0 3px #f7b733; } .term-badge small { overflow-wrap: anywhere; }
.term-badge small { font-size: 15px !important; line-height: 1.05 !important; } .term-badge .term-req { color: #6b6658 !important; }
/* phones upright: the path label (C:\SYS32>) went over a two-line objective — it sits on the right, left of the radio */
@media (max-width: 600px) { .is-touch .hud-tc { left: auto; right: 62px; transform: none; top: 52px; } .is-touch .path { font-size: 8px; padding: 4px 6px; } }
/* ── PHISHING.EXE (game/fish/): the fishing panel, the catch card (an e-mail to judge) and the FISHDEX.
   PC: the panel bottom centre, the card up top. Phones: the panel above the controls (portrait) or between the stick
   and the buttons (landscape) — never under them; while a card is up the panel steps aside. ── */
.fish-hud { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(560px, 94vw); z-index: 4; }
.fish-wx { color: #d7ff2f; } .fish-wx.on { color: #ffd23f; animation: pulse .8s steps(2) infinite; }
.fish-body { padding: 8px 10px; display: grid; gap: 6px; }
.fish-msg { margin: 0; min-height: 1.1em; font: 20px/1.1 var(--font-vt); }
.fish-msg[data-kind="bite"] { color: #c0392b; font: 12px/1.3 var(--font-px); animation: pulse .3s steps(2) infinite; }
.fish-power { height: 12px; border: 2px solid #000; background: #2c2a2d; }
.fish-power b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2fd16a, #d7ff2f 60%, #ff8a1a); }
.fish-tension { position: relative; height: 22px; border: 2px solid #000; background: linear-gradient(90deg, #3a4a6a 0 35%, #2c2a2d 35% 75%, #c9a043 75%, #e2414b 100%); }
.fish-zone { position: absolute; top: 0; bottom: 0; background: #2fd16a; box-shadow: inset 0 0 0 2px #1f7a33; }
.fish-mark { position: absolute; top: -6px; bottom: -6px; width: 8px; margin-left: -4px; background: #fff; box-shadow: 0 0 0 2px #000; }
.fish-tension[data-state="red"] .fish-mark { background: #ff3b5c; } .fish-tension.warn .fish-mark { background: #ffd23f; }
.fish-tension.run { animation: fishShake .12s steps(2) infinite; }
@keyframes fishShake { 50% { transform: translateX(3px); } }
.fish-reel { height: 8px; border: 2px solid #000; background: #2c2a2d; }
.fish-reel b { display: block; height: 100%; width: 0; background: #00cfea; }
.fish-keys { display: flex; flex-wrap: wrap; gap: 2px 12px; font: 8px/1.6 var(--font-px); color: #4d4a42; }
.fish-btns { display: flex; gap: 8px; justify-content: flex-end; }
.fish-btns .btn { margin: 0; }
.fish-card { position: fixed; left: 50%; top: 8vh; transform: translateX(-50%); width: min(540px, 94vw); max-height: 84vh; overflow-y: auto; z-index: 6; }
.fish-mail { padding: 10px 12px 4px; background: #fffdf3; }
.fish-mail-top { display: flex; gap: 12px; align-items: center; }
.fish-ico { flex: none; image-rendering: pixelated; background: #0d2a6a; border: 2px solid #000; }
.fish-dcard .fish-ico { border-width: 1px; }
.fish-mail dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0; font: 20px/1.1 var(--font-vt); }
.fish-mail dt { color: #6f6a5c; } .fish-mail dd { margin: 0; overflow-wrap: anywhere; }
.fish-from { color: #1f3e9e; } .fish-subj { font-weight: bold; }
.fish-text { margin: 10px 0 6px; padding: 8px; border: 2px solid; border-color: #6f6a5c #fff #fff #6f6a5c; background: #fff; font: 21px/1.15 var(--font-vt); }
.fish-ask { margin: 6px 0; font: 9px/1.5 var(--font-px); color: #4d4a42; }
.fish-ck { margin: 0; padding: 4px 12px 10px; text-align: center; font: 8px/1.5 var(--font-px); color: #4d4a42; }
.fish-choice { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 10px 12px 6px; }
.fish-choice .btn { margin: 0; min-width: 170px; }
.fish-rar { color: var(--c); }
.fish-kind { display: inline-block; padding: 4px 6px; font: 10px/1 var(--font-px); color: #fff; background: #1f7a33; }
.fish-kind.k-phish { background: #c0392b; } .fish-kind.k-junk { background: #6f6a5c; } .fish-kind.k-pet { background: #4d149c; }
.fish-mail-top small { display: block; margin-top: 4px; font: 18px/1 var(--font-vt); }
.fish-line { margin: 6px 0; font: 11px/1.4 var(--font-px); } .fish-line.good { color: #1f7a33; } .fish-line.bad { color: #c0392b; } .fish-line.new { color: #4d149c; }
.fish-tell, .fish-lesson { margin: 6px 0; padding: 6px 8px; font: 20px/1.15 var(--font-vt); background: #fff7d6; border-left: 4px solid var(--gold); }
.fish-lesson { background: #ffe3e3; border-left-color: var(--red); }
.fish-card[data-verdict="spotted"] { box-shadow: 0 0 0 2px #000, 0 0 0 6px #2fd16a, 6px 6px 0 rgba(0,0,0,.35); }
.fish-card[data-verdict="phished"] { box-shadow: 0 0 0 2px #000, 0 0 0 6px #e2414b, 6px 6px 0 rgba(0,0,0,.35); }
.fish-dex { z-index: 8; padding: 12px; }
.fish-dexw { width: min(820px, 100%); max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.fish-dexw .win-x { cursor: pointer; padding: 0; }
.fish-dexbody { padding: 10px 12px 12px; overflow-y: auto; }
.fish-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font: 19px/1.15 var(--font-vt); }
.fish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.fish-dcard { position: relative; display: grid; justify-items: center; gap: 3px; padding: 14px 4px 6px; text-align: center; background: #efeadb; border: 2px solid; border-color: #fff #8a8574 #8a8574 #fff; box-shadow: inset 0 -4px 0 var(--c); }
.fish-dcard b { font: 8px/1.3 var(--font-px); } .fish-dcard small { font: 16px/1 var(--font-vt); color: #4d4a42; }
.fish-dcard.unseen b { color: #8a8574; } .fish-dcard.daily { outline: 2px dashed #1f3e9e; }
.fish-dcard em { position: absolute; top: 3px; padding: 2px 3px; font: 7px/1 var(--font-px); font-style: normal; color: #fff; }
.fish-ph { left: 3px; background: #c0392b; } .fish-today { right: 3px; background: #1f3e9e; }
@media (max-width: 560px) { .fish-grid { grid-template-columns: repeat(3, 1fr); } .fish-dex { padding: 6px; } .fish-stats { font-size: 17px; } }
@media (max-width: 600px) {
  .is-touch .fish-hud { bottom: 290px; width: calc(100vw - 16px); }
  .is-touch .fish-card { top: 54px; bottom: 286px; max-height: none; width: calc(100vw - 16px); }
  .is-touch .fish-choice .btn { min-width: 0; flex: 1; }
}
@media (min-width: 601px) {
  .is-touch .fish-hud { left: 165px; right: 170px; width: auto; transform: none; bottom: 8px; }
  .is-touch .fish-card { left: 165px; right: 170px; width: auto; transform: none; top: 8px; bottom: 8px; max-height: none; }
}
.is-touch .fish-hud.fish-hide-touch { display: none; }
@media (max-height: 500px) { .is-touch .fish-keys { display: none; } .is-touch .fish-body { padding: 5px 8px; gap: 4px; } .is-touch .fish-msg { font-size: 17px; } .is-touch .fish-mail-top .fish-ico { width: 48px !important; height: 32px !important; } }
@media (min-width: 900px) { body:not(.is-touch) .fish-card { left: auto; right: 22px; top: 64px; transform: none; width: min(500px, 44vw); max-height: calc(100vh - 230px); } }

/* ── MY BOX (game/box/): the room's buttons, the editor (top bar · what is selected · the tray), the TERMINAL's parts ──
   The room's buttons sit under the hearts / objective (top left) — never near the stick or the action buttons. While the
   editor is open the HUD, the touch controls, the world's chat and the radio step aside: it owns the screen. */
.box-bar { position: fixed; left: 14px; top: 96px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: min(520px, calc(100vw - 28px)); }
.box-bar .btn { margin: 0; }
.box-bar .btn.on { background: #ffd6e0; }
.box-chip { padding: 5px 8px; font: 9px/1 var(--font-px); color: #ffd6e0; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.55); text-shadow: 1px 1px 0 #000; }
.box-editing #hud, .box-editing .touch, .box-editing .mp, .box-editing #txb-radio, .box-editing #box-bar { visibility: hidden !important; }
.box-edit { position: fixed; inset: 0; z-index: 6; pointer-events: none; font: 18px/1.15 var(--font-vt); }
.be-surface { position: absolute; inset: 0; pointer-events: auto; touch-action: none; cursor: crosshair; }
.be-top { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 6px 10px calc(6px); padding-top: max(6px, env(safe-area-inset-top)); background: rgba(12, 8, 20, .86); border-bottom: 2px solid #4d149c; color: #fff; pointer-events: auto; }
.be-head { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.be-head b { font: 10px/1.2 var(--font-px); color: #d7ff2f; }
.be-status { font: 17px/1.1 var(--font-vt); color: #e9e2cc; min-height: 1.1em; }
.be-status[data-kind="bad"] { color: #ff8a8a; } .be-status[data-kind="good"] { color: #7dff9a; }
.be-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.be-done { flex: none; }
@media (max-width: 760px) { .be-head { flex: 1 1 0; } .be-done { order: 2; } .be-tools { order: 3; width: 100%; margin-left: 0; } }
.be-tools .btn, .be-sel .btn { margin: 0; }
.be-sel { position: absolute; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 8px; max-width: calc(100vw - 16px); background: rgba(12, 8, 20, .9); border: 2px solid #d7ff2f; pointer-events: auto; }
.be-selname { font: 9px/1.2 var(--font-px); color: #fff; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.be-x { min-width: 34px; }
.be-tray { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px 10px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; background: rgba(12, 8, 20, .88); border-top: 2px solid #4d149c; pointer-events: auto; touch-action: pan-x; scrollbar-width: thin; }
.be-card { position: relative; flex: none; display: grid; justify-items: center; align-content: start; gap: 3px; width: 86px; height: 96px; padding: 4px 3px; background: #efeadb; border: 3px solid; border-color: #fff #8a8574 #8a8574 #fff; box-shadow: 0 0 0 2px #000; cursor: pointer; color: var(--ink); }
.be-card img { width: 56px; height: 56px; image-rendering: pixelated; pointer-events: none; }
.be-card span { font: 7px/1.25 var(--font-px); text-align: center; overflow: hidden; max-height: 2.6em; }
.be-card i { position: absolute; top: 2px; right: 4px; font: 8px/1 var(--font-px); font-style: normal; color: #4d149c; }
.be-card.on { background: #f6ffd0; box-shadow: 0 0 0 2px #000, inset 0 0 0 3px #d7ff2f; }
.be-card[disabled] { opacity: .4; cursor: default; }
.be-more { background: #2c2833; color: #d7ff2f; border-style: dashed; border-color: #d7ff2f; align-content: center; }
.be-more b { font: 8px/1.4 var(--font-px); text-align: center; }
.be-none { flex: none; align-self: center; margin: 0 8px; color: #e9e2cc; font: 18px/1.1 var(--font-vt); max-width: 220px; }
@media (max-width: 600px) { .be-card { width: 76px; height: 92px; } .be-card img { width: 50px; height: 50px; } .be-sel { bottom: calc(112px + env(safe-area-inset-bottom)); } .be-tools .btn { padding: 7px 7px 6px; font-size: 8px; } }
@media (max-height: 500px) and (min-width: 761px) { .be-head { flex: 1 1 160px; min-width: 0; } .be-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .be-top { flex-wrap: nowrap; } }
@media (max-height: 500px) { .be-tray { padding-top: 5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); } .be-card { height: 78px; width: 72px; } .be-card img { width: 42px; height: 42px; } .be-sel { bottom: calc(94px + env(safe-area-inset-bottom)); } .be-top { padding-top: 4px; padding-bottom: 4px; } }
.box-fur { margin-top: 16px; padding-top: 6px; border-top: 3px solid #4d149c; }
.box-fur-h { color: #4d149c !important; font-size: 11px !important; }
.box-chips .btn.on, .box-lists .btn.on { background: #fff; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #4d149c; }
.box-prev { width: 96px !important; height: 96px !important; background: #2c2833 !important; }
.box-card.r-legendary { box-shadow: inset 0 0 0 3px #f7b733; background: #fff7e0; }
.box-rar { font: 7px/1.3 var(--font-px) !important; letter-spacing: .04em; }
.box-rar.r-rare { color: #0a8fa0 !important; } .box-rar.r-epic { color: #4d149c !important; } .box-rar.r-legendary { color: #b07a00 !important; }
.box-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; border-bottom: 1px dashed #b9b19a; }
.box-rows .btn { margin: 0 0 0 auto; }
.box-who { font-weight: bold; overflow-wrap: anywhere; }
/* (the TERMINAL on a phone: its `width: min(780px, 100%)` resolved against a grid track sized by its longest note, so the
   window came out 780 px wide on a 390 px screen — every tab; the viewport sets its width instead) */
.term-screen > .term { width: min(780px, calc(100vw - 24px)); }
@media (max-width: 560px) { .term-screen > .term { width: calc(100vw - 16px); } }
@media (max-width: 600px) { .is-touch .fish-card { top: 96px; } .is-touch .fish-dex { padding-top: 96px; } }   /* (under TX BLASTER RADIO's button) */
/* the painted art (game/art.js): dialogue portraits, MULE's face in the HUD, boss and chapter cards, the title's key art */
.dialog.has-portrait .win-body { padding-right: 150px; } .dialog.has-portrait.p-left .win-body { padding-right: 12px; padding-left: 150px; }
.dialog-portrait { position: absolute; right: 10px; bottom: 10px; width: 132px; height: 132px; border: 3px solid #111; background: #0b7d7d; box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.dialog.p-left .dialog-portrait { right: auto; left: 10px; } .dialog-portrait[data-who="mousedrv"] { background: #13254a; }
@media (max-width: 600px) { .dialog.has-portrait .win-body { padding-right: 88px; } .dialog.has-portrait.p-left .win-body { padding-left: 88px; padding-right: 8px; } .dialog-portrait { width: 78px; height: 78px; right: 6px; bottom: 6px; } .dialog.p-left .dialog-portrait { left: 6px; } }
.hud-tl.has-face { padding-left: 62px; } .mule-face { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border: 2px solid #111; background: #0b7d7d; box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.mule-face[data-mood="angry"] { border-color: #e2414b; } .mule-face[data-mood="happy"] { border-color: #d7ff2f; } .mule-face[data-mood="surprised"] { border-color: #ff8a1a; }
@media (max-width: 600px) { .hud-tl.has-face { padding-left: 44px; } .mule-face { width: 38px; height: 38px; } }
.art-card { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: grid; place-items: center; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .5s; }
.art-card.in { opacity: 1; } .art-card.out { opacity: 0; }
.art-card-frame { position: relative; width: min(92vw, 150vh); }
.art-card-frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px solid #111; box-shadow: 0 0 0 3px #ff8a1a, 10px 10px 0 rgba(0,0,0,.5); }
.art-card-text { position: absolute; left: 5%; top: 7%; display: grid; gap: 1.2vh; color: #fff; text-shadow: 3px 3px 0 #000; }
.art-card-text small { font: clamp(9px, 1.4vw, 16px)/1 var(--font-px); color: #ff8a1a; letter-spacing: .1em; }
.art-card-text b { font: clamp(16px, 3.4vw, 44px)/1.1 var(--font-px); max-width: 46vw; }
.title-main.has-keyart { justify-content: flex-start; background: linear-gradient(90deg, rgba(5,5,8,.92) 0%, rgba(5,5,8,.72) 30%, rgba(5,5,8,0) 58%), url(assets/art/keyart-16x9.webp) 72% center / cover no-repeat, #050508; }
.title-main.has-keyart .cover { display: none; }
.title-main.has-keyart .title-side { margin-left: 4vw; text-shadow: 3px 3px 0 #000; }
@media (max-aspect-ratio: 1/1) {
  .title-main.has-keyart { align-items: flex-end; background: linear-gradient(0deg, rgba(5,5,8,.96) 0%, rgba(5,5,8,.88) 46%, rgba(5,5,8,0) 66%), url(assets/art/keyart-16x9.webp) 80% top / auto 60vh no-repeat, #050508; }
  .title-main.has-keyart .title-side { margin: 0 auto; }
}

/* ── POLISH 2026-10-20 ─────────────────────────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY (game/settings.js: body.a11y-noshake · a11y-calm · a11y-big · a11y-color), the gamepad's focus ring
   (game/padnav.js: body.pad-nav), menus that fit short screens, and the iPhone's notch / home bar (viewport-fit=cover:
   the safe-area insets, the dynamic viewport height). */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { overscroll-behavior: none; }
.btn, .tb, .touch, .mp-emo { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#view { height: 100vh; height: 100dvh; touch-action: none; }   /* (a drag on the view turns the camera: never a page pinch-zoom / double-tap zoom) */
.btn { touch-action: manipulation; }
.title-main { padding: max(3vh, var(--sat)) max(4vw, var(--sar)) max(3vh, var(--sab)) max(4vw, var(--sal)); }
.boot { top: max(4vh, var(--sat)); left: max(4vw, var(--sal)); }

/* the ACCESSIBILITY window */
.a11y-screen { z-index: 9; }
.a11y-win { width: min(480px, calc(100vw - 24px)); }
.a11y-win .win-x { cursor: pointer; padding: 0; }
.menu .a11y-opt { display: grid; gap: 6px; text-align: left; line-height: 1.25; }
.a11y-opt b { font: 11px/1.3 var(--font-px); }
.a11y-opt small { font: 18px/1.1 var(--font-vt); }
.a11y-opt.on { background: #f6ffd0; box-shadow: 0 0 0 2px #000, inset 0 0 0 3px #1f7a33; }
.a11y-note { margin: 2px 0 10px; font: 17px/1.15 var(--font-vt); color: #4d4a42; }

/* a window taller than the screen scrolls inside (the pause menu has ~11 buttons now); short landscape: two columns */
.screen > .win.menu { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px - var(--sat) - var(--sab)); overflow-y: auto; overscroll-behavior: contain; }
.screen > .win { max-width: calc(100vw - 16px - var(--sal) - var(--sar)); }
.title-main { overflow-y: auto; }
@media (max-height: 520px) and (min-width: 560px) {
  #pause .menu { width: min(680px, 96vw); }
  #pause .win-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #pause .win-body > .btn { margin: 0; padding: 10px 8px 9px; line-height: 1.3; }
  #pause .win-body > :not(.btn), #pause .win-body > #resume { grid-column: 1 / -1; }
}
/* the site's radio button stays under an open window (it covered the pause menu's RESUME on a phone) */
body:has(.screen.dim:not([hidden])) #txb-radio#txb-radio { z-index: 4 !important; }
/* a landscape phone: the path label went over the objective (top 54px) — it sits at the top, between hearts and sats */
@media (max-height: 500px) and (max-width: 900px) and (orientation: landscape) { .hud-tc { top: calc(10px + var(--sat)); } }

/* the gamepad's focus (padnav.js): plain to see on every button it reaches */
.pad-nav :focus { outline: 3px solid #d7ff2f !important; outline-offset: 2px; }
.pad-nav .btn:focus, .pad-nav .tb:focus { background: #fff; }

/* FEWER FLASHES: nothing blinks forever, the hurt / heal wash and the photo flash are soft, the cards fade slowly */
.a11y-calm *, .a11y-calm *::before, .a11y-calm *::after { animation-iteration-count: 1 !important; }
.a11y-calm .vignette.on { animation: washSoft .9s ease-out; }
@keyframes washSoft { from { opacity: .32; } to { opacity: 0; } }
.a11y-calm .art-card { transition-duration: 1.2s; background: rgba(0,0,0,.3); }
.a11y-calm #ph-flash.on { animation: phFlashSoft .5s ease-out; }
@keyframes phFlashSoft { from { opacity: .22; } to { opacity: 0; } }

/* BIGGER TEXT: the HUDs scale as a whole (they are full-screen layers placed in px), the dialogue's words grow */
.a11y-big #hud, .a11y-big #st-hud, .a11y-big #df-hud, .a11y-big #arc-hud, .a11y-big #tm-hud { zoom: 1.22; }
.a11y-big .dialog { width: min(820px, 94vw); }
.a11y-big .dialog p { font-size: 30px; }
.a11y-big .dialog-next { font-size: 12px; }
.a11y-big .intro-text { font-size: clamp(27px, 3.7vw, 42px); }
.a11y-big .fish-msg { font-size: 25px; } .a11y-big .fish-keys { font-size: 10px; } .a11y-big .fish-text { font-size: 25px; } .a11y-big .fish-mail dl { font-size: 23px; }
.a11y-big .mp-line { font-size: 22px; }
.a11y-big #arc-toast { font-size: 16px; } .a11y-big #arc-banner span { font-size: 32px; }
@media (max-width: 600px) { .a11y-big.is-touch .dialog p { font-size: 25px; } }
@media (min-width: 601px) { .a11y-big.is-touch .dialog p { font-size: 24px; } }

/* COLOUR ASSIST: the red / green cues in vermillion / blue (the 3D ones: game/settings.js cue()) */
.a11y-color .fish-zone { background: #3d9df2; box-shadow: inset 0 0 0 2px #0a2a5a; }
.a11y-color .fish-tension { background: linear-gradient(90deg, #3a4a6a 0 35%, #2c2a2d 35% 75%, #c9a043 75%, #d55e00 100%); }
.a11y-color .fish-tension[data-state="red"] .fish-mark { background: #d55e00; }
.a11y-color .fish-line.good { color: #1f5fbf; } .a11y-color .fish-line.bad { color: #b34700; }
.a11y-color .fish-kind { background: #1f5fbf; } .a11y-color .fish-kind.k-phish { background: #b34700; }
.a11y-color .fish-card[data-verdict="spotted"] { box-shadow: 0 0 0 2px #000, 0 0 0 6px #3d9df2, 6px 6px 0 rgba(0,0,0,.35); }
.a11y-color .fish-card[data-verdict="phished"] { box-shadow: 0 0 0 2px #000, 0 0 0 6px #d55e00, 6px 6px 0 rgba(0,0,0,.35); }
.a11y-color .term-status[data-kind="good"], .a11y-color .be-status[data-kind="good"] { color: #8cc8ff; }
.a11y-color .term-status[data-kind="bad"], .a11y-color .be-status[data-kind="bad"] { color: #ffb070; }
.a11y-color .term-reach.ok { color: #1f5fbf !important; } .a11y-color .term-reach, .a11y-color .term-req { color: #b34700 !important; }
.a11y-color .arc-verdict { border-left-color: #b34700; background: #fde9dc; } .a11y-color .arc-verdict.ok { border-left-color: #1f5fbf; background: #e3effb; }

/* the iPhone: the notch (portrait: top · landscape: the sides) and the home bar — HUD, stick, buttons and the windows
   placed over them keep clear (env() is 0 everywhere else, so nothing moves on other screens) */
.hud-tl { left: calc(14px + var(--sal)); top: calc(12px + var(--sat)); }
.hud-tr { right: calc(14px + var(--sar)); top: calc(12px + var(--sat)); }
.stick { left: calc(18px + var(--sal)); bottom: calc(22px + var(--sab)); }
.tbtns { right: calc(14px + var(--sar)); bottom: calc(18px + var(--sab)); }
.intro-skip { right: calc(18px + var(--sar)); bottom: calc(3vh + var(--sab)); }
.box-bar { left: calc(14px + var(--sal)); top: calc(96px + var(--sat)); }
.mp-touchbar { left: calc(18px + var(--sal)); bottom: calc(166px + var(--sab)); }
.mp-touchui .mp-panel, .mp-touchui .mp-emotes { left: calc(12px + var(--sal)); bottom: calc(214px + var(--sab)); }
@media (max-height: 500px) { .mp-touchui .mp-emotes { left: calc(175px + var(--sal)); bottom: calc(166px + var(--sab)); } }
#ph-ui #ph-bar { bottom: calc(10px + var(--sab)); }
@media (pointer: coarse) { #txb-radio#txb-radio { top: calc(52px + var(--sat)); right: calc(12px + var(--sar)); } }
@media (max-width: 600px) {
  .is-touch .hud-tc { top: calc(52px + var(--sat)); right: calc(62px + var(--sar)); }
  .is-touch .dialog { bottom: calc(290px + var(--sab)); }
  .is-touch .boss, .is-touch .prompt { bottom: calc(300px + var(--sab)); }
  .is-touch .lock { bottom: calc(348px + var(--sab)); }
  .is-touch .fish-hud { bottom: calc(290px + var(--sab)); }
  .is-touch .fish-card { top: calc(96px + var(--sat)); bottom: calc(286px + var(--sab)); }
}
@media (min-width: 601px) {
  .is-touch .dialog, .is-touch .boss, .is-touch .fish-hud, .is-touch .fish-card { left: calc(165px + var(--sal)); right: calc(170px + var(--sar)); }
  .is-touch .dialog { bottom: calc(10px + var(--sab)); }
  .is-touch .boss { bottom: calc(12px + var(--sab)); }
  .is-touch .prompt { bottom: calc(14px + var(--sab)); }
  .is-touch .fish-hud { bottom: calc(8px + var(--sab)); }
}
/* a narrow phone upright (≤ 400 px): the path label touched the objective — it goes under the radio's button, on the right */
@media (max-width: 400px) and (orientation: portrait) { .is-touch .hud-tc { top: calc(96px + var(--sat)); right: calc(14px + var(--sar)); } }
/* a short landscape phone (an iPhone is ~340 px tall with Safari's bars): the action buttons reached the top right, under
   TX BLASTER RADIO's button — a little shorter there (still ≥ 44 px to hit), so KICK starts below it */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 420px) {
  .tbtns { gap: 8px; }
  .tb { height: 46px; } .tb-kick { height: 54px; } .tb-sm { height: 36px; }
  .has-glove .tbtns .tb:not(.tb-kick):not(.tb-sm) { height: 44px; }
}
