@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Yellowtail";
  src: url("fonts/Yellowtail-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Limelight";
  src: url("fonts/Limelight-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Oswald";
  src: url("fonts/Oswald-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --phosphor: #eef3ee;
  --phosphor-dim: #a9b4ae;
  --phosphor-faint: #6f7a75;
  --tube: #101413;
  --wood: #7b4423;
  --wood-dark: #44220e;
  --brass-hi: #f6e2a6;
  --brass: #c99d48;
  --brass-lo: #7c5a1d;
  --cream: #f3e6c8;
  /* 1950s TV lettering: condensed gothic labels + marquee titles + script badge */
  --ui-font: "Oswald", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --display-font: "Limelight", "Copperplate Gothic", Georgia, serif;
  --script-font: "Yellowtail", "Snell Roundhand", "Brush Script MT", cursive;
  --body-font: "Atkinson Hyperlegible", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #1b1512;
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: default; }

/* ---------- Room ---------- */

.room {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 0 82%, rgba(0, 0, 0, .35) 82% 83%, #2d1f16 83%, #1e140e 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 26px, transparent 26px 70px),
    radial-gradient(ellipse at 50% 30%, #4d5f55 0%, #34433c 45%, #1f2824 100%);
}

.room::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 1.5px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent 83%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 82%, transparent 83%);
}

.lamp-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255, 220, 160, .14), transparent 70%);
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1600px;
  height: 1000px;
  transform-origin: 0 0;
}

/* ---------- Cabinet ---------- */

