/* DEADAIR landing. Application UI over the studio: tuner readout (top), program card docked to the player (right on
   desktop, bottom sheet on phones), the docked player (shared/player.js). The gate is a hold control placed on the 3D
   ON AIR button. Static page (no WebGL2 / reduced motion / ?static): stations stacked with a still render each. */

:root { --tuner-h: 58px; --top-h: calc(var(--nav-h) + 5px + var(--tuner-h)); --pc-w: min(430px, 36vw); }
@media (max-width: 760px) { :root { --tuner-h: 74px; } }

/* ── shared bits ───────────────────────────────────────── */
.only-3d { display: none; }
html.has-3d .only-3d { display: revert; }
.dl-main { outline: none; }

/* ═══════════════ 3D mode ═══════════════ */
html.has-3d, html.has-3d body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.has-3d body { padding-bottom: 0; background: #2a1a12; touch-action: pan-x pan-y; }
#studio { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; touch-action: none; }
html.has-3d .dl-foot { display: none; }

/* load veil: the warm paper the post pass fades from */
.dl-veil { position: fixed; inset: 0; z-index: 60; background: #f2e8d5; display: grid; place-items: center; transition: opacity .9s ease .1s, visibility 0s 1s; }
.dl-veil-lamp { width: 64px; height: 22px; border-radius: 4px; background: #5a2a22; box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35); animation: veil 1.4s steps(2) infinite; }
@keyframes veil { 50% { background: #8c2d10; } }
html.ready .dl-veil { opacity: 0; visibility: hidden; }

/* ── tuner readout ─────────────────────────────────────── */
.dl-tuner {
  position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + 5px); z-index: 44; height: var(--tuner-h);
  background: linear-gradient(#2c1d14, #3a281c); color: var(--oat);
  border-bottom: 2px solid #1d130d; box-shadow: 0 8px 24px rgba(30, 18, 10, .28);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s;
}
.dl-tuner-in { height: 100%; display: flex; align-items: center; gap: 14px; max-width: none; padding: 0 var(--gutter); }
.dl-lcd {
  flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px 5px; border-radius: 4px; background: var(--lcd);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 1px #5b3a26;
}
.dl-freq { position: relative; font-size: 25px; line-height: 1; color: var(--mustard); text-shadow: 0 0 10px rgba(232, 176, 74, .5); min-width: 4.4ch; text-align: right; }
.dl-freq::before { content: attr(data-ghost); position: absolute; right: 0; top: 0; color: rgba(232, 176, 74, .08); text-shadow: none; }
.dl-mhz { font: 500 9px/1 var(--f-display); letter-spacing: .12em; color: #b9a582; }
.dl-now { flex: none; display: grid; gap: 3px; min-width: 9.5em; }
.dl-now-show { font: 800 14px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: #fff4e0; }
.dl-now-host { font: 500 10px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #c9b38c; }
.dl-band {
  position: relative; flex: 1; min-width: 0; height: 36px; border-radius: 4px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 50%, #f9dfa6 0%, #e3aa5e 55%, #9a6634 100%);
  box-shadow: inset 0 2px 8px rgba(40, 20, 8, .55), 0 0 0 1px #1d130d, 0 0 0 3px #5b3a26;
}
.dl-band-scale {
  position: absolute; inset: 0;
  background:
    linear-gradient(#3e2a1e, #3e2a1e) 0 62% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(62, 42, 30, .75) 0 1px, transparent 1px calc(100% / 105)) 0 0 / 100% 40% no-repeat,
    repeating-linear-gradient(90deg, rgba(62, 42, 30, .9) 0 2px, transparent 2px calc(100% / 21)) 0 0 / 100% 56% no-repeat;
  opacity: .85;
}
.dl-band-st { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.dl-band-st li { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); }
.dl-band-st button {
  height: 100%; padding: 0 6px; border: 0; background: transparent; display: grid; place-items: end center; padding-bottom: 3px;
  font: 400 10px/1 var(--f-seg); color: rgba(62, 42, 30, .75); cursor: pointer;
}
.dl-band-st button::before { content: ''; position: absolute; left: 50%; top: 52%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; transform: rotate(45deg); background: var(--tomato-ink); opacity: .7; }
.dl-band-st button:hover { color: #2a1a12; }
.dl-band-st button[aria-current="true"] { color: #2a1a12; font-weight: 700; }
.dl-band-st button[aria-current="true"]::before { opacity: 1; box-shadow: 0 0 0 2px rgba(255, 244, 224, .7); }
.dl-band-st button:focus-visible { outline-offset: -3px; }
.dl-needle { position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--onair); box-shadow: 0 0 8px rgba(213, 40, 27, .9), 0 0 2px #fff inset; pointer-events: none; will-change: transform; }
.dl-step { flex: none; display: flex; gap: 6px; }
.dl-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid #1d130d; display: grid; place-items: center; color: var(--oat);
  background: radial-gradient(circle at 35% 30%, #6b5444, #2f2118 72%); box-shadow: 0 2px 0 #140c08, inset 0 1px 0 rgba(255, 255, 255, .15);
}
.dl-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #140c08; }
.dl-btn[disabled] { opacity: .35; cursor: default; }
.dl-sound .spk { fill: currentColor; stroke: none; }
.dl-sound .w1, .dl-sound .w2 { display: none; }
.dl-sound[aria-pressed="true"] .w1, .dl-sound[aria-pressed="true"] .w2 { display: inline; }
.dl-sound[aria-pressed="true"] .x { display: none; }
.dl-sound[aria-pressed="true"] { color: var(--mustard); }

/* ── program card (docked to the player) ───────────────── */
.pc {
  position: fixed; z-index: 43; right: 22px; bottom: var(--player-h); width: var(--pc-w);
  max-height: calc(100dvh - var(--top-h) - var(--player-h) - 22px);
  display: flex; flex-direction: column; background: var(--paper); color: var(--walnut);
  border: 3px solid var(--wood-2); border-bottom: 0; border-radius: 12px 12px 0 0;
  box-shadow: 0 -18px 50px rgba(40, 22, 10, .35), inset 0 1px 0 #fff;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1) .15s, opacity .5s .15s;
}
.pc::after { /* the seam into the player */
  content: ''; position: absolute; left: -3px; right: -3px; bottom: -3px; height: 3px; background: var(--wood-2);
}
.pc-stack { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 9px 9px 0 0; }
.pc-card { min-height: 0; display: flex; flex-direction: column; }
html.has-3d .pc-card { position: absolute; left: 0; right: 0; top: 0; max-height: 100%; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s, visibility 0s .22s; pointer-events: none; }
html.has-3d .pc-card.is-on { position: relative; flex: 1 1 auto; visibility: visible; opacity: 1; transform: none; transition: opacity .38s ease .05s, transform .38s ease .05s, visibility 0s; pointer-events: auto; }
html.has-3d .pc-card.is-tuning { animation: tune .42s steps(1) 1; }
@keyframes tune { 0% { opacity: .2 } 25% { opacity: .75 } 40% { opacity: .35 } 60% { opacity: 1 } }
.pc-h {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px 8px 0 0;
  background: linear-gradient(#4a3324, var(--walnut)); color: var(--oat); border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--tomato) 0 33%, var(--mustard) 33% 66%, var(--olive) 66% 100%) 1;
}
.pc-f { font-size: 18px; color: var(--mustard); text-shadow: 0 0 8px rgba(232, 176, 74, .45); }
.pc-show { font: 800 13px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.pc-host { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #d9c7a5; }
.pc-host[data-host]::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--hc, var(--mustard)); box-shadow: 0 0 0 2px rgba(242, 232, 213, .3); }
.pc-host[data-host="marlowe"] { --hc: #e2562c; } .pc-host[data-host="vex"] { --hc: #9fb35e; } .pc-host[data-host="june"] { --hc: #e8b04a; } .pc-host[data-host="baro"] { --hc: #c99a6a; }
.pc-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 20px; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; touch-action: pan-y; }
.pc-b h2 { font-size: clamp(19px, 1.65vw, 25px); margin-bottom: .45em; text-wrap: balance; }
.pc-b > p { font-size: 16px; line-height: 1.5; color: #4a3326; }
.pc-b p:last-child { margin-bottom: 0; }
.pc-more { display: inline-flex; gap: 6px; margin-top: 12px; font: 500 12px/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.pc-more:hover { text-decoration: underline; }
.pc-loading { color: var(--walnut-2); font-style: italic; }
.pc-hint { margin-top: 14px; font-size: 14px; color: var(--walnut-2); }
.pc-hint-k { display: inline-block; padding: 1px 7px; border-radius: 3px; border: 1px solid var(--rule-2); font: 500 10px/1.6 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--walnut); }

/* sign-on: runway LCD */
.pc-power { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 2px; }
.pc-lcd { padding: 12px 16px; }
.pc-lcd .seg { font-size: clamp(34px, 3.4vw, 46px); line-height: 1; }
.pc-lcd .unit { line-height: 1.25; }
.pc-power-note { flex: 1 1 140px; margin: 0; font-size: 14px; color: var(--walnut-2); }

/* latest segment block */
.pc-seg { margin-top: 6px; padding: 12px 14px; border-radius: 6px; background: #f4ead6; border: 1px solid var(--rule); box-shadow: inset 3px 0 0 var(--mustard); }
.pc-seg:empty { display: none; }
.pc-seg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font: 500 10px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--walnut-2); }
.pc-seg-top b { color: var(--walnut); font-weight: 500; }
.pc-seg-top .da-tag.sample, .pc-tag { color: var(--mustard-ink); border-color: var(--mustard-ink); }
.pc-seg-t { margin: 0 0 4px; font: 600 15px/1.3 var(--f-body); }
.pc-seg-x { margin: 0; font-size: 15px; line-height: 1.45; color: #3e2a1e; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pc-seg-q { margin: 0 0 6px; font-size: 15px; font-style: italic; color: var(--walnut-2); }
.pc-seg-q b { font-style: normal; color: var(--walnut); font-weight: 600; }
.pc-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0; list-style: none; }
.pc-src a { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule-2); text-decoration: none; color: var(--walnut); background: var(--paper); }
.pc-src a:hover { border-color: var(--tomato-ink); color: var(--tomato-ink); }
.pc-meta { margin-top: 8px; font-size: 13px; color: var(--walnut-2); }

/* call-in */
.pc-callin { margin: 4px 0 12px; }
.pc-callin:empty { display: none; }

/* forecast */
.pc-fc-call { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 12px 14px; border-radius: 6px; background: #f4ead6; border: 1px solid var(--rule); }
.pc-fc-dir { grid-row: span 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--lcd); color: var(--mustard); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), 0 0 0 2px var(--wood-2); }
.pc-fc-dir svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pc-fc-dir.down svg { transform: rotate(180deg); }
.pc-fc-m { font: 500 10px/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--walnut-2); }
.pc-fc-v { font: 600 16px/1.3 var(--f-body); }
.pc-fc-v .seg { font-size: 15px; }
.pc-fc-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.pc-fc-rec { display: inline-flex; align-items: baseline; gap: 8px; }
.pc-fc-rec .lcd { padding: 8px 12px; }
.pc-fc-rec .seg { font-size: 24px; }
.pc-fc-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.pc-fc-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--static); opacity: .5; }
.pc-fc-dots i.hit { background: var(--olive); opacity: 1; }
.pc-fc-dots i.half { background: var(--mustard); opacity: 1; }
.pc-fc-dots i.miss { background: transparent; border: 2px solid var(--tomato-ink); opacity: .8; }
.pc-fc-note { margin-top: 10px; font-size: 13px; color: var(--walnut-2); }

/* power flow */
.pc-flow { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 0; counter-reset: f; }
.pc-flow li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0 7px 30px; border-left: 0; }
.pc-flow li::before { counter-increment: f; content: ''; position: absolute; left: 6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 3px #f4ead6, 0 0 0 4px var(--wood); }
.pc-flow li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 24px; bottom: -6px; width: 2px; background: repeating-linear-gradient(var(--wood) 0 4px, transparent 4px 7px); }
.pc-flow li:first-child::before { background: var(--tomato); }
.pc-flow li:last-child::before { background: var(--onair); box-shadow: 0 0 0 3px #f4ead6, 0 0 0 4px var(--wood), 0 0 10px rgba(213, 40, 27, .7); }
.pc-flow b { font: 500 13px/1.2 var(--f-display); letter-spacing: .02em; }
.pc-flow span { font-size: 14px; color: var(--walnut-2); }
.pc-flow b.crew { margin-left: 8px; color: var(--walnut-2); }
.pc-flow li.pc-flow-hand::before { background: #f4ead6; box-shadow: 0 0 0 2px var(--tomato-ink), 0 0 0 3px #f4ead6, 0 0 0 4px var(--wood); }
.pc-flow li.pc-flow-hand b::after { content: 'manual'; margin-left: 7px; padding: 1px 5px; border-radius: 3px; background: var(--tomato-ink); color: #fff; font: 800 9px/1.5 var(--f-display); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.pc-trust { margin: -6px 0 12px; font-size: 14px !important; line-height: 1.45; color: var(--walnut-2) !important; }
.pc-trust a { color: var(--tomato-ink); }
.pc-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.pc-nums div { padding: 8px 8px 7px; border-radius: 5px; background: var(--lcd); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
.pc-nums dt { font: 500 9px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: #c9b38c; }
.pc-nums dd { margin: 4px 0 0; font: 400 16px/1 var(--f-seg); color: var(--mustard); text-shadow: 0 0 6px rgba(232, 176, 74, .35); white-space: nowrap; }
.pc-nums dd.na { font: 500 12px/1.2 var(--f-body); color: #a8977c; text-shadow: none; }
.pc-warn { display: flex; gap: 10px; align-items: flex-start; font-size: 14px !important; color: var(--walnut-2) !important; }
.pc-warn .lamp { flex: none; min-width: 0; padding: 4px 7px; font-size: 9px; animation: none; }

/* sign-off */
.pc-ca { display: block; padding: 10px 12px; border-radius: 6px; background: #f4ead6; border: 1px solid var(--rule); margin: 4px 0 10px; }
.pc-cd { display: grid; gap: 4px; margin: 0 0 14px; }
.pc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-links .btn { min-height: 42px; }
.pc-ico span { display: none; }
.pc-ico { width: 42px; padding: 0; }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.pc-stats dt { font: 500 9px/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--walnut-2); }
.pc-stats dd { margin: 3px 0 0; font: 400 16px/1 var(--f-seg); }
.pc-stats .cap { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--walnut-2); }
.pc-foot { margin-top: 14px !important; font-size: 13px !important; color: var(--walnut-2) !important; }

/* card footer: prev / next station */
.pc-nav { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--rule); background: #f4ead6; }
.pc-go { flex: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; font: 500 10px/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--walnut); text-align: left; }
.pc-go[data-step="1"] { justify-content: flex-end; text-align: right; }
.pc-go:hover { background: var(--shade); }
.pc-go[disabled] { visibility: hidden; }
.pc-go svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pc-go .seg { font-size: 12px; color: var(--tomato-ink); letter-spacing: 0; }
.pc-count { font: 400 11px/1 var(--f-seg); color: var(--walnut-2); }

/* ── gate ──────────────────────────────────────────────── */
.dl-gate { position: fixed; inset: 0; z-index: 46; pointer-events: none; display: none; }
html.has-3d.in-gate .dl-gate { display: block; }
.dl-gate-card {
  position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(620px, calc(100vw - 32px)); padding: 20px 24px 18px; border-radius: 12px; pointer-events: auto;
  background: rgba(251, 246, 236, .94); border: 3px solid var(--wood-2); box-shadow: 0 20px 60px rgba(40, 22, 10, .4);
  backdrop-filter: blur(8px); text-align: center;
}
.dl-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 500 11px/1 var(--f-display); letter-spacing: .14em; color: var(--walnut-2); }
.dl-dot { width: 9px; height: 9px; border-radius: 50%; background: #7a3a2c; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .4); }
html.holding .dl-dot { background: var(--onair); box-shadow: 0 0 10px var(--onair); }
.dl-gate-card h1 { font-size: clamp(21px, 2.6vw, 31px); margin: 0 0 .35em; text-wrap: balance; }
.dl-gate-sub { margin: 0 0 12px; font-size: 17px; color: #4a3326; }
.dl-gate-row { display: flex; justify-content: center; align-items: center; gap: 16px; }
.dl-keys { font-size: 14px; color: var(--walnut-2); }
kbd { display: inline-block; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--rule-2); border-bottom-width: 3px; background: var(--paper); font: 500 11px/1.4 var(--f-display); letter-spacing: .06em; color: var(--walnut); }
.dl-skip { border: 0; background: none; padding: 6px 4px; font: 500 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--tomato-ink); text-decoration: underline; text-underline-offset: 3px; }
.dl-hold {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; pointer-events: auto;
  transform: translate(var(--bx, 50vw), var(--by, 40vh)); border: 0; background: transparent; touch-action: none; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.dl-hold:focus-visible { outline: none; }
.dl-hold:focus-visible .dl-hold-ring circle { stroke: var(--tomato); stroke-width: 3; stroke-dasharray: 4 3; }
.dl-hold-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dl-hold-ring circle { fill: none; stroke: rgba(255, 238, 205, .8); stroke-width: 2; stroke-dasharray: 2 4; transform-origin: 50% 50%; animation: ring 2.2s ease-in-out infinite; }
html.holding .dl-hold-ring circle { animation: none; opacity: 0; }
@keyframes ring { 0%, 100% { transform: scale(.9); opacity: .9 } 50% { transform: scale(1.08); opacity: .35 } }
.dl-hold-tag {
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: var(--walnut); color: var(--oat); font: 500 11px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(30, 16, 8, .4);
}
.dl-hold-tag b { color: var(--mustard); font-weight: 800; }
.dl-hold-tag::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--walnut); }
html.holding .dl-hold-tag { background: var(--onair); }
html.holding .dl-hold-tag::after { border-top-color: var(--onair); }

/* gate → on air: chrome slides in */
html.has-3d.in-gate .dl-tuner { transform: translateY(-110%); opacity: 0; }
html.has-3d.in-gate .pc { transform: translateY(40px); opacity: 0; pointer-events: none; }
html.has-3d.in-gate .da-player.is-dock { transform: translateY(100%); }
html.has-3d .da-player.is-dock { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
html.has-3d.in-gate .da-nav.is-overlay { background: rgba(62, 42, 30, .55); }

/* ── phones ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .dl-tuner-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 40px 22px; gap: 4px 10px; padding-top: 5px; padding-bottom: 5px; }
  .dl-tuner-in { gap: 4px 8px; }
  .dl-lcd { padding: 5px 7px 4px; gap: 4px; }
  .dl-freq { font-size: 19px; }
  .dl-mhz { font-size: 8px; }
  .dl-now-show { font-size: 12px; letter-spacing: .03em; }
  .dl-now { min-width: 0; }
  .dl-now-show { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dl-now-host { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dl-band { grid-column: 1 / -1; grid-row: 2; height: 20px; }
  .dl-band-st button { font-size: 0; padding: 0 9px; }
  .dl-band-st button::before { width: 6px; height: 6px; margin: -3px 0 0 -3px; top: 50%; }
  .dl-btn { width: 32px; height: 32px; }
  .dl-btn svg { width: 15px; height: 15px; }
  .dl-step { gap: 4px; }
  .pc { left: 0; right: 0; width: auto; max-height: min(42dvh, calc(100dvh - var(--top-h) - var(--player-h) - 170px)); border-radius: 14px 14px 0 0; border-left-width: 0; border-right-width: 0; }
  .pc-h { padding: 9px 16px; border-radius: 11px 11px 0 0; }
  .pc-b { padding: 14px 16px 16px; }
  .pc-b h2 { font-size: 19px; }
  .pc-b > p { font-size: 15px; }
  .pc-nav { display: none !important; }
  .pc-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-gate-card { padding: 16px 16px 14px; }
  .dl-gate-sub { font-size: 15px; }
  .pc::before { content: ''; position: absolute; left: 50%; top: -11px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(251, 246, 236, .7); }
}

/* ═══════════════ static page ═══════════════ */
html.no-3d body { padding-bottom: calc(var(--player-h) + 0px); }
html.no-3d .dl-tuner { position: sticky; top: calc(var(--nav-h) + 5px); }
html.no-3d .dl-needle { transition: transform .4s ease; }
html.no-3d .pc { position: static; width: auto; max-height: none; border: 0; box-shadow: none; background: transparent; border-radius: 0; }
html.no-3d .pc::after { display: none; }
html.no-3d .pc-stack { display: block; }
html.no-3d .pc-card { display: block; }
html.no-3d .st { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter); scroll-margin-top: calc(var(--nav-h) + 5px + var(--tuner-h) + 8px); }
html.no-3d .st + .st { border-top: 1px solid var(--rule); }
html.no-3d .st-fig { margin: 0; border-radius: 10px; overflow: hidden; border: 3px solid var(--wood-2); background: #3a281c; aspect-ratio: 16 / 10; box-shadow: 0 16px 40px rgba(40, 22, 10, .25); }
html.no-3d .st-fig img { width: 100%; height: 100%; object-fit: cover; }
html.no-3d .st .pc-card { border: 3px solid var(--wood-2); border-radius: 12px; background: var(--paper); overflow: hidden; box-shadow: 0 16px 40px rgba(40, 22, 10, .15); }
html.no-3d .pc-b { overflow: visible; }
html.no-3d .static-h1 { position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }
html.no-3d .dl-intro { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 6px; }
html.no-3d .dl-intro .dl-kick { margin-bottom: 10px; }
html.no-3d .dl-intro h1 { max-width: 22ch; }
@media (max-width: 860px) {
  html.no-3d .st { grid-template-columns: 1fr; gap: 16px; padding: 28px var(--gutter); }
}

/* dead air: the words over the static */
.dl-dead { display: none !important; }
html.has-3d.is-dead.entered .dl-dead {
  display: grid !important; position: fixed; z-index: 30; left: 0; right: calc(var(--pc-w) + 30px); top: var(--top-h); bottom: var(--player-h);
  place-content: center; justify-items: center; gap: 10px; text-align: center; pointer-events: none; padding: 0 var(--gutter);
}
.dl-dead-w { font: 800 clamp(44px, 8vw, 112px)/.9 var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: #fff4e4; text-shadow: 0 0 2px #000, 0 4px 30px rgba(0, 0, 0, .6); animation: lamp-flicker 3.6s steps(1) infinite; }
.dl-dead-s { max-width: 34ch; font-size: 16px; color: #fff4e4; text-shadow: 0 1px 3px #000; pointer-events: auto; }
.dl-dead-s a { color: var(--mustard); }
@media (max-width: 760px) { html.has-3d.is-dead.entered .dl-dead { right: 0; bottom: calc(var(--player-h) + 42dvh); } .dl-dead-s { font-size: 14px; } }
/* still renders for the static page (?still&shot&p=N) */
html.still .dl-tuner, html.still .pc, html.still #player, html.still #nav, html.still .dl-gate, html.still .da-drawer, html.still .da-skiplink { display: none !important; }
