/* Lights on 109: a radio station for a light show, read on phones at the curb at night.
   One dark look by choice (the use scene is outdoors after dark), recoloured per season via
   data-season on <html>. The page order follows the show's state via data-show on <body>. */
:root {
  color-scheme: dark;
  --bg: #0b0a0e;
  --bg-2: #141219;
  --panel: #1a1720;
  --line: #2c2833;
  --line-strong: #6d6577;   /* input and chip borders, 3:1 on --bg */
  --ink: #f4eee6;
  --muted: #aaa1b4;
  --accent: #ff7a1a;        /* pumpkin: buttons, needle */
  --accent-ink: #ff8a33;    /* accent used as text on dark */
  --on-accent: #1d0f03;
  --led: #ffb347;           /* the LCD and small labels */
  --live: #ff4b3a;
  --select: rgb(255 122 26 / .35);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lcd: "VT323", ui-monospace, Menlo, monospace;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-season="christmas"] {
  --bg: #07110e;
  --bg-2: #0c1914;
  --panel: #11211b;
  --line: #213a30;
  --line-strong: #5a7f6f;
  --ink: #f3f0e7;
  --muted: #a3b6ab;
  --accent: #c8262c;        /* ribbon red, white text 5.6:1 */
  --accent-ink: #ff6b62;
  --on-accent: #fffaf5;
  --led: #fff0cc;           /* warm white bulbs */
  --live: #ff5a4e;
  --select: rgb(200 38 44 / .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line-strong) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; caret-color: var(--accent); }
::selection { background: var(--select); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; border-radius: 8px; }
input { accent-color: var(--accent); }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; z-index: 40; font-weight: 700; }
.skip:focus { left: var(--gutter-l); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-mark { font: 400 22px/1 var(--lcd); color: var(--on-accent); background: var(--accent); padding: 3px 7px 1px; border-radius: 6px; }
.brand-name { font: 800 19px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.onair { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.lamp { width: 9px; height: 9px; border-radius: 50%; background: #3c3642; transition: background .3s; }
.onair[data-state="on"] { color: var(--ink); border-color: color-mix(in srgb, var(--live) 55%, var(--line)); }
/* a lit bulb, not decoration: the glow is the lamp */
.onair[data-state="on"] .lamp { background: var(--live); box-shadow: 0 0 10px 1px var(--live); animation: lamp 2.4s ease-in-out infinite; }
.onair[data-state="soon"] .lamp { background: var(--led); }
@keyframes lamp { 50% { opacity: .6; } }

.demo-banner { background: var(--led); color: #1b1408; text-align: center; font-weight: 700; font-size: 14px; padding: 7px 16px; }

/* ---------- hero: the radio ---------- */
.station { padding-block: 28px 30px; display: grid; gap: 18px; }
/* seasonal artwork of the house; fades into the page at the bottom so the title can sit right under it */
.hero-art { position: relative; margin: -28px calc(-1 * var(--gutter-r)) -34px calc(-1 * var(--gutter-l)); aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.hero-art + h1 { position: relative; }
@media (min-width: 760px) {
  .hero-art { margin: -10px 0 -30px; aspect-ratio: 1376 / 768; border-radius: 20px; }
  .hero-art::after { height: 24%; }
}
.station h1 { font-size: clamp(44px, 12vw, 76px); text-transform: uppercase; letter-spacing: .005em; }
.station h1 .hl { color: var(--accent-ink); }

.radio { border-radius: 18px; padding: 14px; display: grid; gap: 12px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .04); }
.radio-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.freq-block { display: flex; align-items: baseline; gap: 6px; }
/* the readout is lit LCD text */
.freq { font: 400 64px/.8 var(--lcd); color: var(--led); text-shadow: 0 0 14px color-mix(in srgb, var(--led) 45%, transparent); }
.band { font: 700 13px/1 var(--body); letter-spacing: .3em; color: var(--muted); }
.radio-tag { font-size: 14px; color: var(--muted); text-align: right; }

.dial { position: relative; height: 70px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 100% at 50% 110%, color-mix(in srgb, var(--led) 16%, var(--bg)) 0%, var(--bg) 72%); }
.scale { position: absolute; inset: 9px 16px auto 16px; height: 18px; }
.scale span { position: absolute; left: calc(var(--p) * 100%); transform: translateX(-50%); font: 400 18px/1 var(--lcd); color: var(--muted); }
.ticks { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 24px;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 55%, transparent) 0 2px, transparent 2px calc(100% / 20)),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 22%, transparent) 0 1px, transparent 1px calc(100% / 100));
  background-size: 100% 100%, 100% 50%; background-repeat: no-repeat; background-position: bottom, bottom; }