.cabinet {
  position: absolute;
  left: 70px;
  top: 46px;
  width: 1460px;
  height: 860px;
  border-radius: 46px;
  background:
    linear-gradient(180deg, rgba(255, 210, 160, .16), transparent 18%, transparent 85%, rgba(0, 0, 0, .3)),
    linear-gradient(90deg, #6d3a1c, #8a4d27 20%, #7a4321 45%, #8f532b 70%, #6a381a);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .6),
    0 12px 24px rgba(0, 0, 0, .45),
    inset 0 2px 0 rgba(255, 220, 180, .35),
    inset 0 -6px 14px rgba(0, 0, 0, .45),
    inset 0 0 0 10px rgba(60, 28, 10, .35);
}

.wood-grain {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1460' height='860'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.0035 0.09' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.17  0 0 0 0 0.06  0 0 0 1.4 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  background-size: 100% 100%;
}

.mask {
  position: absolute;
  left: 44px;
  top: 44px;
  width: 1000px;
  height: 666px;
  padding: 24px;
  border-radius: 54px;
  background:
    linear-gradient(145deg, #fbf1d6, #dcc79a 35%, #b8a06e 70%, #e4d3a8);
  box-shadow:
    inset 0 3px 2px rgba(255, 255, 255, .7),
    inset 0 -4px 6px rgba(80, 55, 20, .5),
    0 6px 16px rgba(0, 0, 0, .55),
    0 0 0 6px #3a1d0b,
    0 0 0 8px rgba(255, 210, 160, .2);
}

.crt {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 64px / 56px;
  background: radial-gradient(ellipse at 50% 45%, #1c2220 0%, #121615 60%, #070908 100%);
  box-shadow:
    inset 0 0 0 3px #050605,
    inset 0 10px 30px rgba(0, 0, 0, .9),
    0 0 0 4px rgba(40, 30, 15, .6);
}

.crt::before {
  /* phosphor glow + vignette */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 120px 30px rgba(0, 0, 0, .75), inset 0 0 26px rgba(0, 0, 0, .9);
}

.crt-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 50px 70px 44px;
  color: var(--phosphor);
  filter: grayscale(1) contrast(1.05);
  /* Soft glow only — a hard 0 0 2px shadow doubled up with scanlines on
     large headings and looked like overlapping text. */
  text-shadow: 0 0 12px rgba(225, 240, 232, .28);
  transform-origin: 50% 50%;
}

.crt.is-warming .crt-content { animation: warm-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.crt.is-off .crt-content { animation: power-off .55s ease-in forwards; }

@keyframes warm-up {
  0% { transform: scale(1, .004); filter: grayscale(1) brightness(4); opacity: .2; }
  35% { transform: scale(1, .02); filter: grayscale(1) brightness(3); opacity: 1; }
  70% { transform: scale(1, 1.02); filter: grayscale(1) brightness(1.3); }
  100% { transform: scale(1, 1); filter: grayscale(1) brightness(1) contrast(1.05); }
}

@keyframes power-off {
  0% { transform: scale(1, 1); filter: grayscale(1) brightness(1); }
  55% { transform: scale(1, .006); filter: grayscale(1) brightness(5); }
  100% { transform: scale(0, .004); filter: grayscale(1) brightness(8); opacity: 0; }
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.roll {
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(230, 245, 240, .045), transparent);
  animation: roll 9s linear infinite;
}

@keyframes roll {
  from { transform: translateY(-180px); }
  to { transform: translateY(800px); }
}

.glass {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 40% at 28% 8%, rgba(255, 255, 255, .13), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .07) 0%, transparent 32%, transparent 78%, rgba(255, 255, 255, .03));
}

.static {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  transition: opacity .12s;
}
.static.is-on { opacity: .55; }

.snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.snow i {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: #fff;
  opacity: .75;
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  to { transform: translate3d(var(--drift, 20px), 700px, 0); }
}

/* ---------- Screen content ---------- */

.tv-page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tv-top .dim { color: var(--phosphor-dim); font-weight: 400; letter-spacing: .08em; }

.tv-kicker {
  margin: 4px 0 2px;
  font-size: 22px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 28px;
}

.channel-page {
  justify-content: center;
  gap: 0;
}

.channel-eyebrow {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  margin-bottom: 10px;
}

.channel-readout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0 auto 18px;
  padding: 18px 28px;
  border: 3px solid rgba(238, 243, 238, .45);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(238, 243, 238, .08), rgba(0, 0, 0, .25)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .12) 3px 4px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .45), 0 0 24px rgba(220, 240, 230, .12);
  max-width: 100%;
}
.channel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  padding: 0 18px;
}
.channel-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}
.channel-num {
  font-family: var(--display-font);
  font-size: 108px;
  line-height: .95;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--phosphor);
  text-shadow: 0 0 18px rgba(225, 240, 232, .35);
}
.channel-sep {
  width: 3px;
  margin: 10px 8px;
  background: linear-gradient(to bottom, transparent, rgba(238, 243, 238, .55), transparent);
}

.tv-title {
  margin: 8px 0 0;
  font-family: var(--display-font);
  font-size: 44px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: .01em;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(225, 240, 232, .25);
  max-height: calc(1.25em * 2);
}
.tv-title.spaced { margin-top: 14px; }

.tv-status {
  margin-top: 14px;
  font-size: 26px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 34px;
  color: var(--phosphor);
  text-align: center;
}
.tv-status .muted { color: var(--phosphor-dim); }

.tune-hint {
  margin-top: 28px;
  font-size: 24px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--phosphor-faint);
  text-align: center;
}
.tune-hint b { color: var(--phosphor-dim); font-weight: 700; }

.channel-foot {
  margin-top: 18px !important;
  text-align: center;
}

.meter {
  flex: 0 0 220px;
  height: 14px;
  border-radius: 7px;
  border: 2px solid var(--phosphor-dim);
  overflow: hidden;
}
.meter > span { display: block; height: 100%; background: var(--phosphor); box-shadow: 0 0 10px rgba(255, 255, 255, .6); }

