@import url('https://fonts.googleapis.com/css2?family=Handjet:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-display: "Handjet", "Trebuchet MS", sans-serif;
  --font-secondary: "Handjet", "Segoe UI", sans-serif;
  --font-mono: "Handjet", monospace;
  --font-clock: "Handjet", monospace;
  --font-neon-main: "Handjet", "Trebuchet MS", sans-serif;
  --font-neon-script: "Handjet", "Trebuchet MS", sans-serif;
  --font-neon-accent: "Handjet", "Trebuchet MS", sans-serif;
  --volt: #ceff00;
  --volt-soft: #b8ee00;
  --volt-deep: #89b200;
  --room-dark: #050505;
  --room-glow: #101010;
  --bezel-shadow: #020202;
  --screen-bg: #090909;
  --accent: #d9d9d9;
  --silver: #d7d7d7;
  --silver-bright: #ffffff;
  --silver-dim: #a8a8a8;
  --gold: #f4f4f4;
  --white: #f7f7f7;
  --scanline-opacity: 0.56;
  --noise-opacity: 0.2;
  --snow-opacity: 0.12;
  --vcr-opacity: 0.3;
  --glow-opacity: 0.38;
  --soften-opacity: 0.2;
  --soften-blur: 0.8px;
  --vignette-opacity: 0.72;
  --chroma-opacity: 0.4;
  --host-scale: 1.1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  color: var(--white);
  font-family: var(--font-secondary);
  font-weight: 500;
  background: radial-gradient(circle at 25% 0%, #1a1a1a 0%, #0b0b0b 42%, #030303 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(circle at 16% 18%, #2a2a2a 0, transparent 34%), radial-gradient(circle at 82% 72%, #3a3a3a 0, transparent 38%);
}

#room {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

#tv-shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  position: relative;
}

#tv-bezel {
  width: 100%;
  height: 100%;
  background: linear-gradient(138deg, #171717, #222222 44%, #141414 80%);
  border-radius: clamp(10px, 1.3vw, 22px);
  padding: clamp(10px, 1.4vw, 24px);
  box-shadow: 0 26px 70px var(--bezel-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(8px, 1vw, 18px);
  overflow: hidden;
  background: var(--screen-bg);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9);
}

#analog-soften {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: var(--soften-opacity);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08));
  backdrop-filter: blur(var(--soften-blur)) saturate(0.86) contrast(1.05);
  -webkit-backdrop-filter: blur(var(--soften-blur)) saturate(0.86) contrast(1.05);
  animation: softenSweep 4.8s ease-in-out infinite alternate;
}

.noise-wrapper {
  position: absolute;
  inset: 0;
  z-index: 44;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--noise-opacity);
  animation: noisePulse 1800ms ease-in-out infinite alternate;
}

.noise-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.noise-wrapper.flash {
  animation: noisePulse 1800ms ease-in-out infinite alternate, staticFlash 320ms steps(2, end);
}

.noise {
  position: absolute;
  top: -500px;
  right: -500px;
  bottom: -500px;
  left: -500px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  opacity: 0.4;
  animation: noise 1s steps(8, end) infinite both;
  mix-blend-mode: screen;
}

#screen.glitch {
  animation: glitch 480ms linear 1;
  filter: contrast(1.15) brightness(1.1) saturate(1.05);
  transform: skewX(-0.8deg) scale(1.002);
}

#screen.wobble-burst {
  animation: wobblex 90ms steps(1, end) 8;
}

#overlay.wobble-burst {
  animation: wobbley 90ms steps(1, end) 8;
}

.crt-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#snow-canvas {
  z-index: 45;
  opacity: var(--snow-opacity);
  mix-blend-mode: screen;
  image-rendering: pixelated;
}

#vcr-canvas {
  z-index: 46;
  opacity: var(--vcr-opacity);
  filter: blur(0.9px);
  mix-blend-mode: screen;
}

#image-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scale(1.02);
  animation: screenDrift 24s ease-in-out infinite alternate;
}

.image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 0.85s ease, object-position 5.2s ease;
  filter: saturate(1.25) contrast(1.18) brightness(1.07);
}

