@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { --ink: #13222c; --paper: #e9e4d8; --case: #1b3b4b; --red: #f2463c; --amber: #f9bc32; --green: #58d168; --muted: #60727b; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 25% 10%, #fffdf7 0 13%, transparent 37%), var(--paper); font-family: "Space Grotesk", sans-serif; }
.board { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 36px; }
header { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: end; border-bottom: 3px solid var(--ink); padding-bottom: 22px; }
.kicker, .caption, .tape p, .method-note { font-family: "DM Mono", monospace; font-size: .75rem; letter-spacing: .02em; }
.kicker { margin: 0 0 7px; color: var(--muted); grid-column: 1 / -1; }
h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: .82; letter-spacing: -.07em; }
.status-copy { max-width: 240px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.signal-zone { display: flex; align-items: center; gap: clamp(26px, 8vw, 84px); padding: 46px 4vw; }
.beacon { width: min(235px, 42vw); aspect-ratio: .57; padding: 18px; display: grid; gap: 13px; background: var(--case); border: 9px solid #102834; border-radius: 44px; box-shadow: inset 0 0 0 2px #477083, 12px 14px 0 #b6ad9f; flex: none; }
.lamp { border-radius: 50%; background: #284d5b; box-shadow: inset 0 -12px 15px rgba(0,0,0,.26), inset 0 8px 12px rgba(255,255,255,.1); }
.beacon.up .lamp-green { background: var(--green); box-shadow: 0 0 36px 10px color-mix(in srgb, var(--green) 65%, transparent), inset 0 -12px 15px rgba(0,0,0,.2); animation: flash .72s 4; }
.beacon.down .lamp-red { background: var(--red); box-shadow: 0 0 36px 10px color-mix(in srgb, var(--red) 65%, transparent), inset 0 -12px 15px rgba(0,0,0,.2); animation: flash .72s 4; }
.beacon.flat .lamp-amber, .beacon.waiting .lamp-amber { background: var(--amber); animation: breathe 2.2s infinite ease-in-out; }
@keyframes flash { 50% { filter: brightness(.55); transform: scale(.96); } }
@keyframes breathe { 50% { filter: brightness(.68); box-shadow: 0 0 24px rgba(249,188,50,.45); } }
.readout { min-width: 0; }.signal-name { margin: 0; font-size: clamp(2.1rem, 5vw, 4.4rem); letter-spacing: -.06em; font-weight: 700; }.signal-detail { margin: 8px 0 25px; max-width: 330px; line-height: 1.45; }.countdown { font: 500 clamp(2.4rem, 6vw, 5.2rem)/1 "DM Mono", monospace; letter-spacing: -.09em; margin: 0; }.caption { color: var(--muted); margin: 4px 0 0; }
.controls { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 32px; border-top: 3px solid var(--ink); padding-top: 24px; }button { appearance: none; border: 2px solid var(--ink); border-radius: 999px; padding: 11px 16px; background: #fffdf7; color: var(--ink); font: 600 .9rem "Space Grotesk", sans-serif; cursor: pointer; }button:hover { background: var(--amber); }button:focus-visible { outline: 3px solid #3b79a0; outline-offset: 3px; }#error { margin: 0; color: #a31919; font-size: .85rem; }.method-note { color: var(--muted); line-height: 1.5; margin-top: 32px; }
.splash { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(19, 34, 44, 0.94); backdrop-filter: blur(10px); cursor: pointer; transition: opacity 0.28s ease, visibility 0.28s ease; }
.splash.hidden { display: none !important; opacity: 0; visibility: hidden; pointer-events: none; }
.splash-card { width: min(760px, 94vw); padding: clamp(40px, 9vw, 84px) clamp(24px, 6vw, 56px); text-align: center; border-radius: 40px; transform: scale(0.92); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); user-select: none; }
.splash:not(.hidden) .splash-card { transform: scale(1); }
.splash.green .splash-card { background: #15803d; color: #ffffff; border: 5px solid #4ade80; box-shadow: 0 0 90px rgba(74, 222, 128, 0.55), 0 28px 64px rgba(0, 0, 0, 0.5); }
.splash.red .splash-card { background: #b91c1c; color: #ffffff; border: 5px solid #f87171; box-shadow: 0 0 90px rgba(248, 113, 113, 0.55), 0 28px 64px rgba(0, 0, 0, 0.5); }
.splash-title { margin: 0; font-size: clamp(3rem, 11vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.splash-subtitle { margin: 18px 0 0; font-size: clamp(1.8rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; opacity: 0.95; }
@media (max-width: 600px) { .board { padding-top: 30px; } header { display: block; } .status-copy { margin-top: 20px; } .signal-zone { padding: 34px 0; gap: 20px; }.beacon { border-radius: 31px; padding: 12px; gap: 9px; border-width: 6px; }.signal-detail { font-size: .9rem; }.controls { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