/* Christmas: the scale becomes a string of bulbs */
:root[data-season="christmas"] .ticks { height: 12px; bottom: 14px;
  background:
    radial-gradient(circle, #ff5a4e 0 3px, transparent 3.5px) 0 50% / calc(100% / 10) 12px repeat-x,
    radial-gradient(circle, #7fd6a2 0 3px, transparent 3.5px) calc(100% / 30) 50% / calc(100% / 10) 12px repeat-x,
    radial-gradient(circle, #fff0cc 0 3px, transparent 3.5px) calc(100% / 15) 50% / calc(100% / 10) 12px repeat-x,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% 1px no-repeat; }
/* 91.1 on an 88 to 108 dial is 15.5% across */
.needle { position: absolute; top: 30px; bottom: 6px; left: calc(16px + (100% - 32px) * .155); width: 3px; margin-left: -1.5px;
  background: var(--accent); border-radius: 2px; box-shadow: 0 0 8px var(--accent); }
.radio.tune .needle { animation: tune 1.6s var(--ease-out) both; }
@keyframes tune { from { left: calc(16px + (100% - 32px) * .62); } }

.rds { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 3px),
    color-mix(in srgb, var(--led) 6%, #050406);
  border: 1px solid var(--line); }
.rds-label { font: 700 11px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); max-width: 7.5em; }
.rds-window { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rds-text { display: inline-block; font: 400 34px/1 var(--lcd); color: var(--led); text-shadow: 0 0 10px color-mix(in srgb, var(--led) 40%, transparent); padding-inline: 4px; }
.rds-text { white-space: pre; }
.rds-text.scroll { animation: rds var(--rds-dur, 14s) linear 1.2s infinite; }
@keyframes rds { to { transform: translateX(-50%); } }

.status { display: grid; gap: 4px; }
.status-main { font: 800 clamp(26px, 7vw, 36px)/1.05 var(--display); letter-spacing: .01em; }
.status-sub { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .1s; }
.btn:hover { border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); border-color: transparent; }
.btn-ghost { border-color: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.neighbor { font-size: 14px; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 12px; }

/* the radio's own play control and the embedded PulseMesh player */
.radio-play { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; width: 100%;
  border-radius: 12px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--ink); font: 700 16px/1 var(--body); cursor: pointer; transition: background-color .2s var(--ease-out); }
.radio-play:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.radio-play svg { width: 22px; height: 22px; color: var(--accent-ink); }
.radio-play.is-on { border-color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent); }
.radio-play.is-on svg { color: var(--live); }
.player-frame { position: relative; border-radius: 12px; background: var(--bg); }
/* shown until the player paints over it (its own code takes a few seconds to load) */
.player-frame::before { content: "Connecting to the show\2026"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 26px/1 var(--lcd); color: var(--led); animation: lamp 1.6s ease-in-out infinite; }
.player-frame iframe { position: relative; display: block; width: 100%; height: min(520px, 64vh); border: 0; border-radius: 12px; background: transparent; }

/* ---------- now listening: a full-screen player sheet ---------- */
/* At rest the open sheet has NO transform: iOS Safari mis-targets taps inside an iframe that sits in a transformed
   (or nested-scrolling) box, which made PulseMesh's "Get ready" button untappable. The slide is a one-off animation. */
.sheet { position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.sheet[aria-hidden="false"] { animation: sheet-in .45s var(--ease-out); }
.sheet[aria-hidden="true"] { visibility: hidden; transform: translateY(102%); pointer-events: none; }
@keyframes sheet-in { from { transform: translateY(102%); } to { transform: none; } }
/* the art, blown up and blurred, washes the top of the screen like stage light */
.ls-backdrop { position: absolute; inset: 0 0 auto 0; height: 78vh; overflow: hidden; pointer-events: none; z-index: 0; }
.ls-backdrop i { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(42px) saturate(1.4); opacity: .6; }
.ls-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, var(--bg) 100%); }
.ls-in { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; min-height: 100%; display: grid; gap: 18px; align-content: start;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.ls-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.ls-close { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgb(255 255 255 / .14); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ls-close svg { width: 20px; height: 20px; }
.ls-station { justify-self: center; display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ls-station .lamp { background: var(--live); box-shadow: 0 0 10px 1px var(--live); animation: lamp 2.4s ease-in-out infinite; }
.ls-art { width: min(100%, 320px); justify-self: center; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 24px 50px -18px rgb(0 0 0 / .85); margin-top: 6px; }
.ls-art img { width: 100%; height: 100%; object-fit: cover; }
.ls-art .glyph svg { width: 40%; height: 40%; }
.ls-meta { text-align: center; display: grid; gap: 6px; }
.ls-meta h2 { font-size: clamp(32px, 9vw, 42px); text-transform: none; letter-spacing: .005em; line-height: 1.02; }
.ls-artist { color: var(--muted); font-size: 18px; }
.ls-progress { display: grid; gap: 8px; }
.ls-bar { height: 5px; border-radius: 5px; background: rgb(255 255 255 / .18); overflow: hidden; }
.ls-bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s linear; }
.ls-times { display: flex; justify-content: space-between; font: 400 19px/1 var(--lcd); color: var(--muted); font-variant-numeric: tabular-nums; }
.ls-live { color: var(--live); }
.ls-cta { justify-self: center; width: min(100%, 300px); min-height: 54px; font-size: 17px; }
/* row that shows (and opens) the phone-audio connection */
.ls-audio-status { display: grid; grid-template-columns: 14px minmax(0, 1fr) 20px; gap: 12px; align-items: center; width: 100%; padding: 14px 0;
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.ls-audio-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.ls-audio-status.is-on .ls-audio-dot { background: var(--live); box-shadow: 0 0 10px 1px var(--live); }
.ls-audio-text { display: grid; min-width: 0; }
.ls-audio-main { font-weight: 700; }
.ls-audio-sub { font-size: 14px; color: var(--muted); }

/* Listen: the PulseMesh player fills the screen under a short header */
.connect { background: var(--bg); }
.cn-in { max-width: 520px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.cn-top { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.cn-head h2 { font-size: 26px; text-transform: uppercase; }
.cn-hint { font-size: 14px; color: var(--muted); }
.cn-hint strong { color: var(--ink); }
.connect .player-frame { flex: 1; min-height: 360px; }
.connect .player-frame iframe { height: 100%; }
.cn-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cn-foot a { font-size: 14px; }
.np[role="button"] { cursor: pointer; transition: border-color .2s var(--ease-out); }
.np[role="button"]:hover { border-color: var(--line-strong); }
.ls-next { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 12px 0 4px;
  border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ls-next-art { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.ls-next-art img { width: 100%; height: 100%; object-fit: cover; }
.ls-next-art .glyph svg { width: 50%; height: 50%; }
.ls-next-text { display: grid; min-width: 0; }
.ls-next-label { font: 700 11px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ls-next-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-chev { width: 20px; height: 20px; color: var(--muted); }
body.sheet-open { overflow: hidden; }

/* ---------- sections and state-driven order ---------- */
main { display: flex; flex-direction: column; }
.station { order: 0; }
.now { order: 1; }
.requests { order: 2; }
.signbox { order: 3; }
.visit { order: 4; }
body[data-show="off"] .visit { order: 1; }       /* not live: how to visit comes before the lineup */
.now, .requests, .signbox, .visit { border-top: 1px solid var(--line); padding-block: 30px; display: grid; gap: 18px; }
section[id] { scroll-margin-top: 72px; }
section h2 { font-size: 36px; text-transform: uppercase; }
h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }

/* ---------- on the air ---------- */
.np { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.np-art, .row-art, .dock-art { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.np-art img, .row-art img, .dock-art img { width: 100%; height: 100%; object-fit: cover; }
.np-body { min-width: 0; display: grid; gap: 4px; }
.np-title { font: 800 28px/1.02 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.np-artist { color: var(--muted); }
.np-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 8px; }
.np-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s linear; }
.np-left { font: 400 19px/1 var(--lcd); color: var(--muted); font-variant-numeric: tabular-nums; }

.glyph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--led); background: var(--bg-2); }
.glyph svg { width: 46%; height: 46%; }

.queue h3 { color: var(--muted); margin-bottom: 6px; }
.queue-list { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.queue-list li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.queue-list li::before { counter-increment: q; content: counter(q); font: 400 22px/1 var(--lcd); color: var(--led); min-width: 1.2em; }
.queue-list li.empty { color: var(--muted); }
.queue-list li.empty::before { content: none; }
.q-text { display: grid; min-width: 0; flex: 1; }
.q-title { font-weight: 700; }
.q-artist { color: var(--muted); font-size: 14px; }
.queue-list .who { color: var(--muted); font-size: 14px; white-space: nowrap; }
.queue-list li.is-mine .who { color: var(--led); }

/* ---------- request line / lineup ---------- */
.req-state { color: var(--muted); }
.req-state[data-open="true"] { color: var(--ink); }
.req-state strong { color: var(--led); font-weight: 700; }
.mine { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--led) 45%, var(--line)); }
.mine-label { font: 700 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--led); }
.mine-title { font: 800 24px/1.05 var(--display); text-transform: uppercase; }
.mine-meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.req-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.field input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2);
  color: var(--ink); font: 400 16px var(--body); padding: 0 14px; transition: border-color .2s var(--ease-out); }
.field input:focus { border-color: var(--led); outline: none; }
.field input:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; }
.field input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }

.crate { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  min-height: 68px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.row.is-playing .row-title { color: var(--accent-ink); }
.row-text { min-width: 0; }
.row-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-artist { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px;
  border: 1px solid currentColor; white-space: nowrap; }
.badge-air { color: var(--live); }
.badge-line { color: var(--led); }
.req-btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.req-btn[aria-disabled="true"] { opacity: .45; }
.req-btn.confirm { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.crate-empty { color: var(--muted); }
body:not([data-requests="open"]) .req-btn { display: none; }

/* ---------- on the sign: visitor messages for the LED matrix ---------- */
.sign-intro { color: var(--muted); max-width: 52ch; }
/* a strip of the matrix: amber dots on black, the message scrolling through */
.marquee { position: relative; overflow: hidden; height: 74px; border-radius: 12px; border: 1px solid var(--line);
  background:
    radial-gradient(circle, rgb(255 255 255 / .05) 0 1.2px, transparent 1.6px) 0 0 / 7px 7px,
    #050406; display: flex; align-items: center; }
.marquee-text { white-space: pre; padding-left: 12px; font: 400 46px/1 var(--lcd); letter-spacing: .06em; color: var(--led);
  text-shadow: 0 0 10px color-mix(in srgb, var(--led) 55%, transparent); animation: marquee var(--mq-dur, 9s) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sign-form { display: grid; gap: 10px; }
.sign-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.sign-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sign-count.over { color: var(--live); }
.sign-error { color: var(--live); font-size: 14px; min-height: 0; }
.sign-error:empty { display: none; }
.turnstile:empty { display: none; }
.sign-send { justify-self: start; }
.sign-closed { color: var(--muted); }
body[data-show="live"] .sign-closed.when-off { display: none; }

/* ---------- visit ---------- */
.when { display: grid; gap: 4px; }
.when-season { font: 800 26px/1.1 var(--display); color: var(--accent-ink); }
.when-hours { color: var(--ink); }
.when-hours span { color: var(--muted); }
.where { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.addr { font: 800 30px/1.08 var(--display); letter-spacing: .01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font: 700 14px/1 var(--body); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent-ink); }
.manners { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.tips { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 62ch; }
.tips li::marker { color: var(--led); }
.faq { display: grid; gap: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.faq h3 { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 52px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { color: var(--muted); padding-bottom: 14px; max-width: 62ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
body[data-show="live"] .footer { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
.footer-in { display: grid; gap: 6px; }
.signoff { font: 800 24px/1.1 var(--display); text-transform: uppercase; color: var(--ink); }

/* ---------- docked on-air bar (live, once the radio scrolls away) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  pointer-events: none; }
.dock-in { pointer-events: auto; max-width: 688px; margin: 0 auto; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 8px 8px 10px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .8); transform: translateY(0); opacity: 1;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out); }
.dock.away .dock-in { transform: translateY(120%); opacity: 0; }
.dock-text { min-width: 0; display: grid; text-align: left; border: 0; background: none; color: var(--ink); font: inherit; padding: 0; cursor: pointer; }
.dock-label { display: block; font: 700 11px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--live); }
.dock-title { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-dock { min-height: 44px; padding: 0 18px; }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30;
  width: min(92vw, 440px); background: var(--ink); color: var(--bg); padding: 13px 16px; border-radius: 12px; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / .7); }


@media (max-width: 460px) {
  .np { grid-template-columns: 84px minmax(0, 1fr); }
  .np-title { font-size: 24px; }
  .freq { font-size: 56px; }
  .rds-text { font-size: 30px; }
  .actions .btn { flex: 1 1 100%; }
  .radio-tag { max-width: 9em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .onair[data-state="on"] .lamp, .radio.tune .needle { animation: none; }
  .rds-text.scroll { animation: none; }
  .marquee-text { animation: none; padding-left: 12px; }
  .rds-window { mask-image: none; text-overflow: ellipsis; }
  .dock-in, .btn, .faq summary::after, .sheet[aria-hidden="false"] { animation: none; }
  .ls-station .lamp, .player-frame::before { animation: none; }
}
