/* 404.construction -- 90s GeoCities page frame.
   Fonts are system stacks only: no webfonts, no downloaded typefaces, no meme caps font. */

/* ---------- base ---------- */
[hidden] { display: none !important; }

:root {
    --brick-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Crect width='40' height='20' fill='%23CCCC99'/%3E%3Cg fill='%23993300'%3E%3Crect x='1' y='1' width='18' height='8'/%3E%3Crect x='21' y='1' width='18' height='8'/%3E%3Crect x='-9' y='11' width='18' height='8'/%3E%3Crect x='11' y='11' width='18' height='8'/%3E%3Crect x='31' y='11' width='18' height='8'/%3E%3C/g%3E%3C/svg%3E");
}

html, body { margin: 0; background: #993300; }

body {
    font: 16px/1.5 'Times New Roman', Times, serif;
    color: #1a1423;
    background-image: var(--brick-tile);
    background-repeat: repeat;
}

h1, h2, h3 { font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 8px; top: -3em; z-index: 100;
    background: #FFFFCC; border: 2px solid #1a1423; padding: 6px 10px;
    font: bold 14px Verdana, Geneva, sans-serif; color: #1a1423; transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

/* Hazard bars: 12px, top and above the footer. */
.hazard-bar {
    height: 12px;
    background: repeating-linear-gradient(-45deg, #FFCC00 0 14px, #000 14px 28px);
}

/* Panels: cream, ridge border. */
.panel {
    background: #FFFFCC;
    border: 4px ridge #CCCCCC;
    margin: 12px;
    padding: 12px 16px;
}

/* ---------- header / WordArt title ---------- */

.title-panel {
    text-align: center;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 0 12px; padding: 6px 12px;
}
.wordart { margin: 0; grid-column: 2; grid-row: 1; }
.wordart svg { display: block; margin: 0 auto; width: 100%; max-width: 560px; height: auto; }
.wa-face {
    font: 900 60px/1 'Arial Black', Arial, sans-serif;
    fill: url(#wa-grad);
    stroke: #993300;
    stroke-width: 2px;
    paint-order: stroke;
}
.wa-extrude text {
    font: 900 60px/1 'Arial Black', Arial, sans-serif;
    fill: #993300;
}
.tagline {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    font-size: 14px;
    margin: 0 0 2px;
    grid-column: 2; grid-row: 2;
}

/* Under-construction signs. 32x32 grid, crisp pixels. */
/* the two signs flank the title */
.signs { display: contents; }
.sign-figure { margin: 0; text-align: center; grid-row: 1 / 3; }
.sign-figure:first-child { grid-column: 1; }
.sign-figure:last-child { grid-column: 3; }
.sign-figure svg { image-rendering: pixelated; shape-rendering: crispEdges; width: clamp(40px, 9vw, 72px); height: auto; aspect-ratio: 1; display: block; margin: 0 auto; }
@media (max-width: 480px) { .sign-figure figcaption { display: none; } }
#play { scroll-margin-top: 6px; }
.sign-figure figcaption {
    font: bold 11px Verdana, Geneva, sans-serif; margin-top: 2px;
}
.sign-anim .shovel { transform-origin: 16px 20px; animation: shovel-dig 1s steps(2, jump-none) infinite; }
@keyframes shovel-dig { 0%, 49% { transform: rotate(0deg); } 50%, 100% { transform: rotate(16deg); } }
.sign-anim .beacon { animation: beacon-blink 1s steps(2, jump-none) infinite; }
/* the circle's own fill is the unlit colour, so the lit half must differ from it */
@keyframes beacon-blink { 0%, 49% { fill: #FF6600; } 50%, 100% { fill: #993300; } }

/* ---------- marquee ---------- */

.marquee-panel { overflow: hidden; }
.marquee {
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
    font-weight: bold;
    color: #993300;
}
.marquee-track {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite; /* ~60 px/s for the ~1200 px span */
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-block; padding-right: 3em; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- authorized-personnel strip ---------- */

.strip {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #1a1423; color: #FFFFCC;
    font: bold 13px Verdana, Geneva, sans-serif;
    padding: 6px 10px;
}
.lamp {
    width: 12px; height: 12px; border-radius: 50%;
    background: #CC0000; border: 1px solid #000;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.6) inset;
    display: inline-block;
}
.lamp.on { background: #009933; }

/* ---------- responsive layout: nav column / link bar / single column ---------- */

.layout { display: block; }
.nav-col { }
.nav-col h2 { font-size: 15px; margin-top: 0; }
.nav-col ul { list-style: none; margin: 0; padding: 0; }
.nav-col li { margin: 4px 0; }
.nav-col a { font: bold 13px Verdana, Geneva, sans-serif; }

@media (min-width: 700px) and (max-width: 1023px) {
    .nav-col ul { display: flex; flex-wrap: wrap; gap: 6px 14px; }
    .nav-col li { margin: 0; }
}

@media (min-width: 1024px) {
    .layout { display: grid; grid-template-columns: 220px 1fr; gap: 0 16px; align-items: start; }
}

/* ---------- links ---------- */

a:link { color: #0033CC; }
a:visited { color: #551A8B; }
a:active { color: #CC0000; }

/* ---------- #game / .screen (existing behaviour kept) ---------- */

#game { display: block; outline: none; touch-action: manipulation; position: relative; }
.screen { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 140px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #1a1423; position: relative; }
.screen canvas { image-rendering: pixelated; display: block; }
.overlay { position: absolute; pointer-events: none; font: bold 13px/1.3 Verdana, Geneva, sans-serif; color: #1a1423; }
.bubble { position: absolute; background: #fff8e7; border: 2px solid #1a1423; border-radius: 6px; padding: 3px 8px; white-space: nowrap; box-shadow: 2px 2px 0 rgba(26, 20, 35, 0.35); }
.bubble::after { content: ''; position: absolute; left: var(--tail, 50%); bottom: -8px; border: 6px solid transparent; border-top-color: #1a1423; border-bottom: 0; margin-left: -6px; }
kbd.cap { display: inline-block; font: bold 12px/1.2 Verdana, Geneva, sans-serif; background: #e9eef5; border: 1px solid #545b6e; border-bottom-width: 3px; border-radius: 3px; padding: 0 4px; margin: 0 1px; animation: capblink 1s steps(2, jump-none) infinite; }
@keyframes capblink { 50% { background: #ffcc1a; } }
/* max-content so the left: 50% offset doesn't halve the wrap width; \n in the text breaks the line */
.banner {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: max-content; max-width: calc(100% - 16px); box-sizing: border-box;
    background: #ffcc1a; border: 2px solid #1a1423; padding: 3px 10px;
    font-size: 14px; text-align: center; white-space: pre-line;
}
.banner small { display: block; font-size: 12px; }
/* Speech bubble centred above the point the JS puts in left/top. */
.say {
    position: absolute; transform: translate(-50%, calc(-100% - 6px)); pointer-events: none;
    width: max-content; max-width: 16em; text-align: center;
    background: #fff8e7; border: 2px solid #1a1423; border-radius: 8px; padding: 1px 8px;
    box-shadow: 2px 2px 0 rgba(26, 20, 35, 0.35);
    font: bold 13px/1.3 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; color: #1a1423;
}
/* --tail: where the speaker is, when the bubble had to be kept inside the screen */
.say::after { content: ''; position: absolute; left: var(--tail, 50%); bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: #1a1423; border-bottom: 0; }
.checklist {
    position: absolute; top: 8px; left: 8px; z-index: 3; pointer-events: auto; cursor: pointer;
    background: #fff8e7; border: 3px solid #1a1423; border-top: 10px solid #9c6a00;
    box-shadow: 3px 3px 0 rgba(26, 20, 35, 0.35); padding: 6px 10px; min-width: 180px; max-width: 80%;
    font: bold 13px/1.4 Verdana, Geneva, sans-serif; color: #1a1423;
}
.checklist ul { list-style: none; margin: 4px 0; padding: 0; }
.checklist li.done { color: #3e8a2a; }
.checklist-title { font: 900 14px 'Arial Black', Arial, sans-serif; letter-spacing: 1px; }
.checklist-foot { font-size: 12px; color: #545b6e; margin-top: 2px; }
.stamps { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stamp { font: 900 28px/1 'Arial Black', Arial, sans-serif; color: #e8323c; border: 4px solid #e8323c; padding: 4px 12px; transform: rotate(-12deg); background: rgba(255, 248, 231, 0.85); }
/* Award rosette: pleated ring and gold disc (::before) over two ribbon tails (::after), text on top. */
.stamp.badge {
    position: relative; z-index: 0; width: 128px; height: 128px; box-sizing: border-box; padding: 0 22px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    border: 0; background: none; transform: rotate(-8deg); margin-bottom: 36px; flex: none;
    font: 900 13px/1.15 'Arial Black', Arial, sans-serif; color: #7a2410; overflow-wrap: anywhere;
}
/* small phones: a smaller rosette rather than a squeezed one */
@media (max-width: 359px) { .stamp.badge { transform: rotate(-8deg) scale(0.7); margin: -20px -20px 16px; } }
.stamp.badge::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, #ffe9a0 0, #ffcc1a 60%, #9c6a00 62% 68%, transparent 69%),
        repeating-conic-gradient(#e8323c 0 10deg, #b8202a 10deg 20deg);
    box-shadow: 2px 3px 0 rgba(26, 20, 35, 0.35);
}
.stamp.badge::after {
    content: ''; position: absolute; z-index: -2; left: 50%; top: 62%; width: 84px; height: 84px; margin-left: -42px;
    background: #e8323c;
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 88% 88%, 74% 100%, 50% 30%, 26% 100%, 12% 88%, 0 100%);
}
@media (prefers-reduced-motion: reduce) { kbd.cap { animation: none; } }
html.still kbd.cap { animation: none; }

/* Static key legend for the how-to table (not the in-game hint, so it never blinks). */
kbd.key {
    display: inline-block; font: bold 12px/1.2 Verdana, Geneva, sans-serif;
    background: #e9eef5; border: 1px solid #545b6e; border-bottom-width: 3px;
    border-radius: 3px; padding: 0 4px; margin: 0 1px;
}

/* Speaker button, top-right of .screen. */
.speaker {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    width: 32px; height: 32px; padding: 0;
    background: #e9eef5; border: 2px solid #1a1423; border-radius: 4px;
    font: bold 14px Verdana, Geneva, sans-serif; line-height: 1;
    cursor: pointer;
}
.speaker[aria-pressed="true"] { background: #545b6e; color: #fff8e7; }
/* exit control for native fullscreen (the toolbar is covered then) */
.fs-exit { display: none; }
#game:fullscreen .fs-exit {
    display: block; position: absolute; top: 6px; left: 6px; z-index: 2;
    width: 32px; height: 32px; padding: 0;
    background: #e9eef5; border: 2px solid #1a1423; border-radius: 4px;
    font: bold 16px Verdana, Geneva, sans-serif; line-height: 1; cursor: pointer;
}

@media (pointer: coarse) {
    .speaker { width: 56px; height: 56px; }
    /* keep banners clear of the big speaker button (in game mode it moves to the deck) */
    html:not(.game-mode) #game:not(:fullscreen) .banner { max-width: calc(100% - 136px); }
}

/* ---------- decks (touch controls) ---------- */
/* .decks wraps deck-left/deck-mid/deck-right; layout.js sets html.touch and
   html.game-mode (matchMedia-driven), so the CSS below only needs to react
   to those two hooks (plus the native :fullscreen pseudo as a safety net). */

.decks { display: none; }
@media (pointer: coarse) { .decks { display: flex; } }
html.touch .decks { display: contents; }

.deck { display: flex; gap: 8px; box-sizing: border-box; }
.deck-left, .deck-right { flex: 0 0 auto; flex-direction: column; align-items: center; }
.deck-mid { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; }

.deck button {
    min-width: 56px; min-height: 56px; box-sizing: border-box;
    font: bold 11px Verdana, Geneva, sans-serif;
    background: #e9eef5; border: 2px solid #1a1423; border-radius: 6px;
    color: #1a1423;
}
.deck button[aria-pressed="true"] { background: #ffcc1a; }
.deck .rescue { background: #e8323c; color: #fff8e7; }
.deck [data-action="next"], .deck [data-action="page"] { display: none; }
.deck .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.pad {
    position: relative; width: 88px; height: 88px; min-width: 88px; min-height: 88px;
    border-radius: 50%; background: #c5ccd8; border: 2px solid #1a1423; box-sizing: border-box;
}
.pad .knob {
    position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; box-sizing: border-box;
    margin: -20px 0 0 -20px; border-radius: 50%;
    background: #545b6e; border: 2px solid #1a1423;
    transform: translate(0, 0);
}

#game, .deck, .deck * { -webkit-tap-highlight-color: transparent; }
.deck, .deck * {
    touch-action: none; overscroll-behavior: none;
    -webkit-user-select: none; user-select: none;
    -webkit-touch-callout: none;
}

/* Portrait / page mode on touch: screen above; below it
   [left pad | ACTION HORN / JOBS PAUSE | right pad] and a row of machine icons.
   Scoped to non-game-mode so it never leaks into the landscape layout below.
   .decks/.deck-left/.deck-right/.row unwrap (display: contents) so each stick
   and button is a grid item of #game; .deck-mid stays a flex row. */
@media (pointer: coarse) {
    html:not(.game-mode) .panel.game-panel { padding: 6px; margin-left: 4px; margin-right: 4px; }
    html:not(.game-mode) #game:not(:fullscreen) {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) 88px;
        grid-template-rows: auto auto auto auto;
        gap: 8px;
        align-items: center;
        padding: 4px;
        box-sizing: border-box;
    }
    html:not(.game-mode) #game:not(:fullscreen) .screen { grid-column: 1 / -1; grid-row: 1; aspect-ratio: auto; height: auto; max-height: none; min-width: 0; }
    html:not(.game-mode) #game:not(:fullscreen) :is(.decks, .deck-left, .deck-right, .row) { display: contents; }
    html:not(.game-mode) #game:not(:fullscreen) .pad[data-stick="left"] { grid-column: 1; grid-row: 2 / 4; }
    html:not(.game-mode) #game:not(:fullscreen) .pad[data-stick="right"] { grid-column: 4; grid-row: 2 / 4; }
    html:not(.game-mode) #game:not(:fullscreen) [data-action="action"] { grid-column: 2; grid-row: 2; }
    html:not(.game-mode) #game:not(:fullscreen) [data-action="horn"] { grid-column: 3; grid-row: 2; }
    html:not(.game-mode) #game:not(:fullscreen) [data-action="jobs"] { grid-column: 2; grid-row: 3; }
    html:not(.game-mode) #game:not(:fullscreen) [data-action="pause"] { grid-column: 3; grid-row: 3; }
    html:not(.game-mode) #game:not(:fullscreen) :is(.deck-left, .deck-right) button { min-width: 0; width: 100%; }
    html:not(.game-mode) #game:not(:fullscreen) .deck-mid { grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: nowrap; gap: 8px; justify-content: center; }
    html:not(.game-mode) #game:not(:fullscreen) .deck-mid button { flex: 0 1 88px; min-width: 56px; }
}
.screen { min-width: 0; }
.screen canvas { max-width: none; flex: none; }

/* Landscape game mode (html.game-mode from layout.js, or native :fullscreen):
   only #game visible, on the brick tile; grid [left | screen | right]. */
html.game-mode #game,
#game:fullscreen {
    position: fixed; inset: 0; z-index: 50;
    display: grid;
    grid-template-columns: clamp(120px, 15vw, 160px) 1fr clamp(120px, 15vw, 160px);
    grid-template-rows: 1fr;
    gap: 8px;
    height: 100dvh; width: 100vw;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background-color: #993300;
    background-image: var(--brick-tile);
}
html.game-mode #game .screen,
#game:fullscreen .screen { grid-column: 2; grid-row: 1; height: 100%; max-height: none; aspect-ratio: auto; }
html.game-mode #game .decks,
#game:fullscreen .decks { display: contents; }
html.game-mode #game .deck-left, #game:fullscreen .deck-left,
html.game-mode #game .deck-right, #game:fullscreen .deck-right {
    grid-row: 1; justify-content: space-between;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
html.game-mode #game .deck-left, #game:fullscreen .deck-left { grid-column: 1; }
/* the speaker lives in the left deck here; sticks sit at the bottom under the thumbs */
html.game-mode #game .deck .speaker, #game:fullscreen .deck .speaker { position: static; }
html.game-mode #game .deck .pad, #game:fullscreen .deck .pad { order: 2; }
html.game-mode #game .deck-right, #game:fullscreen .deck-right { grid-column: 3; }
html.game-mode #game .deck-mid, #game:fullscreen .deck-mid { display: contents; }
html.game-mode #game .deck-mid [data-machine], #game:fullscreen .deck-mid [data-machine] { display: none; }
html.game-mode #game .deck-mid .rescue:not([hidden]), #game:fullscreen .deck-mid .rescue:not([hidden]) {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%); z-index: 60;
}
html.game-mode #game .deck-left [data-action="next"], html.game-mode #game .deck-left [data-action="page"],
html.game-mode #game .deck-right [data-action="next"], html.game-mode #game .deck-right [data-action="page"],
#game:fullscreen .deck-left [data-action="next"], #game:fullscreen .deck-left [data-action="page"],
#game:fullscreen .deck-right [data-action="next"], #game:fullscreen .deck-right [data-action="page"] { display: inline-flex; align-items: center; justify-content: center; }

/* Orientation hint (dismissible, never blocks play). */
.orientation-note {
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 70;
    background: #FFFFCC; border: 3px solid #1a1423; padding: 8px 10px;
    font: bold 13px Verdana, Geneva, sans-serif; display: flex; gap: 10px; align-items: center; justify-content: space-between;
}

/* A2HS tip. */
.a2hs-tip {
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 70;
    background: #FFFFCC; border: 3px solid #1a1423; padding: 8px 10px;
    font: bold 13px Verdana, Geneva, sans-serif; display: flex; gap: 10px; align-items: center; justify-content: space-between;
}

/* ---------- toolbar ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.toolbar button {
    font: bold 13px Verdana, Geneva, sans-serif;
    background: #e9eef5; border: 2px outset #c5ccd8; border-radius: 4px;
    padding: 6px 10px; min-height: 32px;
}
.toolbar button[aria-pressed="true"] { background: #ffcc1a; border-style: inset; }
@media (pointer: coarse) { .toolbar button { min-height: 56px; padding: 8px 14px; } }

/* ---------- how-to-play table ---------- */

.howto table { border-collapse: collapse; width: 100%; font: 14px Verdana, Geneva, sans-serif; }
.howto caption { text-align: left; font-weight: bold; margin-bottom: 6px; }
.howto th, .howto td { border: 1px solid #CCCCCC; padding: 4px 8px; text-align: left; vertical-align: middle; }
.howto th { background: #FFFFCC; }

/* ---------- job board ---------- */

#jobs ul { list-style: none; margin: 0; padding: 0; }
#jobs li {
    display: flex; gap: 8px; align-items: baseline; padding: 4px 0;
    font: bold 14px Verdana, Geneva, sans-serif; border-bottom: 1px dashed #CCCCCC;
}
#jobs li.job-done { color: #009933; text-decoration: line-through; }
.job-complete { font: bold 15px Verdana, Geneva, sans-serif; color: #993300; margin-top: 8px; }

/* ---------- footer ---------- */

.site-footer { font: 13px Verdana, Geneva, sans-serif; }
.webring { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge88x31 {
    width: 88px; height: 31px; box-sizing: border-box;
    border: 1px solid #1a1423; background: #e9eef5;
    font: bold 9px/1.15 'Courier New', Courier, monospace;
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px;
}
.visitor-counter {
    display: inline-block; background: #000; color: #FF0000;
    font: bold 15px 'Courier New', Courier, monospace;
    padding: 3px 8px; letter-spacing: 1px;
}
.last-updated { margin-left: 10px; }
.copyright { margin-top: 10px; }
.notice { background: #FFFFCC; border: 2px solid #993300; padding: 6px 10px; margin: 10px 0; font-weight: bold; }

/* ---------- guestbook ---------- */

.gb-plug { margin-left: 10px; font-weight: bold; white-space: nowrap; }
.gb-wet {
    display: inline-block; margin-right: 6px; padding: 0 6px;
    background: #FFCC00; border: 2px solid #1a1423; font: 900 14px 'Arial Black', Arial, sans-serif;
}
.gb-form fieldset { margin: 0; min-width: 0; border: 3px groove #CCCCCC; padding: 6px 14px 14px; }
.gb-form legend { font: bold 14px Verdana, Geneva, sans-serif; padding: 0 6px; }
.gb-field { display: grid; grid-template-columns: 15em minmax(0, 1fr); gap: 4px 10px; align-items: center; margin: 8px 0; }
.gb-field > span { font: bold 13px Verdana, Geneva, sans-serif; text-align: right; }
.gb-form input, .gb-form select, .gb-form textarea {
    width: 100%; max-width: 26em; box-sizing: border-box; padding: 3px 5px;
    font: 14px 'Courier New', Courier, monospace; color: #1a1423;
    background: #fff; border: 2px inset #c5ccd8; border-radius: 0; resize: none;
}
.gb-form :is(input, select, textarea, button):disabled { background: #e9eef5; color: #545b6e; cursor: not-allowed; }
.gb-buttons { display: flex; gap: 8px; margin: 12px 0 0 calc(15em + 10px); }
.gb-form button {
    font: bold 13px Verdana, Geneva, sans-serif; color: #545b6e;
    background: #e9eef5; border: 2px outset #c5ccd8; border-radius: 4px; padding: 6px 16px; min-height: 32px;
}
@media (max-width: 600px) {
    .gb-field { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .gb-field > span { text-align: left; }
    .gb-buttons { margin-left: 0; }
}
.gb-entry { border-top: 3px groove #CCCCCC; padding: 10px 0 2px; }
.gb-entry p { margin: 0 0 8px; }
.gb-entry .gb-meta { font: 12px/1.5 Verdana, Geneva, sans-serif; margin: 0 0 6px; }
.gb-name { font: bold 18px 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif; color: #993300; margin-right: 6px; }
.gb-entry .gb-reply { margin-left: 18px; padding-left: 10px; border-left: 3px solid #FFCC00; font-style: italic; }
.gb-small { font: 12px Verdana, Geneva, sans-serif; border-top: 3px groove #CCCCCC; padding-top: 10px; margin-bottom: 0; }

/* ---------- ENGINE STALLED note ---------- */

.engine-stalled {
    position: fixed; left: 0; right: 0; top: 0; z-index: 200;
    background: #FFCC00; border-bottom: 4px solid #1a1423;
    padding: 10px 14px; text-align: center;
    font: bold 14px Verdana, Geneva, sans-serif; color: #1a1423;
}
.engine-stalled button {
    margin-left: 10px; font: bold 13px Verdana, Geneva, sans-serif;
    padding: 4px 10px; border: 2px outset #e9eef5; background: #e9eef5; border-radius: 4px;
}

/* ---------- reduced motion / Stop animations ---------- */

/* the frozen beacon stays lit */
@media (prefers-reduced-motion: reduce) {
    .sign-anim .shovel, .sign-anim .beacon { animation: none; }
    .sign-anim .beacon { fill: #FF6600; }
    .marquee-track { animation: none; }
}
html.still .sign-anim .shovel, html.still .sign-anim .beacon { animation: none; }
html.still .sign-anim .beacon { fill: #FF6600; }
html.still .marquee-track { animation: none; }