.tv-actions {
  margin-top: 18px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  min-height: 64px;
  border-radius: 16px;
  border: 3px solid var(--phosphor);
  background: transparent;
  color: var(--phosphor);
  font-size: 30px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 0 16px rgba(220, 240, 230, .25), inset 0 0 12px rgba(220, 240, 230, .12);
  transition: background .15s, color .15s, transform .1s;
}
.tv-btn svg { width: 28px; height: 28px; flex: none; }
.tv-btn.primary { background: var(--phosphor); color: #0d1110; text-shadow: none; }
.tv-btn:hover:not(:disabled) { transform: translateY(-2px); }
.tv-btn.primary:hover:not(:disabled) { background: #fff; }
.tv-btn:not(.primary):hover:not(:disabled) { background: rgba(238, 243, 238, .12); }
.tv-btn:active:not(:disabled) { transform: translateY(1px); }
.tv-btn:disabled { opacity: .35; }
.tv-btn.small { font-size: 24px; min-height: 56px; padding: 10px 22px; border-width: 2px; }
.tv-btn:focus-visible { outline: 3px solid rgba(238, 243, 238, .55); outline-offset: 5px; }

.guide {
  margin-top: 16px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 2px solid rgba(238, 243, 238, .35);
  padding-top: 10px;
}
.guide-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 243, 238, .45) transparent;
}
.guide-row {
  display: grid;
  grid-template-columns: 40px 56px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--phosphor-dim);
  font-size: 26px;
  text-align: left;
  text-shadow: none;
}
.guide-row:hover { background: rgba(238, 243, 238, .1); color: var(--phosphor); }
.guide-row.is-current {
  background: rgba(238, 243, 238, .18);
  color: var(--phosphor);
  box-shadow: inset 0 0 0 2px rgba(238, 243, 238, .55);
}
.guide-row.is-offline .name { opacity: .7; }
.guide-row .num { font-weight: 700; }
.guide-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-row .tag {
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-left: 12px;
  min-width: 7em;
  text-align: right;
  color: var(--phosphor-faint);
}
.guide-row.is-current .tag { color: var(--phosphor); }
.guide-row svg { width: 26px; height: 26px; }
.guide-label {
  font-size: 20px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--phosphor-faint);
  margin: 0 12px 6px;
  flex: none;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check svg { width: 34px; height: 34px; }

.center-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.center-page h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 52px;
  line-height: 1.22;
  font-weight: 400;
  text-shadow: 0 0 8px rgba(225, 240, 232, .22);
}
.center-page p {
  margin: 0;
  font-family: var(--body-font);
  font-size: 30px;
  line-height: 1.35;
  color: var(--phosphor-dim);
  max-width: 760px;
}
.center-page .tv-actions { justify-content: center; margin-top: 18px; }
.center-page ol { margin: 0; padding-left: 1.3em; text-align: left; font-size: 30px; line-height: 1.45; color: var(--phosphor); }

.big-label { font-size: 26px; letter-spacing: .16em; text-transform: uppercase; color: var(--phosphor-dim); }

.countdown { font-size: 30px; color: var(--phosphor-dim); }
.countdown b { color: var(--phosphor); font-size: 36px; }

.welcome { gap: 10px; }
.welcome h1 {
  font-family: var(--script-font);
  font-weight: 400;
  font-size: 76px;
  line-height: 1.05;
  letter-spacing: .01em;
}
.welcome .message {
  font-family: var(--body-font);
  font-size: 29px;
  line-height: 1.36;
  color: var(--phosphor);
  white-space: pre-wrap;
  max-width: 800px;
  max-height: 280px;
  overflow: auto;
}
.welcome .signature { font-family: var(--script-font); font-size: 48px; line-height: 1.1; color: var(--phosphor); }
.welcome .tv-actions { margin-top: 10px; }

.warming { font-size: 34px; letter-spacing: .2em; text-transform: uppercase; color: var(--phosphor-dim); }

.surprise-title {
  font-family: var(--display-font);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.22;
  max-width: 800px;
  text-shadow: 0 0 8px rgba(225, 240, 232, .22);
}

.ornament { width: 30px; height: 30px; }

/* ---------- Strip under the screen ---------- */

