/* ---------------------------------------------------------------------------
   Driven by Creativity — retro TV broadcast experience (Day 29)
   Reference frame: 1440 × 1282 (Figma node 3401:2)

   FROZEN (§1 layout-fidelity contract): background, eyebrow, headline,
   TV image size/position, body copy, breakpoints. Everything below that
   is additive. One-shot motion = Web Animations API (script.js);
   continuous motion = the single RAF loop; steps() loops = CSS only.
--------------------------------------------------------------------------- */

:root {
  --bg: #1e140c;
  --cream: #fbf3ea;
  --cream-60: rgba(251, 243, 234, 0.6);
  --cream-50: rgba(251, 243, 234, 0.5);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-modal: cubic-bezier(0.77, 0, 0.18, 1);
  /* --noise-url is set once by script.js (generated 256×256 tile, §10) */
  --noise-url: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.stage {
  position: relative;
  min-height: 100svh;
  padding: clamp(48px, 7vw, 90px) clamp(24px, 8.5vw, 120px) clamp(48px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Director Mode (§4.3): instant toggle, masked by the flash. NEVER transitioned. */
.stage.director {
  filter: grayscale(1) contrast(1.15);
}

/* Denim texture, tiled and blended exactly as in Figma */
.texture {
  position: absolute;
  inset: 0;
  background: url("assets/denim.png") top left / 210px 163px repeat;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Thin vertical rules, 60px in from each edge */
.rule {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(251, 243, 234, 0.14) 0 3px,
    transparent 3px 9px
  );
  pointer-events: none;
}

.rule--left { left: clamp(16px, 4.2vw, 60px); }
.rule--right { right: clamp(16px, 4.2vw, 60px); }

@media (max-width: 560px) {
  .rule { display: none; }
}

/* ---------------------------------------------------- §10 atmosphere layers */

.film-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(251, 243, 234, 0.03);
  pointer-events: none;
}

.film-mark--left { left: 4%; }
.film-mark--right { right: 4%; }

.stage-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Film grain: one noise tile, compositor-only stepped translate (§10) */
.grain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.04;
  z-index: 6;
}

.grain::after {
  content: "";
  position: absolute;
  inset: -256px 0 0 -256px;
  width: calc(100% + 256px);
  height: calc(100% + 256px);
  background: var(--noise-url) repeat;
  animation: noise-shift 800ms steps(10) infinite;
  will-change: transform;
}

@keyframes noise-shift {
  to { transform: translate(256px, 256px); }
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: 21px;
  text-align: center;
  max-width: 748px;
}

.eyebrow {
  font-family: "Gloria Hallelujah", cursive;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.1;
  letter-spacing: 1px;
  color: var(--cream-60);
}

.headline {
  font-family: "Phudu", sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 8.35vw, 120px);
  line-height: 0.93;
  letter-spacing: -0.0167em;
  text-transform: uppercase;
  color: var(--cream);
}

/* each line clips its child so glyphs never spill during entrance */
.headline__line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em; /* keep descender-free glyphs from clipping */
}

/* word spans: entrance-animated individually (§2 hero tokens) */
.word {
  display: inline-block;
}

/* -------------------------------------------------- pre-entrance states */

/* All hidden-until-animated states gated on html.js so a no-JS visit
   renders the full page (loader is display:none without .js). */
.js .pre:not(.in) {
  opacity: 0;
}

.js .word--wipe.pre:not(.in) {
  clip-path: inset(0 100% 0 0);
}

/* ------------------------------------------------- §3 TV wrapper rig */

/* Each wrapper owns exactly ONE writer (see transform ownership table).
   Full-width flex columns so `.tv`'s min(840px, 100%) resolves exactly
   as it did against .stage before the rig existed. */
