:root {
  --blue: #1B8FF2;
  --blue-l: #4DB6F7;
  --pink: #F11C6B;
  --ice: #cfe6ff;
  --line: rgba(77,182,247,.22);
  --void: #070b14;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-type: 'Special Elite', 'Courier New', Courier, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--void); color: var(--ice); font-family: var(--f-mono); font-size: 13px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 2px; }

/* The view runs the full width of the window; the room name, the item bar and the panels below keep
   to a readable column. */
#game { padding: 18px 0 40px; }
#game > .bar, #game > .panels { max-width: 1240px; margin-inline: auto; padding-inline: 16px; box-sizing: border-box; }
/* The room name sits at the window's left edge, not the centered column's, so it lines up with the full-width stage. */
#game > .hud { padding-inline: 16px; }
.hud { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-block: 4px 12px; }
.rname { font-family: var(--f-type); font-size: clamp(20px, 3.4vw, 28px); color: #eaf4ff; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-variant-numeric: tabular-nums; }
.stats b { color: #fff; font-weight: 600; }
.rmeta { margin-left: 12px; }
.rcode { font-size: 12px; color: var(--blue-l); opacity: .8; letter-spacing: .06em; }
.rcoord { margin-left: 10px; padding: 0; background: none; border: 0; font: inherit; font-size: 12px; letter-spacing: .06em; color: var(--blue-l); cursor: pointer; }
.rcoord:hover, .rcoord:focus-visible { color: #fff; text-decoration: underline; }
.rring, .rdist, .rland { margin-left: 10px; font-size: 12px; letter-spacing: .06em; color: var(--blue-l); opacity: .8; }
.meter { display: inline-flex; align-items: center; gap: 8px; }
/* The HUD sits in the view's top right corner, inside the view, so it shows in fullscreen too, and
   above the black-out when you collapse (z-index over the collapse screen's 40). */
.hud-corner { position: absolute; top: 12px; right: 12px; z-index: 45; display: grid; justify-items: end; gap: 6px; padding: 10px 12px; background: rgba(7,11,20,.6); border: 1px solid rgba(77,182,247,.22); font-size: 12px; color: #dcebff; max-width: min(320px, calc(100% - 24px)); }
.hud-corner .meter i { width: 120px; height: 7px; }
.hud-corner .fx:empty { display: none; }
.hud-clock { font: 600 15px "JetBrains Mono", monospace; letter-spacing: .08em; color: #8ff0b0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-clock:empty { display: none; }
/* The night shift (app/night.py): the clock goes red while more creatures are out. */
html.bk-night .hud-clock { color: #ff7a6b; }
.hud-corner .copyright { font-size: 10px; opacity: .45; }
.keys-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; padding: 6px 58px; background: linear-gradient(to top, rgba(4,7,13,.85), rgba(4,7,13,0)); font-size: 11px; color: rgba(220,235,255,.75); z-index: 45; }
/* The bar spans the stage over the gear, so only its buttons take clicks and the gear under it still works. */
.keys-bar { pointer-events: none; }
.keys-bar button { pointer-events: auto; }
.keys-bar .linkish { font-size: 11px; }
/* Three groups of the keys that matter while walking, split by a thin rule; the rest are in Controls. */
.kgroup { display: flex; align-items: center; gap: 14px; padding: 0 14px; }
.kgroup + .kgroup { border-left: 1px solid rgba(77,182,247,.25); }
.keys-bar .linkish, .keys-bar .quest-key { color: inherit; text-decoration: none; }
.inv-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(660px, calc(100% - 32px)); height: min(620px, calc(100% - 64px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 18px 20px; background: rgba(7,11,20,.94); border: 1px solid rgba(77,182,247,.4); box-shadow: 0 18px 60px rgba(0,0,0,.6); color: #dcebff; font-size: 12px; z-index: 6; }
.inv-panel header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.inv-panel h3 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-l); }
.inv-close { font-size: 12px; color: #eaf4ff; }
.inv-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inv-grid li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 8px; min-height: 92px; border: 1px solid rgba(77,182,247,.2); background: rgba(77,182,247,.04); text-align: center; }
.inv-grid li svg { width: 72px; height: 26px; }
.inv-grid li .key { position: absolute; top: 4px; left: 6px; font: 600 10px "JetBrains Mono", monospace; opacity: .6; }
.inv-grid li .name { font-size: 11px; line-height: 1.3; }
/* The item's sort (Weapon, Food) under or beside its name. */
.inv-grid .tag, .inv-pockets .tag { font: 600 10px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-l); opacity: .8; }
.inv-grid li.empty { opacity: .35; }
.inv-grid li.held { border-color: #4DB6F7; background: rgba(77,182,247,.16); }
/* Empty hand: always there above the slots, lit while nothing is held (game.js renderInvPanel). */
.inv-hand { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 8px; padding: 8px 10px; border: 1px solid rgba(77,182,247,.2); background: rgba(77,182,247,.04); color: inherit; font: 600 12px "JetBrains Mono", monospace; text-align: left; cursor: pointer; }
.inv-hand .key { font-size: 10px; opacity: .6; }
.inv-hand[aria-pressed="true"] { border-color: #4DB6F7; background: rgba(77,182,247,.16); }
.inv-hand[aria-pressed="true"] .key { opacity: 1; color: #4DB6F7; }
.inv-grid li .inv-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.inv-grid li .inv-acts button { padding: 2px 8px; font-size: 10px; }
.inv-grid li .count { position: absolute; top: 4px; right: 6px; font: 600 10px "JetBrains Mono", monospace; color: #cfe6ff; }
.inv-pockets { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; max-height: 30vh; overflow: auto; }
.inv-pockets li { display: grid; grid-template-columns: 52px 1fr; grid-auto-flow: column; grid-auto-columns: auto; align-items: center; gap: 8px; padding: 3px 6px; border: 1px solid rgba(77,182,247,.15); }
.inv-pockets li svg { width: 52px; height: 18px; }
.inv-pockets li .name { font-size: 11px; }
.inv-pockets li button { padding: 2px 8px; font-size: 10px; }
.inv-pockets li.none { display: block; opacity: .5; border: 0; }
.inv-grid li.held .key { opacity: 1; color: #4DB6F7; }
.inv-pack-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.inv-pack-head button { padding: 2px 8px; font-size: 10px; }
.inv-grid li:not(.empty) { cursor: grab; }
/* A drag never selects text, which would also scroll the page under a pointer held past its edge. */
.inv-grid li, .inv-pockets li { -webkit-user-select: none; user-select: none; }
.inv-grid li.dragging, .inv-pockets li.dragging { opacity: .35; }
.inv-pockets li:not(.none) { cursor: grab; }
/* A slot in the air (game.js dragStart): the box under it lights blue when it takes the slot, red when it will not. */
.inv-grid li.drop-ok, .inv-pockets li.drop-ok { opacity: 1; border-color: #4DB6F7; background: rgba(77,182,247,.24); box-shadow: inset 0 0 0 1px #4DB6F7; }
.inv-grid li.drop-no, .inv-pockets li.drop-no { opacity: 1; border-color: #e5484d; background: rgba(229,72,77,.14); box-shadow: inset 0 0 0 1px #e5484d; }
.inv-pockets.drop-ok { outline: 1px dashed #4DB6F7; outline-offset: 3px; }
.inv-pockets.drop-no { outline: 1px dashed #e5484d; outline-offset: 3px; }
html.bk-drag, html.bk-drag * { cursor: grabbing !important; }
html.bk-drag.bk-drag-no, html.bk-drag.bk-drag-no * { cursor: no-drop !important; }
.inv-ghost { position: fixed; left: 0; top: 0; z-index: 90; width: 120px; margin: -30px 0 0 -60px; padding: 8px 6px; display: grid; justify-items: center; gap: 4px; list-style: none;
  pointer-events: none; background: rgba(7,11,20,.92); border: 1px solid #4DB6F7; color: #dcebff; font-size: 11px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
/* Above a finger, which would cover it. */
.inv-ghost.touch { margin-top: -96px; }
.inv-ghost.no { border-color: #e5484d; opacity: .7; }
.inv-ghost svg { width: 72px; height: 26px; }
.inv-ghost .inv-acts, .inv-ghost .key, .inv-ghost .count, .inv-ghost button { display: none; }
.inv-panel footer { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; opacity: .8; font-size: 11px; }
@media (max-width: 420px) { .inv-grid { grid-template-columns: repeat(2, 1fr); } }
.meter i { display: block; width: 70px; height: 6px; border: 1px solid var(--line); }
.meter i b { display: block; height: 100%; background: var(--blue-l); transition: width .3s ease; }
.meter i b.health { background: #e5484d; }
.meter i b.health.low { animation: lowhp 1s steps(2) infinite; }
@keyframes lowhp { 50% { opacity: .35; } }
/* A raised maximum (app/boosts.py): the bar is health out of the maximum, the track past the usual
   hundred shows gold, the shield is a pale band after health, and the maximum is written beside it. */
#mHealth i { position: relative; }
#mHealth.boosted i { border-color: #f2c21a; background: linear-gradient(90deg, transparent var(--base, 100%), rgba(242,194,26,.3) var(--base, 100%)); }
#mHealth i u.shield { position: absolute; top: 0; bottom: 0; background: #cfe6ff; transition: left .3s ease, width .3s ease; }
.hp-max { font-style: normal; font-size: 11px; font-weight: 600; color: #ffd75a; font-variant-numeric: tabular-nums; }
.fx .boost { border-color: #f2c21a; color: #ffe08a; }
.fx .shield { border-color: #9fd2ff; color: #cfe6ff; }
/* An empty water meter glows red while thirst slows you and takes health (game.js hud). */
.meter.empty i { border-color: #e5484d; box-shadow: 0 0 6px 1px rgba(229,72,77,.75); animation: dry 1.6s ease-in-out infinite; }
.meter.empty > span { color: #ff8a8d; }
@keyframes dry { 50% { box-shadow: 0 0 2px 0 rgba(229,72,77,.4); } }
@media (prefers-reduced-motion: reduce) { .meter.empty i { animation: none; } }
.meter i b.stamina { background: #4fd18b; transition: none; }
.fade.hurt { background: var(--pink); opacity: .35; transition: none; }
.stage.static > canvas:first-child { filter: blur(.6px) contrast(1.25) saturate(.35) sepia(.15); animation: vhsjitter .18s steps(2) infinite; }
@keyframes vhsjitter { 0% { transform: translateX(0); } 50% { transform: translateX(2px); } }
.vhs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; mix-blend-mode: screen; opacity: .55; }
.stage.static.heavy > canvas:first-child { filter: blur(1.1px) contrast(1.45) saturate(.15) sepia(.2); animation-duration: .1s; }
@keyframes vhsjitterheavy { 0% { transform: translateX(0); } 33% { transform: translateX(-4px); } 66% { transform: translateX(5px); } }
.stage.static.heavy > canvas:first-child { animation-name: vhsjitterheavy; animation-timing-function: steps(3); }
.stage.heavy .vhs { opacity: .85; }
.controls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; margin-top: 10px; }
.controls-grid p { margin: 0; font-size: 11px; color: #dcebff; display: flex; align-items: baseline; gap: 4px; }
/* A panel that opens on a click: its title is the whole closed panel, with a short summary beside it. */
/* The panels that open on a click share one full-width row, equal boxes side by side; opening one
   leaves the others closed and short. */
.folds { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.panel.fold summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.panel.fold summary::-webkit-details-marker { display: none; }
.panel.fold summary h2 { margin: 0; }
.panel.fold summary::after { content: "+"; margin-left: auto; color: var(--blue-l); font: 600 14px "JetBrains Mono", monospace; }
.panel.fold[open] summary::after { content: "-"; }
.fold-sum { font: 11px "JetBrains Mono", monospace; color: var(--blue-l); }
.panel.fold :is(#achMine, #online) { margin-top: 10px; }
.panel-note { margin: -4px 0 8px; font-size: 11px; opacity: .65; }
.period-tabs { margin: 0 0 10px; }
.period-tabs button { height: 26px; padding: 0 10px; font-size: 11px; color: inherit; }
.inv-tabs button { height: 26px; font-size: 11px; color: inherit; }
.shop .inv-tabs { margin-bottom: 10px; }
/* A key the player reads, written [ U ] by static/keys.js: the brackets are its cap, so no box is drawn. */
kbd { font: 600 1em var(--f-mono); color: #fff; white-space: nowrap; }
/* Several states at once wrap onto more rows inside the HUD corner instead of running past its edge. */
.fx { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 8px; }
.fx span { padding: 2px 8px; border: 1px solid var(--line); white-space: nowrap; }
.fx .runs { border-color: var(--pink); color: #ffb3cf; }
.fx .bad { border-color: var(--pink); color: #ffb3cf; }
/* The tester tag (app/marks.py): beside your name, and on testers in Online now. */
.tester-tag { font: 600 10px "JetBrains Mono", monospace; color: #ffcf5a; }
.online .tester { font-style: normal; font-size: 10px; color: #ffcf5a; margin-left: 6px; }
/* A deadline almost up: one soft pulse a second, a glow rather than motion when motion is reduced. */
.fx .urgent { animation: fx-urgent 1s ease-out; }
@keyframes fx-urgent { 0% { transform: scale(1.12); background: rgba(255,90,140,.45); } 100% { transform: scale(1); background: transparent; } }
@media (prefers-reduced-motion: reduce) { @keyframes fx-urgent { 0% { background: rgba(255,90,140,.45); } 100% { background: transparent; } } }
.hud-corner .fx { flex-wrap: wrap; justify-content: flex-end; font-size: 11px; }
/* The waypoint chip (wayArrow in game.js): the arrow points up at rotate 0, like .obj-arrow. */
.way { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: #e6d6ff; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* A far typed coordinate is cut short here rather than pushing past the HUD corner. */
.way > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.way-arrow { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 12px solid #c9a2ff; transform-origin: 50% 60%; flex: none; }
/* The supply drop chip's arrow is amber, so it is never mistaken for the waypoint's. */
.way.drop .way-arrow { border-bottom-color: #ffb84d; }
.code-tag { background: rgba(77,182,247,.1); border: 1px solid rgba(77,182,247,.35); color: #cfe6ff; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .06em; padding: 2px 6px; cursor: copy; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue-l); text-decoration: underline dotted; text-underline-offset: 3px; }

.stage-wrap { position: relative; background: #000; }
.stage-wrap:fullscreen { display: grid; place-items: center; }
.stage-wrap:fullscreen .stage { width: 100vw; height: 100vh; }
/* As tall as the window allows under the room name, never a letterbox: the camera takes whatever shape
   the window has (game.js resizes on every change). */
.stage { position: relative; width: 100%; height: calc(100svh - 64px); min-height: 320px; overflow: hidden; outline: none;
  box-shadow: 0 0 0 1px var(--line), 0 30px 90px -30px rgba(27,143,242,.45); transition: transform .28s ease-in, filter .28s ease-in; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
/* Its own stacking context, so the panels' z-index stays inside the stage. */
.stage { isolation: isolate; }
.stage.nausea canvas { filter: brightness(.55) saturate(.6) blur(.6px) hue-rotate(-25deg); }
.stage.nausea2 canvas { filter: brightness(.45) saturate(.4) blur(1.6px) hue-rotate(-55deg) contrast(1.15); animation: queasy 4.6s ease-in-out infinite; }
@keyframes queasy { 0%, 100% { transform: scale(1.02) skewX(0deg); } 30% { transform: scale(1.05) skewX(1.6deg); } 70% { transform: scale(1.03) skewX(-1.2deg); } }
.stage.parched canvas { filter: saturate(.5) contrast(.9); }
/* .14s is game.js FADE_MS: a door builds the next room once this is fully dark. */
.fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .14s ease; }
.fade.on { opacity: 1; }
/* Between a teleport and the new room on screen (game.js loading). Above the view and its fade. */
.loading { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(ellipse at center, #0b111c 0%, #030508 75%); }
.loading[hidden] { display: none; }
.loading-card { display: flex; flex-direction: column; gap: 10px; width: min(380px, 100%); padding: 22px 24px; background: rgba(7,11,20,.95); border: 1px solid rgba(77,182,247,.35); color: #dcebff; font: 600 13px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .04em; }
.loading-kicker { color: #7f9bb8; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.loading-card b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loading-bar { position: relative; height: 4px; overflow: hidden; background: rgba(77,182,247,.18); }
#loadingFill { position: absolute; inset: 0 auto 0 0; width: 0; background: #4DB6F7; transition: width .25s ease-out; }
.loading-step { display: flex; justify-content: space-between; gap: 12px; }
#loadingDetail { min-height: 1.3em; color: #7f9bb8; font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { #loadingFill { transition: none; } }
/* Asleep: the room fades out and a clock of its own runs fast; pointer-free so a tap still reaches the stick. */
.sleep { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #000; color: rgba(220,235,255,.7); font-size: 13px; pointer-events: none; animation: sleep-in 1.6s ease both; z-index: 4; padding: 16px; text-align: center; }
.sleep[hidden] { display: none; }
.sleep-clock { font: 600 28px "JetBrains Mono", monospace; letter-spacing: .08em; color: #8ff0b0; font-variant-numeric: tabular-nums; }
@keyframes sleep-in { from { opacity: 0; } to { opacity: .94; } }
.cross { position: absolute; 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 1px rgba(0,0,0,.6); pointer-events: none; }
.eat-cue { position: absolute; left: calc(50% + 14px); top: calc(50% - 28px); color: rgba(255,255,255,.8); pointer-events: none; filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); }
/* A gun's rounds beside the dot (game.js ammoHud); amber when empty, and a flash on a click from an empty one. */
.ammo { position: absolute; left: calc(50% + 26px); top: calc(50% - 11px); z-index: 4; padding: 2px 6px; background: rgba(7,11,20,.55); color: #dcebff; font: 600 12px "JetBrains Mono", monospace; white-space: pre; pointer-events: none; text-shadow: 0 1px 2px #000; }
.ammo.empty { color: #ffcf5a; }
.ammo.flash { animation: ammo-flash .45s ease; }
@keyframes ammo-flash { 0%, 60% { background: rgba(241,28,107,.55); color: #fff; } }
@media (prefers-reduced-motion: reduce) { .ammo.flash { animation: none; } }
/* A taser's own charge beside the dot (game.js zapHud): it fills by itself, and dims while short of a shot. */
.zap-meter { position: absolute; left: calc(50% + 26px); top: calc(50% - 9px); z-index: 4; display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: rgba(7,11,20,.55); color: #dcebff; font: 600 11px "JetBrains Mono", monospace; pointer-events: none; text-shadow: 0 1px 2px #000; }
.zap-meter i { display: block; width: 64px; height: 6px; border: 1px solid rgba(159,220,255,.6); }
.zap-meter b { display: block; height: 100%; background: #9fdcff; box-shadow: 0 0 6px rgba(159,220,255,.8); }
.zap-meter.short b { background: #4d6f86; box-shadow: none; }
.zap-meter.flash { animation: ammo-flash .45s ease; }
@media (prefers-reduced-motion: reduce) { .zap-meter.flash { animation: none; } }
/* Aimed down the sights: the dot narrows to a point. */
.stage.aiming .cross { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.hint { position: absolute; left: 50%; top: calc(50% + 18px); transform: translateX(-50%); padding: 4px 10px; background: rgba(7,11,20,.8); border: 1px solid var(--line); font-size: 12px; pointer-events: none; white-space: nowrap; }
/* Above the crosshair: the debug console rises from the bottom to just under the middle. */
.look { position: absolute; left: 50%; top: calc(50% - 90px); transform: translateX(-50%); z-index: 7; padding: 6px 12px; background: rgba(7,11,20,.8); border: 1px solid var(--line); font-size: 12px; pointer-events: none; }
.tabs { display: flex; gap: 6px; }
.tabs button { height: 30px; padding: 0 12px; background: none; border: 1px solid var(--line); cursor: pointer; }
.tabs button[aria-selected="true"] { background: rgba(27,143,242,.2); border-color: var(--blue-l); color: #fff; }
#pad { display: block; width: 100%; aspect-ratio: 2 / 1; background: #e9eef4; cursor: crosshair; touch-action: none; }
#drawPane { display: grid; gap: 6px; }
.writer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.stage.walk { transform: scale(1.22); filter: brightness(0); }
.stage.arrive { animation: arrive .6s steps(1); }
@keyframes arrive { 0% {filter:brightness(.15)} 25% {filter:brightness(1)} 35% {filter:brightness(.4)} 50% {filter:brightness(1)} }
.stage.shake { animation: shake .45s; }
@keyframes shake { 0%,100% {transform:translate(0,0)} 20% {transform:translate(-8px,3px) rotate(-1deg)} 50% {transform:translate(7px,-2px) rotate(1deg)} 80% {transform:translate(-3px,1px)} }
.stage.nausea svg { animation: wobble 3.2s ease-in-out infinite; filter: brightness(.55) saturate(.6) blur(.6px) hue-rotate(-25deg); }
@keyframes wobble { 0%,100% {transform:rotate(0) skewX(0) scale(1.04)} 25% {transform:rotate(1.6deg) skewX(2deg) scale(1.06)} 50% {transform:rotate(-1deg) skewX(-1.5deg) scale(1.03)} 75% {transform:rotate(-1.8deg) skewX(1deg) scale(1.07)} }
.stage.parched svg { filter: saturate(.5) contrast(.9); }
.flicker { animation: flick 4.3s infinite steps(1); }
@keyframes flick { 0%,40% {opacity:1} 41% {opacity:.2} 42% {opacity:1} 43% {opacity:.35} 45%,86% {opacity:1} 87% {opacity:.25} 88%,100% {opacity:1} }
.door, .switch, .find, .item, .socket { cursor: pointer; }
.prop { cursor: grab; }
.dragging, .dragging * { cursor: grabbing !important; }
.door .hov { opacity: 0; transition: opacity .2s; }
.door:hover .hov, .door:focus-visible .hov { opacity: .12; }
.stage svg [role=button]:focus-visible { outline: none; }
.door:focus-visible .frame { stroke: #fff; stroke-width: 3; }
.item:hover, .item:focus-visible, .prop:focus-visible, .prop:hover, .find:focus-visible, .switch:focus-visible, .socket:focus-visible { filter: drop-shadow(0 0 5px rgba(77,182,247,.9)); }
.stage[data-held="marker"] .backwall { cursor: crosshair; }
.stage[data-held] .floor { cursor: cell; }
.door.jiggle { animation: jiggle .35s; }
@keyframes jiggle { 0%,100% {transform:translateX(0)} 25% {transform:translateX(-5px)} 75% {transform:translateX(5px)} }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% {opacity:.5} 50% {opacity:1} }

.toast { position: absolute; z-index: 70; left: 50%; bottom: 22%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 8px 14px;
  background: rgba(7,11,20,.9); border: 1px solid rgba(77,182,247,.4); font-family: var(--f-type); font-size: 15px; color: #eaf4ff; text-align: center; }
.gate { position: absolute; inset: 0; z-index: 58; display: grid; place-items: center; background: rgba(0,0,0,.62); padding: 16px; }
.fridge { display: grid; gap: 10px; width: min(320px, 100%); max-height: 100%; overflow-y: auto; padding: 22px; background: rgba(7,11,20,.95); border: 1px solid rgba(77,182,247,.35); }
/* The way in: two panels side by side (new, coming back), stacked on a narrow screen; a party code
   asked for on the start screen is named above them (#gateJoining). */
.gate form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; width: min(640px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; }
.gate-part { display: grid; gap: 10px; align-content: start; padding: 22px; background: rgba(7,11,20,.95); border: 1px solid rgba(77,182,247,.35); }
.gate-part label { line-height: 1.45; color: #b9cbe0; }
.gate-joining { grid-column: 1 / -1; margin: 0; padding: 10px 14px; background: rgba(7,11,20,.95); border: 1px solid rgba(93,255,154,.45); color: #b6f0c8; }
.gate-close { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 760px) { .gate form { grid-template-columns: 1fr; width: min(420px, 100%); gap: 10px; } }
/* The fridge, food shelves and every choice list sit in the middle of the view, like every other panel. */
.fridge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
.fridge ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fridge li { display: flex; align-items: center; gap: 8px; }
.fridge li span { flex: 1; }
#choicesList button { width: 100%; text-align: left; }
#choicesList button.active { background: rgba(77,182,247,.22); border-color: #4DB6F7; color: #fff; }
#choicesList button.active::before { content: "> "; }
.gate h2, .fridge h2 { margin: 0; font-family: var(--f-type); font-weight: 400; font-size: 20px; color: #eaf4ff; }
.gate-err { margin: 0; color: #ffb3cf; }
.writer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); padding: 14px; background: rgba(7,11,20,.95); border: 1px solid rgba(77,182,247,.5); }
.field { width: 100%; height: 38px; padding: 0 10px; background: #000; border: 1px solid rgba(77,182,247,.4); color: #fff; font-family: var(--f-mono); font-size: 14px; }
.act { height: 36px; padding: 0 14px; background: var(--blue); color: #fff; border: 0; font-family: var(--f-mono); font-weight: 600; cursor: pointer; }
.act:hover { background: #3aa3f5; }
.ghost { height: 32px; padding: 0 10px; background: none; border: 1px solid var(--line); cursor: pointer; font-family: var(--f-mono); font-size: 12px; }
.ghost:hover { border-color: var(--blue-l); }
/* A button off while its request is out (or not open to you) looks it, so a second press is not tried. */
.ghost:disabled, .act:disabled { opacity: .5; cursor: default; }
.ghost:disabled:hover { border-color: var(--line); }
.act:disabled:hover { background: var(--blue); }
.maplink { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }

.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-block: 12px 6px; }
.inv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.inv .empty { opacity: .5; }
.slot { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 12px; }
.slot svg { width: 46px; height: 24px; }
.slot kbd { opacity: .5; }
.slot[aria-pressed="true"] { background: rgba(27,143,242,.2); border-color: var(--blue-l); color: #fff; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.bar { padding-block: 12px 18px; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.panel { min-width: 0; padding: 16px 18px 18px; border: 1px solid var(--line); background: rgba(27,143,242,.035); }
.panel h2 { margin: 0 0 10px; font-family: var(--f-type); font-weight: 400; font-size: 19px; color: #eaf4ff; }
.ad-panel { display: grid; justify-items: center; align-content: start; }
.ad-panel h2 { justify-self: start; }
.ad-box { display: block; width: 300px; max-width: 100%; height: auto; aspect-ratio: 300 / 250; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.board li { display: grid; grid-template-columns: 1.6em 1fr auto auto; gap: 10px; padding: 5px 6px; }
.board li.you { background: rgba(27,143,242,.2); color: #fff; }
.board .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .v { opacity: .75; }
.online { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px; max-height: 240px; overflow: auto; font-family: var(--f-mono); font-size: 12px; }
/* One explorer a row, the whole name shown: a long one wraps rather than being cut. */
.online li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 6px; }
.online li .n { min-width: 0; overflow-wrap: anywhere; }
.online li .v { flex: none; opacity: .6; }
.online li.you { background: rgba(27,143,242,.2); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .flicker, .pulse, .stage.arrive, .stage.shake, .stage.nausea svg, .door.jiggle { animation: none; }
  .stage { transition: none; }
}

.restore { font-size: 12px; }
.restore-row { display: flex; gap: 6px; }
.restore-row .field { flex: 1; min-width: 0; }
.codecard { display: grid; gap: 10px; width: min(360px, 100%); padding: 22px; background: rgba(7,11,20,.95); border: 1px solid var(--blue-l); }
.codecard p { margin: 0; line-height: 1.5; }
.mailbox { display: grid; gap: 6px; font-size: 12px; }
.gate-err.ok { color: #b6f0c8; }
/* The Player panel: the header stays put and everything under it scrolls, the figure kept in view. */
.inv-panel.player-panel { display: flex; flex-direction: column; overflow: hidden; }
.player-panel > header { flex: none; }
.player-panel > #playerTabs { flex: none; }
.player-panel > .player-main { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding-top: 14px; }
.player-panel header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
/* The figure stays in view beside the tab, the zoom buttons in its corner. */
.pl-figure { position: sticky; top: 0; align-self: start; min-width: 0; }
.pl-figure .store-preview { position: static; }
.pl-zoom { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.pl-zoom .ghost { width: 30px; padding: 0; background: rgba(7,11,20,.75); font: 600 16px/1 var(--f-mono); }
/* Only the sign dims, so the figure never shows through a button at the end of the range. */
.pl-zoom .ghost:disabled { opacity: 1; color: rgba(255,255,255,.3); cursor: default; }
/* Every tab is groups under the same heading, a hairline between them, rows inside. */
/* A little room on the right, so a button never runs into the scrollbar of a long tab. */
.player-body { display: grid; gap: 14px; align-content: start; min-width: 0; padding-right: 6px; }
.pl-group { display: grid; gap: 8px; min-width: 0; }
.pl-group + .pl-group { padding-top: 14px; border-top: 1px solid rgba(77,182,247,.14); }
.player-body h3 { margin: 0; font: 600 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-l); }
.player-body h3 small { margin-left: 6px; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(220,235,255,.6); }
/* A labeled row: the labels in a column of their own, so every control starts on the same line. */
.pl-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.pl-label { font-size: 11px; color: rgba(220,235,255,.7); }
.player-body ul { list-style: none; margin: 0; padding: 0; display: grid; }
.player-body li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-bottom: 1px solid rgba(77,182,247,.12); }
.player-body li:last-child { border-bottom: 0; }
.player-body .pl-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.player-body .pl-state { flex: none; font-size: 11px; color: rgba(220,235,255,.6); }
.player-body li .ghost { flex: none; min-width: 84px; }
/* What a found piece does while worn (app/gear.py), under its name, and Look, which needs no width of Wear's. */
.player-body .pl-use { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: rgba(220,235,255,.65); }
.player-body li .ghost.pl-look { min-width: 0; min-height: 36px; }
.player-body li.worn { background: rgba(77,182,247,.08); box-shadow: inset 2px 0 0 var(--blue-l); }
.player-body .pl-star { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; fill: #ffd04a; filter: drop-shadow(0 0 3px rgba(255,200,70,.7)); }
.player-body .pl-loot li.rare { box-shadow: inset 2px 0 0 rgba(90,150,255,.75); }
.player-body .pl-loot li.legendary { box-shadow: inset 2px 0 0 rgba(255,200,70,.85); background: rgba(255,200,70,.06); }
.player-body .pl-loot li.exclusive { box-shadow: inset 2px 0 0 rgba(90,230,140,.85); background: rgba(90,230,140,.06); }
.player-body .pl-code { flex: 1; min-width: 0; font: 600 15px var(--f-mono); letter-spacing: .08em; color: #fff; padding: 6px 8px; text-align: center; border: 1px dashed var(--blue-l); }
.pl-empty { display: grid; justify-items: start; gap: 10px; }
.pl-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pl-line a { color: #8cc8ff; overflow-wrap: anywhere; }
/* Deleting the account: folded away, in red, last. */
.pl-purge, .pl-fold { display: grid; gap: 10px; }
.pl-purge summary, .pl-fold summary { width: max-content; max-width: 100%; cursor: pointer; color: #ff8fa8; }
/* Signing out loses nothing, so it opens in the panel's own blue, not the red of deleting. */
.pl-fold summary { color: var(--blue-l); }
.player-body .pl-danger { flex: none; border-color: rgba(255,92,138,.6); color: #ffd1de; }
.player-body .pl-danger:hover { border-color: #ff5c8a; background: rgba(255,92,138,.14); }
.codecard code { font: 600 20px var(--f-mono); letter-spacing: .08em; color: #fff; padding: 10px; text-align: center; border: 1px dashed var(--blue-l); }
.fridge .price { color: #e7dab3; font-size: 12px; }
/* The store keeps to the left so the HUD corner, where the return code to paste is shown, stays clear.
   Header, code and tabs stay put; only the list scrolls. */
/* The store sits in the middle of the view, above the HUD, the objective and the quest tracker. */
/* One fixed size for the store and the inventory, its other tab: switching tabs or store sections never resizes it. */
/* A toast raised while the store is open, so what the store says never lands behind it (touch included). */
.stage-wrap:has(.shop:not([hidden])) .toast { z-index: 61; }
.shop { left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; width: min(660px, calc(100% - 32px)); height: min(620px, calc(100% - 64px)); display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; overflow: hidden; }
/* The header rows keep their height; only the list scrolls, inside the panel, at any screen size. */
.shop > :not(.store-main) { flex: none; }
.shop > .store-main { flex: 1 1 auto; min-height: 0; }
/* The quest tracker and the objective step aside for the store, the inventory and the Player panel (the
   objective sat over their top edge); the HUD corner stays up, so the return code can be copied from it for the Coins tab. */
.stage-wrap:has(.shop:not([hidden]), .inv-panel:not([hidden]), .inspect:not([hidden])) :is(.track, .objective) { visibility: hidden; }
.stage-wrap:has(.shop:not([hidden])) .hud-corner { z-index: 61; }
.shop-head { display: flex; align-items: center; gap: 12px; }
/* A return code: eight empty boxes to fill (static/codebox.js), with the text input invisible on top. */
.codebox { position: relative; display: flex; align-items: center; gap: 4px; }
.cb-cell { flex: 1 1 0; min-width: 0; max-width: 40px; height: 42px; display: grid; place-items: center; background: #000; border: 1px solid rgba(77,182,247,.55);
  border-bottom-width: 3px; color: #fff; font: 600 18px var(--f-mono); transition: border-color .15s, background .15s; }
.cb-cell.on { border-color: #fff; background: rgba(77,182,247,.18); animation: cb-blink 1s steps(2) infinite; }
.cb-dash { flex: none; color: var(--blue-l); font: 600 18px var(--f-mono); }
.codebox.full .cb-cell { border-color: var(--blue-l); }
.codebox .field { position: absolute; inset: 0; height: 100%; color: transparent; caret-color: transparent; background: transparent; border-color: transparent; font-size: 16px; }
.codebox .field::selection { background: transparent; }
.codebox.long :is(.cb-cell, .cb-dash) { visibility: hidden; }
.codebox.long .field { color: #fff; caret-color: auto; background: #000; border-color: rgba(77,182,247,.4); }
.codebox.wrong .cb-cell, .codebox.wrong.long .field { border-color: #ff5c8a; background: rgba(255,92,138,.16); color: #ffd1de; animation: none; }
.codebox.wrong { animation: cb-shake .4s; }
.code-err { padding: 8px 10px; border: 1px solid rgba(255,92,138,.6); background: rgba(255,92,138,.12); color: #ffd1de; font-size: 13px; line-height: 1.45; }
@keyframes cb-blink { 50% { border-color: rgba(77,182,247,.55); } }
@keyframes cb-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .cb-cell.on, .codebox.wrong { animation: none; } }
.shop-head h2 { flex: 1; }
.shop-wallet { font: 600 13px var(--f-mono); color: #e7dab3; }
.shop-code { display: flex; align-items: center; gap: 10px; font: 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-l); }
.shop-code span { flex: none; }
.shop-code .field { height: 34px; letter-spacing: .08em; }
/* Only the note under the return code tucks up against it; notes inside the list keep their space. */
.shop > .shop-note { margin-top: -6px; font-size: 11px; opacity: .6; }
.store-tabs { flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.store-tabs button { height: 34px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 12px; opacity: .7; }
.store-tabs button:hover { opacity: 1; }
.store-tabs button[aria-selected="true"] { background: none; border-bottom-color: var(--blue-l); opacity: 1; }
.store-main { display: grid; grid-template-columns: 1fr; gap: 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.store-main:has(.store-preview:not([hidden])) { grid-template-columns: 190px minmax(0, 1fr); }
.store-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.store-body h3 { margin: 8px 0 0; font: 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-l); opacity: .85; }
.store-body h3:first-child { margin-top: 0; }
.store-body ul { gap: 0; }
.store-body li { min-height: 40px; padding: 4px 8px; border-bottom: 1px solid rgba(77,182,247,.12); }
.store-body li:hover { background: rgba(77,182,247,.06); }
.store-body li .price { min-width: 64px; text-align: right; }
.store-body li .ghost { min-width: 76px; }
.store-body small { display: block; font-size: 11px; opacity: .6; }
/* A coin pack: its name, then how many coins in a column of their own; on a narrow panel the count drops under the name. */
.store-body .pack { display: flex; align-items: center; gap: 10px; min-width: 0; }
.store-body .pack b { flex: 1; font-weight: inherit; }
.store-body .pack .qty { flex: none; width: 9em; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; opacity: .8; }
@media (max-width: 560px) {
  .store-body .pack { flex-direction: column; align-items: flex-start; gap: 2px; }
  .store-body .pack .qty { width: auto; font-size: 11px; }
}
/* The Coins tab's group labels, drawn as colored dividers. */
.store-body h3.pack-label { display: flex; align-items: center; gap: 8px; opacity: 1; }
.store-body h3.pack-label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .5; }
.store-body h3.pack-label.plain { color: var(--blue-l); }
.store-body h3.pack-label.supporter { color: #d9b04a; }
.store-preview { display: block; position: sticky; top: 0; width: 100%; height: 280px; background: radial-gradient(ellipse at 50% 85%, rgba(77,182,247,.14), transparent 70%); border: 1px solid var(--line); }
.store-preview[hidden] { display: none; }
@media (max-width: 620px) {
  .store-main:has(.store-preview:not([hidden])) { grid-template-columns: 1fr; }
  .store-preview { position: static; height: 220px; }
  /* Not sticky over one column; still the frame the zoom buttons sit in. */
  .pl-figure { position: relative; }
}
.store-preview:not([hidden]) { touch-action: none; cursor: grab; }
.paint-area { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: center; }
.paint-area .paint-grid { flex: 1 1 200px; margin: 0; }
.paint-grid { display: block; width: 100%; max-width: 288px; aspect-ratio: 1; margin: 0 auto; image-rendering: pixelated; touch-action: none; cursor: crosshair; }
/* The map of the garment beside the grid: same areas, numbered, with a key and the area under the pointer. */
.paint-map { flex: 0 1 112px; display: grid; gap: 6px; font-size: 11px; }
.paint-map svg { width: 100%; max-width: 112px; aspect-ratio: 1; background: #24272b; border: 1px solid var(--line); }
.paint-map svg text { font-family: var(--f-mono); }
.paint-map g.on rect { fill-opacity: .55; }
.paint-map ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.paint-map li { display: flex; align-items: center; gap: 6px; min-height: 0; padding: 1px 4px; border: 0; opacity: .75; }
.paint-map li.on { opacity: 1; background: rgba(77,182,247,.12); }
.paint-map li i { width: 9px; height: 9px; flex: none; }
.paint-where { margin: 0; font: 600 11px var(--f-mono); color: var(--blue-l); min-height: 1.4em; }
.tone-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tone-pick .tone { width: 30px; height: 30px; padding: 0; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; background: var(--tone); cursor: pointer; }
.tone-pick .tone[aria-pressed="true"] { border-color: var(--blue-l); box-shadow: 0 0 0 2px rgba(77,182,247,.35); }
.tone-pick .ghost[aria-pressed="true"] { border-color: var(--blue-l); color: #eaf4ff; background: rgba(77,182,247,.14); }
html.bk-touch-ui .tone-pick .tone { width: 40px; height: 40px; }
.paint-palette { display: flex; flex-wrap: wrap; gap: 4px; }
.paint-swatch { width: 26px; height: 26px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.paint-swatch[aria-pressed="true"] { outline: 2px solid #eaf4ff; outline-offset: 1px; }
.paint-swatch.erase { width: auto; padding: 0 8px; background: none; font-size: 11px; }
.paint-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 14px; height: 14px; flex: none; border: 1px solid var(--line); }
.store-body li.tryable { cursor: pointer; }
.store-body li.trying { background: rgba(77,182,247,.14); box-shadow: inset 2px 0 0 var(--blue-l); }
.shop-note { margin: 0; font-size: 12px; line-height: 1.5; opacity: .8; }
.panel h2.sub { margin-top: 16px; font-size: 15px; }
.compass { position: absolute; left: 50%; top: 14px; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-bottom: 26px solid #e5484d; transform-origin: 50% 70%; filter: drop-shadow(0 0 4px rgba(229,72,77,.8)); pointer-events: none; }
/* A trip's scramble (static/trips.js): the map, the compass, the room line and the objective blur and run, slowly. */
html.bk-scramble .minimap, html.bk-scramble .compass, html.bk-scramble .where, html.bk-scramble .objective { animation: bk-scramble 2.6s ease-in-out infinite alternate; }
@keyframes bk-scramble { from { filter: blur(2px) hue-rotate(0deg); opacity: .6; } to { filter: blur(6px) hue-rotate(200deg); opacity: .3; } }

/* The hand-drawn map: graph paper over the view, inside it so it works in fullscreen. */
.sketch-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8; display: grid; gap: 10px; padding: 14px; width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); background: rgba(7,11,20,.95); border: 1px solid rgba(77,182,247,.4); box-shadow: 0 18px 60px rgba(0,0,0,.6); color: #dcebff; font-size: 12px; }
.sketch-panel header { display: flex; justify-content: space-between; align-items: baseline; }
.sketch-panel h3 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-l); }
.sketch-panel canvas { width: 100%; max-height: calc(100vh - 170px); aspect-ratio: 1; object-fit: contain; cursor: crosshair; touch-action: none; background: #eef1ea; }
.sketch-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sketch-tools [aria-pressed="true"] { background: rgba(77,182,247,.22); border-color: #4DB6F7; color: #fff; }
.sketch-need { margin: 0; opacity: .8; }

.inv-notes-title { margin: 12px 0 6px; }
/* Pause is how the mouse is let go: the same look as every other key in the bar, only in pink. */
.pause-key { background: none; border: 0; padding: 0; font: inherit; color: var(--pink); cursor: pointer; }
.pause-key kbd { color: var(--pink); }

/* A computer screen that has given up the whole floor plan: the map page, in a green-on-black frame. */
.terminal { position: absolute; inset: 6% 8%; z-index: 8; display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 12px; background: #020604; border: 2px solid #2f6b47; box-shadow: 0 0 40px rgba(60,255,140,.15) inset, 0 18px 60px rgba(0,0,0,.7); color: #8dffb6; font: 12px "JetBrains Mono", monospace; }
.terminal header { display: flex; justify-content: space-between; }
.terminal h3 { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.terminal iframe { width: 100%; height: 100%; border: 0; filter: saturate(.4) hue-rotate(80deg) contrast(1.1); }
/* The HUD sits above the stage overlays, so it steps aside while the screen or a close look is up instead of covering it. */
.stage-wrap:has(#terminal:not([hidden]), .inspect:not([hidden]), .bk-settings:not([hidden])) :is(.hud-corner, .keys-bar, .compass, .cross, .eat-cue, .hint, .look, .toast) { display: none; }
/* Settings sit inside the isolated .stage, so anything on the wrapper above it would draw over the panel. */
.stage-wrap:has(.bk-settings:not([hidden])) :is(.track, .objective, .note-card) { visibility: hidden; }

/* The fire alarm's red at the edge of the screen; static/beacon.js sets its opacity as a beam passes. */
.alarm-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; will-change: opacity;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(255,30,20,.32) 100%); }

/* The building's air: a vignette that closes in at the edges over a barely-there grain that holds
   still. A moving grain read as screen static. */
.grain { position: absolute; inset: 0; pointer-events: none; z-index: 4; mix-blend-mode: overlay; opacity: .06;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%), var(--grain, none); }

/* Paused: the world blurs and dims behind the prompt; it comes back into focus on resume. */
.stage canvas:first-child { transition: filter .25s ease; }
.stage.paused > canvas:first-child { filter: blur(7px) brightness(.6) saturate(.7); }
/* The game page sits under the start screen; it must not scroll until the start screen is gone. */
body:has(.start) { overflow: hidden; }
/* The door in: the page opens on this, and the game starts only when the player chooses to enter.
   One column centered by auto margins: the Home Screen tip (static/touch.js) and the card scroll from the top when they do not fit. */
.start { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; padding: 24px; background:
  radial-gradient(ellipse at 50% 40%, rgba(77,182,247,.10), transparent 60%), #05080f; }
.start > :first-child { margin-top: auto; }
.start > :last-child { margin-bottom: auto; }
.start-card { max-width: 440px; display: grid; gap: 14px; text-align: center; color: #dcebff; }
/* The title and the buttons (index.html): one under the other here, side by side on a phone on its side (mobile.css). */
.start-head, .start-actions { display: grid; gap: inherit; }
.start-card h1 { margin: 12px 0 0; font: 400 clamp(34px, 7vw, 56px) 'Special Elite', 'Courier New', monospace; letter-spacing: .04em; color: #eaf4ff; }
.start-card p { margin: 0; line-height: 1.5; opacity: .85; }
.start-card .start-goal { color: #5dff9a; opacity: 1; }
.start-card .start-online { font: 600 12px "JetBrains Mono", monospace; color: #b6f0c8; letter-spacing: .04em; }
.start-online::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #5dff9a;
  box-shadow: 0 0 6px #5dff9a; vertical-align: 1px; }
.start-card .start-copy { font-size: 10px; opacity: .45; }
.start-logo { justify-self: center; width: 96px; height: 96px; }
.start-news { justify-self: center; min-height: 44px; padding: 0 12px; color: var(--blue); font: 600 13px "JetBrains Mono", monospace; }
/* How to play is a link; laid out like the buttons beside it so its 44 px height applies. */
a.start-news { display: inline-flex; align-items: center; text-decoration: none; }
/* How to play, What's new and Contact support share one line, so the card is no taller on a phone on its side. */
.start-links { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
/* The start screen's list of what changed, from static/changelog.md (static/news.js). */
.news { width: min(480px, calc(100% - 32px)); max-height: min(70vh, calc(100% - 32px)); padding: 16px; overflow: auto;
  background: #0b1220; color: #dcebff; border: 1px solid #4DB6F7; }
.news::backdrop { background: rgba(0,0,0,.6); }
.news header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.news h2 { margin: 0; font: 400 24px 'Special Elite', 'Courier New', monospace; color: #eaf4ff; }
.news header .ghost { min-height: 44px; min-width: 64px; }
.news h3 { margin: 12px 0 4px; font: 600 12px "JetBrains Mono", monospace; color: #5dff9a; }
.news ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
/* Contact support (static/support.js) in the same frame, as tall as the screen allows. */
.news.support { width: min(460px, calc(100% - 32px)); max-height: calc(100% - 24px); }
.support-form { display: grid; gap: 6px; }
.support-form label { font-size: 12px; color: rgba(220,235,255,.8); }
.support-form label:not(:first-child) { margin-top: 6px; }
dialog.support textarea.field { height: 112px; padding: 8px 10px; line-height: 1.45; resize: vertical; }
.support-form .act { min-width: 88px; }
.support-msg { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: #ffd1de; }
.support-msg.ok { color: #b6f0c8; }
.support-off { margin: 0; font-size: 13px; line-height: 1.5; }
.support-alt { margin: 12px 0 0; font-size: 12px; line-height: 1.5; opacity: .85; }
.support-alt a { color: #8cc8ff; overflow-wrap: anywhere; }
.start-go { justify-self: center; margin-top: 8px; padding: 12px 22px; background: transparent; border: 1px solid #4DB6F7; color: #eaf4ff; font: 600 14px "JetBrains Mono", monospace; letter-spacing: .06em; cursor: pointer; }
.start-go:hover, .start-go:focus-visible { background: rgba(77,182,247,.14); outline: none; }
/* With friends, under Enter: start a party or open the code row to join one. */
.start-friends { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 6px;
  font: 600 12px "JetBrains Mono", monospace; color: #b6f0c8; }
.start-or { flex-basis: 100%; font-weight: 400; color: #7f9bb8; letter-spacing: .04em; }
.start-alt, .start-join { min-height: 40px; padding: 8px 14px; background: transparent; border: 1px solid rgba(93,255,154,.55); color: #b6f0c8; font: inherit; cursor: pointer; }
.start-alt:hover, .start-alt:focus-visible, .start-join:hover, .start-join:focus-visible { background: rgba(93,255,154,.12); outline: none; }
.start-alt[aria-expanded="true"] { background: rgba(93,255,154,.12); }
.start-party { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font: 600 12px "JetBrains Mono", monospace; color: #b6f0c8; }
.start-party .field { width: 9.5em; text-transform: uppercase; letter-spacing: .1em; }
.entered .start-card { visibility: hidden; }

/* The build, faint in the corner: there for screenshots and bug reports, not in the way. */
.version { position: absolute; top: 8px; left: 10px; z-index: 6; pointer-events: none; font: 10px "JetBrains Mono", monospace; letter-spacing: .06em; color: #cfe6ff; }
#version { opacity: .3; }
/* Free mouse (game.js): the cursor turns the view, so it is hidden like a locked one. */
canvas.free-look { cursor: none; }
/* While the view holds the mouse (game.js bk-held) no panel, log or map takes it: every move lands on the
   view, nothing under the cursor lights up, and a panel is clickable again once the mouse is let go. */
html.bk-held body *:not(.stage > canvas) { pointer-events: none !important; }
html.bk-held .stage > canvas { pointer-events: auto !important; cursor: none; }
/* A newer build on the server (game.js checkUpdate): the whole screen, over everything, until a reload. */
.outdated { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); border: 0;
  background: rgba(5,8,14,.94); color: #dcebff; place-items: center; overflow: auto; }
.outdated[open] { display: grid; }
.outdated::backdrop { background: rgba(0,0,0,.6); }
html.bk-held .outdated, html.bk-held .outdated * { pointer-events: auto !important; }
/* The list scrolls inside the card, so the Reload button stays on screen on a phone on its side. */
.outdated-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px;
  padding: 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); background: #0b1220; border: 1px solid #ffd84a; }
.outdated h2 { margin: 0; font: 400 26px 'Special Elite', 'Courier New', monospace; color: #ffd84a; }
.outdated p { margin: 0; font-size: 15px; }
.outdated-list { margin: 0; padding-left: 18px; display: grid; align-content: start; gap: 6px; overflow: auto; font-size: 14px; line-height: 1.45; }
@media (max-height: 500px) { .outdated-card { padding: 14px 18px; gap: 8px; } .outdated h2 { font-size: 20px; } }
.outdated-list:empty { display: none; }
.outdated-reload { justify-self: start; min-height: 44px; min-width: 120px; padding: 10px 22px; background: #ffd84a; color: #10161f; border: 0;
  font: 600 14px "JetBrains Mono", monospace; letter-spacing: .06em; cursor: pointer; }
.outdated-reload:hover, .outdated-reload:focus-visible { background: #ffe680; outline: none; }

/* The objective: a few words top center under the compass, with an arrow at the door that leads on.
   A new one shows large in the middle of the view first (.fresh, static/goal.js), then moves up.
   Centered by margins, not translate(-50%): a compositor transform keeps its start width while the text shrinks, so it drifts then snaps. */
.objective { position: absolute; left: 0; right: 0; margin-inline: auto; width: fit-content; top: 42px; z-index: 4; max-width: min(560px, calc(100% - 32px));
  transition: top .6s ease, font-size .6s ease, padding .6s ease; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(7,11,20,.72); border: 1px solid rgba(255,207,90,.45); color: #ffe7a8; font: 600 13px "JetBrains Mono", monospace; letter-spacing: .02em; pointer-events: none; }
.objective.fresh { top: calc(36% - 24px); padding: 12px 20px; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .objective { transition: none; } }
.obj-arrow { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 14px solid #ffcf5a; transform-origin: 50% 60%; flex: none; }

/* The credits: one page of centered type on a pale page, everything on screen at once. */
.credits { position: absolute; inset: 0; z-index: 51; display: grid; place-items: center; padding: 16px; color: #10161f;
  background: radial-gradient(ellipse at 50% 40%, #fffefa 0%, rgba(250,248,240,.98) 60%, rgba(232,228,216,.98) 100%); }
.cr-card { width: min(620px, 100%); display: grid; justify-items: center; text-align: center; }
.cr-logo { display: block; margin-bottom: 12px; }
.credits h2 { margin: 0; font: 400 34px/1.05 var(--f-type); letter-spacing: .04em; }
.cr-list { margin: 28px 0 0; display: grid; gap: 22px; }
.cr-list dt { color: #1673b8; font: 600 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }
.cr-list dd { margin: 4px 0 0; font: 400 22px var(--f-type); }
.cr-list p { margin: 6px 0 0; color: #3a434f; font: 13px/1.5 var(--f-mono); }
.cr-copy { margin: 28px 0 0; color: #56606c; font: 12px var(--f-mono); }
.cr-copy a, .cr-list a { color: #1673b8; }
.credits .ghost { margin-top: 10px; min-height: 44px; padding: 8px 20px; border: 0; background: none; color: #1673b8; font: 600 13px var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: underline dotted; text-underline-offset: 4px; }
.credits .ghost:hover { color: #10161f; }

/* ---- a narrow game view (a small window, a split screen) ----
   Sized by the view itself, not the window: the key strip keeps to one row of the keys that matter,
   and the HUD corner shrinks so it never covers half the room. */
.stage-wrap { container: stage / inline-size; }
@container stage (max-width: 760px) {
  .keys-bar { flex-wrap: nowrap; padding: 5px 10px; white-space: nowrap; }
  .kgroup { gap: 10px; padding: 0 8px; }
  .hud-corner { top: 8px; right: 8px; gap: 4px; padding: 6px 8px; font-size: 11px; max-width: min(240px, 46%); }
  .hud-corner .meter { gap: 6px; }
  .hud-corner .meter i { width: 72px; height: 6px; }
  .code-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .look { top: calc(50% - 80px); max-width: calc(100% - 24px); text-align: center; }
}
@container stage (max-width: 520px) {
  .keys-bar span:not(:first-of-type) { display: none; }
  .code-tag, .hud-corner .fx { display: none; }
  .hud-corner { max-width: 52%; }
}

/* ---- quests ----
   The objective and the tracker stack top left, kept narrower than the room left of the HUD corner. */
.track { position: absolute; left: 14px; top: 28px; z-index: 3; display: grid; gap: 4px; justify-items: start; pointer-events: none; max-width: min(360px, calc(100% - 370px)); }
.tracker { margin: 0; padding: 4px 8px; list-style: none; display: grid; gap: 1px; max-width: 100%; background: rgba(7,11,20,.6); border: 1px solid var(--line); font: 11px "JetBrains Mono", monospace; color: #cfe6ff; }
.tracker li { display: flex; justify-content: space-between; gap: 10px; padding: 1px 4px; white-space: nowrap; }
.tracker li span { overflow: hidden; text-overflow: ellipsis; }
.tracker li b { font-weight: 600; color: var(--blue-l); }
.tracker li.tick { animation: tr-tick 1s ease; }
.tracker li.done { color: #b9ffd2; animation: tr-done 3s ease forwards; }
.tracker li.done b { color: #5dff9a; }
@keyframes tr-tick { from { background: rgba(77,182,247,.4); } to { background: transparent; } }
@keyframes tr-done { from { background: rgba(93,255,154,.45); } to { background: rgba(93,255,154,.06); } }
@media (prefers-reduced-motion: reduce) { .tracker li.tick, .tracker li.done { animation: none; } }
.quest-key { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.ql-open { margin-left: 8px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.quest-log { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 47; width: min(480px, calc(100% - 32px)); max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 18px; background: rgba(7,11,20,.95); border: 1px solid rgba(77,182,247,.4); box-shadow: 0 18px 60px rgba(0,0,0,.6); color: #dcebff; font-size: 12px; }
.quest-log header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.quest-log h3, .quest-log h4 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-l); }
.quest-log h4 { margin: 10px 0 6px; font-size: 10px; opacity: .8; }
.quest-log ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ql-goal li { padding-left: 18px; position: relative; color: rgba(220,235,255,.6); }
.ql-goal li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 8px; height: 8px; border: 1px solid currentColor; }
.ql-goal li.now { color: #ffe7a8; }
.ql-goal li.done { color: #b9ffd2; text-decoration: line-through; text-decoration-color: rgba(185,255,210,.5); }
.ql-goal li.done::before { background: currentColor; }
.ql-list li { padding: 7px 9px; border: 1px solid var(--line); background: rgba(7,11,20,.5); }
.ql-list li.done { border-color: rgba(93,255,154,.5); }
.ql-head { display: flex; align-items: baseline; gap: 8px; }
.ql-head b { flex: 1; font: 400 14px "Special Elite", monospace; color: #eaf4ff; }
.ql-tier { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-l); opacity: .8; }
.ql-n { font: 600 11px "JetBrains Mono", monospace; color: var(--blue-l); }
.ql-list li.done .ql-n { color: #5dff9a; }
.ql-list p { margin: 3px 0 5px; font-size: 11px; opacity: .75; }
.ql-list p.ql-needs { margin-top: -2px; color: var(--blue-l); opacity: .9; }
.ql-bar { display: block; height: 4px; background: rgba(77,182,247,.15); }
.ql-bar b { display: block; height: 100%; background: var(--blue-l); }
.ql-list li.done .ql-bar b { background: #5dff9a; }
.ql-reward { display: block; margin-top: 4px; font-size: 10px; opacity: .7; }
.ql-reset { margin: 10px 0 0; font-size: 11px; opacity: .65; }
.ql-swap { float: right; height: auto; margin-top: -2px; padding: 1px 7px; color: #cfe6ff; font-size: 10px; text-transform: none; letter-spacing: 0; }
/* How: the controls to press, drawn as keys; Why: what it does for you, quieter. */
.ql-list p.ql-how { margin-top: -2px; color: #eaf4ff; opacity: .95; }
.ql-list p.ql-why { margin-top: -2px; opacity: .6; }
/* The season ladder: one card in the log's look, its three looks lit once owned. */
.ql-ladder { padding: 7px 9px; border: 1px solid var(--line); background: rgba(7,11,20,.5); overflow-wrap: anywhere; }
.ql-ladder p { margin: 3px 0 5px; font-size: 11px; opacity: .75; }
.ql-ladder p.ql-season { opacity: 1; }
.ql-ladder p.ql-season b { font: 400 14px "Special Elite", monospace; color: #eaf4ff; }
.ql-ladder .ql-head { margin-top: 8px; }
.ql-ladder .ql-bar { margin: 2px 0 5px; }
.ql-ladder .ql-looks { margin: 2px 0 5px; gap: 3px; font-size: 11px; color: rgba(220,235,255,.7); }
.ql-ladder .ql-looks li.done { color: #b9ffd2; }
.ql-ladder p.ql-how { opacity: .6; }
@container stage (max-width: 760px) {
  .track { top: 26px; left: 8px; max-width: calc(52% - 20px); }
}
@container stage (max-width: 520px) {
  .tracker { display: none; }
  .track { max-width: calc(46% - 16px); }
  .quest-log { padding: 10px 12px; width: calc(100% - 16px); max-height: calc(100% - 12px); }
}
/* The guest book's names, in a pen hand, scrolling when the day has filled the page. */
.guest-names { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 160px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 8px;
  font: 400 20px/24px 'Reenie Beanie', cursive; color: #eaf4ff; }
.guest-names.none { font: 12px 'JetBrains Mono', monospace; opacity: .6; }
/* Soapy from mop water: an oily film of color over the view and a few suds rising through it. */
.stage.soapy::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .32; mix-blend-mode: screen;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.5) 0 6px, transparent 7px), radial-gradient(circle at 70% 90%, rgba(255,255,255,.4) 0 4px, transparent 5px),
    radial-gradient(circle at 45% 70%, rgba(255,255,255,.35) 0 9px, transparent 10px),
    conic-gradient(from 30deg at 50% 50%, #ff7ad9, #7af0ff, #b8ff7a, #ffd37a, #a07aff, #ff7ad9);
  background-size: 260px 260px, 340px 340px, 420px 420px, 160% 160%; animation: suds 9s linear infinite; }
@keyframes suds { to { background-position: 0 -260px, 0 -340px, 0 -420px, 60% 40%; } }
@media (prefers-reduced-motion: reduce) { .stage.soapy::after { animation: none; } }
/* A room set to 67 (static/chill.js): frost creeping in from the edges and breath that shows, over the
   view and under every panel. Only opacity and transform move, so the compositor does it all; hidden
   once the frost has gone, so a warm room carries no layer. */
.chill { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.chill b { position: absolute; inset: 0; background: center / 100% 100% no-repeat; opacity: 0; transform: scale(1.22); visibility: hidden;
  transition: opacity 5s ease-out, transform 11s cubic-bezier(.2, .6, .3, 1), visibility 0s 11s; }
.chill.on b { opacity: .9; transform: scale(1); visibility: visible; transition-delay: 0s; }
.chill i { position: absolute; left: 50%; bottom: -16%; width: 48%; height: 36%; border-radius: 50%; opacity: 0; display: none;
  background: radial-gradient(closest-side, rgba(232,242,255,.55), rgba(232,242,255,.16) 58%, rgba(232,242,255,0)); }
/* One slow breath every 4.8 s: a puff in front of the mouth that rises, spreads and thins out. */
.chill.on i { display: block; animation: breath 4.8s ease-out infinite; }
@keyframes breath { 0%, 55% { opacity: 0; transform: translate(-50%, 0) scale(.55); } 65% { opacity: .7; } 100% { opacity: 0; transform: translate(-50%, -40%) scale(1.35); } }
.chill.still b { transition: none; }
.chill.still i, .stage.paused .chill i { display: none; }
@media (prefers-reduced-motion: reduce) { .chill b { transition: none; } .chill i { display: none; } }
/* The HUD minimap (static/minimap.js): bottom right above the keys; on touch, under the health corner. */
.minimap { position: absolute; right: 12px; bottom: 44px; z-index: 44; display: flex; flex-direction: column; width: min(280px, calc(100% - 24px));
  background: rgba(7,11,20,.6); border: 1px solid var(--line); }
.minimap iframe { display: block; width: 100%; height: 200px; border: 0; background: #050b16; }
.minimap.wide { width: min(380px, calc(100% - 24px)); }
.minimap.wide iframe { height: min(290px, 45vh); }
.minimap.shut { width: auto; }
.minimap.shut iframe { display: none; }
.minimap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 22px; padding: 0 8px; background: none; border: 0;
  font: 600 10px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #dcebff; cursor: pointer; }
.minimap-head span:last-child { color: var(--blue-l); }
.minimap-head:hover span:last-child { color: #fff; }
/* No WebGL in this browser (game.js noGraphics): over everything, how to turn graphics acceleration on. */
.no-gl { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: #05080f; color: #dcebff; overflow-y: auto; }
.no-gl-card { display: grid; gap: 12px; width: min(520px, 100%); padding: 22px 24px; border: 1px solid rgba(77,182,247,.35); background: rgba(7,11,20,.95); font: 14px/1.5 'JetBrains Mono', ui-monospace, monospace; }
/* In the start card it takes the buttons' place, at the card's width. */
.start-card .no-gl-card { width: 100%; padding: 16px 18px; text-align: left; font-size: 13px; }
.no-gl-card h1 { margin: 0; font: 400 24px 'Special Elite', 'Courier New', monospace; color: #ffcf5a; }
.no-gl-card p { margin: 0; }
.start-card .no-gl-card h1 { font-size: 20px; }