.strip {
  position: absolute;
  left: 44px;
  top: 730px;
  width: 1000px;
  height: 88px;
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.cab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 20px;
  font-size: 32px;
  font-weight: 700;
  color: #3a2410;
  background: linear-gradient(180deg, #fff7e2, var(--cream) 45%, #d9c49a);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .9),
    inset 0 -4px 6px rgba(120, 85, 40, .45),
    0 6px 0 #6b4a1f,
    0 10px 16px rgba(0, 0, 0, .5);
  transition: transform .08s, box-shadow .08s;
}
.cab-btn:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), inset 0 -2px 4px rgba(120, 85, 40, .45), 0 1px 0 #6b4a1f, 0 3px 6px rgba(0, 0, 0, .5);
}
.cab-btn:hover:not(:disabled) { filter: brightness(1.05); }
.cab-btn:disabled { opacity: .55; }
.cab-btn:focus-visible { outline: 4px solid #fff3c4; outline-offset: 4px; }
.cab-btn-icon { display: inline-flex; }
.cab-btn-icon svg { width: 40px; height: 40px; }

.cab-btn.surprise { flex: 1.1; }
.cab-btn.christmas {
  flex: 1.35;
  color: #fff6e6;
  background: linear-gradient(180deg, #c8413c, #a3221f 50%, #7d1513);
  box-shadow:
    inset 0 2px 1px rgba(255, 200, 190, .7),
    inset 0 -4px 6px rgba(60, 0, 0, .5),
    0 6px 0 #4c0a08,
    0 10px 16px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.cab-btn.christmas:active:not(:disabled) { box-shadow: inset 0 2px 1px rgba(255, 200, 190, .7), 0 1px 0 #4c0a08, 0 3px 6px rgba(0, 0, 0, .5); }
.cab-btn.power {
  flex: .62;
  font-size: 26px;
  color: #e9dcc0;
  background: linear-gradient(180deg, #3b2a1d, #26190f);
  box-shadow: inset 0 2px 1px rgba(255, 230, 200, .25), 0 6px 0 #120b05, 0 10px 16px rgba(0, 0, 0, .5);
}
.cab-btn.power .cab-btn-icon svg { width: 30px; height: 30px; }

/* ---------- Right control panel ---------- */

.panel {
  position: absolute;
  left: 1074px;
  top: 44px;
  width: 342px;
  height: 774px;
  border-radius: 30px;
  padding: 14px 16px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .28));
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 220, 180, .25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow: hidden;
}

.speaker {
  position: absolute;
  inset: 100px 16px 16px;
  border-radius: 22px;
  opacity: .45;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 5px),
    linear-gradient(#5b4632, #3e2e20);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .6);
}

.nameplate {
  position: relative;
  width: 240px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--brass-hi), var(--brass) 45%, var(--brass-lo) 90%);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .7), inset 0 -3px 4px rgba(70, 45, 10, .6), 0 6px 12px rgba(0, 0, 0, .5);
}
.nameplate span {
  font-family: var(--script-font);
  font-size: 48px;
  color: #3d2608;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .7);
  transform: rotate(-4deg) translateY(-2px);
}

.knob-block {
  position: relative;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  gap: 6px;
}
.knob-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 3px rgba(0, 0, 0, .7);
  padding: 2px 14px;
  border-radius: 8px;
  background: rgba(40, 20, 6, .55);
}

