:root {
  color-scheme: dark;
  --page-black: #030303;
  --void: #060606;
  --plastic: #211d18;
  --plastic-warm: #3a3128;
  --plastic-cool: #141413;
  --edge: #080706;
  --metal: #a39175;
  --amber: #f0a43a;
  --red: #b62319;
  --green: #75f6a2;
  --cyan: #62d5e5;
  --phosphor: #d9ffe1;
  --screen-glow: rgba(98, 213, 229, 0.24);
  --screen-radius: clamp(28px, 5vw, 64px);
  --knob-angle: -145deg;
  --signal-jitter-x: 0px;
  --signal-jitter-y: 0px;
  --static-opacity: 0;
  --screen-flicker: 0.78;
  --panel-text: rgba(236, 228, 206, 0.82);
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--page-black);
}

body {
  min-width: 320px;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #030303;
  color: #eee8d7;
}

/* Starry Background */
.star-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at bottom, #0a0c12 0%, #030303 100%);
  overflow: hidden;
  pointer-events: none;
}

.star-layer {
  position: absolute;
  inset: -200%;
  width: 500%;
  height: 500%;
  opacity: 0.6;
}

.layer-1 {
  background-image: 
    radial-gradient(1px 1px at 10% 10%, #fff, transparent 1px),
    radial-gradient(1px 1px at 20% 30%, #fff, transparent 1px),
    radial-gradient(1px 1px at 30% 50%, #fff, transparent 1px),
    radial-gradient(1px 1px at 40% 70%, #fff, transparent 1px),
    radial-gradient(1px 1px at 50% 90%, #fff, transparent 1px),
    radial-gradient(1px 1px at 60% 20%, #fff, transparent 1px),
    radial-gradient(1px 1px at 70% 40%, #fff, transparent 1px),
    radial-gradient(1px 1px at 80% 60%, #fff, transparent 1px),
    radial-gradient(1px 1px at 90% 80%, #fff, transparent 1px),
    radial-gradient(1.5px 1.5px at 15% 25%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 25% 45%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 35% 65%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 45% 85%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 65% 35%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 75% 55%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 85% 75%, #fff, transparent 1.5px),
    radial-gradient(1.5px 1.5px at 95% 95%, #fff, transparent 1.5px);
  background-size: 10% 10%;
  animation: moveStars 120s linear infinite;
}

.layer-2 {
  background-image: 
    radial-gradient(1px 1px at 5% 15%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 15% 35%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 25% 55%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 35% 75%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 45% 95%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 55% 25%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 65% 45%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 75% 65%, #ddd, transparent 1px),
    radial-gradient(1px 1px at 85% 85%, #ddd, transparent 1px);
  background-size: 20% 20%;
  animation: moveStars 200s linear infinite reverse;
}

.layer-3 {
  background-image: 
    radial-gradient(2px 2px at 12% 12%, #fff, transparent 2px),
    radial-gradient(2px 2px at 32% 32%, #fff, transparent 2px),
    radial-gradient(2px 2px at 52% 52%, #fff, transparent 2px),
    radial-gradient(2px 2px at 72% 72%, #fff, transparent 2px),
    radial-gradient(2px 2px at 92% 92%, #fff, transparent 2px);
  background-size: 25% 25%;
  animation: moveStars 300s linear infinite;
}

@keyframes moveStars {
  from { transform: translate(0, 0); }
  to { transform: translate(-10%, -10%); }
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 2px solid rgba(117, 246, 162, 0.92);
  outline-offset: 4px;
}

.atmosphere-canvas {
  display: none !important;
}

.site-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.broadcast-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100%;
  gap: clamp(12px, 2vh, 22px);
  overflow: hidden;
}

.archive-label {
  margin: 0;
  color: rgba(231, 224, 202, 0.56);
  font-size: clamp(0.68rem, 1.8vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 18px rgba(240, 164, 58, 0.22);
}

 .television {
  position: relative;
  width: min(96vw, 1180px);
  filter: drop-shadow(0 46px 70px rgba(0, 0, 0, 0.86));
  perspective: 1200px;
}



.tv-body {
  position: relative;
  padding: clamp(16px, 2.8vw, 34px);
  border: 1px solid rgba(255, 246, 211, 0.11);
  border-radius: clamp(26px, 4.8vw, 62px);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 5rem),
    radial-gradient(circle at 74% 15%, rgba(255, 255, 255, 0.08), transparent 7rem),
    linear-gradient(145deg, rgba(255, 245, 211, 0.08), transparent 17%),
    linear-gradient(135deg, var(--plastic-warm), var(--plastic) 42%, #120f0d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -18px 38px rgba(0, 0, 0, 0.56),
    0 2px 1px rgba(255, 255, 255, 0.08),
    0 80px 90px rgba(0, 0, 0, 0.72);
  transform: rotateX(1deg);
}

.tv-body::before,
.tv-body::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tv-body::before {
  inset: 10px;
  border-radius: calc(clamp(26px, 4.8vw, 62px) - 8px);
  border: 1px solid rgba(0, 0, 0, 0.58);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.55),
    inset 0 0 1px rgba(255, 255, 255, 0.2);
}

.tv-body::after {
  right: 5.5%;
  bottom: 5%;
  width: 38%;
  height: 9%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  filter: blur(22px);
  transform: rotate(-4deg);
}

.cabinet-grain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.36;
}

.cabinet-grain::before {
  content: "";
  position: absolute;
  inset: -60%;
  background-image:
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(7deg, transparent 0 11px, rgba(0, 0, 0, 0.2) 11px 12px);
  transform: rotate(4deg);
}

.cabinet-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 76%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 28%, rgba(0, 0, 0, 0.34) 0 1px, transparent 1.6px),
    radial-gradient(circle at 48% 62%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.5px);
  background-size: 35px 39px, 54px 45px, 72px 64px;
}

.tv-face {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(168px, 21vw, 245px);
  gap: clamp(15px, 2.2vw, 28px);
  align-items: stretch;
}

.screen-housing {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: clamp(22px, 4vw, 54px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent 12%),
    radial-gradient(circle at 12% 16%, rgba(221, 203, 160, 0.16), transparent 18rem),
    linear-gradient(150deg, #11100f, #2a2823 45%, #100f0d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 249, 225, 0.11),
    inset 0 12px 18px rgba(255, 255, 255, 0.06),
    inset 0 -24px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.78);
}

.brand-plate {
  position: absolute;
  left: clamp(26px, 3.8vw, 52px);
  top: clamp(4px, 0.6vw, 8px);
  z-index: 2;
  max-width: calc(100% - 80px);
  color: rgba(237, 229, 202, 0.40);
  font-size: clamp(0.44rem, 0.68vw, 0.58rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.85);
}

.crt-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: clamp(9px, 1.8vw, 19px);
  border-radius: var(--screen-radius);
  background:
    radial-gradient(circle at 50% 40%, rgba(190, 184, 163, 0.12), transparent 52%),
    linear-gradient(145deg, #050505, #25211b 52%, #050505);
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.09),
    0 22px 25px rgba(0, 0, 0, 0.34);
}

.crt-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: calc(var(--screen-radius) - 7px);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.52),
    inset 0 0 24px rgba(0, 0, 0, 0.78);
  pointer-events: none;
  z-index: 5;
}

.crt-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--screen-radius) - 8px);
  background:
    radial-gradient(circle at 50% 50%, #182018, #030403 68%),
    #000;
  box-shadow:
    inset 0 0 18px rgba(183, 255, 197, 0.12),
    inset 0 0 54px rgba(0, 0, 0, 0.96),
    0 0 42px rgba(99, 202, 190, 0.08);
  isolation: isolate;
  /* CRT convex bulge */
  transform: perspective(520px) scale(1.012);
  transform-style: preserve-3d;
}

/* convex highlight overlay — simulates the curved glass catching light */
.crt-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 65% at 50% 50%,
      transparent 38%,
      rgba(0, 0, 0, 0.18) 62%,
      rgba(0, 0, 0, 0.52) 82%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

.crt-glass::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 8;
  border-radius: 44%;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.42) 76%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.screen-reflection {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 44% at 36% 22%, rgba(255, 255, 255, 0.13), transparent 55%),
    linear-gradient(
      116deg,
      transparent 0 17%,
      rgba(255, 255, 255, 0.1) 22%,
      rgba(255, 255, 255, 0.032) 36%,
      transparent 47%
    );
  mix-blend-mode: screen;
  opacity: 0.78;
}

.screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
  transform: translate3d(var(--signal-jitter-x), var(--signal-jitter-y), 0);
  /* Fix WebKit/Safari overflow-hidden border-radius clipping bug on mobile */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.artwork-video,
.broadcast-canvas,
.static-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Video is the only content layer — sits above everything */
.artwork-video {
  z-index: 4;
  object-fit: cover;
  opacity: 0;
  border-radius: inherit;
}

.artwork-video.has-video {
  opacity: 1;
}

/* Canvas layers permanently hidden - REMOVED !important from static-canvas to allow snow effect */
.broadcast-canvas {
  display: none !important;
}

.static-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  opacity: var(--static-opacity);
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.is-tuning .static-canvas, 
.booting .static-canvas {
  animation: staticNoise 0.2s steps(4) infinite;
}

@keyframes staticNoise {
  0% { background-position: 0 0; }
  25% { background-position: 10px 10px; }
  50% { background-position: -5px -5px; }
  75% { background-position: -10px 5px; }
  100% { background-position: 5px -10px; }
}

.screen-off-state {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(41, 56, 42, 0.34), transparent 28%),
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.94) 62%),
    #020202;
  opacity: 1;
  transition: opacity 200ms ease;
}

.shutting-down .screen-content {
  animation: crtShutdown 250ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes crtShutdown {
  0% {
    transform: scaleX(1) scaleY(1);
    filter: brightness(1);
  }
  40% {
    transform: scaleX(1) scaleY(0.005);
    filter: brightness(1.5);
  }
  100% {
    transform: scaleX(0) scaleY(0);
    filter: brightness(5);
    opacity: 0;
  }
}

.screen-off-state span {
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: rgba(210, 255, 221, 0.18);
  box-shadow: 0 0 24px rgba(210, 255, 221, 0.15);
  opacity: 0.22;
}

.is-on .screen-off-state {
  opacity: 0;
  pointer-events: none;
}

.startup-flash {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(228, 255, 234, 0.82), rgba(154, 255, 204, 0.22) 30%, transparent 54%),
    linear-gradient(180deg, transparent 48%, rgba(255, 255, 255, 0.92) 50%, transparent 52%);
  mix-blend-mode: screen;
}

.booting .startup-flash {
  animation: crtBoot 600ms cubic-bezier(0.17, 0.84, 0.44, 1) both;
}

@keyframes crtBoot {
  0% {
    opacity: 0;
    transform: scaleY(0.012);
    filter: blur(4px);
  }
  20% {
    opacity: 1;
    transform: scaleY(0.018);
  }
  40% {
    opacity: 0.8;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(1.05);
    filter: blur(0);
  }
}

.signal-tear {
  position: absolute;
  inset: -8%;
  z-index: 7;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(180deg, transparent 0 21%, rgba(255, 255, 255, 0.14) 22%, transparent 24%),
    linear-gradient(180deg, transparent 0 58%, rgba(117, 246, 162, 0.08) 60%, transparent 63%);
  transform: translateY(0);
  mix-blend-mode: screen;
}

.is-on .signal-tear {
  animation: tearDrift 4.7s steps(8, end) infinite;
}

.tracking-band {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 10%;
  z-index: 7;
  height: 9%;
  pointer-events: none;
  opacity: 0.25;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.25), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 12px);
  mix-blend-mode: overlay;
  filter: blur(0.4px);
}

.is-on .tracking-band {
  animation: tracking 6.2s linear infinite;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0,
      rgba(0, 0, 0, 0.18) 1px,
      rgba(255, 255, 255, 0.035) 2px,
      rgba(255, 255, 255, 0.035) 3px
    );
  opacity: 0.84;
  mix-blend-mode: multiply;
}

.rgb-separation {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.46;
  background:
    linear-gradient(90deg, rgba(255, 0, 0, 0.08), transparent 22%, rgba(0, 255, 255, 0.08) 78%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 0, 64, 0.08) 0 1px, rgba(0, 255, 255, 0.07) 1px 2px, transparent 2px 4px);
  mix-blend-mode: screen;
}

