@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
@font-face {
  font-family: "festivo";
  src: url("fonts/festivo.otf") format("opentype");
  font-display: swap;
}
:root {
  --ctv-cabinet: #1c1816;
  --ctv-cabinet-hi: #2e2824;
  --ctv-void: #1a120c;
  --ctv-panel: #2a2630;
  --ctv-panel-hi: #3d3845;
  --ctv-chrome: #6d6872;
  --ctv-chrome-hi: #9a959e;
  --ctv-copper: #b87333;
  --ctv-glass: #2a2218;
  --ctv-phosphor: #3a2f26;
  --ctv-phosphor-dim: #5a4a3d;
  --ctv-phosphor-hi: #1c1510;
  --ctv-scan: rgba(0, 0, 0, 0.14);
  --ctv-accent: #7c2f32;
  --ctv-warn: #a84830;
  --ctv-text-ui: #e8e0d8;
  --ctv-shadow: rgba(0, 0, 0, 0.55);
  --ctv-signal-strength: 0.45;
  --ctv-paper: rgba(252, 246, 232, 0.94);
  --ctv-paper-mid: rgba(235, 220, 198, 0.97);
  --ctv-ink: #2a2118;
  --ctv-ink-soft: rgba(42, 33, 24, 0.78);
  --ctv-stage-ar-w: 1376;
  --ctv-stage-ar-h: 768;
  --ctv-workbench-bg: url("../images/chanterelle-workstation-bg-alt.png");
  --ctv-slot-left: 33.44%;
  --ctv-slot-top: 15.15%;
  --ctv-slot-w: 33.1%;
  --ctv-slot-h: 42.35%;
  --ctv-workbench-bg: url("../images/chanterelles-desktop-alt.png");
  --ctv-slot-left: 27.7%;
  --ctv-slot-top: 12%;
  --ctv-slot-w: 43.4%;
  --ctv-slot-h: 43.35%;
  --ctv-slot-pad: clamp(3px, 0.38vmin, 37px);
  --ctv-slot-radius-x: clamp(14px, 3vmin, 24px);
  --ctv-slot-radius-y: clamp(18px, 3.9vmin, 30px);
  --ctv-slot-radius: var(--ctv-slot-radius-x) / var(--ctv-slot-radius-y);
  --ctv-slot-bezel-fill: #ded4b8;
  --ctv-slot-bevel-light: rgba(248, 240, 224, 0.5);
  --ctv-slot-bevel-shadow: rgba(18, 12, 8, 0.48);
  --ctv-slot-inner-radius: max(
  	2px,
  	calc(var(--ctv-slot-radius-y) - var(--ctv-slot-pad))
  );
  --ctv-control-y: 67.2%;
  --ctv-control-power-x: 37%;
  --ctv-control-brightness-x: 45.6%;
  --ctv-control-volume-x: 50%;
  --ctv-control-signal-x: 54.4%;
  --ctv-control-prev-nav-x: 29.9%;
  --ctv-control-next-nav-x: 33.4%;
  --ctv-control-nav-y: 14.8%;
  --ctv-control-prev-bottom-x: 24.6%;
  --ctv-control-next-bottom-x: 73.4%;
  --ctv-control-bottom-y: 33.7%;
  --ctv-control-bottom-arrow-size: clamp(1.8rem, 2.8vw, 2.4rem);
  --ctv-control-bottom-icon-size: clamp(0.95rem, 1.7vmin, 1.22rem);
  --ctv-control-bottom-icon-y: -0.02em;
  --ctv-control-bottom-prev-icon-x: -0.03em;
  --ctv-control-bottom-next-icon-x: 0.03em;
  --ctv-control-power-size: clamp(2.3rem, 3.8vw, 3.35rem);
  --ctv-control-knob-size: clamp(1.42rem, 2.35vw, 2.05rem);
  --ctv-control-arrow-size: clamp(0.8rem, 1.25vw, 1.02rem);
  --ctv-lamp-x: 68.16%;
  --ctv-lamp-y: 60.8%;
  --ctv-jar-hotspot-left: 13.55%;
  --ctv-jar-hotspot-bottom: 17.45%;
  --ctv-jar-hotspot-width: 8.95%;
  --ctv-jar-hotspot-scale: 1;
  --ctv-control-y: 65.1%;
  --ctv-control-power-x: 29.3%;
  --ctv-control-brightness-x: 36.4%;
  --ctv-control-volume-x: 42.5%;
  --ctv-control-signal-x: 48.5%;
  --ctv-lamp-x: 71.91%;
  --ctv-lamp-y: 56.8%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(15px, 0.9vw + 12px, 18px);
}

html:has(body.chanterelle-tv) {
  overflow-x: hidden;
}

body.chanterelle-tv {
  margin: 0;
  min-height: 100dvh;
  color: var(--ctv-text-ui);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ctv-void);
  position: relative;
  overflow-x: hidden;
}

.ctv-room {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 70% at 50% 45%, transparent 32%, rgba(12, 8, 6, 0.55) 100%), linear-gradient(180deg, #120c08 0%, var(--ctv-void) 50%, #0a0604 100%);
}

.ctv-header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.75rem 1rem 0.15rem;
  margin-top: 0.35rem;
}

.ctv-header__title {
  margin: 0;
  line-height: 0;
}

.ctv-header__logo {
  display: block;
  margin-inline: auto;
  height: clamp(2.1rem, 10vw, 3.35rem);
  width: auto;
  max-width: min(88vw, 15rem);
  object-fit: contain;
  filter: drop-shadow(0 0 0.55rem rgba(255, 181, 96, 0.28)) drop-shadow(0 1px 0 rgba(26, 10, 20, 0.45)) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.55)) brightness(1.3);
}

.ctv-header__sub {
  margin: 0.15rem 0 0;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: lowercase;
  opacity: 0.72;
  color: #f0e6d4;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.ctv-main {
  position: relative;
  z-index: 2;
  max-width: 88rem;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.ctv-main::before {
  display: none;
}

.ctv-main > * {
  position: relative;
  z-index: 1;
}

.ctv-unit {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(0.85rem, 2.2vw, 1.35rem);
  margin-bottom: clamp(0.5rem, 2vh, 1.25rem);
  width: 100%;
  max-width: 100%;
}

.ctv-stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  aspect-ratio: var(--ctv-stage-ar-w)/var(--ctv-stage-ar-h);
  margin-inline: 0;
  flex-shrink: 0;
  background: var(--ctv-workbench-bg) 0 0/100% 100% no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0.75rem 2.2rem rgba(0, 0, 0, 0.55);
  transform: none;
}