.image-layer.active {
  opacity: 1;
  animation: kenBurns 28s ease-in-out infinite alternate;
}

#static,
#scanlines,
#vignette,
#glow,
#chroma {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#scanlines {
  z-index: 47;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(2, 2, 2, 0.72) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  opacity: var(--scanline-opacity);
  mix-blend-mode: screen;
  animation: scanlineMove 6s linear infinite;
}

#vignette {
  z-index: 22;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, 0.8) 100%);
  opacity: var(--vignette-opacity);
  mix-blend-mode: multiply;
}

#glow {
  z-index: 40;
  inset: -10%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 62%);
  mix-blend-mode: screen;
  opacity: var(--glow-opacity);
}

#chroma {
  z-index: 41;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(190, 190, 190, 0.05), rgba(255, 255, 255, 0.09));
  mix-blend-mode: screen;
  opacity: var(--chroma-opacity);
  animation: chromaPulse 4.5s ease-in-out infinite;
}

#overlay {
  position: relative;
  z-index: 30;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: stretch;
  gap: 10px;
  padding: 18px 18px 12px 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.neon-sign {
  --neon-core: #f2faff;
  --neon-color1: #d8f7ff;
  --neon-color2: #8feeff;
  --neon-color3: #2ea0ff;
  --neon-color4: #1b37cc;
  --neon-interval: 3200ms;
  color: var(--neon-core);
  text-shadow:
    0 0 8px var(--neon-color1),
    0 0 16px var(--neon-color2),
    0 0 32px var(--neon-color3),
    0 0 58px var(--neon-color4);
  filter: saturate(150%);
  will-change: color, text-shadow, filter;
  animation: neonSignFlicker steps(100, end) var(--neon-interval) infinite;
}

.neon-garden {
  --neon-core: #f1feff;
  --neon-color1: #ddfeff;
  --neon-color2: #8df4ff;
  --neon-color3: #39a9ff;
  --neon-color4: #1a46dc;
}

.neon-comeback {
  --neon-core: #ffe5f3;
  --neon-color1: #ffd2ea;
  --neon-color2: #ff8db4;
  --neon-color3: #ff4f7d;
  --neon-color4: #990046;
}

.neon-restrooms {
  --neon-core: #ffe1d3;
  --neon-color1: #ffc9ad;
  --neon-color2: #ff8a60;
  --neon-color3: #cf4329;
  --neon-color4: #6f140f;
}

#brand-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

#brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

#brand-icon {
  display: grid;
  place-items: center;
  width: clamp(58px, 6.4vw, 82px);
  height: clamp(58px, 6.4vw, 82px);
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--volt);
  border: 1px solid rgba(206, 255, 0, 0.6);
  background: linear-gradient(130deg, rgba(20, 20, 20, 0.9), rgba(92, 92, 92, 0.8) 62%, rgba(206, 255, 0, 0.26));
  box-shadow: 0 0 14px rgba(206, 255, 0, 0.26), 0 0 20px rgba(255, 255, 255, 0.14), inset 0 0 14px rgba(206, 255, 0, 0.2);
  text-shadow: 0 0 10px rgba(206, 255, 0, 0.72);
}

#brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 3.4rem);
  letter-spacing: 1.2px;
  font-weight: 900;
  line-height: 0.82;
  white-space: nowrap;
  color: var(--volt);
  text-shadow: 0 0 10px rgba(206, 255, 0, 0.5), 0 0 20px rgba(206, 255, 0, 0.24);
  font-variation-settings: "wght" 900;
}

.brand-url {
  margin-top: 1px;
  font-family: var(--font-secondary);
  font-size: clamp(1.14rem, 1.95vw, 1.85rem);
  letter-spacing: 0.65px;
  font-weight: 600;
  color: #9fefff;
  text-shadow: 0 0 8px rgba(96, 230, 255, 0.34), 0 0 14px rgba(96, 230, 255, 0.2);
}

#broadcast-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