.dead-pixels {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    radial-gradient(circle at 11% 22%, rgba(0, 0, 0, 0.95) 0 1px, transparent 1.8px),
    radial-gradient(circle at 67% 71%, rgba(255, 255, 255, 0.56) 0 0.8px, transparent 1.6px),
    radial-gradient(circle at 83% 38%, rgba(0, 0, 0, 0.92) 0 1px, transparent 1.8px),
    radial-gradient(circle at 41% 52%, rgba(255, 255, 255, 0.28) 0 0.8px, transparent 1.4px);
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 13;
  pointer-events: none;
  box-shadow:
    inset 0 0 36px rgba(0, 0, 0, 0.94),
    inset 0 0 92px rgba(0, 0, 0, 0.82),
    inset 0 0 8px rgba(163, 255, 196, 0.12);
}

.osd {
  display: none;
}

/* ── Channel switch glitch effect ── */
@keyframes channelFlash {
  0%   { filter: brightness(3) saturate(0) contrast(4); opacity: 0.2; }
  6%   { filter: brightness(4) saturate(0) contrast(6); opacity: 1; }
  12%  { filter: brightness(2.2) saturate(2) contrast(2); opacity: 1; }
  22%  { filter: brightness(1.6) saturate(1.5) contrast(1.3); opacity: 1; }
  45%  { filter: brightness(1.2) saturate(1.2) contrast(1.1); opacity: 1; }
  100% { filter: brightness(1) saturate(1) contrast(1); opacity: 1; }
}

.screen-content.channel-flash {
  animation: channelFlash 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}



.control-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(150px, 1fr) auto auto;
  gap: clamp(10px, 1.5vw, 15px);
  align-content: start;
  padding: clamp(8px, 1vw, 12px) clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px);
  border-radius: clamp(20px, 3.4vw, 40px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 14%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #28241f, #171512 58%, #0e0d0b);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 211, 0.1),
    inset 0 -18px 38px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(0, 0, 0, 0.68);
}

.control-panel::before,
.control-panel::after {
  content: none;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 27px;
}

/* Audio toggle in status-strip — small size on desktop too */
.status-strip .audio-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0;
  min-height: unset;
}

.status-light {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #230d09;
  box-shadow:
    inset 0 2px 3px rgba(255, 221, 184, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.86),
    0 0 0 1px rgba(0, 0, 0, 0.78),
    0 0 10px rgba(69, 15, 8, 0.3);
}

.is-on .status-light {
  background: #ef3d25;
  box-shadow:
    inset 0 1px 3px rgba(255, 240, 206, 0.48),
    inset 0 -2px 4px rgba(70, 6, 2, 0.72),
    0 0 16px rgba(239, 61, 37, 0.8),
    0 0 0 1px rgba(255, 214, 194, 0.2);
}

.is-tuning .status-light,
.glitch-pulse .status-light {
  animation: indicatorFlicker 130ms steps(2, end) infinite;
}

.power-switch,
.audio-toggle,
.bullshit-button,
.channel-knob {
  -webkit-tap-highlight-color: transparent;
}

.power-switch-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 72px;
}

.power-switch {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.switch-track {
  position: relative;
  display: block;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #0a0806, #1a1510);
  box-shadow:
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.9),
    inset 0 3px 8px rgba(0, 0, 0, 0.8),
    inset 0 -1px 2px rgba(255, 246, 211, 0.06),
    0 0 0 1px rgba(255, 246, 211, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.5);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.switch-track::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(255,255,255,0.03));
  pointer-events: none;
  z-index: 0;
}

.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 15%),
    radial-gradient(circle, #6a5f52 0 30%, #2e2820 31% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.6),
    inset 0 -4px 6px rgba(0, 0, 0, 0.5),
    inset 0 3px 5px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.55);
  transition: left 280ms cubic-bezier(0.34, 1.56, 0.64, 1), background 300ms ease, box-shadow 300ms ease;
  z-index: 1;
}

/* notch on thumb */
.switch-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 246, 211, 0.18);
  transform: translate(-50%, -50%);
}

.is-on #powerButton .switch-track {
  background:
    linear-gradient(180deg, #0d0a07, #1c1108);
  box-shadow:
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.9),
    inset 0 3px 8px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 246, 211, 0.1),
    0 0 18px rgba(239, 61, 37, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.is-on #powerButton .switch-thumb {
  left: 36px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 15%),
    radial-gradient(circle, #c94020 0 30%, #5a1208 31% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.5),
    inset 0 -4px 6px rgba(0, 0, 0, 0.4),
    inset 0 3px 5px rgba(255, 200, 150, 0.15),
    0 0 0 1px rgba(255, 180, 100, 0.15),
    0 0 18px rgba(239, 61, 37, 0.65),
    0 4px 8px rgba(0, 0, 0, 0.4);
}

.power-switch:active .switch-thumb {
  width: 28px;
}

.power-switch:focus-visible .switch-track {
  outline: 2px solid rgba(117, 246, 162, 0.72);
  outline-offset: 3px;
}

.channel-readout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 10px;
  min-height: 46px;
  padding: 8px 11px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(117, 246, 162, 0.08), transparent 80%),
    #080907;
  color: rgba(211, 250, 215, 0.72);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow:
    inset 0 0 0 1px rgba(117, 246, 162, 0.14),
    inset 0 0 18px rgba(0, 0, 0, 0.9);
}

.channel-readout span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.channel-readout strong {
  color: rgba(217, 255, 225, 0.94);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  text-shadow: 0 0 13px rgba(117, 246, 162, 0.6);
}

.knob-module {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 15px 0;
}

.channel-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  pointer-events: none;
}

.channel-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 18px;
  margin: -9px 0 0 -13px;
  color: rgba(238, 231, 204, 0.58);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 1px 1px #000;
  transform:
    rotate(var(--tick-angle))
    translateY(calc(clamp(92px, 10.5vw, 112px) * -1))
    rotate(calc(var(--tick-angle) * -1));
}

.channel-tick::before {
  display: none;
}

.channel-tick-collected {
  color: #ff3b30;
  text-shadow: 0 0 6px rgba(255, 59, 48, 0.55), 0 1px 1px #000;
}