.ctv-monitor-slot {
  position: absolute;
  left: var(--ctv-slot-left);
  top: var(--ctv-slot-top);
  width: var(--ctv-slot-w);
  height: var(--ctv-slot-h);
  border-radius: var(--ctv-slot-radius);
  overflow: hidden;
  z-index: 2;
  transform: translateZ(0) scale(1.03);
  box-sizing: border-box;
}

.ctv-monitor-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--ctv-slot-pad);
  border-radius: inherit;
  pointer-events: none;
  z-index: 6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow: inset 0 1px 0 var(--ctv-slot-bevel-light), inset 0 8px 14px rgba(255, 251, 241, 0.16), inset 0 -10px 16px var(--ctv-slot-bevel-shadow), inset 0 0 0 1px rgba(12, 8, 6, 0.5);
}

.ctv-monitor-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(18, 12, 8, 0.58), inset 0 1px 0 rgba(255, 247, 227, 0.3), inset 0 -1px 0 rgba(26, 16, 10, 0.45);
}

.ctv-monitor-slot .ctv-crt__glass {
  position: absolute;
  inset: var(--ctv-slot-pad);
  display: flex;
  flex-direction: column;
  border-radius: var(--ctv-slot-inner-radius);
  overflow: hidden;
  background: var(--ctv-glass);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 246, 0.1), inset 0 2px 5px rgba(255, 250, 242, 0.07), inset 0 -6px 16px rgba(0, 0, 0, 0.38), inset 0 0 28px rgba(0, 0, 0, 0.22);
}

.ctv-monitor-slot .ctv-crt__glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(252, 246, 236, 0.22), inset 0 2px 6px rgba(248, 238, 216, 0.11), inset 0 -8px 12px rgba(0, 0, 0, 0.2);
}

.ctv-monitor-slot .ctv-crt__inner-shadow {
  box-shadow: inset 0 0 52px rgba(0, 0, 0, 0.42);
}

.ctv-monitor-slot .ctv-crt__vignette {
  opacity: 0.38;
}

.ctv-glass-stack {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.ctv-browser-chrome {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.28rem 0.45rem 0.32rem;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #e8dfd2, #cfc3b2);
  border-bottom: 1px solid rgba(42, 33, 24, 0.18);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
  color: rgba(42, 33, 24, 0.75);
}

.ctv-monitor-slot .ctv-browser-chrome {
  border-radius: var(--ctv-slot-inner-radius) var(--ctv-slot-inner-radius) 0 0;
}

.ctv-monitor-slot .ctv-browser-chrome #strainPrev,
.ctv-monitor-slot .ctv-browser-chrome #strainNext {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-grid;
  place-items: center;
  width: var(--ctv-control-arrow-size);
  height: var(--ctv-control-arrow-size);
  min-height: 0;
  padding: 0;
  border-radius: 0.2rem;
  font-size: clamp(0.6rem, 1.2vmin, 0.9rem);
  line-height: 1;
  border: 1px solid rgba(22, 16, 12, 0.38);
  background: linear-gradient(180deg, #efe7d6, #cec2ab 62%, #b5a88f);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 252, 246, 0.56), inset 0 -2px 4px rgba(0, 0, 0, 0.22);
  color: #e5fff0;
  text-shadow: 0 0 6px rgba(140, 255, 190, 0.55), 0 0 2px rgba(0, 0, 0, 0.45);
  z-index: 8;
  pointer-events: auto;
}

.ctv-monitor-slot .ctv-browser-chrome #strainPrev {
  left: 3.05rem;
}

.ctv-monitor-slot .ctv-browser-chrome #strainNext {
  left: 4.3rem;
}

.ctv-browser-chrome__nav {
  display: inline-flex;
  gap: 0.22rem;
  align-items: center;
}

.ctv-browser-chrome__dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f6d0c8, #c26a5a 55%, #6e3830);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