.knob-wrap {
  position: relative;
  width: 220px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.dial-numbers, .dial-ticks { position: absolute; inset: 0; pointer-events: none; }
.dial-numbers span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}
.dial-numbers span.is-active { background: var(--cream); color: #3a2410; text-shadow: none; box-shadow: 0 0 10px rgba(255, 240, 200, .7); }
.dial-ticks i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 12px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(243, 230, 200, .55);
  transform-origin: 50% 0;
}
.dial-ticks i.is-active { background: #fff3cf; height: 16px; box-shadow: 0 0 6px #fff3cf; }
.dial-ticks i.is-watched { background: rgba(243, 230, 200, .95); }

.knob {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  outline: none;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .55));
}
.knob:active { cursor: grabbing; }
.knob:focus-visible { box-shadow: 0 0 0 5px #fff3c4; }

.knob-ridges {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, .35) 71%),
    repeating-conic-gradient(#2a1a10 0deg 5deg, #4b3020 5deg 10deg);
  box-shadow: inset 0 3px 3px rgba(255, 220, 190, .25), inset 0 -4px 6px rgba(0, 0, 0, .6);
  transition: transform .28s cubic-bezier(.3, 1.4, .5, 1);
}
.knob-cap {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 235, 210, .55), transparent 38%),
    radial-gradient(circle at 50% 50%, #5a3a24, #2e1c10 75%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .55), inset 0 -3px 5px rgba(0, 0, 0, .5), inset 0 2px 2px rgba(255, 230, 200, .35);
  transition: transform .28s cubic-bezier(.3, 1.4, .5, 1);
}
.knob-pointer {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 10px;
  height: 46px;
  margin-left: -5px;
  border-radius: 5px;
  background: linear-gradient(#fff6dc, #e2cf9f);
  box-shadow: 0 0 6px rgba(255, 240, 200, .6);
}

.knob-arrows {
  display: flex;
  gap: 14px;
  margin-top: 2px;
  position: relative;
  z-index: 2;
  flex: none;
}
.arrow-btn {
  width: 84px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  padding-bottom: 4px;
  color: #3a2410;
  background: linear-gradient(180deg, #fff7e2, var(--cream) 45%, #d9c49a);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), 0 5px 0 #6b4a1f, 0 8px 12px rgba(0, 0, 0, .45);
}
.arrow-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .9), 0 1px 0 #6b4a1f; }
.arrow-btn:disabled { opacity: .5; }
.arrow-btn:focus-visible { outline: 4px solid #fff3c4; outline-offset: 3px; }

.legs {
  position: absolute;
  left: 70px;
  top: 900px;
  width: 1460px;
  height: 80px;
}
.legs span {
  position: absolute;
  top: 0;
  width: 34px;
  height: 80px;
  background: linear-gradient(90deg, #3a1d0b, #6d3a1c 40%, #4a250f);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 28% 100%);
}
.legs span:first-child { left: 130px; transform: skewX(8deg); }
.legs span:last-child { right: 130px; transform: skewX(-8deg); }

/* ---------- Christmas garland ---------- */

.garland {
  position: absolute;
  left: 40px;
  top: 6px;
  width: 1520px;
  height: 140px;
  z-index: 10;
  pointer-events: none;
  display: none;
}
.is-festive .garland { display: block; }
.garland svg { width: 100%; height: 100%; overflow: visible; }
.garland .bulb { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* ---------- Preview-only player stand-in ---------- */

.preview-player {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  color: #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 28px;
  text-align: center;
}
.preview-player button { font-size: 26px; padding: 14px 28px; border-radius: 12px; border: 2px solid #ddd; background: transparent; color: #fff; }

/* ---------- Cloudflare progressive HTML5 player ---------- */

.cloud-player {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  color: #f4efe6;
  font-family: "Atkinson Hyperlegible", Georgia, serif;
}
.cloud-player video {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000;
  outline: none;
}
.cloud-player-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, #1a120c, #0a0705);
  border-bottom: 1px solid rgba(255, 220, 160, 0.18);
}
.cloud-player-back {
  font: inherit;
  font-size: 18px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 220, 160, 0.35);
  background: #3a2410;
  color: #fff8e8;
  cursor: pointer;
}
.cloud-player-back:hover { filter: brightness(1.08); }
.cloud-player-title {
  flex: 1;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cloud-player-off {
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-align: center;
  padding: 40px;
}
body.is-cloud-playing .room { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .roll, .garland .bulb, .snow i { animation: none; }
  .crt.is-warming .crt-content { animation: none; }
}