.tv-parallax,
.tv-entrance,
.tv-idle,
.tv-press {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tv-press {
  position: relative; /* anchors .tv-shadow */
  transition: transform 120ms var(--ease-out-quart); /* whileTap equivalent */
}

.tv-press.pressed {
  transform: scale(0.985);
}

/* Pre-rendered gradient shadow (§10: no drop-shadow filter on the PNG).
   scaleX/opacity are driven off the entrance spring in script.js. */
.tv-shadow {
  position: absolute;
  left: 50%;
  bottom: -0.5%;
  width: 72%;
  height: 7%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------------------------------- tv */

.tv {
  position: relative;
  width: min(840px, 100%);
  aspect-ratio: 840 / 570;
  margin-top: clamp(40px, 5.14vw, 74px);
}

.tv__body {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* §5 CASE B (verified): the PNG screen cut-out is TRANSPARENT, so the video
   stack renders BELOW the image and shows through the glass. Rect measured
   from the source frame: (67, 58) 573×412 inside 840×570. */
.tv__screen {
  position: absolute;
  z-index: 1;
  left: 7.976%;
  top: 10.175%;
  width: 68.215%;
  height: 72.281%;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6% / 8%; /* CRT corner approximation (§5.4) */
  contain: content;
  /* §7b BRIGHT / COLOR buttons drive these two vars (script.js) */
  filter: brightness(var(--scr-bright, 1)) saturate(var(--scr-sat, 1));
  transition: filter 200ms linear;
  touch-action: pan-y; /* keep vertical page scroll; horizontal swipes tune */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.tv__screen:focus-visible {
  outline: 2px solid var(--cream-60);
  outline-offset: 6px;
}

/* ------------------------------------------------- §5 screen stack layers */

.screen-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* flips on at PLAYING; from then on opacity is RAF-owned (flicker) */
}

.tv__screen.video-live .screen-video {
  opacity: 1;
}

/* Slow-network fallback poster (§4.1 STATIC → weak-signal path) */
.poster-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 40%, #2c1d10 0%, #120a05 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.poster-layer.show {
  opacity: 1;
}

.card-title {
  font-family: "Phudu", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 5.6vw, 84px);
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(251, 243, 234, 0.45);
}

.card-sub {
  font-family: "Gloria Hallelujah", cursive;
  font-size: clamp(10px, 1.25vw, 18px);
  color: var(--cream-60);
  letter-spacing: 1px;
}

/* Static bursts: same noise tile, steps(6) 100ms (§10 substitution table) */
.static-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.static-layer .static-tile {
  position: absolute;
  inset: -256px 0 0 -256px;
  width: calc(100% + 256px);
  height: calc(100% + 256px);
  background: var(--noise-url) repeat;
  animation: static-shift 100ms steps(6) infinite;
  animation-play-state: paused;
  will-change: transform;
}

.static-layer.on .static-tile {
  animation-play-state: running;
}

@keyframes static-shift {
  to { transform: translate(256px, 256px); }
}

.white-layer {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* Glitch channel-shift overlays (§10 recipe): shown briefly via WAAPI */
.rgb-shift {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.rgb-shift--r { background: #f00; transform: translateX(2px); }
.rgb-shift--c { background: #0ff; transform: translateX(-2px); }

/* ------------------------------------------------------------ screen fx */

.screen-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 200ms linear; /* fades out for cinema mode (§8) */
}

.screen-fx.hidden-fx {
  opacity: 0;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.14) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
}

.rollbar {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.08) 50%,
    transparent
  );
  animation: roll 9s linear infinite;
}

@keyframes roll {
  from { transform: translateY(-140%); }
  to { transform: translateY(720%); }
}

/* curvature of the glass — mask radius + gradients ARE the curvature (§5.8) */
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    110% 110% at 50% 50%,
    transparent 62%,
    rgba(0, 0, 0, 0.28) 100%
  );
  box-shadow: inset 0 0 24px 8px rgba(0, 0, 0, 0.55); /* §5.6 inner shadow (not on the video) */
}

/* §5.7 glass reflection */
.glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.03) 28%,
    transparent 45%
  );
}

/* §5.9 channel badge */
.badge {
  position: absolute;
  top: 6%;
  right: 6%;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(251, 243, 234, 0.7);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 200ms linear;
}

/* cinema mode is clean — badge joins the overlays in fading out (§8) */
.tv__screen.is-modal .badge,
.tv__screen.is-modal .osd {
  opacity: 0;
}

.badge__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e33;
  animation: badge-pulse 1.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* on-screen channel label (tuning / power-on) */
.osd {
  position: absolute;
  bottom: 7%;
  left: 8%;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(11px, 1.4vw, 20px);
  letter-spacing: 0.12em;
  color: #eaffea;
  text-shadow: 0 0 8px rgba(140, 255, 140, 0.8), 1px 0 0 rgba(255, 0, 80, 0.35), -1px 0 0 rgba(0, 200, 255, 0.35);
  opacity: 0;
  transition: opacity 240ms linear; /* channelLabelFade token */
  pointer-events: none;
  white-space: nowrap;
}

.osd.show {
  opacity: 1;
}

/* --------------------------------------------- in-screen control buttons */

/* The pointer-trap rule (§5.10): every overlay is pointer-events:none —
   these controls are the sanctioned interactive exceptions. */