.ctv-browser-chrome__dot:nth-child(2) {
  background: radial-gradient(circle at 30% 25%, #f5e6c8, #c9a86a 55%, #7a6238);
}

.ctv-browser-chrome__dot:nth-child(3) {
  background: radial-gradient(circle at 30% 25%, #d8f0c8, #7aab62 55%, #3d5a32);
}

.ctv-browser-chrome__controls {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.ctv-browser-chrome__btn {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.05rem;
  padding: 0 0.15rem;
  border-radius: 0.15rem;
  border: 1px solid rgba(42, 33, 24, 0.12);
  background: linear-gradient(180deg, #faf6ef, #e3d8c8);
  font-size: 0.58rem;
  line-height: 1;
  color: rgba(42, 33, 24, 0.65);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

button.ctv-browser-chrome__btn {
  font: inherit;
  cursor: pointer;
}

.ctv-browser-chrome__btn--nav:active {
  transform: translateY(1px);
}

.ctv-browser-chrome__url {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.22rem 0.45rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(42, 33, 24, 0.1);
  background: rgba(255, 252, 246, 0.88);
  font-family: "VT323", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(42, 33, 24, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctv-browser-chrome .heart-container--ctv-chrome {
  --ctv-heart-count: rgba(42, 33, 24, 0.78);
  --ctv-heart-stroke: rgba(42, 33, 24, 0.62);
  --ctv-heart-accent: var(--reusable-accent, #df3421);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  padding: 0.08rem 0.28rem 0.08rem 0.22rem;
  border-radius: 0.18rem;
  border: 1px solid rgba(42, 33, 24, 0.12);
  background: linear-gradient(180deg, #faf6ef, #e8dfd2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  min-height: 1.05rem;
}

.ctv-browser-chrome .heart-container--ctv-chrome .journal-heart-btn {
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.ctv-browser-chrome .heart-container--ctv-chrome .heart-icon-wrapper {
  display: flex;
  align-items: center;
}

.ctv-browser-chrome .heart-container--ctv-chrome .heart-svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: var(--ctv-heart-stroke);
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ctv-browser-chrome .heart-container--ctv-chrome .journal-heart-btn.hearted .heart-svg {
  fill: var(--ctv-heart-accent);
  stroke: var(--ctv-heart-accent);
  transform: scale(1.06) rotate(-4deg);
}

.ctv-browser-chrome .heart-container--ctv-chrome .journal-heart-count {
  font-family: system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ctv-heart-count);
  line-height: 1;
}

.ctv-crt__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  background: linear-gradient(118deg, transparent 34%, rgba(255, 255, 255, 0.09) 46%, rgba(255, 248, 220, 0.04) 52%, transparent 64%);
  animation: ctv-glass-sheen 22s ease-in-out infinite;
}

@keyframes ctv-glass-sheen {
  0%, 100% {
    opacity: 0.35;
    transform: translate3d(-4%, 0, 0);
  }
  50% {
    opacity: 0.62;
    transform: translate3d(4%, 1%, 0);
  }
}
.ctv-crt__inner-shadow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 3;
}

.ctv-crt__scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, var(--ctv-scan) 2px, var(--ctv-scan) 3px);
  opacity: 0.22;
  animation: ctv-scan-drift 6s linear infinite;
}

@keyframes ctv-scan-drift {
  to {
    transform: translate3d(0, 3px, 0);
  }
}
.ctv-crt__tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.12;
  background: linear-gradient(100deg, rgba(120, 70, 40, 0.2) 0%, transparent 45%, rgba(60, 45, 35, 0.15) 100%);
}

.ctv-crt__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.ctv-screen {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  height: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.35;
  color: var(--ctv-ink);
  background: linear-gradient(165deg, var(--ctv-paper), var(--ctv-paper-mid));
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.35);
  filter: brightness(var(--ctv-brightness, 1));
  animation: ctv-phosphor-breathe 8.5s ease-in-out infinite;
  transform: none;
  border-radius: 0 0 0.35rem 0.35rem;
}

.ctv-screen--book-hover {
  box-shadow: inset 0 0 0 1px rgba(255, 248, 220, 0.45), 0 0 26px rgba(255, 228, 170, 0.45);
}

.ctv-monitor-slot .ctv-screen {
  border-radius: 0 0 var(--ctv-slot-inner-radius) var(--ctv-slot-inner-radius);
}

@keyframes ctv-phosphor-breathe {
  0%, 100% {
    text-shadow: 0 0 1px rgba(255, 250, 242, 0.25), 0 1px 0 rgba(255, 252, 246, 0.35);
  }
  50% {
    text-shadow: 0 0 2px rgba(210, 180, 140, 0.22), 0 1px 0 rgba(255, 252, 246, 0.42);
  }
}
.ctv-screen__powerfx {
  position: absolute;
  inset: 0.2rem;
  border-radius: 0.55rem;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 46%, rgb(255, 255, 255) 0%, rgba(210, 255, 235, 0.95) 8%, rgba(120, 255, 200, 0.65) 18%, rgba(60, 200, 150, 0.35) 28%, transparent 48%), linear-gradient(180deg, transparent 36%, rgba(255, 255, 255, 0.98) 49.5%, rgba(200, 255, 235, 0.75) 50%, rgba(255, 255, 255, 0.98) 50.5%, transparent 64%), linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, 0.45) 48%, rgba(180, 255, 220, 0.5) 52%, transparent 72%);
}

body.chanterelle-tv.ctv-content-hidden .ctv-screen__feed,
body.chanterelle-tv.ctv-content-hidden .ctv-screen__empty,
body.chanterelle-tv.ctv-content-hidden .ctv-screen__teaser {
  opacity: 0;
}

body.chanterelle-tv.ctv-powering-on .ctv-screen::before,
body.chanterelle-tv.ctv-powering-off .ctv-screen::before {
  opacity: 0.04 !important;
}

.ctv-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--ctv-noise-opacity, 0.22);
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.45px, transparent 0.65px), radial-gradient(rgba(90, 70, 55, 0.12) 0.5px, transparent 0.8px);
  background-size: 2.2px 2.2px, 3.4px 3.4px;
  mix-blend-mode: screen;
  animation: ctv-noise-shift calc(2.2s - var(--ctv-signal-strength) * 1.2s) steps(5) infinite, ctv-noise-flicker calc(1.2s - var(--ctv-signal-strength) * 0.5s) linear infinite;
}

@keyframes ctv-noise-shift {
  to {
    transform: translate3d(-1.3px, 0.8px, 0);
  }
}
@keyframes ctv-noise-flicker {
  0%, 100% {
    opacity: calc(0.05 + var(--ctv-signal-strength) * 0.28);
  }
  50% {
    opacity: calc(0.09 + var(--ctv-signal-strength) * 0.4);
  }
}
.ctv-screen__empty {
  margin: auto;
  text-align: center;
  max-width: 28rem;
  color: var(--ctv-phosphor-dim);
  font-size: 1.1rem;
  line-height: 1.4;
}

.ctv-screen__teaser {
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.55rem;
  border: 1px dashed rgba(122, 47, 50, 0.45);
  background: rgba(255, 248, 236, 0.55);
  color: #5c2728;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: lowercase;
}

.ctv-screen__empty code {
  font-size: 0.92em;
  padding: 0.08em 0.3em;
  border-radius: 0.2em;
  background: rgba(0, 0, 0, 0.45);
  color: var(--ctv-phosphor-hi);
}

.ctv-screen__feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.ctv-feed--tune {
  animation: ctv-strain-tune 0.62s cubic-bezier(0.45, 0, 0.2, 1) 1;
}

@keyframes ctv-strain-tune {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(1) contrast(1);
  }
  22% {
    opacity: 0.72;
    transform: translate3d(-1px, 0, 0) scale(0.992);
    filter: brightness(1.12) contrast(1.05) hue-rotate(4deg);
  }
  48% {
    opacity: 0.55;
    transform: translate3d(1px, 0, 0) scale(0.988);
    filter: brightness(0.92) contrast(1.12) hue-rotate(-3deg);
  }
  72% {
    opacity: 0.88;
    transform: translate3d(0, 0, 0) scale(1.006);
    filter: brightness(1.08) contrast(1.04);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(1) contrast(1);
  }
}
.ctv-screen__channel {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b2a2e;
  text-shadow: 0 1px 0 rgba(255, 250, 242, 0.4);
}

.ctv-screen__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.ctv-screen__topline .ctv-screen__channel {
  margin: 0;
}

