/* Interaction studies adapted to the radio's monochrome visual system.
   Reference: https://kinetics.colorion.co/ */
:root {
  --spring: cubic-bezier(.34,1.56,.64,1);
  /* Lime and olive swatches sampled from the supplied color reference. */
  --accent: #bdea51;
  --accent-rgb: 189 234 81;
  --accent-mid: #90af3a;
  --accent-deep: #465919;
  --accent-pale: #e3f6b4;
  --good: var(--accent);
}
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { position: fixed; z-index: 6; top: 30px; right: var(--edge); display: flex; align-items: center; gap: 14px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 15px; min-height: 38px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 9px; transition: background .35s, border-color .35s, color .35s, transform .35s var(--spring); }
.status-pill:hover { border-color: rgb(var(--accent-rgb) / .55); color: var(--accent-pale); }
.status-pill:active { transform: scale(.95); }
.status-pill.is-connected { color: var(--good); border-color: rgb(var(--accent-rgb) / .3); }
.status-pill[aria-busy=true], .status-pill[data-state=loading] { border-style: dashed; color: var(--fg); }
.check-icon { width: 0; opacity: 0; transition: width .35s, opacity .35s; }
.check-complete .check-icon { width: 18px; opacity: 1; }
.check-icon path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s .15s; }
.check-icon circle { stroke-width: .7; stroke-dasharray: 57; stroke-dashoffset: 57; transition: stroke-dashoffset .5s; }
.check-complete .check-icon circle { stroke-dashoffset: 0; }
.check-complete .check-icon path { stroke-dashoffset: 0; }
.signal-bars { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.signal-bars i { display: block; width: 3px; background: currentColor; opacity: .2; transition: opacity .35s; }
.signal-bars i:nth-child(1) { height: 4px; }
.signal-bars i:nth-child(2) { height: 7px; }
.signal-bars i:nth-child(3) { height: 10px; }
.signal-bars i:nth-child(4) { height: 13px; }
.signal-ready .signal-bars i { opacity: .9; }
.is-buffering .signal-bars i, [aria-busy=true] .signal-bars i { animation: signal-search 2.4s ease-in-out infinite; }
.signal-bars i:nth-child(2) { animation-delay: .18s; }
.signal-bars i:nth-child(3) { animation-delay: .36s; }
.signal-bars i:nth-child(4) { animation-delay: .54s; }
.signal-error #connection-check { color: #d2a697; }
.notification-button { display: grid; place-items: center; width: 38px; height: 38px; position: relative; color: var(--muted); }
.notification-button svg { width: 19px; }
.notification-badge { position: absolute; right: 6px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); color: var(--accent); }
.notification-badge::before, .notification-badge::after, .is-playing .status-dot::before, .is-playing .status-dot::after { content: ''; position: absolute; inset: -1px; border: 1px solid currentColor; border-radius: 50%; animation: badge-ripple 1.8s ease-out infinite; }
.notification-badge::after, .is-playing .status-dot::after { animation-delay: .9s; }
.status-dot { position: relative; flex-shrink: 0; }
#sphere { pointer-events: auto; }
.is-playing .status-dot { animation: none; }
.is-playing .status-dot { background: var(--accent); border-color: var(--accent); color: var(--accent); }
.form-option.selected > .micro, .form-option.selected .form-arrow { color: var(--accent); }
.gallery-form[aria-pressed=true] { border-color: rgb(var(--accent-rgb) / .5); }
.gallery-form[aria-pressed=true] .gallery-caption { color: var(--accent); }
.player-bar { gap: 22px; height: 58px; bottom: 54px; }
.listen-button.status-pill { padding: 0; width: 46px; height: 46px; border-radius: 50%; color: var(--fg); flex-shrink: 0; }
.listen-button[data-state=active] { background: rgb(var(--accent-rgb) / .08); border-color: rgb(var(--accent-rgb) / .5); color: var(--accent); }
.morph-icon { width: 23px; height: 23px; overflow: visible; }
.morph-icon .icon-play { fill: currentColor; stroke: none; }
.morph-icon .icon-pause { stroke-width: 2; }
.morph-icon > * { transform-origin: center; transition: opacity .3s, filter .3s, transform .3s var(--spring); }
.icon-pause, .is-playing .icon-play { opacity: 0; filter: blur(5px); transform: scale(.7) rotate(-20deg); }
.is-playing .icon-pause { opacity: 1; filter: blur(0); transform: scale(1) rotate(0); }
.rotary-control { width: 48px; opacity: .8; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.player-bar:hover .rotary-control, .player-bar:focus-within .rotary-control { opacity: 1; }
.knob-shell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); --knob-angle: 54deg; }
.knob-shell::before { content: ''; position: absolute; inset: -4px; border: 1px dotted #85857c77; border-bottom-color: transparent; border-radius: 50%; }
.knob-face { position: absolute; inset: 3px; background: linear-gradient(130deg,#3c3c38,#20201f); border: 1px solid #ffffff15; border-radius: 50%; transform: rotate(var(--knob-angle)); transition: transform .5s var(--spring); pointer-events: none; box-shadow: 0 2px 8px #0006; }
.knob-face i { position: absolute; top: 4px; left: calc(50% - 1px); width: 2px; height: 7px; background: var(--accent); }
.is-adjusting .knob-face { transition: none; }
.knob-shell input.rotary-input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; z-index: 1; cursor: grab; touch-action: none; }
.knob-shell:focus-within { outline: 1px solid var(--accent); outline-offset: 6px; }
.is-adjusting .rotary-input { cursor: grabbing; }
.control-caption { font-size: 8px; white-space: nowrap; color: var(--muted); }
.control-caption output { color: var(--fg); font-variant-numeric: tabular-nums; }
.speed-control { display: grid; grid-template-columns: auto; position: relative; place-items: center; gap: 3px; width: 68px; padding: 4px; }
.speed-control label { font-size: 8px; color: var(--muted); }
.speed-control output { font-size: 15px; letter-spacing: -.04em; color: var(--fg); transition: transform .4s var(--spring), color .2s; pointer-events: none; font-variant-numeric: tabular-nums; }
.speed-control::after { content: '↔'; color: var(--muted); font-size: 11px; opacity: .5; position: absolute; right: -5px; bottom: 3px; }
.speed-control input.value-scrubber { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: none; z-index: 1; }
.speed-control:focus-within { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.speed-control.is-scrubbing output { transform: scale(1.08); color: var(--good); }
#stations-open { padding: 9px 12px; }
.station-glyph { font-size: 17px; line-height: 1; }
.now-playing { max-width: min(26vw, 340px); }
.orbital-actions { position: fixed; right: var(--edge); bottom: 67px; z-index: 8; }
.orbit-toggle, .orbit-action { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--muted); }
.orbit-toggle { position: relative; z-index: 2; transition: transform .55s var(--spring), color .3s; }
.orbit-toggle[aria-expanded=true] { transform: rotate(90deg); color: var(--accent); border-color: rgb(var(--accent-rgb) / .55); }
.orbit-action { position: absolute; inset: 0; font: 18px Georgia,serif; animation: orbit-escape .55s var(--spring) both; transform: translate(var(--orbit-x),var(--orbit-y)); }
.orbit-action:hover { border-color: var(--accent); color: var(--accent); }
.orbit-action:nth-child(1) { --orbit-x: -65px; --orbit-y: 0px; }
.orbit-action:nth-child(2) { --orbit-x: -48px; --orbit-y: -49px; animation-delay: .035s; }
.orbit-action:nth-child(3) { --orbit-x: 0px; --orbit-y: -68px; animation-delay: .07s; }
.orbit-action svg { width: 18px; height: 18px; }
.start-screen { position: fixed; inset: 0; padding: 0; width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; border: 0; background: #191919bb; backdrop-filter: blur(10px); overflow: hidden; }
.start-screen::backdrop { background: #19191955; backdrop-filter: none; }
.start-screen[open] { display: grid; place-items: center; animation: reveal 1s var(--ease); }
.start-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.start-eyebrow { color: var(--muted); letter-spacing: .24em; font-size: 9px; }
.start-content h2 { font: 400 clamp(54px,8vw,110px)/.95 RadioNarrow,'Arial Narrow',Arial,sans-serif; letter-spacing: -.065em; margin: 34px 0 20px; }
.start-content h2 em { font-family: Georgia,serif; font-weight: 400; letter-spacing: -.07em; }
.start-content p { color: var(--muted); font-size: 8px; letter-spacing: .2em; margin: 18px 0 52px; }
.unlock-track { position: relative; width: 270px; height: 56px; border: 1px solid #77776d77; border-radius: 40px; overflow: hidden; --unlock: 0; }
.unlock-track::before { content: ''; position: absolute; inset: 0; background: rgb(var(--accent-rgb) / .12); transform: scaleX(var(--unlock)); transform-origin: left; }
.unlock-copy { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 28px; font-size: 9px; letter-spacing: .1em; opacity: calc(1 - var(--unlock)); color: var(--muted); }
.unlock-track input { appearance: none; position: absolute; inset: 0; height: 100%; width: 100%; padding: 5px; margin: 0; background: transparent; z-index: 2; touch-action: none; }
.unlock-track input::-webkit-slider-thumb { appearance: none; width: 44px; height: 44px; border-radius: 50%; background: var(--fg); cursor: grab; }
.unlock-track input::-moz-range-thumb { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fg); cursor: grab; }
.unlock-arrow { position: absolute; top: 5px; left: calc(5px + 214px * var(--unlock)); width: 44px; height: 44px; display: grid; place-items: center; z-index: 3; pointer-events: none; font-size: 24px; color: var(--bg); transition: left .45s var(--spring); }
.unlock-track.is-dragging .unlock-arrow { transition: none; }
.unlock-alternative { color: var(--muted); font-size: 8px; padding: 20px; min-height: 44px; }
.unlock-alternative:hover { color: var(--fg); }
.start-foot { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.stations-dialog { width: min(470px,calc(100% - 32px)); padding: 28px; }
.stations-dialog h2, .info-dialog h2 { font: inherit; margin: 0; }
.picker-description { color: var(--muted); font-size: 8px; margin: 30px 0 14px; }
.momentum-frame { position: relative; margin: 12px -8px 22px; }
.momentum-frame::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 31px); height: 62px; border-top: 1px solid #e5e3dc22; border-bottom: 1px solid #e5e3dc22; background: #ffffff04; pointer-events: none; }
.momentum-picker { height: 258px; overflow: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; padding: 98px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; cursor: grab; }
.momentum-picker.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.momentum-option { display: grid; grid-template-columns: 26px minmax(0,1fr) 16px; align-items: center; gap: 12px; padding: 0 15px; height: 62px; width: 100%; text-align: left; scroll-snap-align: center; transform: scale(var(--row-scale,.9)); opacity: var(--row-opacity,.4); transition: transform .4s var(--spring), opacity .25s, color .25s; }
.momentum-option > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; letter-spacing: -.04em; }
.momentum-option[aria-pressed=true] { color: var(--good); }
.picker-mark { font-size: 15px; }
#picker-add { margin-bottom: 16px; }
.stations-dialog > .muted { font-size: 8px; }
.info-dialog { width: min(520px,calc(100% - 32px)); height: min(620px,calc(100svh - 48px)); padding: 30px; }
.info-intro { font: italic 38px/1.2 Georgia,serif; margin: 44px 0 24px; }
.info-facts { margin: 30px 0 0; }
.info-facts > div { border-top: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 16px 0; }
.info-facts dt { color: var(--muted); font-size: 9px; }
.info-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 10px; }
.info-scroll-space { min-height: 170px; display: flex; align-items: center; }
.info-scroll-space span { font-size: 8px; }
.scroll-underline { display: inline-block; position: relative; color: var(--fg); }
.scroll-underline::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.scroll-underline.is-in-view::after { transform: scaleX(1); }
.segment-loader { display: flex; gap: 6px; margin: 60px 0; }
.segment-loader i { height: 4px; flex: 1; background: #ffffff0c; overflow: hidden; }
.segment-loader i::after { content: ''; display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: segment-fill .3s var(--ease) both; }
.segment-loader i:nth-child(2)::after { animation-delay: .12s; }
.segment-loader i:nth-child(3)::after { animation-delay: .24s; }
.segment-loader i:nth-child(4)::after { animation-delay: .36s; }
.segment-loader i:nth-child(5)::after { animation-delay: .48s; }
.segment-loader i:nth-child(6)::after { animation-delay: .6s; }
.toast { top: 85px; bottom: auto; display: flex; align-items: center; gap: 12px; background: #272725; color: var(--fg); border: 1px solid #55554d; border-radius: 6px; box-shadow: 0 10px 40px #0004; transform: translate(-50%,-160%); transition: transform .55s cubic-bezier(.18,1.25,.4,1), opacity .3s; font-size: 10px; padding: 13px 14px; width: max-content; }
.toast { visibility: hidden; }
.toast.visible { transform: translate(-50%,0); pointer-events: auto; visibility: visible; }
.toast-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: var(--good); }
#toast-close { font-size: 19px; width: 30px; height: 30px; margin: -7px -5px -7px 5px; }
.switch-snackbar { position: fixed; bottom: 128px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 15px 18px; border: 1px solid #55554d; background: #272725; box-shadow: 0 10px 40px #0005; border-radius: 6px; z-index: 30; display: flex; align-items: center; gap: 24px; overflow: hidden; animation: snackbar-in .4s var(--spring); }
#switch-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
#switch-undo { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: 10px; min-height: 30px; }
.switch-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: left; animation: switch-drain var(--switch-duration,4.5s) linear forwards; }
.delayed-tooltip { position: fixed; z-index: 50; width: max-content; max-width: min(280px,calc(100vw - 24px)); padding: 10px 13px; background: var(--fg); color: var(--bg); pointer-events: none; font-size: 9px; border-radius: 4px; line-height: 1.7; animation: tooltip-in .15s var(--spring); }
.gallery-form { position: relative; }
.gallery-form::before { content: ''; position: absolute; inset: 10px 10px 30px; border-radius: 50%; background: linear-gradient(90deg,#252524 25%,#3b3b37 50%,#252524 75%); background-size: 200% 100%; opacity: 0; pointer-events: none; transition: opacity .45s; }
.gallery-form.is-loading::before { opacity: 1; animation: skeleton-shimmer 1.4s ease-in-out infinite; }
.gallery-form canvas, .gallery-form .gallery-caption { opacity: 1; transform: translateY(0); transition: opacity .45s, transform .5s var(--ease); }
.gallery-form.is-loading canvas, .gallery-form.is-loading .gallery-caption { opacity: 0; transform: translateY(5px); }
@keyframes orbit-escape { from { transform: translate(0,0) scale(.5); opacity: 0; } to { transform: translate(var(--orbit-x),var(--orbit-y)) scale(1); opacity: 1; } }
@keyframes badge-ripple { from { transform: scale(1); opacity: .65; } to { transform: scale(2.8); opacity: 0; } }
@keyframes signal-search { 0%,82%,100% { opacity: .2; } 12%,70% { opacity: 1; } }
@keyframes segment-fill { to { transform: scaleX(1); } }
@keyframes snackbar-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes switch-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes tooltip-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes skeleton-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width:700px) {
  .top-actions { top: 24px; gap: 3px; }
  #connection-check { font-size: 8px; padding: 9px 11px; gap: 6px; }
  .player-bar { gap: 14px; bottom: 53px; }
  .speed-control { width: 55px; }
  .player-bar .now-playing { bottom: 124px; max-width: calc(100vw - 200px); }
  .orbital-actions { bottom: 240px; }
  .orbit-action:nth-child(1) { --orbit-x: -62px; --orbit-y: 0px; }
  .orbit-action:nth-child(2) { --orbit-x: -44px; --orbit-y: -48px; }
  .orbit-action:nth-child(3) { --orbit-x: 0px; --orbit-y: -65px; }
  .toast { top: 80px; max-width: calc(100vw - 32px); }
  .start-content h2 { font-size: clamp(52px,14vw,80px); }
  .start-content p { margin-bottom: 40px; }
  .info-dialog { padding: 24px; }
  .switch-snackbar { bottom: 121px; gap: 16px; padding: 10px 14px; }
}
@media (max-width:380px) { .player-bar { gap: 11px; } #stations-open { padding: 9px; gap: 6px; } .station-glyph { display: none; } }
@media (max-height:550px) { .start-content h2 { font-size: 50px; margin: 20px 0 0; } .start-content p { margin: 16px 0 20px; } .start-foot { bottom: 12px; } .top-actions { top: 16px; } }
@media (prefers-reduced-motion:reduce) { body:not(.motion-on) .gallery-form::before { animation: none; } }

/* Optical and tactile studies: Kinetics / second pass. */
:root { --neon: var(--accent); --prism-light: var(--accent-pale); --prism-deep: var(--accent-mid); }
.moire-background { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; opacity: .12; mask-image: radial-gradient(ellipse at 48% 48%,#000 0 28%,transparent 78%); transition: opacity .8s, filter .8s, scale .8s; }
.moire-background > i { position: absolute; inset: -35%; border-radius: 45%; background: repeating-radial-gradient(ellipse at 44% 49%,transparent 0 5px,rgb(var(--accent-rgb) / .32) 5.5px 6px,transparent 6.5px 11px); animation: moire-drift 38s linear infinite; }
.moire-background > i + i { background: repeating-radial-gradient(ellipse at 53% 47%,transparent 0 5.5px,#90af3a70 6px 6.5px,transparent 7px 12px); animation-direction: reverse; animation-duration: 47s; mix-blend-mode: screen; }
.cursor-spotlight { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle 250px at var(--spot-x,-500px) var(--spot-y,-500px),hsl(var(--spot-hue,78) 86% 62% / .22),hsl(var(--spot-hue,78) 75% 45% / .08) 42%,transparent 75%); mix-blend-mode: screen; opacity: 0; transition: opacity .6s; }
.cursor-spotlight.is-visible { opacity: 1; }
.wordmark { position: relative; }
.wordmark > .logo-signal { position: absolute; display: grid; left: -15px; top: 1px; width: 9px; height: 15px; }
.signal-braille { display: grid; grid-template-columns: repeat(2,3px); grid-template-rows: repeat(3,3px); gap: 3px; width: max-content; }
.signal-braille i { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--neon); opacity: .2; animation: braille-phase 2.1s steps(1) infinite; }
.signal-braille i:nth-child(2n) { animation-delay: -.7s; }
.signal-braille i:nth-child(3n) { animation-delay: -1.4s; }
[data-signal-phase=ready] .logo-signal i { animation: none; opacity: .35; }
[data-signal-phase=ready] .logo-signal i:nth-child(1), [data-signal-phase=ready] .logo-signal i:nth-child(4), [data-signal-phase=ready] .logo-signal i:nth-child(6) { opacity: 1; }
[data-signal-phase=playing] .logo-signal i { animation-duration: 1.4s; background: var(--accent); }
[data-signal-phase=connecting] .logo-signal i { animation-duration: .9s; }
[data-signal-phase=error] .logo-signal i { animation: none; background: #d2a697; opacity: .8; }
.wordmark-line > span { position: relative; isolation: isolate; }
.wordmark-line > span::before, .wordmark-line > span::after { content: attr(data-char); position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: transform .4s var(--spring), opacity .25s; mix-blend-mode: screen; }
.wordmark-line > span::before { color: var(--prism-light); }
.wordmark-line > span::after { color: var(--prism-deep); }
.wordmark:hover .wordmark-line > span::before, .wordmark:focus-visible .wordmark-line > span::before { transform: translate(-2px,-.4px); opacity: .85; }
.wordmark:hover .wordmark-line > span::after, .wordmark:focus-visible .wordmark-line > span::after { transform: translate(2px,.4px); opacity: .85; }
.wordmark:hover .logo-signal { filter: drop-shadow(0 0 4px var(--neon)); }
.unlock-track { border-color: rgb(var(--accent-rgb) / .65); animation: neon-unlock 2.4s ease-in-out infinite; }
.unlock-copy { color: var(--accent-pale); text-shadow: 0 0 8px rgb(var(--accent-rgb) / .5); }
.unlock-track input::-webkit-slider-thumb { background: var(--accent); box-shadow: 0 0 16px rgb(var(--accent-rgb) / .55); }
.unlock-track input::-moz-range-thumb { background: var(--accent); box-shadow: 0 0 16px rgb(var(--accent-rgb) / .55); }
.start-screen .start-content, .start-screen .start-foot { transition: opacity .35s, transform .5s var(--ease), filter .5s; }
.start-screen.is-unlocking { background: #191919; backdrop-filter: none; }
.start-screen.is-unlocking .start-content { opacity: 0; transform: scale(1.025); filter: blur(8px); pointer-events: none; }
.start-screen.is-unlocking .start-foot { opacity: 0; }
.start-handoff { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 22px; animation: handoff-in .4s .2s both; }
.start-handoff .signal-braille { grid-template-columns: repeat(2,5px); grid-template-rows: repeat(3,5px); gap: 6px; }
.start-handoff .signal-braille i { width: 5px; height: 5px; }
.start-handoff > .micro { color: var(--muted); font-size: 8px; letter-spacing: .18em; white-space: nowrap; }
body:not(.is-unlocked) :is(.masthead,.top-actions,.side-rail,.player-bar,.signal-strip,.orbital-actions) { visibility: hidden; opacity: 0; }
body.is-entering .art-stage { opacity: 0; transition: opacity .35s; }
body.is-unlocked :is(.masthead,.top-actions,.side-rail,.player-bar,.signal-strip,.orbital-actions) { animation: main-reveal .8s .15s var(--ease) backwards; }
body.is-unlocked .art-stage { animation: field-reveal 1.1s var(--ease) backwards; }
body.is-unlocked .player-bar { animation-delay: .35s; }
.art-stage { transform-origin: 50% 50%; transition: filter .75s cubic-bezier(.65,0,.35,1), opacity .75s, scale .75s; }
.side-rail, .player-bar { transition: filter .6s, opacity .6s; }
body.is-unlocked[data-focus-plane=controls] .art-stage, body.is-unlocked[data-focus-plane=forms] .art-stage { filter: blur(3px); opacity: .64; scale: 1.018; }
body[data-focus-plane=controls] .side-rail { filter: blur(1px); opacity: .32; }
body[data-focus-plane=forms] .player-bar { filter: blur(.8px); opacity: .48; }
body[data-focus-plane=panel] .art-stage { filter: blur(6px); opacity: .4; scale: 1.025; }
body[data-focus-plane=panel] .moire-background, body[data-focus-plane=controls] .moire-background, body[data-focus-plane=forms] .moire-background { opacity: .2; filter: blur(1.5px); scale: 1.05; }
dialog:not(.start-screen)[open] { animation: rack-panel-in .6s cubic-bezier(.65,0,.35,1); }
dialog:not(.start-screen)::backdrop { backdrop-filter: none; background: #080808a0; }
body.motion-off .cursor-spotlight { display: none; }
body.motion-off .art-stage { filter: none !important; scale: 1 !important; }
body.motion-off .side-rail, body.motion-off .player-bar { filter: none !important; }
@keyframes braille-phase { 0%,100% { opacity: .16; } 20%,55% { opacity: 1; } 70% { opacity: .4; } }
@keyframes moire-drift { from { transform: rotate(-12deg) scale(1.02); } to { transform: rotate(348deg) scale(1.02); } }
@keyframes neon-unlock { 0%,100% { box-shadow: 0 0 7px -2px rgb(var(--accent-rgb) / .4),inset 0 0 8px -3px rgb(var(--accent-rgb) / .3); } 50% { box-shadow: 0 0 22px 0 rgb(var(--accent-rgb) / .5),inset 0 0 14px -2px rgb(var(--accent-rgb) / .4); } }
@keyframes handoff-in { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
@keyframes main-reveal { from { opacity: 0; filter: blur(4px); } to { opacity: var(--reveal-opacity,1); filter: blur(0); } }
@keyframes field-reveal { from { opacity: 0; filter: blur(10px); scale: 1.035; } to { opacity: 1; filter: blur(0); scale: 1; } }
@keyframes rack-panel-in { from { opacity: .4; filter: blur(7px); scale: 1.025; } to { opacity: 1; filter: blur(0); scale: 1; } }
@media (max-width:700px) { .wordmark > .logo-signal { left: -12px; } .cursor-spotlight { background-size: auto; } .moire-background { opacity: .1; } }
@media (prefers-reduced-motion:reduce) { body:not(.motion-on) .cursor-spotlight { display: none; } body:not(.motion-on) .art-stage { filter: none !important; scale: 1 !important; } body:not(.motion-on) .side-rail, body:not(.motion-on) .player-bar { filter: none !important; } }

/* Apple-design pass: direct gestures, quiet materials, readable touch controls. */
:root { --spring: cubic-bezier(.22,1,.36,1); --material: rgb(23 25 21 / .9); --material-line: rgb(235 241 224 / .13); }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-optical-sizing: auto; }
button { touch-action: manipulation; }
button:active, .file-picker:active { scale: .97; transition: scale 80ms ease-out, background 80ms ease-out; }
button:focus-visible, a:focus-visible, input:focus-visible { outline-width: 2px; outline-offset: 4px; }
.status-pill { min-height: 44px; font-size: .6875rem; transition: background .2s, border-color .2s, color .2s; }
.status-pill:active { transform: none; background: rgb(var(--accent-rgb) / .12); }
.top-actions { gap: 10px; }
.notification-button { width: 44px; height: 44px; }
/* Solid materials: a backdrop blur over the live WebGL field is recomputed every frame. */
.player-bar, .side-rail { background: var(--material); border: 1px solid var(--material-line); box-shadow: 0 8px 32px #0004, inset 0 1px 0 #ffffff05; }
.player-bar { padding: 10px 14px; gap: 18px; height: auto; min-height: 80px; border-radius: 28px; max-width: calc(100vw - var(--edge) * 2 - 72px); }
.listen-button.status-pill { width: 48px; height: 48px; }
.rotary-control { opacity: 1; width: 50px; flex-shrink: 0; gap: 5px; }
.knob-shell { width: 44px; height: 44px; }
.knob-face { transition: none; }
.knob-shell input.rotary-input { inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); }
.control-caption, .speed-control label { font-size: .625rem; line-height: 1.2; color: #bec1b5; }
.speed-control { width: 64px; min-height: 58px; gap: 4px; flex-shrink: 0; }
.speed-control output { font-size: 1rem; }
.speed-control::after { right: -3px; bottom: 8px; }
#stations-open { min-width: 90px; font-size: .6875rem; }
.now-playing p { font-size: .75rem; color: #d7dacf; }
.side-rail { width: 164px; padding: 12px; border-radius: 24px; --reveal-opacity: .96; opacity: .96; }
.station-status { font-size: .625rem; margin-bottom: 10px; color: #c4c8bb; }
.form-option > .micro { font-size: .625rem; }
.form-navigation { grid-template-columns: 44px minmax(0,1fr) 44px; margin-top: 2px; }
.form-navigation button { min-height: 44px; }
.form-navigation #forms-open { font-size: .625rem; }
.rail-actions { gap: 0; margin-top: 2px; }
.rail-actions button { width: 44px; height: 44px; color: #bcc1b2; }
body[data-focus-plane=controls] .side-rail, body[data-focus-plane=forms] .player-bar { filter: none; opacity: .8; }
body.is-unlocked[data-focus-plane=controls] .art-stage, body.is-unlocked[data-focus-plane=forms] .art-stage { filter: none; opacity: .8; scale: 1; }
.orbit-action { animation: none; opacity: 0; transform: translate3d(0,0,0); will-change: transform, opacity; }
.orbit-toggle { transition: color .2s, border-color .2s; }
.orbit-toggle, .orbit-action { background: var(--material); border-color: var(--material-line); color: #c5cabc; }
.unlock-track { width: min(300px,calc(100vw - 64px)); height: 58px; }
.unlock-track:focus-within { outline: 2px solid var(--accent); outline-offset: 5px; }
.unlock-track input { opacity: 0; }
.unlock-arrow { left: 5px; top: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgb(var(--accent-rgb) / .3); transform: translate3d(calc(var(--unlock-travel,244px) * var(--unlock)),0,0); transition: none; }
.unlock-copy { font-size: .6875rem; letter-spacing: .08em; }
.start-eyebrow, .start-content p, .start-foot { font-size: .625rem; }
.unlock-alternative { font-size: .625rem; color: #c4c9ba; }
.start-handoff > .micro { font-size: .625rem; }
#start-skip { min-height: 44px; padding: 0 20px; border: 1px solid var(--material-line); border-radius: 22px; color: var(--accent-pale); font-size: .6875rem; }
dialog:not(.start-screen) { background: rgb(25 28 23 / .94); border: 1px solid var(--material-line); border-radius: 26px; box-shadow: 0 24px 100px #0008; will-change: transform, opacity; }
dialog:not(.start-screen)[open] { animation: none; }
.dialog-top { align-items: center; font-size: .6875rem; letter-spacing: .05em; }
.close-dialog { min-width: 64px; min-height: 44px; border-radius: 22px; font-size: .6875rem; color: #d7dccf; }
.close-dialog:hover { background: #ffffff0a; }
.dialog-copy { font-size: .9375rem; line-height: 1.65; color: #bdc4b5; }
.side-dialog h2 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; margin: 30px 0 20px; }
.file-picker { min-height: 56px; padding: 16px 18px; border-radius: 16px; font-size: .75rem; }
.source-note, .dialog-foot, .picker-description, .stations-dialog > .muted { font-size: .625rem; }
.queue button { min-height: 52px; font-size: .875rem; }
.gallery-caption { font-size: .625rem; }
.gallery-form { border-radius: 14px; }
.momentum-picker { --picker-row: 3.875rem; height: 16.125rem; padding-block: calc((16.125rem - var(--picker-row)) / 2); touch-action: pan-y; }
.momentum-option { height: var(--picker-row); transition: opacity .15s, color .2s; }
.picker-track { position: relative; will-change: translate; }
.momentum-picker.is-dragging, .momentum-picker.is-dragging * { cursor: grabbing; user-select: none; }
.info-facts dt, .info-facts dd { font-size: .6875rem; line-height: 1.6; }
.toast { font-size: .75rem; border-radius: 18px; transition: transform .3s cubic-bezier(.22,1,.36,1),opacity .2s; }
.toast-dot { width: 6px; height: 6px; }
#toast-close { min-width: 44px; min-height: 44px; margin: -10px -7px -10px 0; }
#switch-message { font-size: .75rem; }
#switch-undo { min-height: 44px; font-size: .75rem; padding-inline: 8px; }
.switch-snackbar { border-radius: 18px; }
.delayed-tooltip { font-size: .6875rem; border-radius: 10px; }
@media (max-width:700px) {
  :root { --edge: clamp(16px,5vw,24px); }
  .masthead { top: calc(26px + env(safe-area-inset-top,0px)); }
  .top-actions { top: calc(20px + env(safe-area-inset-top,0px)); gap: 4px; }
  #connection-check { font-size: .625rem; min-height: 44px; padding: 10px; }
  .player-bar { left: var(--edge); right: var(--edge); max-width: none; bottom: calc(44px + env(safe-area-inset-bottom,0px)); padding: 10px; gap: 10px; justify-content: space-between; }
  .side-rail { width: 174px; padding: 10px; bottom: calc(156px + env(safe-area-inset-bottom,0px)); border-radius: 22px; }
  .station-status { font-size: .625rem; margin-bottom: 8px; }
  .form-option { min-height: 52px; }
  .form-option > .micro { font-size: .625rem; }
  .form-thumbnail { height: 50px; }
  .rail-actions button { width: 44px; height: 44px; }
  .form-navigation #forms-open { font-size: .625rem; }
  .orbital-actions { bottom: calc(354px + env(safe-area-inset-bottom,0px)); }
  .has-tracks .player-bar { padding-top: 34px; }
  .player-bar .now-playing { position: absolute; top: 8px; left: 12px; right: 12px; bottom: auto; max-width: none; }
  .now-playing p { font-size: .75rem; }
  .speed-control { width: 64px; }
  #stations-open { min-width: 90px; }
  .signal-strip { padding-bottom: env(safe-area-inset-bottom,0px); height: calc(37px + env(safe-area-inset-bottom,0px)); }
  .signal-label { font-size: .5625rem; }
  .signal-label > span { font-size: .5rem; }
  .art-caption { bottom: calc(18px + env(safe-area-inset-bottom,0px)); }
  .side-dialog { top: max(12px,env(safe-area-inset-top,0px)); bottom: max(12px,env(safe-area-inset-bottom,0px)); right: 12px; width: calc(100% - 24px); }
  .info-dialog, .forms-dialog, .stations-dialog { padding: 20px; max-height: calc(100svh - 32px); }
  .gallery-caption { font-size: .625rem; }
  .switch-snackbar { bottom: calc(142px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width:380px) { .player-bar { gap: 6px; } .listen-button.status-pill { width: 44px; height: 44px; } .rotary-control { width: 46px; } .speed-control { width: 54px; } #stations-open { min-width: 78px; padding: 8px; } .station-glyph { display: none; } .side-rail { width: 166px; } }
@media (prefers-reduced-transparency:reduce) { .player-bar, .side-rail, .orbit-toggle, .orbit-action, dialog:not(.start-screen) { background: #20231c; backdrop-filter: none; -webkit-backdrop-filter: none; } .start-screen { background: #191919; backdrop-filter: none; } }
@media (prefers-contrast:more) { :root { --muted: #d1d6c8; --material: #191c16; --material-line: #c0c7b7; } .player-bar, .side-rail, .orbit-toggle, .orbit-action, dialog:not(.start-screen) { background: #191c16; backdrop-filter: none; -webkit-backdrop-filter: none; } .side-rail, .rotary-control, body[data-focus-plane=controls] .side-rail, body[data-focus-plane=forms] .player-bar { opacity: 1; } }
@media (prefers-reduced-motion:reduce) { body:not(.motion-on) .moire-background { display: none; } }