.channel-knob {
  position: relative;
  z-index: 1;
  width: clamp(108px, 13vw, 148px);
  height: clamp(108px, 13vw, 148px);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  transform: rotate(var(--knob-angle));
  touch-action: none;
  filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.58));
}

.channel-knob:active {
  cursor: grabbing;
}

.channel-knob[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.knob-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2), transparent 17%),
    radial-gradient(circle at 50% 50%, #5b5146 0 16%, #322b24 17% 47%, #15120f 48% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 -16px 22px rgba(0, 0, 0, 0.62),
    inset 0 12px 12px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.knob-face::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 246, 211, 0.12);
}

.knob-indicator {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 7px;
  height: 30%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(255, 239, 196, 0.68), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 8px rgba(240, 164, 58, 0.28);
  transform: translateX(-50%);
}

.knob-screw {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, rgba(0, 0, 0, 0.6) 45% 55%, transparent 56%),
    radial-gradient(circle at 35% 28%, #b7ab90, #342f28 76%);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7);
}

.analog-dials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
}

.analog-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.analog-dial {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  min-width: 36px;
  max-width: 58px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transform: rotate(var(--dial-angle, -135deg));
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55));
  transition: filter 120ms ease;
}

.analog-dial:active {
  cursor: grabbing;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.45));
}

.analog-dial:focus-visible {
  outline: none;
}

.analog-dial:focus-visible .dial-face {
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 -10px 14px rgba(0, 0, 0, 0.62),
    inset 0 8px 8px rgba(255, 255, 255, 0.07),
    0 0 0 2px rgba(117, 246, 162, 0.72);
}

.dial-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 50% 50%, #4a4338 0 14%, #2c2620 15% 44%, #13110e 45% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 -10px 14px rgba(0, 0, 0, 0.62),
    inset 0 8px 8px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dial-face::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 246, 211, 0.1);
}

/* Notch marks around the dial */
.dial-face::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: none;
  mask: none;
  -webkit-mask: none;
}

.dial-indicator {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 28%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.4), rgba(255, 239, 196, 0.72), rgba(0,0,0,0.32));
  box-shadow: 0 0 6px rgba(240, 164, 58, 0.36);
  transform: translateX(-50%);
  pointer-events: none;
}

.dial-screw {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, rgba(0,0,0,0.6) 45% 55%, transparent 56%),
    radial-gradient(circle at 35% 28%, #a09078, #2e2a22 76%);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.7);
  pointer-events: none;
}

.dial-label {
  font-family: "Courier New", ui-monospace, Consolas, monospace;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 228, 206, 0.46);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  pointer-events: none;
  user-select: none;
}

.button-bank {
  display: grid;
  gap: 18px;
}

.bullshit-button {
  position: relative;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 247, 218, 0.13), rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, #1b1814, #080706);
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 190, 0.08),
    inset 0 8px 12px rgba(255, 255, 255, 0.035),
    inset 0 -10px 14px rgba(0, 0, 0, 0.75),
    0 5px 0 #050403,
    0 11px 14px rgba(0, 0, 0, 0.35);
}

.bullshit-button::before {
  content: "";
  position: absolute;
  inset: 7px 10px 9px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #756a5b, #2b251f 64%, #16120f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 210, 0.12),
    inset 0 -8px 10px rgba(0, 0, 0, 0.55),
    inset 0 7px 10px rgba(255, 255, 255, 0.05);
}

.bullshit-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 246, 211, 0.15);
  transform: translateX(-50%);
}

.bullshit-button span {
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 30%;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

.bullshit-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 190, 0.08),
    inset 0 4px 10px rgba(0, 0, 0, 0.64),
    0 1px 0 #090706,
    0 4px 10px rgba(0, 0, 0, 0.24);
}

.bullshit-button:active::before {
  inset: 10px 10px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 24%),
    linear-gradient(180deg, #4c443a, #211c17 68%, #120f0d);
}

.audio-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 211, 0.08),
    inset 0 -8px 15px rgba(0, 0, 0, 0.36);
}

.audio-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(236, 228, 206, 0.32);
  box-shadow: 0 0 0 rgba(117, 246, 162, 0);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.audio-on .audio-icon {
  background: var(--green);
  box-shadow: 0 0 14px rgba(117, 246, 162, 0.72);
}

.tv-feet {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: -18px;
  z-index: -1;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.tv-feet span {
  width: clamp(78px, 12vw, 138px);
  height: clamp(18px, 2.7vw, 29px);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #14110e, #060504);
  box-shadow: 0 13px 23px rgba(0, 0, 0, 0.62);
}

.transmission-log {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(280px, 640px);
  align-items: end;
  gap: clamp(14px, 3vw, 38px);
  width: min(96vw, 1180px);
  color: rgba(238, 231, 204, 0.88);
}

.log-kicker {
  display: block;
  margin-bottom: 6px;
  color: rgba(117, 246, 162, 0.62);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.transmission-log h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 2.7rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow:
    2px 0 rgba(255, 0, 64, 0.32),
    -2px 0 rgba(0, 255, 255, 0.26),
    0 0 28px rgba(240, 164, 58, 0.12);
}

.transmission-log p {
  margin: 0;
  color: rgba(238, 231, 204, 0.66);
  font-size: clamp(0.86rem, 1.8vw, 1.02rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ── COLLECTED BY BANNER ──────────────────────────────────────── */
.collected-banner {
  position: absolute;
  top: clamp(10px, 2.4vw, 18px);
  left: clamp(10px, 2.4vw, 18px);
  z-index: 17;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  max-width: calc(100% - 2 * clamp(10px, 2.4vw, 18px));
  padding: clamp(6px, 1.2vh, 10px) clamp(10px, 2vw, 16px);
  border: 1px solid rgba(117, 246, 162, 0.55);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7);
  text-align: left;
  opacity: 0;
  transform: translateX(-18px) scale(0.94);
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(117, 246, 162, 0.1),
    0 0 24px rgba(117, 246, 162, 0.14);
}

.is-on .collected-banner.collected-banner-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.collected-banner-label {
  flex-shrink: 0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.4rem, 0.95vw, 0.52rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(236, 228, 206, 0.6);
  text-transform: uppercase;
  white-space: nowrap;
}

.collected-banner-name {
  overflow: hidden;
  max-width: 100%;
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(0.68rem, 1.8vw, 0.95rem);
  letter-spacing: 0.03em;
  color: rgba(117, 246, 162, 0.94);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid rgba(117, 246, 162, 0.45);
  text-shadow: 0 0 8px rgba(117, 246, 162, 0.5);
}

.collected-banner-name:hover,
.collected-banner-name:focus-visible {
  color: #fff;
  border-bottom-color: rgba(117, 246, 162, 0.95);
  text-shadow: 0 0 16px rgba(117, 246, 162, 0.9);
}

.info-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  padding: clamp(14px, 3vw, 22px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.82) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.info-overlay.info-visible {
  opacity: 1;
  pointer-events: auto;
}

.info-overlay-inner {
  width: 100%;
  display: grid;
  gap: 6px;
  transform: translateY(8px);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.info-overlay.info-visible .info-overlay-inner {
  transform: translateY(0);
}

.info-channel-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(117, 246, 162, 0.52);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(117, 246, 162, 0.9);
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(0.82rem, 1.6vw, 1.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(117, 246, 162, 0.6);
  width: fit-content;
}

.info-title {
  margin: 0;
  color: #fff;
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    2px 0 rgba(255, 0, 64, 0.5),
    -2px 0 rgba(0, 255, 255, 0.45),
    0 0 22px rgba(240, 164, 58, 0.28);
  line-height: 1.1;
}

.info-statement {
  margin: 0;
  color: rgba(236, 228, 206, 0.78);
  font-family: "Share Tech Mono", "Courier New", monospace;
  font-size: clamp(0.62rem, 1.4vw, 0.82rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.info-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 246, 211, 0.12);
  color: rgba(236, 228, 206, 0.44);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.5rem, 1.1vw, 0.64rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── INFO TOGGLE BUTTON ──────────────────────────────────────── */
.info-toggle-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-width: 24px;
  max-width: 38px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55));
  transition: filter 120ms ease;
  background: transparent;
}

.info-toggle-btn:active {
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.45));
}

.info-toggle-btn:focus-visible {
  outline: none;
}

.info-toggle-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 50% 50%, #4a4338 0 14%, #2c2620 15% 44%, #13110e 45% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 -10px 14px rgba(0, 0, 0, 0.62),
    inset 0 8px 8px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.info-toggle-face::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 246, 211, 0.1);
}

/* Notch marks around the toggle face */
.info-toggle-face::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: none;
  mask: none;
  -webkit-mask: none;
}

.info-toggle-label-inner {
  position: relative;
  z-index: 1;
  color: rgba(236, 228, 206, 0.52);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.44rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  transition: color 260ms ease;
}

.info-toggle-btn.info-on .info-toggle-face {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.26), transparent 16%),
    radial-gradient(circle at 50% 50%, #2a5040 0 14%, #143028 15% 44%, #0a1a14 45% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.62),
    inset 0 -10px 14px rgba(0, 0, 0, 0.5),
    inset 0 8px 8px rgba(117, 246, 162, 0.08),
    0 0 0 1px rgba(117, 246, 162, 0.22),
    0 0 16px rgba(117, 246, 162, 0.28);
}