.ctv-screen__title {
  margin: 0 0 0.5rem;
  font-family: "VT323", monospace;
  font-size: clamp(1.25rem, 2.6vw, 1.25rem);
  font-weight: 400;
  color: #3a2410;
  line-height: 1.15;
  text-transform: none;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.45);
}

.ctv-screen__subtitle {
  margin: 0 0 0.65rem;
  font-family: "VT323", monospace;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: var(--ctv-ink-soft);
  line-height: 1;
}

.ctv-screen__subtitle[hidden] {
  display: none !important;
}

.ctv-screen__linked {
  margin: 0;
}

.ctv-screen__linked[hidden] {
  display: none !important;
}

.ctv-screen__linked-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.86rem;
  color: #5a3423;
  background: rgba(255, 250, 236, 0.7);
  border: 1px solid rgba(90, 52, 35, 0.22);
  border-radius: 999px;
  padding: 0.2rem 0.55rem 0.2rem 0.3rem;
}

.ctv-screen__linked-badge {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  object-fit: cover;
}

.ctv-screen__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(122, 47, 50, 0.55) rgba(0, 0, 0, 0.12);
}

.ctv-screen__body p {
  margin: 0 0 0.85em;
  white-space: pre-wrap;
  color: var(--ctv-ink-soft);
  line-height: 1.2;
  font-size: 17px;
}

.ctv-screen__body strong {
  font-weight: 700;
  color: var(--ctv-ink);
}

.ctv-screen__body em {
  font-style: italic;
}

.ctv-screen__body u {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ctv-screen__body hr {
  border: 0;
  border-top: 1px dashed rgba(90, 74, 61, 0.28);
  margin: 1rem 0;
}

.ctv-block-heading {
  margin: 0 0 0.65em;
  font-family: "VT323", monospace;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c2728;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.35);
  line-height: 1.2;
}

.ctv-block-callout {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed rgba(90, 74, 61, 0.35);
  border-radius: 4px;
  background: rgba(255, 252, 246, 0.55);
  box-shadow: inset 0 0 0 1px rgba(90, 74, 61, 0.08);
}

.ctv-block-callout__text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ctv-ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.ctv-block-list {
  margin: 0 0 1rem 0.25rem;
  padding: 0;
  list-style: none;
}

.ctv-block-list li {
  position: relative;
  margin: 0 0 0.4em;
  padding-left: 1.1em;
  white-space: pre-wrap;
  color: var(--ctv-ink-soft);
  line-height: 1.35;
}

.ctv-block-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: rgba(90, 74, 61, 0.55);
}

body.chanterelle-tv.ctv-off .ctv-screen {
  filter: brightness(var(--ctv-brightness, 1));
  opacity: 0;
}

body.chanterelle-tv.ctv-off .ctv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 85% at 50% 52%, rgba(18, 12, 10, 0.72) 0%, rgba(6, 4, 3, 0.94) 55%, rgba(2, 1, 1, 0.98) 100%);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.55);
}

body.chanterelle-tv.ctv-off .ctv-screen__feed,
body.chanterelle-tv.ctv-off .ctv-screen__empty {
  filter: blur(1.4px);
  opacity: 0.28;
}

body.chanterelle-tv.ctv-booting .ctv-screen {
  animation: ctv-boot-settle 0.68s cubic-bezier(0.28, 0.9, 0.32, 1) 1;
}

body.chanterelle-tv.ctv-powering-on .ctv-screen__powerfx,
body.chanterelle-tv.ctv-powering-off .ctv-screen__powerfx {
  opacity: 0;
  visibility: hidden;
}

