/* The Button: a civil-defence console bolted to a two-tone institutional wall. Everything is CSS/SVG, no images. */
:root {
  --wall: #d9d2b6; --dado: #3f5a4b; --dado-dk: #2c4236;
  --enamel: #7d9080; --enamel-lt: #94a796; --enamel-dk: #5c6d5f;
  --ink: #1d1a14; --paper: #f1e7c9; --paper-dk: #ddd0a8;
  --red: #b4232c; --amber: #ff9a3c;
  --danger: 0; --pulse: 2s;
  --hammer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .3 -.1'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --grit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--dado); }
body {
  min-height: 100vh; overflow-x: hidden; color: var(--ink);
  font: 16px/1.45 'Special Elite', 'Courier New', monospace;
  background: var(--grit), linear-gradient(180deg, var(--wall) 0 46vh, var(--dado-dk) 46vh calc(46vh + 10px), var(--dado) calc(46vh + 10px));
  background-attachment: fixed;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.alarm-light { position: fixed; inset: 0; pointer-events: none; z-index: 30; mix-blend-mode: multiply;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 30, 20, .75), rgba(160, 0, 0, .25) 60%, transparent);
  opacity: calc(var(--danger) * .55); transition: opacity .3s; }

main { max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; }

/* ------------------------------------------------------------------ shared hardware bits */
.dymo { display: inline-block; font: 700 12px/1 Rubik, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  color: #f7f5ee; padding: 5px 9px 4px; border-radius: 2px; white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 1px 2px rgba(0, 0, 0, .45);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .12)); }
.dymo.black { background-color: #1b1b1d; }
.dymo.red { background-color: #b11d26; }
.dymo.long { white-space: normal; line-height: 1.9; padding: 2px 9px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.readout:nth-child(2) .dymo, .counter:nth-child(odd) .dymo { transform: rotate(-1.2deg); }
.counter:nth-child(even) .dymo { transform: rotate(.8deg); }

.jewel { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), transparent 35%), radial-gradient(circle, color-mix(in srgb, var(--fc, #777) 35%, #111), #050505 80%);
  box-shadow: 0 0 0 2px #9a9a90, 0 0 0 3px #3a3a36, 0 1px 3px 3px rgba(0, 0, 0, .35); }
.jewel.on, li.now .jewel { background: radial-gradient(circle at 35% 30%, #fff, transparent 35%), radial-gradient(circle, var(--fc, #777), color-mix(in srgb, var(--fc, #777) 50%, #000) 85%);
  box-shadow: 0 0 0 2px #9a9a90, 0 0 0 3px #3a3a36, 0 0 12px 3px var(--fc, #777); }
.jewel.green { --fc: #4cff6a; } .jewel.red { --fc: #ff3b30; }
.jewel.green.on { animation: blink 2.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* odometer: rolling white-on-black drums behind a window */
.odo { display: inline-flex; align-items: center; padding: 4px 5px; gap: 2px; border-radius: 3px; font: 600 30px/1 Oswald, 'Arial Narrow', sans-serif;
  background: #0d0d0d; box-shadow: inset 0 3px 6px #000, 0 1px 0 rgba(255, 255, 255, .35), 0 -1px 0 rgba(0, 0, 0, .3); min-height: 1.5em; }
.odo.small { font-size: 18px; }
.drum { position: relative; width: .72em; height: 1.25em; overflow: hidden; border-radius: 2px;
  background: linear-gradient(180deg, #000, #2b2b2b 30%, #333 50%, #2b2b2b 70%, #000); }
.drum .strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.drum i { font-style: normal; height: 1.25em; display: grid; place-items: center; color: #f4f1e6; }
.drum::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 32%, transparent 68%, rgba(0, 0, 0, .75)); }
.sep { color: #f4f1e6; padding: 0 1px; }

.screw { position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0f0ea, #8d8d86 55%, #4a4a45);
  box-shadow: 0 1px 1px rgba(255, 255, 255, .4), inset 0 -1px 2px rgba(0, 0, 0, .5); }
.screw::after { content: ''; position: absolute; left: 2px; right: 2px; top: 7px; height: 2px; background: #3b3b37; border-radius: 1px; transform: rotate(var(--r, 30deg)); }
.screw.tl { top: 10px; left: 10px; } .screw.tr { top: 10px; right: 10px; --r: -20deg; } .screw.bl { bottom: 10px; left: 10px; --r: 75deg; } .screw.br { bottom: 10px; right: 10px; --r: 5deg; }

/* ------------------------------------------------------------------ the console */
.console { position: relative; padding: 28px 30px 26px; border-radius: 10px;
  background: var(--hammer), radial-gradient(130% 90% at 30% 0%, var(--enamel-lt), var(--enamel) 55%, var(--enamel-dk));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 0 0 4px #4b584d, 0 0 0 6px #2f3830, 0 28px 40px -18px rgba(0, 0, 0, .7); }
body.shake .console { animation: shake .22s infinite; }
@keyframes shake { 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, 1px); } }

.plate-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 0 8px 20px; border-bottom: 2px groove rgba(255, 255, 255, .35); }
.nameplate { position: relative; display: grid; padding: 10px 22px 9px; border-radius: 4px; background: linear-gradient(180deg, #232320, #121210); color: #e8dfc2;
  box-shadow: 0 0 0 2px #8f8f86, 0 0 0 3px #2b2b28, 0 3px 6px rgba(0, 0, 0, .5); }
.np-cy { font: 700 12px/1 'Stardos Stencil', sans-serif; letter-spacing: .3em; color: #d9473e; }
.np-main { font: 700 40px/1.05 'Stardos Stencil', Impact, sans-serif; letter-spacing: .08em; }
.np-sub { font: 11px/1.2 'Special Elite', monospace; letter-spacing: .06em; color: #a9a189; }
.readouts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.readout { display: grid; justify-items: center; gap: 7px; }
.duty { display: inline-flex; align-items: center; gap: 10px; }

.toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 40% 35%, #f2f2ec, #9b9b93 60%, #55554f); box-shadow: 0 2px 4px rgba(0, 0, 0, .5), inset 0 -2px 3px rgba(0, 0, 0, .4); }
.toggle .bat { position: absolute; left: 50%; top: 50%; width: 10px; height: 30px; margin-left: -5px; border-radius: 6px 6px 3px 3px; transform-origin: 50% 100%;
  background: linear-gradient(90deg, #8a8a82, #f5f5ef 45%, #8a8a82); box-shadow: 0 3px 3px rgba(0, 0, 0, .5); transform: translateY(-100%) rotate(28deg); transition: transform .12s; }
.toggle.on .bat { transform: translateY(-100%) rotate(-28deg); }
.toggle::after { content: 'OFF   ON'; white-space: pre; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font: 700 9px/1 Rubik, sans-serif; letter-spacing: .1em; color: #23291f; }

.deck { display: grid; grid-template-columns: 1fr minmax(300px, 360px) 1fr; gap: 26px; align-items: start; padding: 24px 0 22px; }
.zone { display: grid; justify-items: center; gap: 16px; }

/* gauge */
.bezel { padding: 10px; border-radius: 16px; width: 100%; max-width: 300px;
  background: linear-gradient(145deg, #f4f4ee, #8f8f88 40%, #e2e2dc 60%, #6f6f69); box-shadow: 0 4px 8px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .3); }
.gauge { display: block; width: 100%; border-radius: 8px; box-shadow: inset 0 0 0 1px #000; }
.gauge .maj { stroke: #1d1a14; stroke-width: 2.4; } .gauge .mid { stroke: #1d1a14; stroke-width: 1.6; } .gauge .min { stroke: #1d1a14; stroke-width: .8; }
.gauge .g-num { font: 600 13px Oswald, sans-serif; fill: #1d1a14; text-anchor: middle; }
.gauge .g-unit { font: 700 10px 'Stardos Stencil', sans-serif; fill: #b3202a; text-anchor: middle; letter-spacing: .25em; }
.gauge .g-unit2 { font: 7px 'Special Elite', monospace; fill: #4a4436; text-anchor: middle; letter-spacing: .12em; }
.gauge .g-needle { stroke: #b3202a; stroke-width: 3; stroke-linecap: round; } .gauge .g-tail { stroke: #1d1a14; stroke-width: 5; }
.gauge .g-hub { fill: #1d1a14; stroke: #777; stroke-width: 1.5; }
.lamp-row { display: flex; align-items: center; gap: 12px; }
.lamp-housing { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: repeating-conic-gradient(#d6d6d0 0 6deg, #8a8a83 6deg 12deg); box-shadow: 0 3px 6px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(0, 0, 0, .2); }
.lamp { width: 44px; height: 44px; border-radius: 50%; display: block;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), transparent 30%), repeating-radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .12) 0 2px, transparent 2px 5px), radial-gradient(circle, #6d1410, #2a0605 80%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .5); }
body[data-phase="alive"] .lamp, body[data-phase="dead"] .lamp { animation: lamp var(--pulse) steps(1) infinite; }
body[data-phase="dead"] .lamp { animation-duration: .5s; }
@keyframes lamp { 0%, 49% { background: radial-gradient(circle at 35% 30%, #fff, transparent 30%), repeating-radial-gradient(circle at 50% 50%, rgba(120, 0, 0, .15) 0 2px, transparent 2px 5px), radial-gradient(circle, #ff6a50, #d0150c 70%); box-shadow: 0 0 24px 8px rgba(255, 40, 20, .65), inset 0 0 0 2px rgba(0, 0, 0, .3); } }

/* nixie tubes in a bakelite box */
.nixie-box { display: grid; justify-items: center; gap: 8px; padding: 14px 18px 12px; border-radius: 8px; background: linear-gradient(180deg, #2a2724, #151311); box-shadow: 0 0 0 2px #0a0a09, 0 4px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12); }
.nixies { display: flex; align-items: flex-end; gap: 8px; }
.tube { position: relative; width: 70px; height: 116px; border-radius: 34px 34px 10px 10px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 55%, rgba(255, 140, 60, .1), transparent), linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .14) 22%, rgba(255, 255, 255, .02) 40%, rgba(0, 0, 0, .2)), #1b1410;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 200, .18), inset 0 -10px 14px rgba(0, 0, 0, .6), 0 6px 0 -2px #3a3a36, 0 8px 0 -2px #111; }
.tube.tenth { width: 50px; height: 86px; border-radius: 24px 24px 8px 8px; }
.tube .mesh { position: absolute; inset: 8px 6px 10px; border-radius: 26px 26px 4px 4px;
  background: repeating-linear-gradient(60deg, rgba(160, 140, 120, .16) 0 1px, transparent 1px 6px), repeating-linear-gradient(-60deg, rgba(160, 140, 120, .16) 0 1px, transparent 1px 6px); }
.tube .ghosts, .tube .lit { position: absolute; inset: 0; display: grid; place-items: center; font: 300 82px/1 Oswald, 'Arial Narrow', sans-serif; }
.tube.tenth .ghosts, .tube.tenth .lit { font-size: 58px; }
.tube .ghosts i { grid-area: 1 / 1; font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(200, 160, 120, .15); }
.tube .lit { color: #ffd9a8; text-shadow: 0 0 2px #fff0d8, 0 0 6px #ff9a3c, 0 0 14px #ff6a00, 0 0 30px rgba(255, 90, 0, .7); font-weight: 300; }
.tube .dp { position: absolute; left: 6px; bottom: 16px; width: 7px; height: 7px; border-radius: 50%; background: #ffcf9a; box-shadow: 0 0 6px #ff7a1a, 0 0 12px #ff5a00; }
body[data-phase="dead"] .tube .lit { color: #ff8a6a; text-shadow: 0 0 6px #ff3b1a, 0 0 18px #ff2000; animation: blink .5s steps(1) infinite; }

/* the guard: hazard plate, collar, mushroom button, flip-up acrylic cover */
.guard { position: relative; width: 250px; height: 250px; display: grid; place-items: center; perspective: 700px; }
.hazard { position: absolute; inset: 0; border-radius: 14px;
  background: repeating-linear-gradient(45deg, #f2c11d 0 18px, #191919 18px 36px);
  box-shadow: inset 0 0 0 6px #4a4a44, inset 0 0 0 8px #232320, 0 4px 10px rgba(0, 0, 0, .5); }
.collar { position: relative; width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #6a6a64, #2b2b28 65%, #151514); box-shadow: 0 5px 10px rgba(0, 0, 0, .6), inset 0 2px 1px rgba(255, 255, 255, .25); }
.mushroom { width: 166px; height: 166px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; position: relative; top: -8px;
  background: #7a0d0b; box-shadow: 0 10px 0 #5a0807, 0 14px 14px rgba(0, 0, 0, .55); transition: transform .08s, box-shadow .08s; }
.mushroom .cap { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 28%, rgba(255, 255, 255, .55), transparent 22%), radial-gradient(circle at 50% 40%, #f0473a, #c4170f 55%, #8c0c08);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .35), inset 0 3px 2px rgba(255, 255, 255, .25); }
.mushroom .label { font: 700 30px/1 'Stardos Stencil', Impact, sans-serif; letter-spacing: .08em; color: #f8e3d8; text-shadow: 0 -1px 0 rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .25); }
.mushroom:hover:not(:disabled) .cap { filter: brightness(1.08); }
.mushroom.down, .mushroom:active:not(:disabled) { transform: translateY(8px); box-shadow: 0 2px 0 #5a0807, 0 4px 6px rgba(0, 0, 0, .5); }
.mushroom:disabled { cursor: not-allowed; }
.mushroom:disabled .cap { filter: saturate(.55) brightness(.75); }
.mushroom:disabled .label { font-size: 24px; color: #e6c9bd; }
.mushroom:focus-visible { outline: 3px dashed #f2c11d; outline-offset: 10px; }
.cover { position: absolute; left: 14px; right: 14px; top: 14px; bottom: 14px; border-radius: 50% 50% 46% 46% / 40% 40% 50% 50%; border: 0; cursor: pointer;
  transform-origin: 50% 0; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), opacity .35s;
  background: radial-gradient(circle at 40% 25%, rgba(255, 255, 255, .55), transparent 25%), linear-gradient(180deg, rgba(255, 120, 40, .42), rgba(200, 50, 10, .5));
  box-shadow: inset 0 0 0 3px rgba(255, 170, 120, .55), inset 0 -10px 18px rgba(120, 20, 0, .35), 0 8px 14px rgba(0, 0, 0, .35); }
.cover::before { content: ''; position: absolute; left: 30%; right: 30%; top: -10px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #e8e8e2, #6c6c66); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.cover-tag { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(-2deg); font: 700 11px/1 Rubik, sans-serif; letter-spacing: .16em; color: #fff; background: #1b1b1d; padding: 5px 8px 4px; border-radius: 2px; white-space: nowrap; }
.guard:not(.locked):hover .cover, .guard.open .cover { transform: rotateX(-118deg); pointer-events: none; opacity: .85; }
.guard.locked .cover-tag { font-size: 0; }
.guard.locked .cover-tag::after { content: 'LOCKED'; font-size: 11px; }
.guard.locked .cover { cursor: not-allowed; }
@media (hover: none) { .guard:not(.locked):hover .cover { transform: none; pointer-events: auto; opacity: 1; } .guard.open .cover { transform: rotateX(-118deg); pointer-events: none; } }

.status { margin: 0; text-align: center; max-width: 360px; }
.you { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 60px; }
.tag { position: relative; display: grid; justify-items: center; padding: 8px 20px 8px 34px; border-radius: 4px 16px 16px 4px; transform: rotate(-2deg);
  background: linear-gradient(135deg, #e7e4da, #a9a69c 50%, #d7d4ca); box-shadow: 0 2px 4px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .25);
  font: 13px/1.25 'Special Elite', monospace; color: #2a2822; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.tag .hole { position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--enamel-dk); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.tag b { font: 700 18px/1.1 'Stardos Stencil', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.tag .tag-k { font-size: 10px; letter-spacing: .2em; }
.tag:not(.blank) b::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); vertical-align: 1px; }
.tag.legend { background: linear-gradient(135deg, #f0d47a, #b8923a 50%, #e5c46b); }
.tag.blank { opacity: .75; }

/* brass flair placard */
.brass { position: relative; width: 100%; max-width: 300px; padding: 18px 22px 14px; border-radius: 4px; color: #3a2a0c;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px), linear-gradient(160deg, #e6cb7c, #b38d38 45%, #d9b864 70%, #9c7428);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 245, 200, .7), inset 0 -1px 0 rgba(80, 50, 0, .5); text-shadow: 0 1px 0 rgba(255, 240, 190, .55); }
.brass .rivet { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c0, #8a6620); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.rivet.a { top: 7px; left: 7px; } .rivet.b { top: 7px; right: 7px; } .rivet.c { bottom: 7px; left: 7px; } .rivet.d { bottom: 7px; right: 7px; }
.brass h2 { margin: 0; font: 700 22px/1 'Stardos Stencil', sans-serif; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.brass-sub { margin: 4px 0 10px; font-size: 12px; text-align: center; }
.brass ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.brass li { display: grid; grid-template-columns: 22px 56px 1fr; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid rgba(80, 50, 0, .35); box-shadow: 0 1px 0 rgba(255, 240, 190, .35) inset; }
.brass li .rng { font: 600 16px/1 Oswald, sans-serif; letter-spacing: .04em; }
.brass li .nm { font: 700 15px/1 'Stardos Stencil', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.brass li.now .nm::after { content: ' <'; }
.brass li.now { animation: blink 1s steps(1) infinite; }

/* filler hardware: speaker grille, inspection sticker */
.grille { width: 100%; max-width: 300px; display: grid; gap: 8px; justify-items: center; }
.grille .slots { width: 100%; height: 92px; border-radius: 8px; background: repeating-linear-gradient(180deg, #1a1d19 0 6px, transparent 6px 13px), var(--enamel-dk);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .3); padding: 0; }
.sticker { width: 100%; max-width: 300px; padding: 12px 66px 12px 16px; background: #f4efd9; color: #2b2720; transform: rotate(1.6deg); font-size: 12px; line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35); border: 1px solid #c9bf9e; position: relative; }
.sticker b { display: block; font: 700 14px/1.2 'Stardos Stencil', sans-serif; letter-spacing: .14em; color: #a3141c; border-bottom: 1px solid #2b2720; margin-bottom: 6px; padding-bottom: 4px; }
.sticker .sig { font-style: italic; font-size: 15px; color: #1f3a8a; transform: rotate(-4deg); display: inline-block; }
.sticker::after { content: 'OK'; position: absolute; right: 12px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(31, 58, 138, .7); color: rgba(31, 58, 138, .7);
  display: grid; place-items: center; font: 700 16px/1 'Stardos Stencil', sans-serif; transform: rotate(-18deg); }

/* counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 18px 8px 4px; border-top: 2px groove rgba(255, 255, 255, .35); }
.counter { display: grid; justify-items: center; gap: 8px; text-align: center; }
.etched { font-size: 13px; color: #10150f; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }

/* ------------------------------------------------------------------ paperwork: teletype tape + green-bar logbook */
.paperwork { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; margin-top: 34px; align-items: start; }
.teletype { display: grid; }
.tt-head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 18px; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #4a4f48, #2a2e29); color: #d8d2b6; box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .2); }
.tt-name { font: 700 18px/1 'Stardos Stencil', sans-serif; letter-spacing: .2em; }
.tt-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; }
.tt-live .jewel { width: 10px; height: 10px; animation: blink 1.4s steps(1) infinite; }
.tt-slot { height: 8px; margin: -12px 22px 0; border-radius: 4px; background: #0b0b0a; position: relative; z-index: 1; }
.tape { list-style: none; margin: -2px 34px 0; padding: 10px 14px 18px 30px; max-height: 380px; overflow: hidden; position: relative;
  background: radial-gradient(circle, rgba(63, 90, 75, 1) 0 2.5px, transparent 3px) 9px 0 / 10px 12px repeat-y, linear-gradient(90deg, rgba(0, 0, 0, .06), transparent 12%, transparent 88%, rgba(0, 0, 0, .06)), var(--paper);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .35); -webkit-mask: linear-gradient(180deg, #000 80%, transparent); mask: linear-gradient(180deg, #000 80%, transparent);
  font-size: 13px; line-height: 1.35; text-transform: uppercase; color: #26231d; }
.tape li { display: grid; grid-template-columns: 14px auto 1fr; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed rgba(0, 0, 0, .12); animation: feedin .4s ease-out; }
.tape li time { color: #6f6650; font-size: 11px; }
.tape li.hot span { color: #a3141c; }
.tape li.dead span, .tape li.ev span { font-weight: 700; color: #a3141c; letter-spacing: .04em; }
.tape li.muted { display: block; color: #6f6650; }
.tape .fd { width: 10px; height: 10px; background: var(--fc, transparent); opacity: .85; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); align-self: center; }
.tape .fd.blank { background: transparent; box-shadow: none; }
@keyframes feedin { from { transform: translateY(-12px); opacity: 0; } }

.logbook { position: relative; padding: 18px 38px 22px; color: #2c2a28; font: 20px/24px VT323, 'Courier New', monospace;
  background:
    radial-gradient(circle, var(--dado) 0 4px, transparent 4.5px) 8px 6px / 16px 24px repeat-y,
    radial-gradient(circle, var(--dado) 0 4px, transparent 4.5px) calc(100% - 8px) 6px / 16px 24px repeat-y,
    linear-gradient(90deg, transparent 27px, rgba(0, 0, 0, .18) 27px 28px, transparent 28px calc(100% - 28px), rgba(0, 0, 0, .18) calc(100% - 28px) calc(100% - 27px), transparent calc(100% - 27px)),
    repeating-linear-gradient(180deg, #d9ead4 0 48px, #fbfaf1 48px 96px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .4); transform: rotate(.4deg); }
.logbook h2 { margin: 0 0 24px; font: 400 26px/24px VT323, monospace; letter-spacing: .14em; }
.eras { list-style: none; margin: 0; padding: 0; max-height: 480px; overflow-y: auto; scrollbar-width: thin; }
.eras li { padding-bottom: 24px; text-transform: uppercase; }
.eras li b { font-weight: 400; color: #8f1c1c; }
.eras li em { display: block; font-style: normal; color: #4b4840; }
.eras li.muted { color: #6a675d; }

footer { margin-top: 34px; text-align: center; font-size: 13px; color: #e6dfc3; }
footer p { margin: 0; }

/* ------------------------------------------------------------------ death: rotating beacon, then the bulletin */
.death { position: fixed; inset: 0; z-index: 50; background: #140303; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 12px; }
.death[hidden] { display: none; }
.beacon { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.beacon::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: conic-gradient(from 0deg, rgba(255, 30, 10, .55), transparent 18%, transparent 50%, rgba(255, 30, 10, .55) 50%, transparent 68%); animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.siren { position: relative; text-align: center; color: #fff; transition: opacity .6s, transform .6s; }
.siren h1 { margin: 0; font: 700 clamp(44px, 11vw, 128px)/.95 'Stardos Stencil', Impact, sans-serif; letter-spacing: .04em; color: #ffece6; text-shadow: 0 0 30px rgba(255, 40, 20, .9), 4px 4px 0 #6b0000; }
.siren p { font-size: 18px; letter-spacing: .1em; text-transform: uppercase; }
.bulletin { position: relative; display: none; width: min(660px, 100%); flex: none; margin: auto 0; background: var(--paper); color: #221f19; box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  padding: 0 34px;
  background-image:
    radial-gradient(circle, #140303 0 4px, transparent 4.5px), radial-gradient(circle, #140303 0 4px, transparent 4.5px),
    linear-gradient(90deg, transparent 25px, rgba(0, 0, 0, .2) 25px 26px, transparent 26px calc(100% - 26px), rgba(0, 0, 0, .2) calc(100% - 26px) calc(100% - 25px), transparent calc(100% - 25px));
  background-size: 16px 24px, 16px 24px, 100% 100%; background-position: 5px 6px, calc(100% - 5px) 6px, 0 0; background-repeat: repeat-y, repeat-y, no-repeat; }
.death.news-on .siren { position: absolute; opacity: 0; transform: scale(.9); pointer-events: none; }
.death.news-on .bulletin { display: block; animation: printout .7s ease-out; }
@keyframes printout { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.bl-body { position: relative; padding: 22px 8px 18px; text-transform: uppercase; font-size: 15px; line-height: 1.55; }
.bl-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 700 15px/1.2 'Stardos Stencil', sans-serif; letter-spacing: .18em; border-bottom: 3px double #221f19; padding-bottom: 8px; }
.bl-route { font-size: 12px; padding: 8px 0; border-bottom: 1px dashed #221f19; color: #4b463a; }
.bl-lead { margin: 16px 0 4px; font-size: 22px; color: #9e1018; letter-spacing: .06em; }
#doom { margin: 0 0 14px; font: 400 21px/1.35 'Special Elite', monospace; text-transform: uppercase; }
.report { font-size: 14px; color: #3c372c; }
.report b { font-weight: 400; text-decoration: underline; }
.reborn { margin-top: 16px; padding-top: 10px; border-top: 1px dashed #221f19; font-size: 14px; }
.stamp { position: absolute; right: 4px; bottom: 26px; padding: 8px 14px; border: 5px double rgba(170, 18, 26, .8); border-radius: 6px; color: rgba(170, 18, 26, .8);
  font: 700 34px/1 'Stardos Stencil', sans-serif; letter-spacing: .1em; text-align: center; transform: rotate(-14deg); mix-blend-mode: multiply;
  -webkit-mask: var(--grit), linear-gradient(#000, #000); }
.ticker { overflow: hidden; white-space: nowrap; margin: 0 -34px; padding: 8px 0; background: #221f19; color: var(--paper); font-size: 13px; letter-spacing: .08em; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ------------------------------------------------------------------ narrow screens: the console stacks */
@media (max-width: 980px) {
  .deck { grid-template-columns: 1fr 1fr; }
  .zone-main { grid-column: 1 / -1; order: -1; }
  .counters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grille { display: none; }
  main { padding: 14px 10px 30px; }
  .console { padding: 22px 14px 20px; }
  .plate-row { justify-content: center; padding: 0 0 16px; }
  .nameplate { padding: 8px 16px; }
  .np-main { font-size: 32px; }
  .readouts { justify-content: center; gap: 14px; }
  .deck { grid-template-columns: 1fr; gap: 22px; }
  .tube { width: 62px; height: 104px; } .tube .ghosts, .tube .lit { font-size: 74px; }
  .tube.tenth { width: 44px; height: 76px; } .tube.tenth .ghosts, .tube.tenth .lit { font-size: 50px; }
  .guard { width: 230px; height: 230px; } .collar { width: 184px; height: 184px; } .mushroom { width: 152px; height: 152px; }
  .counters { gap: 16px 10px; padding: 16px 0 4px; }
  .odo { font-size: 24px; }
  .paperwork { grid-template-columns: 1fr; }
  .tape { margin: -2px 22px 0; max-height: 300px; }
  .logbook { padding: 16px 32px 18px; font-size: 18px; }
  .bulletin { padding: 0 28px; }
  .ticker { margin: 0 -28px; }
  .stamp { font-size: 22px; bottom: 34px; right: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .beacon::before, .ticker span { animation: none; }
  .ticker span { padding-left: 12px; }
  body.shake .console { animation: none; }
}

/* Honk Party login chip (hub.tomko.dk) as a punched label in the OPERATOR readout. Display only: the console still
   collects nothing but the city. Gold + seal = logged in on the hub. */
.sq-slot { display: flex; align-items: center; min-height: 34px; }
.sq-slot .sq-badge { position: static; font: 700 12px/1 Rubik, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 8px 11px; border-radius: 4px; background: #1b1b1d; color: #f1efe6; border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 rgba(0,0,0,.35); backdrop-filter: none; }
.sq-slot .sq-badge:hover { background: #2a2a2d; }
.sq-slot .sq-badge .sq-verified { text-transform: none; letter-spacing: .02em; font-size: 13px; }