.screen-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: var(--cream);
  background: rgba(10, 7, 5, 0.55);
  border: 1px solid rgba(251, 243, 234, 0.2);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms linear;
}

.screen-btn:focus-visible {
  outline: 2px solid var(--cream-60);
  outline-offset: 2px;
  opacity: 1;
}

.pause-btn { left: 4%; bottom: 5%; }
.unmute-btn { right: 4%; bottom: 5%; }
.close-btn { right: 4%; top: 5%; }

.tv__screen:hover .screen-btn:not([hidden]),
.tv__screen.is-modal .screen-btn:not([hidden]) {
  opacity: 1;
}

/* ------------------------------------------------- §7 knob hotspots */

.knob-hotspot {
  position: absolute;
  z-index: 3;
  width: 9%;
  aspect-ratio: 1;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Knob centers measured on assets/tv.png (1680×1140):
   upper dial ≈ (1516, 608) → 90.2% / 53.3%
   lower dial ≈ (1508, 832) → 89.8% / 73.0% */
.knob-hotspot--upper { left: 90.2%; top: 53.3%; }
.knob-hotspot--lower { left: 89.8%; top: 73.0%; }

.knob-hotspot:focus-visible {
  outline: 2px solid var(--cream-60);
  outline-offset: 2px;
  border-radius: 50%;
}

.knob-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 70%;
  translate: -50% -50%;
  border: 1.5px solid rgba(251, 243, 234, 0.5);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 150ms linear;
  pointer-events: none;
}

@media (pointer: fine) {
  .knob-hotspot:hover .knob-ring { opacity: 1; }
}

/* accumulating dial tick — rotation is spring-driven in script.js */
.knob-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 62%;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 150ms linear;
  pointer-events: none;
}

.knob-tick i {
  position: absolute;
  left: calc(50% - 1px);
  top: 4%;
  width: 2px;
  height: 30%;
  background: var(--cream);
  border-radius: 1px;
}

@media (pointer: fine) {
  .knob-hotspot:hover .knob-tick { opacity: 0.9; }
}

.knob-tick.lit {
  opacity: 0.9;
}

/* --------------------------------------------- §7b panel button hotspots */

/* Invisible targets over the baked-in push-button column. Centers measured
   on assets/tv.png (1680×1140): x ≈ 1390 → 82.74%, spacing ≈ 69px → 6.05%. */
.panel-btn {
  position: absolute;
  z-index: 3;
  left: 82.74%;
  width: 4.2%;
  aspect-ratio: 1;
  min-width: 22px;
  min-height: 22px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.panel-btn--power  { top: 52.8%; }
.panel-btn--volume { top: 58.9%; }
.panel-btn--aft    { top: 65.3%; }
.panel-btn--bright { top: 71.2%; }
.panel-btn--color  { top: 77.2%; }

.panel-btn:focus-visible {
  outline: 2px solid var(--cream-60);
  outline-offset: 2px;
}

/* pressed cap: the pixels are baked into the PNG, so depression is faked
   with a soft shadow dropped over the cap while :active */
.panel-btn::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 78%);
  opacity: 0;
  transition: opacity 70ms linear;
  pointer-events: none;
}

.panel-btn:active::after {
  opacity: 1;
}

.btn-ring {
  position: absolute;
  inset: 8%;
  border: 1.5px solid rgba(251, 243, 234, 0.5);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 150ms linear;
  pointer-events: none;
}

@media (pointer: fine) {
  .panel-btn:hover .btn-ring { opacity: 1; }
}

/* light spilling from the screen onto the bezel */
.tv__bloom {
  position: absolute;
  z-index: 3;
  left: 2%;
  top: 2%;
  width: 80%;
  height: 88%;
  background: radial-gradient(
    55% 55% at 52% 48%,
    rgba(255, 250, 240, 0.16) 0%,
    transparent 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease-out-quart);
}

.tv.is-lit .tv__bloom {
  opacity: 1;
}

/* handwritten nudge under the set */
.tv__hint {
  position: absolute;
  z-index: 3;
  right: -2%;
  bottom: -7.5%;
  font-family: "Gloria Hallelujah", cursive;
  font-size: clamp(12px, 1.1vw, 15px);
  color: var(--cream-60);
  transform: rotate(-3deg);
  opacity: 0;
  transition: opacity 500ms var(--ease-out-quart);
  pointer-events: none;
}

.tv__hint.show { opacity: 0.75; }
.tv__hint.hide { opacity: 0; }