body.chanterelle-tv.ctv-powering-on .ctv-glass-stack > .ctv-screen {
  animation: ctv-crt-power-on 1.58s cubic-bezier(0.42, 0, 0.58, 1) forwards;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body.chanterelle-tv.ctv-powering-off .ctv-glass-stack > .ctv-screen {
  animation: ctv-crt-power-off 1.2s cubic-bezier(0.45, 0.06, 0.55, 0.94) forwards;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes ctv-crt-power-on {
  0% {
    clip-path: inset(49.75% 0% 49.75% 0%);
    filter: brightness(4.5) contrast(1.12) saturate(0.9);
  }
  7% {
    clip-path: inset(48.5% 0% 48.5% 0%);
    filter: brightness(4.15) contrast(1.11) saturate(0.9);
  }
  14% {
    clip-path: inset(45% 0% 45% 0%);
    filter: brightness(3.65) contrast(1.1);
  }
  22% {
    clip-path: inset(38% 0% 38% 0%);
    filter: brightness(3.1) contrast(1.08);
  }
  32% {
    clip-path: inset(28% 0% 28% 0%);
    filter: brightness(2.55) contrast(1.07);
  }
  42% {
    clip-path: inset(18% 0% 18% 0%);
    filter: brightness(2) contrast(1.05);
  }
  52% {
    clip-path: inset(10% 0% 10% 0%);
    filter: brightness(1.62);
  }
  64% {
    clip-path: inset(4% 0% 4% 0%);
    filter: brightness(1.32);
  }
  76% {
    clip-path: inset(1% 0% 1% 0%);
    filter: brightness(1.12);
  }
  88% {
    clip-path: inset(0.15% 0% 0.15% 0%);
    filter: brightness(1.04);
  }
  100% {
    clip-path: inset(0% 0% 0% 0%);
    filter: brightness(var(--ctv-brightness, 1));
  }
}
@keyframes ctv-crt-power-off {
  0% {
    clip-path: inset(0% 0% 0% 0%);
    filter: brightness(var(--ctv-brightness, 1));
  }
  10% {
    clip-path: inset(28% 0% 28% 0%);
    filter: brightness(1.38);
  }
  20% {
    clip-path: inset(38% 0% 38% 0%);
    filter: brightness(1.58);
  }
  32% {
    clip-path: inset(45% 0% 45% 0%);
    filter: brightness(2.1);
  }
  44% {
    clip-path: inset(48.2% 0% 48.2% 0%);
    filter: brightness(2.85) saturate(1.08);
  }
  54% {
    clip-path: inset(49.1% 1.5% 49.1% 1.5%);
    filter: brightness(3.45) saturate(1.12);
  }
  64% {
    clip-path: inset(49.35% 6% 49.35% 6%);
    filter: brightness(3.75) saturate(1.15);
  }
  74% {
    clip-path: inset(49.52% 16% 49.52% 16%);
    filter: brightness(3.95) saturate(1.12);
  }
  84% {
    clip-path: inset(49.62% 26% 49.62% 26%);
    filter: brightness(4.05) saturate(1.09);
  }
  94% {
    clip-path: inset(49.82% 40% 49.82% 40%);
    filter: brightness(3.35) saturate(1.05);
  }
  100% {
    clip-path: inset(50% 50% 50% 50%);
    filter: brightness(2.2);
  }
}
@keyframes ctv-stage-power-lamp-glow {
  0%, 100% {
    filter: brightness(1) saturate(1);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 6px rgba(142, 255, 131, 0.55), 0 0 14px rgba(100, 255, 160, 0.35), 0 0 0 1px rgba(20, 28, 18, 0.6);
  }
  50% {
    filter: brightness(1.45) saturate(1.25);
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 10px rgba(200, 255, 190, 0.95), 0 0 28px rgba(120, 255, 150, 0.9), 0 0 48px rgba(80, 255, 120, 0.55), 0 0 0 1px rgba(20, 28, 18, 0.55);
  }
}
@keyframes ctv-power-lamp-glow-classic {
  0%, 100% {
    filter: brightness(1) saturate(1);
    transform: scale(1);
    box-shadow: 0 0 8px rgba(120, 200, 100, 0.45), 0 0 16px rgba(100, 220, 120, 0.28), inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  }
  50% {
    filter: brightness(1.4) saturate(1.2);
    transform: scale(1.14);
    box-shadow: 0 0 14px rgba(190, 255, 170, 0.85), 0 0 32px rgba(120, 230, 140, 0.65), 0 0 46px rgba(90, 210, 110, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.32);
  }
}
@keyframes ctv-power-ring-pulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 0 0 1px rgba(24, 18, 14, 0.42), 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 252, 246, 0.6), inset 0 -8px 10px rgba(0, 0, 0, 0.28);
  }
  50% {
    filter: brightness(1.05);
    box-shadow: 0 0 0 1px rgba(24, 18, 14, 0.42), 0 3px 8px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 252, 246, 0.75), inset 0 -8px 10px rgba(0, 0, 0, 0.26), 0 0 18px rgba(255, 210, 160, 0.22);
  }
}
@keyframes ctv-arrow-chrome-invite {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 252, 246, 0.56), inset 0 -2px 4px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(100, 255, 160, 0);
    text-shadow: 0 0 5px rgba(140, 255, 190, 0.5), 0 0 2px rgba(0, 0, 0, 0.45);
  }
  50% {
    filter: brightness(1.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 252, 246, 0.64), inset 0 -2px 4px rgba(0, 0, 0, 0.18), 0 0 14px rgba(110, 230, 160, 0.45);
    text-shadow: 0 0 12px rgba(160, 255, 210, 0.88), 0 0 3px rgba(0, 0, 0, 0.4);
  }
}
@keyframes ctv-arrow-bottom-invite {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 252, 246, 0.56), inset 0 -5px 8px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(100, 255, 170, 0);
  }
  50% {
    filter: brightness(1.09);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 252, 246, 0.62), inset 0 -5px 8px rgba(0, 0, 0, 0.2), 0 0 20px rgba(110, 230, 170, 0.42);
  }
}
@keyframes ctv-boot-settle {
  0% {
    transform: translate3d(0, -0.35%, 0) scale(0.998);
    filter: brightness(1.06) contrast(1.04);
  }
  38% {
    transform: translate3d(0, 0.18%, 0) scale(1.002);
    filter: brightness(1.1) contrast(1.06);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: brightness(var(--ctv-brightness, 1)) contrast(1);
  }
}
.ctv-console {
  flex: 0 1 auto;
  width: min(100%, 52rem);
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  padding: 0.15rem 0.1rem 0;
}

.ctv-console__panel {
  flex: 1 1 16rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.25rem, 1fr));
  gap: 0.55rem 0.45rem;
  padding: 0.65rem 0.55rem;
  border-radius: 1rem;
  background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0, 0, 0, 0.12) 4px, rgba(0, 0, 0, 0.12) 5px), linear-gradient(165deg, var(--ctv-panel-hi), var(--ctv-panel));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
}

.ctv-dial--power {
  grid-column: 1/-1;
  justify-self: center;
}

.ctv-channel,
.ctv-console__links {
  grid-column: 1/-1;
}

.ctv-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}

.ctv-dial__name {
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  color: #ffe4bc;
}

.ctv-dial__name--plate,
.ctv-channel__name.ctv-dial__name--plate {
  color: #d4b896;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(255, 255, 255, 0.06);
  letter-spacing: 0.14em;
}

.ctv-power-lamp {
  position: absolute;
  right: clamp(0.35rem, 1.8vw, 0.85rem);
  bottom: clamp(0.28rem, 1.5vw, 0.72rem);
  z-index: 12;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #3a3028, #120e0c);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.45);
}