.info-toggle-btn.info-on .info-toggle-label-inner {
  color: rgba(117, 246, 162, 0.88);
  text-shadow: 0 0 8px rgba(117, 246, 162, 0.6);
}

.info-toggle-btn:focus-visible .info-toggle-face {
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 -10px 14px rgba(0, 0, 0, 0.62),
    inset 0 8px 8px rgba(255, 255, 255, 0.07),
    0 0 0 2px rgba(117, 246, 162, 0.72);
}



/* ── Custom BS update: textless controls, BULLSHIT readout, credits/booklet panels ── */
.channel-readout.bullshit-readout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 32px;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 6px 14px 6px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 18%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 54%, rgba(255, 32, 72, 0.22), transparent 72%),
    linear-gradient(180deg, #1b0508, #070202 72%, #020101);
  color: rgba(255, 214, 220, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 92, 112, 0.24),
    inset 0 0 20px rgba(255, 32, 72, 0.16),
    inset 0 -12px 18px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(0, 0, 0, 0.78),
    0 9px 16px rgba(0, 0, 0, 0.32);
}

.channel-readout.bullshit-readout::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px 11px 4px 11px;
  border: 1px solid rgba(255, 214, 194, 0.08);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 34% 100%);
  pointer-events: none;
}

.channel-readout.bullshit-readout::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 50%;
  height: 2px;
  background: rgba(255, 210, 216, 0.18);
  box-shadow: 0 0 10px rgba(255, 32, 72, 0.5);
  transform: rotate(-4deg);
  opacity: 0.8;
  pointer-events: none;
}

.channel-readout.bullshit-readout strong {
  position: relative;
  z-index: 1;
  color: rgba(255, 230, 232, 0.96);
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    2px 0 rgba(255, 0, 64, 0.62),
    -2px 0 rgba(0, 255, 255, 0.28),
    0 0 14px rgba(255, 32, 72, 0.72);
}

.text-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 21;
  display: grid;
  place-items: center;
  padding: clamp(15px, 3.5vw, 30px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(117, 246, 162, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.94));
  color: rgba(231, 255, 220, 0.92);
  font-family: "Share Tech Mono", "Courier New", monospace;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.text-panel-overlay.panel-visible {
  opacity: 1;
  pointer-events: auto;
}

.credits-overlay::before,
.booklet-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(255, 0, 64, 0.06), transparent 23% 77%, rgba(0, 255, 255, 0.06));
  mix-blend-mode: screen;
  pointer-events: none;
}

.credits-roll {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 100%;
  display: grid;
  gap: clamp(12px, 2.4vw, 22px);
  text-align: center;
  text-transform: uppercase;
  animation: creditsCrawl 18s linear forwards;
}

.panel-visible .credits-roll {
  animation-play-state: running;
}

.credits-heading {
  color: #fff;
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(1.7rem, 5vw, 3.3rem);
  letter-spacing: 0.12em;
  text-shadow:
    2px 0 rgba(255, 0, 64, 0.62),
    -2px 0 rgba(0, 255, 255, 0.48),
    0 0 22px rgba(117, 246, 162, 0.34);
}

.credit-row {
  display: grid;
  gap: 4px;
}

.credit-role {
  color: rgba(117, 246, 162, 0.64);
  font-size: clamp(0.62rem, 1.5vw, 0.86rem);
  letter-spacing: 0.18em;
}

.credit-value {
  color: rgba(255, 250, 230, 0.95);
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(1.1rem, 3.2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.credits-footer-text {
  margin-top: clamp(14px, 4vw, 32px);
  color: rgba(255, 180, 190, 0.84);
  font-size: clamp(0.7rem, 1.8vw, 0.95rem);
  letter-spacing: 0.16em;
}

.booklet-card {
  position: relative;
  z-index: 1;
  width: min(88%, 520px);
  max-height: 84%;
  overflow: auto;
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid rgba(117, 246, 162, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%),
    rgba(5, 9, 7, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 34px rgba(117, 246, 162, 0.12);
}

.booklet-card h2,
.booklet-card h3,
.booklet-card p {
  margin: 0;
}

.booklet-card h2 {
  color: #fff;
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booklet-subtitle {
  margin-top: 2px !important;
  margin-bottom: 14px !important;
  color: rgba(255, 180, 190, 0.78);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booklet-card section {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 246, 211, 0.1);
}

.booklet-card h3 {
  margin-bottom: 5px;
  color: rgba(117, 246, 162, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.booklet-card p {
  color: rgba(236, 228, 206, 0.78);
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  line-height: 1.5;
}

.utility-toggle-btn,
.info-toggle-btn {
  -webkit-tap-highlight-color: transparent;
}

.utility-toggle-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-width: 24px;
  max-width: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.55));
  transition: transform 120ms ease, filter 120ms ease;
}

.utility-toggle-btn:active,
.info-toggle-btn:active {
  transform: translateY(2px);
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.42));
}

.utility-button-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #655b4d, #211c17 62%, #0f0c09);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.75),
    inset 0 -9px 13px rgba(0, 0, 0, 0.58),
    inset 0 7px 9px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 246, 211, 0.1);
}

.credits-face {
  border-radius: 50% 50% 13px 13px;
}

.booklet-face {
  border-radius: 9px 3px 9px 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #31433a, #18241f 62%, #0a0f0d);
}

.utility-button-glyph {
  position: relative;
  z-index: 1;
  width: 52%;
  height: 52%;
  opacity: 0.56;
  pointer-events: none;
}

.credits-glyph {
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(255, 246, 211, 0.55) 15% 23%, transparent 23% 38%, rgba(255, 246, 211, 0.55) 38% 46%, transparent 46% 61%, rgba(255, 246, 211, 0.55) 61% 69%, transparent 69%),
    linear-gradient(180deg, transparent 0 68%, rgba(255, 246, 211, 0.28) 68% 78%, transparent 78%);
}

.booklet-glyph {
  border: 2px solid rgba(255, 246, 211, 0.45);
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(255, 246, 211, 0.42) 73% 100%),
    repeating-linear-gradient(180deg, transparent 0 5px, rgba(255, 246, 211, 0.3) 5px 6px, transparent 6px 10px);
}

.utility-toggle-btn.utility-on .utility-button-face,
.info-toggle-btn.info-on .info-toggle-face {
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.62),
    inset 0 -9px 13px rgba(0, 0, 0, 0.42),
    inset 0 7px 9px rgba(117, 246, 162, 0.09),
    0 0 0 1px rgba(117, 246, 162, 0.24),
    0 0 16px rgba(117, 246, 162, 0.25);
}

.info-toggle-btn {
  aspect-ratio: 1.16 / 1;
  border-radius: 14px 4px 14px 4px;
}

.info-toggle-face {
  border-radius: 14px 4px 14px 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 50% 50%, #61422b 0 20%, #2d1d14 21% 58%, #120d0a 59% 100%);
}

.info-toggle-face::before {
  inset: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 164, 58, 0.16);
  box-shadow: inset 0 0 0 1px rgba(240, 164, 58, 0.25), 0 0 10px rgba(240, 164, 58, 0.14);
}

.info-toggle-face::after {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 246, 211, 0.48);
  mask: none;
  -webkit-mask: none;
  transform: translate(-50%, -50%);
}

@keyframes creditsCrawl {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-100% - 115vh)); }
}


/* ── Edit 2: nostalgic analog bottom buttons ───────────────────────────── */
.analog-dials {
  position: relative;
  gap: 10px;
  padding: 9px 8px 10px;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 246, 211, 0.055), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 7px),
    #15120f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 211, 0.08),
    inset 0 10px 18px rgba(255,255,255,0.025),
    inset 0 -12px 18px rgba(0,0,0,0.52),
    0 1px 0 rgba(255,255,255,0.04);
}

.analog-dials::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 5px;
  height: 1px;
  background: rgba(255, 246, 211, 0.1);
  box-shadow: 0 36px 0 rgba(0,0,0,0.22);
  pointer-events: none;
}

.analog-dial-wrap {
  position: relative;
  min-width: 0;
}

.utility-toggle-btn,
.info-toggle-btn {
  width: clamp(42px, 5vw, 60px);
  max-width: 60px;
  min-width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateZ(0);
  filter: drop-shadow(0 8px 9px rgba(0,0,0,0.58));
}

.utility-toggle-btn::before,
.info-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 27%, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(145deg, #8a7b62, #2c261e 45%, #0c0a08 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 211, 0.18),
    inset 0 -7px 12px rgba(0,0,0,0.72),
    0 0 0 1px rgba(0,0,0,0.82);
}

.utility-toggle-btn::after,
.info-toggle-btn::after {
  display: none;
}

.utility-button-face,
.info-toggle-face {
  z-index: 1;
  inset: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.32), transparent 15%),
    radial-gradient(circle at 50% 38%, #7b2b22 0 19%, #40130f 20% 54%, #160a08 55% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,0.68),
    inset 0 -11px 12px rgba(0,0,0,0.66),
    inset 0 6px 9px rgba(255,255,255,0.09),
    0 0 0 1px rgba(255,246,211,0.12);
}

.credits-face {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.32), transparent 15%),
    radial-gradient(circle at 50% 38%, #8b2b24 0 19%, #43120f 20% 54%, #160907 55% 100%);
}