@media (max-width: 700px) {
  .tv__hint { display: none; }
}

/* ------------------------------------------------------------- body copy */

.body-copy {
  margin-top: clamp(36px, 3.5vw, 51px);
  max-width: 616px;
  text-align: center;
  font-size: clamp(16px, 1.67vw, 24px);
  line-height: 1.45;
  color: var(--cream-50);
}

/* block spans reproduce the original <br> line structure exactly */
.para-line {
  display: block;
}

/* ------------------------------------------------- §4.3 director mode */

.director-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

/* --------------------------------------------------------- §8 modal */

/* Backdrop lives INSIDE .stage (absolute) so the Director filter can apply
   to the section root without breaking positioning: a filtered ancestor
   becomes the containing block for fixed elements, so nothing here is fixed. */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 5, 0.92);
  opacity: 0;
  z-index: 40;
}

.modal-title {
  position: absolute;
  z-index: 60;
  text-align: center;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.modal-title__eyebrow {
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cream-60);
}

.modal-title__name {
  font-family: "Phudu", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 36px);
  color: var(--cream);
  margin-top: 6px;
}

.tv__screen.is-modal {
  z-index: 55;
  cursor: default;
}

/* ------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 12px);
  opacity: 0;
  z-index: 1200;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream);
  background: rgba(13, 8, 5, 0.85);
  border: 1px solid rgba(251, 243, 234, 0.2);
  border-radius: 6px;
  padding: 10px 18px;
  pointer-events: none;
  transition: transform 200ms var(--ease-out-quart), opacity 200ms linear;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ------------------------------------------------- §11 custom cursor */

.stage.no-native-cursor,
.stage.no-native-cursor * {
  cursor: none !important;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4000;
  pointer-events: none;
  will-change: transform;
}

.cursor__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.8;
  color: transparent;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition: width 150ms var(--ease-out-quart), height 150ms var(--ease-out-quart),
    margin 150ms var(--ease-out-quart), border-radius 150ms var(--ease-out-quart),
    opacity 150ms linear, color 150ms linear;
}

.cursor[data-state="play"] .cursor__label,
.cursor[data-state="tune"] .cursor__label,
.cursor[data-state="push"] .cursor__label {
  width: 64px;
  height: 26px;
  margin: -13px 0 0 -32px;
  border-radius: 13px;
  color: #1e140c;
  opacity: 0.95;
}

.cursor[data-state="scan"] .cursor__label {
  width: 24px;
  height: 2px;
  margin: -1px 0 0 -12px;
  border-radius: 1px;
  opacity: 0.9;
}

/* -------------------------------------------------------- §12 loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #120b08;
  contain: content;
}

html:not(.js) .loader { display: none; }
.loader.done { display: none; }

.loader-beam,
.loader-screen {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(64vw, 560px);
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}

.loader-beam {
  background: #fdf8ef;
  box-shadow: 0 0 40px rgba(253, 248, 239, 0.5), 0 0 120px rgba(253, 248, 239, 0.25);
  transform: scale(0.02, 0.008); /* dot; scaleX then scaleY expand — never width/height */
  opacity: 0;
}

.loader-screen {
  background: #0d0805;
  border: 1px solid rgba(251, 243, 234, 0.16);
  padding: clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7em;
  opacity: 0;
}

.loader-line {
  font-family: "Courier New", monospace;
  font-size: clamp(12px, 1.6vw, 17px);
  letter-spacing: 0.14em;
  color: var(--cream);
  text-shadow: 0 0 12px rgba(240, 234, 220, 0.35); /* static glow, not animated */
  min-height: 1.25em;
  animation: type-jitter 170ms steps(4) infinite;
}

@keyframes type-jitter {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(0.5px, -0.5px); }
  50% { transform: translate(-0.5px, 0.5px); }
  75% { transform: translate(0.5px, 0.5px); }
}

.loader-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

/* --------------------------------------------------------------- motion */

/* §13 degrade matrix — steps() loops freeze, continuous writers are
   disabled in script.js, one-shots collapse to plain fades there too. */
@media (prefers-reduced-motion: reduce) {
  .rollbar,
  .grain::after,
  .static-layer .static-tile,
  .loader-line {
    animation: none;
  }

  .badge__dot {
    animation: none;
    opacity: 1;
  }

  .tv-press,
  .tv__screen,
  .screen-fx,
  .osd,
  .toast,
  .cursor__label,
  .panel-btn::after {
    transition: none;
  }
}
