@font-face { font-family: "Press Start 2P"; src: url(../assets/fonts/PressStart2P.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url(../assets/fonts/VT323.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bungee"; src: url(../assets/fonts/Bungee.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url(../assets/fonts/Pacifico.woff2) format("woff2"); font-display: swap; }

:root {
  --ink: #120d1c; --ink2: #1e1a2b; --cream: #f6e7c8; --paper: #faf4e4;
  --mustard: #e9b44c; --coral: #e4572e; --teal: #1b998b; --deep: #0f4c5c; --pink: #f49fbc;
  --red: #b3202a; --blue: #1c4e8a; --phosphor: #5dff9b;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --pixel: "Press Start 2P", monospace; --term: "VT323", monospace; --display: "Bungee", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); overflow: hidden; overscroll-behavior: none; font-family: var(--term); font-size: 20px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#gl.point { cursor: pointer; } #gl.drag { cursor: grabbing; }
#sprites { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#layer { position: absolute; inset: 0; pointer-events: none; }
#layer > * { pointer-events: auto; }
#hotlist { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#hotlist:focus-within { width: auto; height: auto; clip-path: none; left: 8px; top: 56px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 70vw; z-index: 20; }
#hotlist button { background: var(--ink2); padding: 4px 8px; font-size: 16px; }

/* ---------- HUD ---------- */
#hud { position: absolute; top: calc(10px + var(--safe-t)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 30; transition: opacity .3s; }
#hud.dim { opacity: 0; visibility: hidden; }
#hud.dim .hud-btns { pointer-events: none; }
/* a pocket copy of the room's neon sign: unlit tubes are faint, lit ones glow */
#word { display: flex; gap: 2px; padding: 6px 8px 5px; background: rgba(14, 10, 22, .62); border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(246, 231, 200, .12); pointer-events: auto; cursor: default; }
#word b { width: 14px; display: grid; place-items: center; font: 11px var(--display); color: rgba(246, 231, 200, .16); transition: color .5s, text-shadow .5s; }
#word b.on { color: #ffd6ec; text-shadow: 0 0 4px #ff3d9a, 0 0 10px #ff3d9a; }
#word b.on.c { color: #d8fbff; text-shadow: 0 0 4px #29d9ff, 0 0 10px #29d9ff; }
#word b.new { animation: tube 1.1s steps(1) 1; }
@keyframes tube { 0%, 20%, 45% { opacity: .25; } 10%, 30%, 60%, 100% { opacity: 1; } }

/* edge arrows: the room continues that way */
.edge { position: absolute; top: 50%; z-index: 9; width: 38px; height: 76px; margin-top: -38px; font: 34px/1 var(--term); color: var(--cream); background: rgba(14, 10, 22, .42); opacity: 0; pointer-events: none; transition: opacity .4s, background .2s; text-shadow: 0 0 8px rgba(0, 0, 0, .8); }
.edge.l { left: 0; border-radius: 0 6px 6px 0; } .edge.r { right: 0; border-radius: 6px 0 0 6px; }
.edge.on { opacity: .75; pointer-events: auto; animation: nudge 2.6s ease-in-out infinite; }
.edge.on:hover { opacity: 1; background: rgba(14, 10, 22, .7); }
.edge.r.on { animation-name: nudge-r; }
@keyframes nudge { 50% { transform: translateX(-3px); } }
@keyframes nudge-r { 50% { transform: translateX(3px); } }
.hud-btns { display: flex; gap: 6px; pointer-events: auto; }
.hud-btns button { width: 36px; height: 36px; background: rgba(18, 13, 28, .6); border-radius: 4px; font-size: 18px; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246, 231, 200, .2); }
.hud-btns button.off { opacity: .45; text-decoration: line-through; }

#tip { position: absolute; z-index: 25; pointer-events: none; font: 10px var(--pixel); color: var(--ink); background: var(--mustard); padding: 6px 8px 5px; border-radius: 2px; transform: translate(-50%, -160%); white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); }
#subtitle { position: absolute; left: 50%; bottom: calc(44px + var(--safe-b)); transform: translateX(-50%); z-index: 26; max-width: min(92vw, 640px); text-align: center; font: 24px/1.15 var(--term); color: #fff; text-shadow: 0 2px 0 #000, 0 0 12px #000; opacity: 0; transition: opacity .3s; pointer-events: none; }
#subtitle.on { opacity: 1; }

/* ---------- boot ---------- */
#boot { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a1b3d, var(--ink) 65%); transition: opacity .7s; }
#boot.gone { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; padding: 20px; width: min(92vw, 720px); }
.boot-title { font: clamp(20px, 5.6vw, 44px) var(--display); margin: 0 0 26px; letter-spacing: .02em; color: var(--pink); text-shadow: 0 0 6px #ff2d7a, 0 0 24px #ff2d7a, 3px 3px 0 var(--ink2); }
#boot-bar { height: 8px; width: min(60vw, 280px); margin: 0 auto 26px; background: #000; box-shadow: 0 0 0 2px var(--cream); }
#boot-bar i { display: block; height: 100%; width: 0; background: var(--mustard); transition: width .2s; }
#power { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(#e4572e, #a5301a); box-shadow: 0 6px 0 #5e1a0d, 0 0 0 6px var(--ink2), 0 0 0 8px var(--mustard), 0 14px 30px rgba(0, 0, 0, .6); font-size: 28px; color: var(--cream); transition: transform .08s, box-shadow .08s, opacity .3s, filter .3s; }
#power:disabled { filter: grayscale(.9); opacity: .4; cursor: progress; }
#power:not(:disabled) { animation: pulse 1.6s infinite; }
#power:active { transform: translateY(5px); box-shadow: 0 1px 0 #5e1a0d, 0 0 0 6px var(--ink2), 0 0 0 8px var(--mustard); }
@keyframes pulse { 50% { filter: brightness(1.2); } }
#boot-note { margin: 22px 0 6px; font: 11px var(--pixel); color: var(--cream); }
.boot-warn { margin: 0; font-size: 17px; opacity: .55; }

/* ---------- close-ups: an app sits inside the rendered bezel ---------- */
.closeup { position: absolute; inset: 0; background: #07050c; overflow: hidden; opacity: 0; transition: opacity .35s; z-index: 13; }
.closeup.on { opacity: 1; }
.closeup img.bg { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; -webkit-mask-image: linear-gradient(#0000, #000 7%, #000 93%, #0000), linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000); -webkit-mask-composite: source-in; mask-image: linear-gradient(#0000, #000 7%, #000 93%, #0000), linear-gradient(90deg, #0000, #000 6%, #000 94%, #0000); mask-composite: intersect; }
.closeup .screen { position: absolute; background: #000; overflow: hidden; border-radius: 2.2% / 3%; }
.closeup .screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 40; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .42)); mix-blend-mode: multiply; }
.closeup .screen.flicker { animation: flicker .13s infinite steps(2); }
@keyframes flicker { 50% { opacity: .985; } }
.btn-x { position: absolute; top: calc(10px + var(--safe-t)); right: 12px; z-index: 50; width: 44px; height: 44px; background: var(--coral); color: var(--cream); font: 14px var(--pixel); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); }
.btn-x:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

canvas.pixel { image-rendering: pixelated; }
canvas.fit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- inspect ---------- */
.inspect { position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; background: rgba(10, 7, 16, .78); opacity: 0; transition: opacity .25s; padding: 20px; }
.inspect.on { opacity: 1; }
.inspect img { max-width: min(92vw, 880px); max-height: 80vh; transform: rotate(-1.2deg) scale(.95); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 0 0 8px #f6efdc; }
.inspect.on img { transform: rotate(-1.2deg) scale(1); }

/* ---------- letter pickup ---------- */
.block { position: absolute; width: 30px; height: 30px; pointer-events: auto; cursor: pointer; display: grid; place-items: center; font: 15px var(--display); color: var(--coral); background: linear-gradient(135deg, #f1cf8f, #c98f45); border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(120, 70, 20, .45), 2px 3px 5px rgba(0, 0, 0, .55); }
.block::after { content: ""; position: absolute; inset: -12px; }
.pickup { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0); z-index: 45; width: 110px; height: 110px; display: grid; place-items: center; font: 62px var(--display); color: var(--coral); background: linear-gradient(135deg, #f1cf8f, #c98f45); border-radius: 8px; box-shadow: inset 0 0 0 5px rgba(120, 70, 20, .45), 0 0 50px rgba(233, 180, 76, .8); animation: pick 1.7s forwards cubic-bezier(.2, 1.3, .4, 1); }
@keyframes pick { 15% { transform: translate(-50%, -50%) scale(1.1) rotate(-6deg); } 28%, 72% { transform: translate(-50%, -50%) scale(1) rotate(3deg); } 100% { transform: translate(-50%, -160%) scale(.2); opacity: 0; } }

/* ---------- rotary dial ---------- */
.dial-wrap { position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; background: rgba(12, 6, 10, .82); opacity: 0; transition: opacity .25s; }
.dial-wrap.on { opacity: 1; }
.dial { --s: min(82vw, 66vh, 420px); position: relative; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 42% 34%, #d8383a, #7c1014 72%); box-shadow: 0 16px 40px rgba(0, 0, 0, .7), inset 0 0 0 6px rgba(0, 0, 0, .25); }
.dial .hub { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 34px var(--term); box-shadow: 0 0 0 5px #5c0c0f; text-align: center; line-height: 1; }
.dial button { position: absolute; width: 17%; height: 17%; margin: -8.5%; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #2b0a0c, #0f0304); color: var(--cream); font: 18px var(--pixel); box-shadow: inset 0 3px 5px #000, 0 1px 0 rgba(255, 255, 255, .22); }
.dial button:active { filter: brightness(1.8); }

/* ---------- pick-a-door ---------- */
.video-stage { position: absolute; inset: 0; z-index: 12; background: #000; display: grid; place-items: center; overflow: hidden; }
.video-stage canvas.amb { position: absolute; inset: -8%; width: 116%; height: 116%; filter: blur(34px) saturate(1.3) brightness(.55); }
.video-frame { position: relative; height: 100%; aspect-ratio: 9/16; max-width: 100%; }
@media (max-aspect-ratio: 9/16) { .video-frame { width: 100%; height: auto; } }
.video-frame video, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door-hit { --glow: 255, 255, 255; position: absolute; border-radius: 2px; transition: box-shadow .2s, background .2s, transform .2s; animation: breathe 2.4s infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 34px 6px rgba(var(--glow), .58); } }
.door-hit:hover, .door-hit:focus-visible { background: rgba(var(--glow), .14); box-shadow: 0 0 46px 10px rgba(var(--glow), .7); animation: none; outline: none; }
.video-play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px; border-radius: 50%; z-index: 6; font-size: 34px; color: #fff; background: rgba(0, 0, 0, .6); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }
.video-wait { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: #fff; opacity: 0; transition: opacity .3s .4s; animation: spin .9s linear infinite; pointer-events: none; z-index: 4; }
.video-wait.on { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.door-hit.seen::after { content: "✕"; position: absolute; left: 50%; top: 22%; transform: translateX(-50%) rotate(-8deg); font: clamp(26px, 4vh, 44px) var(--term); color: rgba(255, 255, 255, .5); }
.door-prompt { position: absolute; left: 0; right: 0; top: 68%; text-align: center; font: clamp(14px, 2.4vh, 22px) var(--pixel); color: #fff; text-shadow: 0 3px 0 #000; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.skip { position: absolute; right: 12px; bottom: calc(14px + var(--safe-b)); z-index: 5; font: 10px var(--pixel); padding: 8px 10px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 3px; }
.leave { position: absolute; left: 12px; bottom: calc(12px + var(--safe-b)); z-index: 12; font: 10px var(--pixel); padding: 10px 11px 9px; background: rgba(18, 13, 28, .72); color: var(--cream); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(246, 231, 200, .22); }
.static-cover { position: absolute; inset: 0; z-index: 40; pointer-events: none; }

/* ---------- terminal (red + blue consoles) ---------- */
.term { position: absolute; inset: 0; padding: 7% 8%; color: var(--phosphor); font: clamp(18px, 3.4vh, 30px)/1.12 var(--term); text-shadow: 0 0 6px rgba(93, 255, 155, .6); display: flex; flex-direction: column; background: #020a05; }
.term.amber { color: #ffb648; text-shadow: 0 0 6px rgba(255, 182, 72, .6); background: #0b0602; }
.term .out { flex: 1; overflow: hidden; white-space: pre-wrap; }
.term form { display: flex; gap: 8px; margin: 0; }
.term input { flex: 1; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; outline: none; text-transform: uppercase; caret-color: currentColor; text-shadow: inherit; }

/* ---------- breath game ---------- */
.breath { position: absolute; inset: 0; z-index: 14; background: radial-gradient(ellipse at 50% 0%, #1c0607, #030102 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; touch-action: none; padding: 16px; animation: fadein .6s; }
.breath canvas { width: min(94vw, 640px, calc((100vh - 150px) * 1.4)); aspect-ratio: 560 / 400; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 60, 50, .12), 0 20px 60px rgba(0, 0, 0, .8); }
.breath button { width: min(80vw, 300px); height: 88px; display: grid; place-items: center; gap: 4px; padding-top: 6px; font: 13px var(--pixel); background: linear-gradient(#2a1214, #160809); color: var(--cream); border-radius: 44px; box-shadow: inset 0 0 0 2px #6a2a2a, 0 6px 0 #0a0303; touch-action: none; transition: transform .08s, box-shadow .08s, background .2s; }
.breath button i { font: 22px var(--term); font-style: normal; opacity: .5; letter-spacing: .3em; }
.breath button.held { background: linear-gradient(#5a1a1a, #3a0e0e); transform: translateY(4px); box-shadow: inset 0 0 0 2px #b04040, 0 2px 0 #0a0303, 0 0 30px rgba(255, 60, 50, .35); }
@keyframes fadein { from { opacity: 0; } }

/* ---------- ending card ---------- */
.card { position: absolute; inset: 0; z-index: 16; display: grid; place-items: center; text-align: center; opacity: 0; transition: opacity .8s; padding: 24px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 45%, #15101c, #000 70%); }
.card.on { opacity: 1; }
.card-box { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.card h2 { font: clamp(16px, 3.8vw, 28px)/1.6 var(--pixel); margin: 0 0 22px; color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .25); }
.card h2 span { opacity: 0; animation: type .01s forwards; }
@keyframes type { to { opacity: 1; } }
.card p { font-size: 28px; margin: 0 0 30px; color: var(--cream); opacity: 0; animation: rise .6s forwards; }
.card button, .card-link { opacity: 0; animation: rise .5s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: .9; transform: none; } }
.card button, .pill { font: 11px var(--pixel); padding: 13px 16px 11px; background: var(--mustard); color: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.card button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--coral); }
.card-link { margin-top: 26px; font: 18px var(--term); color: rgba(246, 231, 200, .7); text-decoration: none; border-bottom: 1px dashed rgba(246, 231, 200, .3); }
.card-link:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .card h2 span, .card p, .card button, .card-link { animation-duration: .01s; } }

/* ---------- TV ---------- */
/* the remote: portrait = under the set, landscape = beside it */
.tv-remote { position: absolute; z-index: 30; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); display: grid; gap: 8px; padding: 12px; background: linear-gradient(#2e2833, #16121a); border-radius: 16px 16px 24px 24px; box-shadow: inset 0 0 0 1px rgba(246, 231, 200, .14), inset 0 2px 0 rgba(255, 255, 255, .07), 0 18px 40px rgba(0, 0, 0, .65); }
.tv-remote .num { min-height: 38px; font: 30px/38px var(--term); color: var(--phosphor); background: #07100a; border-radius: 4px; text-align: center; box-shadow: inset 0 0 0 1px #000, inset 0 0 14px rgba(93, 255, 155, .14); text-shadow: 0 0 6px rgba(93, 255, 155, .6); letter-spacing: .1em; }
.tv-remote .pad { display: grid; grid-template-columns: repeat(5, 44px); gap: 6px; }
.tv-remote .rock { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tv-remote button { height: 44px; font: 12px var(--pixel); background: linear-gradient(#3d3542, #28222d); color: var(--cream); border-radius: 10px; box-shadow: 0 3px 0 #0a080c, inset 0 1px 0 rgba(255, 255, 255, .1); }
.tv-remote .rock button { font-size: 9px; background: linear-gradient(#b0371f, #7a2214); }
.tv-remote button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a080c; }
@media (min-aspect-ratio: 23/20) {
  .tv-remote { left: auto; right: 18px; bottom: auto; top: 50%; transform: translateY(-50%); width: 172px; }
  .tv-remote .pad { grid-template-columns: repeat(3, 1fr); }
  .tv-remote .pad button:last-child { grid-column: 2; }
}
.tv-frame { position: absolute; inset: 0; border: 0; width: 100%; height: 100%; }

/* channel 7: the real broadcast, labelled as real */
.yt { position: absolute; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; padding: 9% 7% 6%; color: #fff; font-family: var(--term); }
.yt-badge { position: absolute; left: 3.5%; top: 4%; display: flex; align-items: center; gap: .55em; font: clamp(8px, 1.5vmin, 12px) var(--pixel); background: rgba(0, 0, 0, .66); padding: .6em .75em .5em; border-radius: 3px; pointer-events: none; z-index: 2; }
.yt-badge b { width: .75em; height: .75em; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 8px #ff2a2a; }
.yt-badge span { font: clamp(14px, 2.3vmin, 20px) var(--term); opacity: .75; }
.yt-play { width: clamp(64px, 17%, 124px); aspect-ratio: 1.42; border-radius: 24%; background: #e1251b; box-shadow: 0 8px 24px rgba(0, 0, 0, .55); display: grid; place-items: center; transition: transform .15s; }
.yt-play i { width: 0; height: 0; font-size: clamp(14px, 2.8vmin, 26px); border-left: 1.15em solid #fff; border-top: .68em solid transparent; border-bottom: .68em solid transparent; margin-left: .2em; }
.yt-play:hover, .yt-play:focus-visible { transform: scale(1.07); }
.yt-row { display: flex; align-items: center; gap: .7em; max-width: 100%; }
.yt-title { min-width: 0; font: clamp(20px, 3.6vmin, 34px)/1.05 var(--term); text-align: center; text-shadow: 0 2px 0 #000; overflow-wrap: anywhere; }
.yt-step { flex: none; width: 44px; height: 44px; background: rgba(0, 0, 0, .5); border-radius: 50%; font-size: 15px; }
.yt-foot { display: flex; gap: 1.2em; align-items: center; font-size: clamp(16px, 2.5vmin, 24px); opacity: .9; }
.yt-foot a { color: #fff; background: rgba(0, 0, 0, .45); padding: .15em .55em; border-radius: 3px; text-decoration: none; }
.yt-foot a:hover { background: #e1251b; }
.yt-note { margin: 0; font-size: clamp(13px, 2vmin, 18px); opacity: .55; }
.yt.playing { padding: 0; background: #000; }
.yt-back { position: absolute; right: 3%; top: 3.5%; z-index: 2; font: 9px var(--pixel); background: rgba(0, 0, 0, .72); padding: 9px 10px 8px; border-radius: 3px; }
.yt-out { position: absolute; right: 3%; top: calc(3.5% + 40px); z-index: 2; font: 17px var(--term); color: #fff; background: rgba(0, 0, 0, .72); padding: 4px 9px; border-radius: 3px; text-decoration: none; }
.closeup .screen.real::after { opacity: .3; }

/* ---------- ?selftest report ---------- */
.selftest { position: fixed; right: 8px; bottom: 8px; z-index: 999; max-width: min(520px, 94vw); max-height: 60vh; overflow: auto; margin: 0; padding: 10px 12px; font: 15px/1.15 var(--term); color: #dfe; background: rgba(0, 0, 0, .86); border-left: 4px solid #e9b44c; white-space: pre-wrap; pointer-events: auto; }
.selftest.ok { border-color: #5dff9b; } .selftest.bad { border-color: #ff5a5a; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .closeup .screen.flicker, #power:not(:disabled), .door-hit, .door-prompt, .edge.on, #word b.new { animation: none; }
}