.booklet-face {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.27), transparent 15%),
    radial-gradient(circle at 50% 38%, #5b6d48 0 19%, #26351f 20% 54%, #0b1209 55% 100%);
}

.info-toggle-face {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.29), transparent 15%),
    radial-gradient(circle at 50% 38%, #b1712b 0 19%, #533018 20% 54%, #170d08 55% 100%);
}

.utility-button-face::before,
.info-toggle-face::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 211, 0.12);
  background: transparent;
  box-shadow: inset 0 0 7px rgba(0,0,0,0.35);
}

.utility-button-face::after,
.info-toggle-face::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 22%;
  border-radius: 999px;
  background: rgba(255, 238, 190, 0.42);
  box-shadow: 0 0 5px rgba(240, 164, 58, 0.24);
  transform: translateX(-50%);
  mask: none;
  -webkit-mask: none;
}

.utility-button-glyph {
  z-index: 2;
  width: 42%;
  height: 42%;
  opacity: 0.55;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.7));
}

.credits-glyph {
  border-radius: 2px;
  background:
    linear-gradient(180deg, transparent 0 12%, rgba(255,246,211,0.5) 12% 22%, transparent 22% 39%, rgba(255,246,211,0.5) 39% 49%, transparent 49% 66%, rgba(255,246,211,0.5) 66% 76%, transparent 76%),
    linear-gradient(90deg, rgba(255,246,211,0.38), rgba(255,246,211,0.08));
}

.booklet-glyph {
  width: 38%;
  height: 46%;
  border: 1px solid rgba(255,246,211,0.5);
  border-left-width: 4px;
  border-radius: 2px 5px 5px 2px;
  background:
    repeating-linear-gradient(180deg, transparent 0 5px, rgba(255,246,211,0.34) 5px 6px, transparent 6px 9px),
    rgba(255,246,211,0.08);
}

.utility-toggle-btn:active,
.info-toggle-btn:active,
.utility-toggle-btn.utility-on,
.info-toggle-btn.info-on {
  transform: translateY(3px) scale(0.96);
  filter: drop-shadow(0 4px 5px rgba(0,0,0,0.48));
}

.utility-toggle-btn.utility-on .utility-button-face,
.info-toggle-btn.info-on .info-toggle-face {
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,0.55),
    inset 0 -7px 11px rgba(0,0,0,0.46),
    inset 0 5px 10px rgba(255,255,255,0.08),
    0 0 0 1px rgba(255,246,211,0.18),
    0 0 16px rgba(240, 164, 58, 0.22);
}

.utility-toggle-btn.utility-on::before,
.info-toggle-btn.info-on::before {
  background:
    radial-gradient(circle at 35% 27%, rgba(255,255,255,0.22), transparent 18%),
    linear-gradient(145deg, #b29b78, #3c3124 45%, #0d0a08 100%);
}

.channel-readout.bullshit-readout strong {
  font-size: clamp(1.08rem, 2.25vw, 1.58rem);
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.is-tuning {
  --static-opacity: 1;
  --screen-flicker: 0.3;
}

.is-tuning .artwork-video {
  opacity: 0 !important;
}

.is-tuning .broadcast-canvas,
.is-tuning .artwork-video {
  filter: saturate(1.8) contrast(1.8) brightness(1.15) hue-rotate(18deg);
}

.is-tuning .rgb-separation {
  opacity: 0.82;
}

.is-tuning .osd {
  opacity: 0.22;
}

.glitch-pulse {
  --static-opacity: 0.36;
}

.glitch-pulse .signal-tear {
  opacity: 0.78;
}

@keyframes indicatorFlicker {
  0% { opacity: 1; }
  50% { opacity: 0.22; }
  100% { opacity: 1; }
}

@keyframes crtBoot {
  0% {
    opacity: 0;
    transform: scaleY(0.012);
    filter: blur(4px);
  }
  20% {
    opacity: 1;
    transform: scaleY(0.018);
  }
  40% {
    opacity: 0.8;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(1.05);
    filter: blur(0);
  }
}

@keyframes tearDrift {
  0%,
  100% {
    transform: translateY(-10%);
  }
  33% {
    transform: translateY(18%);
  }
  66% {
    transform: translateY(4%);
  }
}

@keyframes tracking {
  0% {
    transform: translateY(-120%) skewX(-3deg);
    opacity: 0.06;
  }
  10%,
  19% {
    opacity: 0.24;
  }
  52% {
    transform: translateY(760%) skewX(2deg);
    opacity: 0.16;
  }
  100% {
    transform: translateY(1180%) skewX(-1deg);
    opacity: 0.04;
  }
}

@media (max-width: 860px) {
  .site-shell {
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  }

  .broadcast-stage {
    align-content: center;
    gap: 0;
    height: 100%;
    max-height: 100%;
  }

   .television {
    width: min(100%, 680px);
    max-height: none;
    height: auto;
    flex-shrink: 1;
    margin: 0 auto;
  }

  .tv-body {
    padding: clamp(8px, 2.5vw, 16px);
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .tv-face {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: none;
    height: auto;
  }

  .screen-housing {
    padding: 8px;
  }

  .crt-frame {
    width: 100%;
    height: auto;
  }

  .control-panel {
    grid-template-columns: auto 1fr minmax(100px, 0.9fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .control-panel::before,
  .control-panel::after {
    display: none;
  }

  .status-strip {
    grid-column: 1 / 4;
    justify-content: flex-start;
    min-height: 20px;
    padding-left: 2px;
  }

  .power-switches-group {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: auto;
  }

  .power-switch-wrap {
    min-height: auto;
  }

  .switch-track {
    width: 52px;
    height: 26px;
  }

  .switch-thumb {
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
  }

  .is-on #powerButton .switch-thumb {
    left: 29px;
  }

  .manifold-switch.is-active .switch-thumb {
    left: calc(100% - 29px);
  }

  .channel-readout {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .knob-module {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
    min-height: 120px;
    padding: 0;
  }

  .button-bank {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .analog-dial-wrap {
    gap: 3px;
  }

  .audio-toggle {
    grid-column: 1 / 4;
    min-height: 30px;
  }

  .channel-tick {
    transform:
      rotate(var(--tick-angle))
      translateY(calc(clamp(58px, 13vw, 70px) * -1))
      rotate(calc(var(--tick-angle) * -1));
  }

  .transmission-log {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 7px;
  }
}

@media (max-width: 520px) {
  .archive-label {
    display: none;
  }

  .tv-body {
    border-radius: 20px;
    padding: clamp(6px, 2vw, 12px);
  }

  .screen-housing {
    border-radius: 18px;
    padding: 8px;
  }

  .brand-plate {
    top: -2px;
    left: 16px;
    max-width: calc(100% - 32px);
    font-size: clamp(0.42rem, 1.4vw, 0.52rem);
    letter-spacing: 0.06em;
  }

  .crt-frame {
    padding: 6px;
  }

  .control-panel {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    max-width: 100%;
  }

  .status-strip {
    grid-column: 1 / 4;
    min-height: 20px;
  }

  .power-switches-group {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    align-items: center;
    justify-content: center;
  }

  .channel-readout {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
  }

  .channel-readout.bullshit-readout strong {
    font-size: clamp(0.9rem, 4vw, 1.4rem);
    text-align: center;
  }

  .knob-module {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    min-height: 90px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .channel-knob {
    width: 75px;
    height: 75px;
  }

  .button-bank {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 5px;
  }

  .audio-toggle {
    display: none; /* Hide redundant toggle or move it */
  }

  .channel-tick {
    font-size: 0.46rem;
    transform:
      rotate(var(--tick-angle))
      translateY(-62px)
      rotate(calc(var(--tick-angle) * -1));
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  .archive-label {
    display: none;
  }

  .broadcast-stage {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: calc(100dvh - 32px);
  }

   .television {
    width: min(91vw, 1030px);
  }

  .transmission-log p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ── Mobile scroll lock: iPhone 13 and similar portrait screens ──────────────
   Forces the TV to shrink-to-fit without any page scroll.
   Uses dvh (dynamic viewport height) which accounts for Safari's
   collapsible address/toolbar bar — the root cause of scroll on iOS.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 860px) and (max-height: 900px) {
  html, body {
    position: fixed;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
  }

  .site-shell {
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .broadcast-stage {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

   .television {
    flex-shrink: 1;
    min-height: 0;
    max-height: 100%;
  }

  .tv-body {
    max-height: 100%;
  }

  .tv-face {
    max-height: 100%;
  }
}

/* ── Final edit: restore classic readout + fully analog bottom controls ── */
.channel-readout.bullshit-readout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
  place-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 11px;
  overflow: visible;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(117, 246, 162, 0.08), transparent 80%),
    #080907;
  color: rgba(211, 250, 215, 0.72);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow:
    inset 0 0 0 1px rgba(117, 246, 162, 0.14),
    inset 0 0 18px rgba(0, 0, 0, 0.9);
}

.channel-readout.bullshit-readout::before,
.channel-readout.bullshit-readout::after {
  content: none;
}

.channel-readout.bullshit-readout strong {
  position: static;
  z-index: auto;
  color: rgba(217, 255, 225, 0.94);
  font-family: "Courier New", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(0.92rem, 1.62vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 13px rgba(117, 246, 162, 0.6);
}

.analog-dials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.analog-dials::before {
  content: none;
}

.analog-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.utility-toggle-btn,
.info-toggle-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-width: 36px;
  max-width: 58px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  touch-action: none;
  background: transparent;
  transform: rotate(var(--dial-angle, -35deg));
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55));
  transition: filter 120ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.utility-toggle-btn::before,
.utility-toggle-btn::after,
.info-toggle-btn::before,
.info-toggle-btn::after {
  content: none;
}

.utility-toggle-btn:active,
.info-toggle-btn:active,
.utility-toggle-btn.utility-on,
.info-toggle-btn.info-on {
  transform: rotate(var(--dial-angle, -35deg));
  filter: drop-shadow(0 4px 7px rgba(0,0,0,0.45));
}

.utility-button-face,
.info-toggle-face {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 50% 50%, #4a4338 0 14%, #2c2620 15% 44%, #13110e 45% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 -10px 14px rgba(0, 0, 0, 0.62),
    inset 0 8px 8px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.utility-button-face::before,
.info-toggle-face::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 246, 211, 0.1);
  background: transparent;
  box-shadow: none;
}

.utility-button-face::after,
.info-toggle-face::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: none;
  mask: none;
  -webkit-mask: none;
  transform: none;
}

.utility-button-glyph {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 2;
  width: 5px;
  height: 28%;
  border: 0;
  border-radius: 999px;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.4), rgba(255, 239, 196, 0.72), rgba(0,0,0,0.32));
  box-shadow: 0 0 6px rgba(240, 164, 58, 0.36);
  transform: translateX(-50%);
  pointer-events: none;
  filter: none;
}

.utility-toggle-btn .utility-button-face + .utility-button-glyph::after,
.info-toggle-face + .info-toggle-label-inner::after {
  content: "";
}

.utility-toggle-btn::marker,
.info-toggle-btn::marker {
  content: "";
}

.utility-toggle-btn.utility-on .utility-button-face,
.info-toggle-btn.info-on .info-toggle-face {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.26), transparent 16%),
    radial-gradient(circle at 50% 50%, #3d3826 0 14%, #2b2618 15% 44%, #141210 45% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.62),
    inset 0 -10px 14px rgba(0, 0, 0, 0.5),
    inset 0 8px 8px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 246, 211, 0.1);
}

.utility-toggle-btn:focus-visible,
.info-toggle-btn:focus-visible {
  outline: none;
}

.utility-toggle-btn:focus-visible .utility-button-face,
.info-toggle-btn:focus-visible .info-toggle-face {
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.78),
    inset 0 -10px 14px rgba(0, 0, 0, 0.62),
    inset 0 8px 8px rgba(255, 255, 255, 0.07),
    0 0 0 2px rgba(255, 246, 211, 0.5);
}