.ctv-power-lamp--on {
  background: radial-gradient(circle at 32% 28%, #f2ffe8, #4a8a3d 48%, #1a3014);
  box-shadow: 0 0 10px rgba(120, 200, 100, 0.42), inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.ctv-knob-wrap {
  position: relative;
  width: 2.58rem;
  height: 2.58rem;
  display: inline-grid;
  place-items: center;
}

.ctv-knob-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ctv-knob-shell {
  --ctv-knob-turn: 0deg;
  width: 2.58rem;
  height: 2.58rem;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 30% 22%, rgba(255, 246, 224, 0.32), transparent 45%), radial-gradient(circle at 58% 70%, #5d3b2f 0%, #2f2023 62%, #171116 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), inset 0 -5px 8px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(255, 196, 115, 0.22);
}

.ctv-knob-shell::before {
  content: "";
  position: absolute;
  inset: 0.27rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 205, 136, 0.25);
  z-index: 0;
}

.ctv-knob-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background: repeating-conic-gradient(from -90deg, transparent 0deg 10.5deg, rgba(0, 0, 0, 0.28) 10.5deg 11.5deg);
  mask: radial-gradient(circle closest-side, transparent 52%, #000 53%, #000 100%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 52%, #000 53%, #000 100%);
}

.ctv-knob-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 2px;
  height: 0.9rem;
  background: linear-gradient(180deg, #ffeccc, #cc855f);
  border-radius: 2px;
  transform-origin: 50% calc(100% - 0.08rem);
  transform: translate(-50%, -92%) rotate(var(--ctv-knob-turn));
  box-shadow: 0 0 6px rgba(255, 177, 115, 0.45);
}

.ctv-knob-input:focus-visible + .ctv-knob-shell {
  outline: 2px solid rgba(122, 47, 50, 0.75);
  outline-offset: 3px;
}

.ctv-dial__ring {
  position: relative;
  width: 4.65rem;
  height: 4.65rem;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent), linear-gradient(145deg, #2f2a35, #151318);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.ctv-dial__ring input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.ctv-dial__knob {
  position: absolute;
  inset: 0.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ff8a9d, #b83250 55%, #4a1528);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.45), inset 0 3px 6px rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.ctv-dial__ring:hover .ctv-dial__knob {
  filter: brightness(1.08);
}

.ctv-dial__ring input:checked + .ctv-dial__knob {
  background: radial-gradient(circle at 35% 28%, #9dffb8, #2d8a5c 55%, #0d3024);
  box-shadow: 0 0 20px rgba(124, 255, 196, 0.35), inset 0 -3px 8px rgba(0, 0, 0, 0.4), inset 0 3px 6px rgba(255, 255, 255, 0.2);
}

.ctv-dial__ring input:focus-visible + .ctv-dial__knob {
  outline: 2px solid rgba(122, 47, 50, 0.75);
  outline-offset: 3px;
}

.ctv-slider {
  width: 100%;
  max-width: 7rem;
  accent-color: rgba(122, 47, 50, 0.75);
  cursor: pointer;
}

.ctv-channel {
  text-align: center;
}

.ctv-channel__name {
  display: block;
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  opacity: 0.75;
  color: #ffe4bc;
}

.ctv-channel__btns {
  display: flex;
  gap: 0.36rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ctv-btn {
  font: inherit;
  font-size: 0.62rem;
  cursor: pointer;
  padding: 0.24rem 0.44rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ctv-text-ui);
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ctv-btn--toggle[aria-pressed=true] {
  background: rgba(255, 164, 86, 0.19);
  border-color: rgba(255, 164, 86, 0.52);
}

.ctv-btn:hover {
  border-color: rgba(122, 47, 50, 0.45);
  background: rgba(255, 248, 236, 0.12);
}

.ctv-console__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
}

.ctv-console__links a {
  color: rgba(232, 224, 216, 0.65);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ctv-console__links a:hover {
  color: #fff8ee;
  border-color: rgba(255, 220, 180, 0.35);
}

.ctv-stage > .ctv-power-lamp {
  position: absolute;
  left: var(--ctv-lamp-x);
  top: var(--ctv-lamp-y);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: clamp(0.5rem, 1.5vmin, 0.78rem);
  height: clamp(0.5rem, 1.5vmin, 0.78rem);
  z-index: 7;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: radial-gradient(circle at 35% 30%, #3a3028, #120e0c);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ctv-stage > .ctv-power-lamp.ctv-power-lamp--on {
  background: radial-gradient(circle at 34% 28%, #f4fff0 0%, #7ec46d 45%, #274020 100%);
  box-shadow: 0 0 6px rgba(142, 255, 131, 0.5), 0 0 0 1px rgba(20, 28, 18, 0.6);
}

.ctv-easter-egg {
  position: absolute;
  pointer-events: auto;
}

.ctv-easter-egg--jar {
  left: var(--ctv-jar-hotspot-left);
  bottom: var(--ctv-jar-hotspot-bottom);
  width: var(--ctv-jar-hotspot-width);
  aspect-ratio: 140/271;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ctv-easter-egg__jar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 160ms ease-out;
  filter: none;
  transform: scale(var(--ctv-jar-hotspot-scale));
  transform-origin: center bottom;
  filter: drop-shadow(25px 10px 17px black);
}

.ctv-easter-egg--jar:hover .ctv-easter-egg__jar-image {
  opacity: 1;
}

.ctv-easter-egg--book {
  right: 8.5%;
  bottom: 18%;
  width: 13%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  box-shadow: 0 0 0 rgba(255, 240, 190, 0);
  transition: box-shadow 160ms ease-out, transform 160ms ease-out;
}

.ctv-easter-egg--book:hover {
  box-shadow: 0 0 18px rgba(255, 238, 180, 0.65), 0 0 36px rgba(255, 215, 130, 0.5);
  transform: translateY(-1px);
}

.ctv-stage > .ctv-console {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  z-index: 6;
}

.ctv-stage > .ctv-console .ctv-console__panel {
  display: block;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.ctv-stage > .ctv-console .ctv-dial,
.ctv-stage > .ctv-console .ctv-channel {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.ctv-stage > .ctv-console .ctv-dial--power {
  left: var(--ctv-control-power-x);
  top: var(--ctv-control-y);
}

.ctv-stage > .ctv-console .ctv-dial--tune {
  left: var(--ctv-control-brightness-x);
  top: var(--ctv-control-y);
}

.ctv-stage > .ctv-console .ctv-dial--signal {
  left: var(--ctv-control-signal-x);
  top: var(--ctv-control-y);
}

.ctv-stage > .ctv-console .ctv-dial--volume {
  left: var(--ctv-control-volume-x);
  top: var(--ctv-control-y);
}

.ctv-stage > .ctv-console .ctv-channel {
  display: none;
}

.ctv-stage > .ctv-bottom-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.ctv-stage > .ctv-bottom-nav > #strainPrevBottom,
.ctv-stage > .ctv-bottom-nav > #strainNextBottom {
  position: absolute;
  top: var(--ctv-control-bottom-y);
  transform: translate(-50%, -50%);
  width: var(--ctv-control-bottom-arrow-size);
  height: var(--ctv-control-bottom-arrow-size);
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(22, 16, 12, 0.38);
  background: radial-gradient(circle at 35% 30%, #f5ecd9 0%, #b8ab90 46%, #61584b 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 252, 246, 0.56), inset 0 -5px 8px rgba(0, 0, 0, 0.25);
  color: transparent;
  font-size: 0;
  line-height: 0;
  display: inline-grid;
  place-items: center;
  pointer-events: auto;
  overflow: hidden;
}

.ctv-stage > .ctv-bottom-nav > #strainPrevBottom::after,
.ctv-stage > .ctv-bottom-nav > #strainNextBottom::after {
  content: "◀";
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: var(--ctv-control-bottom-icon-size);
  font-weight: 700;
  line-height: 1;
  color: #d2ffe6;
  text-shadow: 0 0 8px rgba(120, 255, 180, 0.72), 0 1px 2px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, calc(-50% + var(--ctv-control-bottom-icon-y)));
  pointer-events: none;
}

.ctv-stage > .ctv-bottom-nav > #strainPrevBottom::after {
  transform: translate(calc(-50% + var(--ctv-control-bottom-prev-icon-x)), calc(-50% + var(--ctv-control-bottom-icon-y)));
}

.ctv-stage > .ctv-bottom-nav > #strainNextBottom::after {
  content: "▶";
  transform: translate(calc(-50% + var(--ctv-control-bottom-next-icon-x)), calc(-50% + var(--ctv-control-bottom-icon-y)));
}

.ctv-stage > .ctv-bottom-nav > #strainPrevBottom {
  left: var(--ctv-control-prev-bottom-x);
}

.ctv-stage > .ctv-bottom-nav > #strainNextBottom {
  left: var(--ctv-control-next-bottom-x);
}

.ctv-stage > .ctv-console .ctv-dial__name,
.ctv-stage > .ctv-console .ctv-channel__name,
.ctv-stage > .ctv-console .ctv-console__links {
  display: none;
}

.ctv-stage > .ctv-console .ctv-dial__ring {
  width: var(--ctv-control-power-size);
  height: var(--ctv-control-power-size);
  background: radial-gradient(circle at 30% 26%, #f6eedf 0%, #beb39c 38%, #6a6255 100%);
  box-shadow: 0 0 0 1px rgba(24, 18, 14, 0.42), 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 252, 246, 0.6), inset 0 -8px 10px rgba(0, 0, 0, 0.28);
}

.ctv-stage > .ctv-console .ctv-dial--power .ctv-dial__knob {
  inset: 12%;
  background: radial-gradient(circle at 34% 30%, #f8f0e2, #b6a88c 45%, #62584a 100%);
  box-shadow: inset 0 1px 1px rgba(255, 252, 246, 0.55), inset 0 -5px 7px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(22, 16, 12, 0.35);
}

.ctv-stage > .ctv-console .ctv-knob-wrap,
.ctv-stage > .ctv-console .ctv-knob-shell {
  width: var(--ctv-control-knob-size);
  height: var(--ctv-control-knob-size);
  background: radial-gradient(circle at 33% 28%, #f2e7d2, #b0a186 48%, #5b5246 100%);
  box-shadow: 0 0 0 1px rgba(22, 16, 12, 0.35), inset 0 1px 1px rgba(255, 252, 246, 0.5), inset 0 -4px 6px rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.ctv-stage > .ctv-console .ctv-knob-shell::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(44, 34, 26, 0.28);
}

.ctv-stage > .ctv-console .ctv-knob-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 252, 246, 0.4);
}

.ctv-stage > .ctv-console .ctv-knob-needle {
  display: block;
  width: 2px;
  height: 28%;
  background: linear-gradient(180deg, #f8efe0, #7d6e58);
  box-shadow: 0 0 0 1px rgba(30, 22, 16, 0.12);
}

body.chanterelle-tv .footer {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .ctv-power-lamp--on {
    animation: ctv-power-lamp-glow-classic 1.35s ease-in-out infinite;
  }
  .ctv-stage > .ctv-power-lamp.ctv-power-lamp--on {
    animation: ctv-stage-power-lamp-glow 1.35s ease-in-out infinite;
  }
  .ctv-stage > .ctv-console .ctv-dial--power .ctv-dial__ring {
    animation: ctv-power-ring-pulse 2.9s ease-in-out infinite;
  }
  .ctv-stage > .ctv-console .ctv-dial--power .ctv-dial__ring:hover,
  .ctv-stage > .ctv-console .ctv-dial--power .ctv-dial__ring:focus-within {
    animation-play-state: paused;
  }
  .ctv-monitor-slot .ctv-browser-chrome #strainPrev,
  .ctv-monitor-slot .ctv-browser-chrome #strainNext {
    animation: ctv-arrow-chrome-invite 2.75s ease-in-out infinite;
  }
  .ctv-monitor-slot .ctv-browser-chrome #strainPrev:hover,
  .ctv-monitor-slot .ctv-browser-chrome #strainPrev:focus-visible,
  .ctv-monitor-slot .ctv-browser-chrome #strainNext:hover,
  .ctv-monitor-slot .ctv-browser-chrome #strainNext:focus-visible {
    animation-play-state: paused;
  }
  .ctv-monitor-slot .ctv-browser-chrome #strainNext {
    animation-delay: 0.45s;
  }
  .ctv-stage > .ctv-bottom-nav > #strainPrevBottom,
  .ctv-stage > .ctv-bottom-nav > #strainNextBottom {
    animation: ctv-arrow-bottom-invite 3.1s ease-in-out infinite;
  }
  .ctv-stage > .ctv-bottom-nav > #strainPrevBottom:hover,
  .ctv-stage > .ctv-bottom-nav > #strainPrevBottom:focus-visible,
  .ctv-stage > .ctv-bottom-nav > #strainNextBottom:hover,
  .ctv-stage > .ctv-bottom-nav > #strainNextBottom:focus-visible {
    animation-play-state: paused;
  }
  .ctv-stage > .ctv-bottom-nav > #strainNextBottom {
    animation-delay: 0.55s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ctv-crt__scanlines {
    animation: none;
  }
  .ctv-crt__glass::before {
    animation: none;
  }
  .ctv-feed--tune,
  .ctv-screen,
  .ctv-screen::before,
  .ctv-screen__powerfx,
  body.chanterelle-tv.ctv-booting .ctv-screen,
  body.chanterelle-tv.ctv-powering-on .ctv-glass-stack > .ctv-screen,
  body.chanterelle-tv.ctv-powering-off .ctv-glass-stack > .ctv-screen {
    animation: none;
  }
  body.chanterelle-tv.ctv-powering-on .ctv-glass-stack > .ctv-screen,
  body.chanterelle-tv.ctv-powering-off .ctv-glass-stack > .ctv-screen {
    clip-path: none;
  }
  .ctv-power-lamp--on,
  .ctv-stage > .ctv-power-lamp.ctv-power-lamp--on {
    animation: none;
  }
  .ctv-stage > .ctv-power-lamp.ctv-power-lamp--on {
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 980px) {
  .ctv-main {
    padding: 1rem 0.8rem 0.7rem;
    border-radius: 0.9rem;
  }
  .ctv-main::before {
    inset: 6px;
    border-radius: 0.65rem;
  }
  .ctv-monitor-slot .ctv-crt__glass::before {
    display: none;
  }
  .ctv-power-lamp {
    right: clamp(0.35rem, 2vw, 0.75rem);
    bottom: clamp(0.28rem, 1.5vw, 0.65rem);
    width: 0.46rem;
    height: 0.46rem;
  }
}
@media (max-width: 1200px) {
  :root {
    --ctv-control-bottom-arrow-size: clamp(1.85rem, 3vw, 2.45rem);
    --ctv-control-power-size: clamp(2.15rem, 3.4vw, 2.9rem);
    --ctv-control-knob-size: clamp(1.32rem, 2.15vw, 1.82rem);
    --ctv-control-arrow-size: clamp(0.72rem, 1.1vw, 0.94rem);
  }
}
@media (max-width: 768px) {
  :root {
    --ctv-slot-left: 29.85%;
    --ctv-slot-top: 26.95%;
    --ctv-slot-w: 40.2%;
    --ctv-slot-h: 36.15%;
    --ctv-slot-pad: clamp(2px, 0.42vmin, 6px);
    --ctv-slot-radius-x: clamp(10px, 2.5vmin, 18px);
    --ctv-slot-radius-y: clamp(12px, 3.1vmin, 22px);
  }
  .ctv-unit {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
  }
  .ctv-stage {
    width: 100%;
    max-width: 100vw;
    aspect-ratio: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0.5rem 0.75rem;
    background-position: left top;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .ctv-monitor-slot {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 29rem);
    height: auto;
    margin: 0 auto;
    overflow: visible;
    transform: none;
  }
  .ctv-monitor-slot .ctv-crt__glass {
    position: relative;
    inset: 0;
  }
  .ctv-glass-stack,
  .ctv-screen,
  .ctv-screen__feed {
    height: auto;
    min-height: 0;
  }
  .ctv-screen {
    overflow: visible;
    min-height: clamp(12rem, 40vh, 18rem);
  }
  .ctv-screen__feed {
    display: block;
  }
  .ctv-screen__body {
    overflow: visible;
    max-height: none;
  }
  .ctv-screen__body p {
    margin: 0 0 0.85em;
    white-space: pre-wrap;
    color: var(--ctv-ink-soft);
    font-size: 1.1rem;
  }
  .ctv-stage > .ctv-power-lamp {
    display: none;
  }
  .ctv-stage > .ctv-bottom-nav {
    display: none;
  }
  .ctv-console {
    width: 100%;
    max-width: none;
    min-width: 0;
    align-self: stretch;
    gap: 0.5rem;
  }
  .ctv-stage > .ctv-console {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding-top: 0.2rem;
    pointer-events: auto;
  }
  .ctv-stage > .ctv-console .ctv-console__panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem 0.32rem;
    padding: 0.48rem 0.42rem;
    width: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0, 0, 0, 0.12) 4px, rgba(0, 0, 0, 0.12) 5px), linear-gradient(165deg, var(--ctv-panel-hi), var(--ctv-panel));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
  }
  .ctv-stage > .ctv-console .ctv-dial,
  .ctv-stage > .ctv-console .ctv-channel {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
  }
  .ctv-dial--power {
    grid-column: 1/-1;
    justify-self: center;
  }
  .ctv-dial--power .ctv-dial__ring {
    width: 3.05rem;
    height: 3.05rem;
  }
  .ctv-dial--power .ctv-dial__knob {
    inset: 0.4rem;
  }
  .ctv-dial--tune {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }
  .ctv-dial--signal {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
  }
  .ctv-dial--volume {
    grid-column: 3;
    grid-row: 2;
    justify-self: center;
  }
  .ctv-dial--tune .ctv-dial__name,
  .ctv-dial--signal .ctv-dial__name,
  .ctv-dial--volume .ctv-dial__name {
    font-size: 0.46rem;
  }
  .ctv-knob-wrap,
  .ctv-knob-shell {
    width: 1.92rem;
    height: 1.92rem;
  }
  .ctv-knob-shell::before {
    inset: 0.2rem;
  }
  .ctv-knob-needle {
    height: 0.56rem;
  }
  .ctv-dial {
    min-width: 0;
  }
  .ctv-channel,
  .ctv-console__links {
    grid-column: 1/-1;
  }
  .ctv-stage > .ctv-console .ctv-channel {
    display: block;
  }
  .ctv-stage > .ctv-console .ctv-dial__name,
  .ctv-stage > .ctv-console .ctv-channel__name {
    display: block;
  }
  .ctv-stage > .ctv-console .ctv-console__links {
    display: flex;
  }
  .ctv-channel__btns {
    display: flex;
    width: 100%;
    gap: 0.32rem;
  }
  .ctv-channel__btns .ctv-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.35rem;
    font-size: 0.54rem;
  }
  .ctv-console__links {
    flex-direction: row;
    justify-content: center;
    gap: 0.8rem;
  }
  .ctv-main {
    padding: 0.7rem 0.45rem 0.55rem;
    border-radius: 0.7rem;
  }
  .ctv-header {
    padding: 0.45rem 0.25rem 0.1rem;
    margin-top: 0.15rem;
  }
  .ctv-header__logo {
    height: clamp(1.75rem, 12vw, 2.65rem);
    max-width: min(92vw, 12.5rem);
  }
  .ctv-header__sub {
    font-size: 0.5rem;
    letter-spacing: 0.09em;
  }
  .ctv-screen {
    padding: 0.75rem 0.7rem;
    font-size: clamp(0.92rem, 3.5vw, 1.08rem);
    transform: none;
  }
  .ctv-screen__title {
    font-size: clamp(1.1rem, 5.5vw, 1.35rem);
  }
}
#chat-button {
  display: none;
}

.candlelight-overlay.candlelight--ember {
  background: unset;
}

.cursor {
  display: none;
}