#mute-btn {
  width: clamp(30px, 2.2vw, 36px);
  height: clamp(30px, 2.2vw, 36px);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1;
  color: var(--silver-bright);
  background: linear-gradient(120deg, rgba(16, 16, 16, 0.96), rgba(56, 56, 56, 0.94));
  border: 1px solid rgba(206, 255, 0, 0.52);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 0 8px rgba(206, 255, 0, 0.2), inset 0 0 10px rgba(206, 255, 0, 0.08);
  text-shadow: 0 0 6px rgba(206, 255, 0, 0.35);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

#mute-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(206, 255, 0, 0.72);
  box-shadow: 0 0 10px rgba(206, 255, 0, 0.28), inset 0 0 12px rgba(206, 255, 0, 0.12);
}

#mute-btn[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(120deg, rgba(14, 14, 14, 0.96), rgba(36, 36, 36, 0.94));
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.18);
}

.live {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 16, 16, 0.94), rgba(48, 48, 48, 0.96));
  border: 1px solid rgba(206, 255, 0, 0.75);
  box-shadow: 0 0 16px rgba(206, 255, 0, 0.28), inset 0 0 18px rgba(206, 255, 0, 0.16);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--volt);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(206, 255, 0, 0.44);
  animation: liveBadgeGlow 2.8s ease-in-out infinite;
}

.live .dot {
  width: 16px;
  height: 16px;
  background: var(--volt);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(206, 255, 0, 0.92);
  animation: livePulse 1.2s infinite;
}

#lbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(170px, 1fr);
  gap: 12px;
  padding: 12px;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.95), rgba(28, 28, 28, 0.93) 55%, rgba(48, 48, 48, 0.92));
  border: 2px solid rgba(206, 255, 0, 0.34);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  align-self: end;
}

#host-box,
#item-box,
#price-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

#host-box {
  gap: 8px;
}

.label {
  font-family: var(--font-secondary);
  font-size: 0.96rem;
  letter-spacing: 2.3px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(206, 255, 0, 0.9);
  text-shadow: 0 0 8px rgba(206, 255, 0, 0.28);
}

#ui-host {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.84;
  letter-spacing: 1.4px;
  transform: none;
  text-wrap: balance;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 2px;
  color: var(--silver-bright);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.36), 0 0 20px rgba(206, 255, 0, 0.22);
  animation: hostFlare 4.8s ease-in-out infinite;
}

#ui-host-tag {
  font-family: var(--font-neon-accent);
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  letter-spacing: 0.9px;
  font-weight: 500;
  line-height: 1.05;
}

body[data-host="RICK"] #ui-host {
  color: var(--silver-bright);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.34), 0 0 24px rgba(206, 255, 0, 0.2);
}

body[data-host="LINDA"] #ui-host {
  color: var(--silver-bright);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.34), 0 0 24px rgba(206, 255, 0, 0.2);
}

body[data-host="CHAZ"] #ui-host {
  color: var(--silver-bright);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.34), 0 0 24px rgba(206, 255, 0, 0.2);
}

#ui-title {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.4vw, 2.22rem);
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--silver-bright);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.34), 0 0 18px rgba(206, 255, 0, 0.18);
}

#ui-desc {
  font-family: var(--font-secondary);
  font-size: clamp(1.06rem, 1.44vw, 1.24rem);
  letter-spacing: 0.4px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  max-width: 95%;
}

#ui-attr {
  font-family: var(--font-secondary);
  letter-spacing: 1.2px;
  font-size: clamp(1.08rem, 1.42vw, 1.3rem);
  font-weight: 600;
  color: var(--silver-bright);
  min-height: 1.4em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(206, 255, 0, 0.32);
  animation: attrPulse 3.6s ease-in-out infinite;
}

#ui-link {
  width: fit-content;
  text-decoration: none;
  font-family: var(--font-secondary);
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--silver-bright);
  background: linear-gradient(90deg, rgba(24, 24, 24, 0.9), rgba(52, 52, 52, 0.92));
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(206, 255, 0, 0.62);
  box-shadow: 0 0 10px rgba(206, 255, 0, 0.2), inset 0 0 10px rgba(206, 255, 0, 0.08);
  text-shadow: 0 0 8px rgba(206, 255, 0, 0.35);
}