.utility-toggle-btn::after,
.info-toggle-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, rgba(0,0,0,0.6) 45% 55%, transparent 56%),
    radial-gradient(circle at 35% 28%, #a09078, #2e2a22 76%);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* ── Final redesign: old-TV rotary two-state switches (left=off, right=on) ── */
.analog-dials {
  gap: 12px;
  padding: 10px 9px 11px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 246, 211, 0.075), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 50% 0%, rgba(240, 164, 58, 0.055), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 6px),
    #17130f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 211, 0.085),
    inset 0 8px 16px rgba(255, 255, 255, 0.025),
    inset 0 -14px 22px rgba(0, 0, 0, 0.54),
    0 8px 14px rgba(0, 0, 0, 0.18);
}

.analog-dial-wrap {
  gap: 0;
}

.utility-toggle-btn,
.info-toggle-btn {
  --rotary-angle: -52deg;
  width: clamp(48px, 5.4vw, 66px);
  min-width: 48px;
  max-width: 66px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: none !important;
  filter: drop-shadow(0 9px 11px rgba(0, 0, 0, 0.6));
  transition: filter 140ms ease;
}

.utility-toggle-btn.utility-on,
.info-toggle-btn.info-on {
  --rotary-angle: 52deg;
  transform: none !important;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.52));
}

.utility-toggle-btn:active,
.info-toggle-btn:active {
  transform: none !important;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.45));
}

.utility-toggle-btn::before,
.info-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 50% 52%, #6f624f 0 42%, #2a241c 43% 68%, #090806 69% 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 246, 211, 0.16),
    inset 0 -8px 13px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.82),
    0 0 0 2px rgba(255, 246, 211, 0.045);
}

.utility-toggle-btn::after,
.info-toggle-btn::after {
  content: "";
  position: absolute;
  inset: -11px;
  z-index: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from -68deg,
      transparent 0deg 28deg,
      rgba(255, 246, 211, 0.24) 28deg 34deg,
      transparent 34deg 102deg,
      rgba(117, 246, 162, 0.26) 102deg 108deg,
      transparent 108deg 360deg
    );
  opacity: 0.72;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.utility-button-face,
.info-toggle-face {
  inset: 4px;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(circle at 58% 70%, rgba(0, 0, 0, 0.5), transparent 38%),
    radial-gradient(circle at 50% 50%, #55483a 0 18%, #2f271f 19% 56%, #100d0a 57% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.76),
    inset 0 -13px 16px rgba(0, 0, 0, 0.64),
    inset 0 9px 10px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 246, 211, 0.1);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.utility-button-face::before,
.info-toggle-face::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 246, 211, 0.14);
  background: transparent;
  box-shadow: none;
}

.utility-button-face::after,
.info-toggle-face::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 38%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(255, 236, 190, 0.86), rgba(0, 0, 0, 0.36));
  box-shadow:
    0 0 7px rgba(240, 164, 58, 0.32),
    inset 0 0 1px rgba(255, 255, 255, 0.28);
  transform-origin: 50% 86%;
  transform: translate(-50%, -86%) rotate(var(--rotary-angle));
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease;
  mask: none;
  -webkit-mask: none;
}

.utility-button-glyph {
  display: none;
}

.utility-toggle-btn.utility-on .utility-button-face,
.info-toggle-btn.info-on .info-toggle-face {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle at 58% 70%, rgba(0, 0, 0, 0.42), transparent 38%),
    radial-gradient(circle at 50% 50%, #514d35 0 18%, #2f271f 19% 56%, #100d0a 57% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.7),
    inset 0 -12px 15px rgba(0, 0, 0, 0.55),
    inset 0 8px 10px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 246, 211, 0.1);
}

.utility-toggle-btn.utility-on .utility-button-face::after,
.info-toggle-btn.info-on .info-toggle-face::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(255, 236, 190, 0.86), rgba(0, 0, 0, 0.36));
  box-shadow:
    0 0 7px rgba(240, 164, 58, 0.28),
    inset 0 0 1px rgba(255, 255, 255, 0.28);
}

.utility-toggle-btn:focus-visible .utility-button-face,
.info-toggle-btn:focus-visible .info-toggle-face {
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.76),
    inset 0 -13px 16px rgba(0, 0, 0, 0.64),
    inset 0 9px 10px rgba(255, 255, 255, 0.07),
    0 0 0 2px rgba(117, 246, 162, 0.72);
}

/* ───────────────────────────────────────────────────────────────────────────────
   ADDITIONS: Retro Noise background, Subtle CRT screen glitch, Manifold Switches
   ─────────────────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   CHANNEL SWITCH GLITCH — 3-phase nostalgic CRT transition
   ═══════════════════════════════════════════════════════════════════════════ */

/* Phase 1 — blackout + static burst */
@keyframes chGlitch1 {
  0%   { filter: brightness(0.04) contrast(3);   transform: translate3d(0, 0, 0); }
  18%  { filter: brightness(0.0)  contrast(1);   transform: translate3d(0, 0, 0); }
  36%  { filter: brightness(0.18) contrast(2.4); transform: translate3d(3px, -2px, 0); }
  54%  { filter: brightness(0.0)  contrast(1);   transform: translate3d(-4px, 1px, 0); }
  72%  { filter: brightness(0.08) contrast(3);   transform: translate3d(2px, 2px, 0); }
  100% { filter: brightness(0.0)  contrast(1);   transform: translate3d(0, 0, 0); }
}

/* Phase 2 — RGB colour bleed / scan tear */
@keyframes chGlitch2 {
  0%   {
    filter: brightness(0.6) saturate(4) hue-rotate(14deg) contrast(2);
    transform: translate3d(-6px, 0, 0) scaleY(1.008);
  }
  20%  {
    filter: brightness(1.4) saturate(0.2) contrast(3);
    transform: translate3d(8px, -1px, 0) scaleY(0.993);
  }
  40%  {
    filter: brightness(0.5) saturate(6) hue-rotate(-22deg) contrast(2.4);
    transform: translate3d(-3px, 2px, 0) scaleY(1.004);
  }
  60%  {
    filter: brightness(1.2) saturate(0.8) contrast(2);
    transform: translate3d(5px, 0, 0) scaleY(1);
  }
  80%  {
    filter: brightness(0.8) saturate(3) hue-rotate(8deg);
    transform: translate3d(-2px, -1px, 0);
  }
  100% {
    filter: brightness(1)   saturate(1) hue-rotate(0deg)  contrast(1);
    transform: translate3d(0, 0, 0) scaleY(1);
  }
}