#price-box .value {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.1vw, 2.9rem);
  color: var(--silver-bright);
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.36), 0 0 16px rgba(206, 255, 0, 0.2);
}

#ui-id {
  font-family: var(--font-secondary);
  font-size: 1.16rem;
  letter-spacing: 1.2px;
  font-weight: 500;
}

#ticker {
  position: relative;
  height: 40px;
  overflow: hidden;
  border-top: 2px solid rgba(206, 255, 0, 0.42);
  border-bottom: 2px solid rgba(206, 255, 0, 0.42);
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.95), rgba(24, 24, 24, 0.96) 58%, rgba(46, 46, 46, 0.95));
  box-shadow: inset 0 0 18px rgba(206, 255, 0, 0.1);
}

#ticker-track {
  --ticker-copy-width: 800px;
  --ticker-duration: 36s;
  position: absolute;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-clock);
  font-weight: 600;
  letter-spacing: 1.1px;
  font-size: 1.38rem;
  color: #ccf5ff;
  text-shadow: 0 0 8px rgba(95, 225, 255, 0.35), 0 0 16px rgba(95, 225, 255, 0.2);
  animation: tickerLoop var(--ticker-duration) linear infinite;
  will-change: transform;
}

#ticker-track .ticker-copy {
  display: inline-block;
  padding-right: 38px;
}

#footers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

#channel-id {
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

#clock {
  min-width: 148px;
  text-align: right;
  font-family: var(--font-clock);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.45vw, 1.2rem);
  letter-spacing: 1.4px;
  color: #ff3b30;
  text-shadow: 0 0 4px rgba(255, 59, 48, 0.7), 0 0 10px rgba(255, 59, 48, 0.35);
}

#status-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 14px 8px 14px;
}

#status {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-secondary);
  letter-spacing: 1.2px;
  font-size: 1rem;
  text-transform: uppercase;
}

#autoplay-warning {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  color: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-secondary);
  letter-spacing: 1px;
}

body[data-motion="off"] #image-stack,
body[data-motion="off"] .image-layer.active {
  animation: none;
}

body[data-motion="off"] #analog-soften {
  animation: none;
}

@keyframes tickerLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--ticker-copy-width)));
  }
}

@keyframes noise {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-100px, 100px);
  }
  20% {
    transform: translate(150px, -100px);
  }
  30% {
    transform: translate(-100px, 100px);
  }
  40% {
    transform: translate(100px, -150px);
  }
  50% {
    transform: translate(-100px, 200px);
  }
  60% {
    transform: translate(-200px, -100px);
  }
  70% {
    transform: translate(50px, 100px);
  }
  80% {
    transform: translate(100px, -150px);
  }
  90% {
    transform: translate(0, 200px);
  }
  100% {
    transform: translate(-100px, 100px);
  }
}

@keyframes staticFlash {
  0% {
    opacity: calc(var(--noise-opacity) + 0.08);
  }
  50% {
    opacity: calc(var(--noise-opacity) + 0.34);
  }
  100% {
    opacity: calc(var(--noise-opacity) + 0.02);
  }
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes liveBadgeGlow {
  0% {
    box-shadow: 0 0 14px rgba(206, 255, 0, 0.22), inset 0 0 14px rgba(206, 255, 0, 0.14);
  }
  50% {
    box-shadow: 0 0 20px rgba(206, 255, 0, 0.4), inset 0 0 20px rgba(206, 255, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 14px rgba(206, 255, 0, 0.22), inset 0 0 14px rgba(206, 255, 0, 0.14);
  }
}

@keyframes noisePulse {
  0% {
    opacity: calc(var(--noise-opacity) * 0.88);
  }
  50% {
    opacity: calc(var(--noise-opacity) * 1.16);
  }
  100% {
    opacity: calc(var(--noise-opacity) * 0.92);
  }
}

@keyframes scanlineMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(3px);
  }
}

@keyframes chromaPulse {
  0% {
    opacity: calc(var(--chroma-opacity) * 0.88);
  }
  50% {
    opacity: calc(var(--chroma-opacity) * 1.12);
  }
  100% {
    opacity: calc(var(--chroma-opacity) * 0.9);
  }
}

@keyframes wobblex {
  50% {
    transform: translateX(1px);
  }
  51% {
    transform: translateX(0);
  }
}

@keyframes wobbley {
  0% {
    transform: translateY(1px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes glitch {
  0% {
    opacity: 1;
    transform: skew(0, 0) scale(1);
  }
  40% {
    opacity: 0.95;
    transform: skew(0, 0) scale(1);
  }
  41% {
    opacity: 0.82;
    transform: skew(6deg, 0) scale(1, 1.03);
  }
  42% {
    opacity: 0.84;
    transform: skew(-5deg, 0) scale(1, 1.02);
  }
  43% {
    opacity: 1;
    transform: skew(0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: skew(0, 0) scale(1);
  }
}

@keyframes screenDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  50% {
    transform: translate3d(-0.8%, 0.6%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0.8%, -0.5%, 0) scale(1.04);
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(1.5%, 0.7%, 0);
  }
  100% {
    transform: scale(1.05) translate3d(-1%, -0.5%, 0);
  }
}

@keyframes neonSignFlicker {
  0%,
  47%,
  53%,
  100% {
    filter: saturate(150%);
  }
  49% {
    color: #ffffff;
    text-shadow:
      0 0 10px var(--neon-color1),
      0 0 22px var(--neon-color2),
      0 0 42px var(--neon-color3),
      0 0 70px var(--neon-color4);
    filter: saturate(220%) hue-rotate(12deg);
  }
  51% {
    color: var(--neon-core);
    filter: saturate(140%);
  }
}

@keyframes attrPulse {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.84;
  }
}

@keyframes hostFlare {
  0% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.34), 0 0 18px rgba(206, 255, 0, 0.2);
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 13px rgba(255, 255, 255, 0.45), 0 0 30px rgba(206, 255, 0, 0.34);
    filter: brightness(1.08);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.34), 0 0 18px rgba(206, 255, 0, 0.2);
    filter: brightness(1);
  }
}

body[data-motion="off"] .noise-wrapper,
body[data-motion="off"] .noise,
body[data-motion="off"] #screen,
body[data-motion="off"] #overlay {
  animation: none !important;
}

body[data-motion="off"] .neon-sign {
  animation: none !important;
}

body[data-motion="off"] #snow-canvas,
body[data-motion="off"] #vcr-canvas {
  opacity: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #analog-soften {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.16));
  }
}

@keyframes softenSweep {
  0% {
    opacity: calc(var(--soften-opacity) * 0.76);
    transform: translate3d(-0.8%, 0, 0);
  }
  100% {
    opacity: var(--soften-opacity);
    transform: translate3d(0.8%, 0, 0);
  }
}

@media (max-width: 900px) {
  #tv-shell {
    gap: 6px;
  }

  #lbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #tv-bezel {
    padding: 10px;
  }

  #overlay {
    padding: 10px;
    gap: 8px;
  }

  #ticker-track {
    font-size: 1.05rem;
  }

  #brand-strip {
    align-items: flex-start;
    gap: 10px;
    justify-content: space-between;
  }

  #brand-lockup {
    align-items: flex-start;
  }

  #broadcast-controls {
    gap: 6px;
    align-self: flex-start;
  }

  #mute-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .live {
    padding: 8px 14px;
    gap: 10px;
    font-size: 1.04rem;
    letter-spacing: 0.9px;
  }

  .live .dot {
    width: 12px;
    height: 12px;
  }

  #brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 1.2rem;
  }

  .brand {
    font-size: clamp(1.25rem, 6.2vw, 1.9rem);
    white-space: normal;
    line-height: 0.9;
  }

  .brand-url {
    font-size: clamp(1rem, 4.8vw, 1.3rem);
    letter-spacing: 0.75px;
  }

  #footers {
    font-size: 0.75rem;
  }
}