/* Phase 3 — snap-in brightness */
@keyframes chGlitch3 {
  0%   { filter: brightness(2.2) contrast(1.3); transform: translate3d(0, 0, 0); }
  35%  { filter: brightness(0.7) contrast(1.1); transform: translate3d(1px, 0, 0); }
  65%  { filter: brightness(1.1) contrast(1);   transform: translate3d(0, 0, 0); }
  100% { filter: brightness(1)   contrast(1);   transform: translate3d(0, 0, 0); }
}

.screen-content.ch-glitch-1 {
  animation: chGlitch1 120ms steps(3) forwards;
}

.screen-content.ch-glitch-2 {
  animation: chGlitch2 160ms steps(4) forwards;
}

.screen-content.ch-glitch-3 {
  animation: chGlitch3 220ms ease-out forwards;
}

/* During phase 1, make the static canvas fully visible */
.screen-content.ch-glitch-1 .static-canvas {
  opacity: 0.92 !important;
}

.screen-content.ch-glitch-2 .static-canvas {
  opacity: 0.18 !important;
}

/* ────────────────────────────────────────────────────────────────────────── */

/* Overall background very subtle noise grain & analog glitch */
body::before {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.022; /* Extremely subtle and non-intrusive */
  mix-blend-mode: overlay;
  animation: bgSubtleGlitch 0.25s steps(4) infinite;
}

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

/* Extremely subtle screen content jitter */
@keyframes screenSubtleGlitch {
  0% {
    filter: brightness(1) contrast(1);
    transform: translate3d(0, 0, 0);
  }
  92% {
    filter: brightness(1) contrast(1);
    transform: translate3d(0, 0, 0);
  }
  93% {
    filter: brightness(1.02) contrast(1.02);
    transform: translate3d(0.5px, -0.5px, 0);
  }
  94% {
    filter: brightness(0.98) contrast(0.98);
    transform: translate3d(-0.5px, 0.5px, 0);
  }
  95% {
    filter: brightness(1) contrast(1);
    transform: translate3d(0, 0, 0);
  }
  98% {
    filter: brightness(1) contrast(1);
    transform: translate3d(0, 0, 0);
  }
  99% {
    filter: brightness(1.04) contrast(1.04);
    transform: translate3d(1px, 0px, 0);
  }
  100% {
    filter: brightness(1) contrast(1);
    transform: translate3d(0, 0, 0);
  }
}

.is-on .screen-content {
  animation: screenSubtleGlitch 7.5s infinite;
}

/* Power switches group styling */
.power-switches-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.switch-mini-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  font-family: "Courier New", monospace;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: rgba(236, 228, 206, 0.46);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.switch-mini-label svg {
  stroke: rgba(236, 228, 206, 0.46);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.82));
}

.manifold-logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Pulsing glow around the Manifold switch whenever the TV is powered on */
.manifold-switch {
  position: relative;
}

.is-on .manifold-switch::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1.5px solid rgba(117, 246, 162, 0.85);
  box-shadow:
    0 0 6px rgba(117, 246, 162, 0.55),
    0 0 14px rgba(117, 246, 162, 0.35),
    inset 0 0 6px rgba(117, 246, 162, 0.25);
  animation: manifoldGlowPulse 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes manifoldGlowPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Gentle pulse on the Manifold logo icon */
.is-on .manifold-icon-label .manifold-logo-icon {
  animation: manifoldLogoPulse 2.4s ease-in-out infinite;
}

@keyframes manifoldLogoPulse {
  0%, 100% {
    opacity: 0.55;
    filter: drop-shadow(0 0 0 rgba(117, 246, 162, 0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(117, 246, 162, 0.85));
  }
}

/* Manifold Switch styles when active */
.manifold-switch.is-active .switch-track {
  background: linear-gradient(180deg, #0d0a07, #0b1a11);
  box-shadow:
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.9),
    inset 0 3px 8px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 246, 211, 0.1),
    0 0 18px rgba(117, 246, 162, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.manifold-switch.is-active .switch-thumb {
  left: 36px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 15%),
    radial-gradient(circle, #75f6a2 0 30%, #155e34 31% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.5),
    inset 0 -4px 6px rgba(0, 0, 0, 0.4),
    inset 0 3px 5px rgba(180, 255, 200, 0.15),
    0 0 0 1px rgba(150, 255, 180, 0.15),
    0 0 18px rgba(117, 246, 162, 0.65),
    0 4px 8px rgba(0, 0, 0, 0.4);
}

.manifold-switch:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MANIFOLD MINT OVERLAY — direct link page
   ═══════════════════════════════════════════════════════════════════════════ */

.manifold-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(3, 5, 4, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  border-radius: inherit;
  overflow: hidden;
}

.manifold-overlay.manifold-visible {
  opacity: 1;
  pointer-events: auto;
}

.manifold-overlay-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* CRT scanline overlay */
.manifold-overlay-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.06) 0,
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px 3px
    );
  mix-blend-mode: multiply;
  opacity: 0.4;
  border-radius: inherit;
}

/* Link page */
.manifold-link-page {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vh, 18px);
  padding: clamp(18px, 4vw, 40px);
  text-align: center;
}

/* subtle noise grain on the link page */
.manifold-link-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: overlay;
}

.manifold-link-badge {
  font-family: "VT323", monospace;
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  letter-spacing: 0.22em;
  color: rgba(117, 246, 162, 0.55);
  text-transform: uppercase;
}

.manifold-link-title {
  font-family: "VT323", monospace;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  color: rgba(236, 228, 206, 0.9);
  text-transform: uppercase;
  text-shadow:
    0 0 24px rgba(117, 246, 162, 0.18),
    0 0 2px rgba(255, 255, 255, 0.12);
  line-height: 1.1;
  max-width: 80%;
}

.manifold-link-label {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.6rem, 1.4vw, 0.78rem);
  letter-spacing: 0.3em;
  color: rgba(117, 246, 162, 0.45);
  text-transform: uppercase;
  margin-top: 4px;
}

.manifold-link-collected {
  display: none;
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  letter-spacing: 0.18em;
  color: rgba(236, 228, 206, 0.55);
  text-transform: uppercase;
}

.manifold-link-collected.manifold-link-collected-visible {
  display: block;
}

.manifold-link-collected-name {
  color: rgba(117, 246, 162, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(117, 246, 162, 0.4);
  text-shadow: 0 0 8px rgba(117, 246, 162, 0.5);
}

.manifold-link-collected-name:hover,
.manifold-link-collected-name:focus-visible {
  color: #fff;
  border-bottom-color: rgba(117, 246, 162, 0.9);
}

.manifold-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(6px, 1.4vh, 14px);
  padding: clamp(10px, 1.8vh, 14px) clamp(22px, 4vw, 38px);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.08), transparent 12%),
    linear-gradient(160deg, #0d1f16, #071209);
  border: 1px solid rgba(117, 246, 162, 0.28);
  border-radius: 3px;
  color: rgba(117, 246, 162, 0.88);
  font-family: "VT323", monospace;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(117, 246, 162, 0.08),
    0 0 22px rgba(117, 246, 162, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.manifold-link-btn:hover,
.manifold-link-btn:focus-visible {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.12), transparent 16%),
    linear-gradient(160deg, #132b1d, #0a1a0e);
  border-color: rgba(117, 246, 162, 0.62);
  color: rgba(117, 246, 162, 1);
  box-shadow:
    0 0 0 1px rgba(117, 246, 162, 0.18),
    0 0 32px rgba(117, 246, 162, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.manifold-link-btn-arrow {
  font-size: 1.2em;
  line-height: 1;
  transition: transform 160ms ease;
}

.manifold-link-btn:hover .manifold-link-btn-arrow,
.manifold-link-btn:focus-visible .manifold-link-btn-arrow {
  transform: translateX(4px);
}

.manifold-link-collection {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.52rem, 1.1vw, 0.64rem);
  letter-spacing: 0.24em;
  color: rgba(236, 228, 206, 0.24);
  text-transform: uppercase;
  margin-top: 4px;
}

.shutting-down .screen-content {
  animation: crtShutdown 250ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes crtShutdown {
  0% {
    transform: scaleX(1) scaleY(1);
    filter: brightness(1);
  }
  40% {
    transform: scaleX(1) scaleY(0.005);
    filter: brightness(1.5);
  }
  100% {
    transform: scaleX(0) scaleY(0);
    filter: brightness(5);
    opacity: 0;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PDF BOOKLET MODAL — fullscreen overlay
   ═══════════════════════════════════════════════════════════════════════════════ */

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(3, 3, 3, 0.97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  font-family: "Share Tech Mono", monospace;
}

.pdf-modal.pdf-modal-open {
  opacity: 1;
  pointer-events: all;
}

.pdf-modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* ── Header bar ── */
.pdf-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(117, 246, 162, 0.12);
  background: #050505;
}

.pdf-modal-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.pdf-modal-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid rgba(117, 246, 162, 0.38);
  border-radius: 3px;
  background: rgba(117, 246, 162, 0.07);
  color: rgba(117, 246, 162, 0.88);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pdf-modal-title {
  color: rgba(236, 228, 206, 0.65);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ↗ OPEN button */
.pdf-modal-newwin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid rgba(240, 164, 58, 0.32);
  border-radius: 3px;
  background: rgba(240, 164, 58, 0.05);
  color: rgba(240, 164, 58, 0.78);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 140ms, color 140ms, border-color 140ms;
  cursor: pointer;
}

.pdf-modal-newwin:hover,
.pdf-modal-newwin:focus-visible {
  background: rgba(240, 164, 58, 0.14);
  color: rgba(240, 164, 58, 1);
  border-color: rgba(240, 164, 58, 0.58);
}

/* × close button */
.pdf-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(236, 228, 206, 0.16);
  border-radius: 3px;
  background: rgba(236, 228, 206, 0.04);
  color: rgba(236, 228, 206, 0.58);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms;
}

.pdf-modal-close:hover,
.pdf-modal-close:focus-visible {
  background: rgba(182, 35, 25, 0.22);
  color: rgba(236, 228, 206, 0.95);
  border-color: rgba(182, 35, 25, 0.48);
  outline: none;
}

/* ── iframe body ── */
.pdf-modal-body {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #0a0a0a;
}

.pdf-modal-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Mobile fallback (shown on small screens instead of iframe) ── */
.pdf-modal-mobile-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  padding: 48px 28px;
  text-align: center;
}

.pdf-mobile-glyph {
  font-size: 2.4rem;
  color: rgba(117, 246, 162, 0.22);
  letter-spacing: 0.1em;
}

.pdf-mobile-label {
  margin: 0;
  font-family: "VT323", monospace;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: 0.18em;
  color: rgba(236, 228, 206, 0.88);
  text-transform: uppercase;
}

.pdf-mobile-sub {
  margin: 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: rgba(236, 228, 206, 0.3);
  text-transform: uppercase;
}

.pdf-mobile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid rgba(117, 246, 162, 0.42);
  border-radius: 4px;
  background: rgba(117, 246, 162, 0.06);
  color: rgba(117, 246, 162, 0.9);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 6px;
  transition: background 140ms, color 140ms, border-color 140ms;
}

.pdf-mobile-btn:hover,
.pdf-mobile-btn:focus-visible {
  background: rgba(117, 246, 162, 0.14);
  color: rgba(117, 246, 162, 1);
  border-color: rgba(117, 246, 162, 0.65);
}

/* On narrow screens: hide iframe, show fallback link page instead */
@media (max-width: 520px) {
  .pdf-modal-body {
    display: none;
  }
  .pdf-modal-mobile-fallback {
    display: flex;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOKLET VIEWER — JPG page viewer inside the TV screen
   ═══════════════════════════════════════════════════════════════════════════ */

/* The booklet-card becomes a full-bleed viewer container */
.booklet-overlay .booklet-card {
  width: 100%;
  max-height: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Start screen ─────────────────────────────────────────────────────────── */
.bv-start-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  text-align: center;
  padding: clamp(16px, 4vw, 32px);
}

.bv-start-label {
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow:
    2px 0 rgba(255, 0, 64, 0.55),
    -2px 0 rgba(0, 255, 255, 0.38),
    0 0 22px rgba(117, 246, 162, 0.3);
  text-transform: uppercase;
}

.bv-start-sub {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.54rem, 1.4vw, 0.78rem);
  letter-spacing: 0.22em;
  color: rgba(236, 228, 206, 0.42);
  text-transform: uppercase;
}

.bv-start-btn {
  margin-top: clamp(6px, 1.5vw, 12px);
  padding: clamp(9px, 1.5vw, 13px) clamp(22px, 4vw, 38px);
  border: 1px solid rgba(117, 246, 162, 0.5);
  border-radius: 4px;
  background: rgba(117, 246, 162, 0.07);
  color: rgba(117, 246, 162, 0.95);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 130ms, border-color 130ms, color 130ms, box-shadow 130ms;
}

.bv-start-btn:hover,
.bv-start-btn:focus-visible {
  background: rgba(117, 246, 162, 0.16);
  border-color: rgba(117, 246, 162, 0.8);
  color: #fff;
  box-shadow: 0 0 14px rgba(117, 246, 162, 0.22);
}

/* ── Page viewer ─────────────────────────────────────────────────────────── */
.bv-viewer-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bv-page-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Nav buttons overlaid on top of the image, centered at the bottom */
.bv-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.4vw, 14px);
  border: 1px solid rgba(117, 246, 162, 0.5);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.52);
  color: rgba(117, 246, 162, 0.92);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.7rem, 1.6vw, 0.92rem);
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 120ms, border-color 120ms, color 120ms;
}

.bv-prev {
  left: clamp(8px, 2vw, 18px);
}

.bv-next {
  right: clamp(8px, 2vw, 18px);
}

.bv-nav-btn:hover:not(:disabled),
.bv-nav-btn:focus-visible:not(:disabled) {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(117, 246, 162, 0.85);
  color: #fff;
}

.bv-nav-btn:disabled {
  opacity: 0.2;
  cursor: default;
}


/* ── Desktop: fix 3-button overlap in the narrow control-panel column ── */
@media (min-width: 861px) {
  .button-bank.analog-dials {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0;
  }

  .utility-toggle-btn,
  .info-toggle-btn {
    width: clamp(30px, 2.8vw, 42px);
    min-width: 30px;
    max-width: 42px;
  }

  /* Reduce outer-ring overflow so buttons don't bleed into each other */
  .utility-toggle-btn::before,
  .info-toggle-btn::before {
    inset: -3px;
  }
}

@media (max-width: 860px) {
  .site-shell {
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    overflow: hidden;
  }

  .broadcast-stage {
    align-content: flex-start;
    gap: 0;
    height: 100%;
    max-height: 100%;
  }

  .television {
    width: min(100%, 680px);
    max-height: none;
    height: auto;
    flex-shrink: 1;
    margin: 0 auto;
  }

  .tv-body {
    padding: clamp(8px, 2.5vw, 16px);
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .tv-face {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: none;
    height: auto;
  }

  .screen-housing {
    padding: 8px;
  }

  .crt-frame {
    width: 100%;
    height: auto;
  }

  .control-panel {
    grid-template-columns: 72px 1fr 130px;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .status-strip {
    grid-column: 1 / 4;
    justify-content: flex-start;
    gap: 10px;
    min-height: 20px;
    padding-left: 2px;
  }

  /* In mobile, audio-toggle moves into the status-strip row beside the light */
  .status-strip .audio-toggle {
    display: grid;
    width: 28px;
    height: 28px;
    margin: 0;
    min-height: unset;
    grid-column: unset;
  }

  .power-switches-group {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 72px;
  }

  .power-switch-wrap {
    min-height: auto;
    width: 100%;
  }

  .channel-readout {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .knob-module {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
    min-height: 130px;
    padding: 0;
    width: 130px;
    overflow: visible;
  }

  .channel-knob {
    width: 94px;
    height: 94px;
  }

  .button-bank {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 14px;
  }

  /* Override global width:100% — keep buttons from overflowing narrow cells */
  .utility-toggle-btn,
  .info-toggle-btn {
    width: clamp(26px, 7vw, 40px);
    min-width: 26px;
    max-width: 40px;
  }

  /* Hide the bottom audio-toggle row since it moved to status-strip */
  .audio-toggle.bottom-audio-toggle {
    display: none;
  }
}

@media (max-width: 520px) {
  .tv-body {
    border-radius: 20px;
    padding: clamp(6px, 2vw, 12px);
  }

  .screen-housing {
    border-radius: 18px;
    padding: 8px;
  }

  /* Wider knob column (96px) for easier touch control */
  .control-panel {
    grid-template-columns: 60px 1fr 140px;
    grid-template-rows: auto auto auto;
    gap: 7px;
    padding: 10px;
    border-radius: 20px;
    max-width: 100%;
    overflow: hidden;
  }

  .status-strip {
    grid-column: 1 / 4;
    gap: 8px;
  }

  .status-strip .audio-toggle {
    width: 26px;
    height: 26px;
  }

  .power-switches-group {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    width: 60px;
    gap: 5px;
  }

  .power-switch-wrap {
    min-height: auto;
    width: 100%;
  }

  .switch-track {
    width: 48px;
    height: 26px;
  }

  .switch-thumb {
    width: 18px;
    height: 18px;
    top: 4px;
    left: 4px;
  }

  .is-on #powerButton .switch-thumb {
    left: 26px;
  }

  .manifold-switch.is-active .switch-thumb {
    left: 26px;
  }

  .channel-readout {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
  }

  /* Smaller BULLSHIT readout display */
  .channel-readout.bullshit-readout {
    min-height: 38px;
    padding: 4px 7px;
  }

  .channel-readout.bullshit-readout strong {
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    letter-spacing: 0.06em;
    text-align: center;
  }

  /* Larger channel knob for easier 17-channel control */
  .knob-module {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
    min-height: 140px;
    width: 140px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .channel-ring {
    inset: 2px;
  }

  .channel-knob {
    width: 98px;
    height: 98px;
  }

  /* Smaller 3 dial/utility buttons */
  .button-bank {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 4px;
  }

  .analog-dial-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .utility-toggle-btn,
  .info-toggle-btn {
    width: clamp(22px, 5.5vw, 30px);
    min-width: 22px;
    max-width: 30px;
  }

  /* audio-toggle is now inside status-strip on mobile, hide standalone version */
  .audio-toggle:not(.status-strip .audio-toggle) {
    display: none;
  }
}
