/* Club furniture: the wall marquee, the jukebox, the track attendant,
   and the team overlay. Fixtures in the room, not chrome on the page. */

/* --- Wall marquee: the now-playing board. Label tab on the frame,
       title + clock in the glass, spectrum along the bottom. --- */
.marquee {
  position: fixed;
  top: 3.6rem;
  right: max(clamp(0.5rem, 3vw, 1.6rem), env(safe-area-inset-right));
  z-index: 2;
  width: min(24rem, 80vw);
  padding: 0.5rem 0.7rem 0.4rem;
  display: block;
  overflow: visible; /* the tag rides outside the glass */
  background: rgba(5, 2, 4, 0.88);
  border: 2px solid rgba(13, 7, 12, 1);
  outline: 1px solid rgba(255, 177, 78, 0.25);
  box-shadow: 0 6px 22px rgba(5, 2, 4, 0.7), inset 0 0 14px rgba(5, 2, 4, 0.9);
  transform: rotate(-1.2deg);
  font-family: var(--font-machine);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255, 177, 78, 0.7), 0 0 14px rgba(255, 177, 78, 0.3);
  transition: filter 0.55s ease-out;
  -webkit-user-select: none;
  user-select: none;
}
.marquee--live {
  color: var(--blue);
  text-shadow: 0 0 6px rgba(69, 200, 255, 0.7), 0 0 14px rgba(69, 200, 255, 0.35);
}
.marquee--flash { filter: brightness(1.8); transition: none; }

/* The label: a little riveted plate on the frame, not in the glass. */
.marquee__tag {
  position: absolute;
  top: -0.85rem;
  left: 0.8rem;
  padding: 0.14rem 0.5rem;
  background: var(--surface);
  border: 1px solid rgba(255, 177, 78, 0.45);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  color: var(--amber-dim);
  text-shadow: none;
  transform: rotate(0.8deg); /* fights the board's tilt, like real hardware */
}
.marquee--live .marquee__tag {
  color: var(--tube-core);
  border-color: rgba(255, 46, 200, 0.6);
  text-shadow: 0 0 6px rgba(255, 46, 200, 0.8);
}

.marquee__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}
.marquee__belt {
  display: inline-flex;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  will-change: transform;
}
/* Only crawls when the title genuinely doesn't fit (JS decides). */
.marquee__belt--roll { animation: marquee-roll 12s linear 1.2s infinite; }
@keyframes marquee-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__belt--roll { animation: none; }
}
.marquee__time {
  flex: none;
  font-size: 0.68rem;
  color: var(--amber-dim);
}

/* The beat wall: 16-band spectrum with peak caps, fed by viz.js. */
.marquee__spectrum {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px dashed rgba(255, 177, 78, 0.2);
}
.marquee__spectrum i {
  position: relative;
  flex: 1;
  height: 100%;
  background: linear-gradient(to top, var(--blue), var(--pink));
  box-shadow: 0 0 5px rgba(69, 200, 255, 0.45);
  transform: scaleY(var(--v, 0.06));
  transform-origin: bottom;
  will-change: transform;
}
/* Peak caps: independent elements so they hang above the bars and fall.
   Anchored at the floor; viz.js lifts them with translateY (compositor-
   only, same as the bars). */
.marquee__cap {
  position: absolute;
  bottom: 0;
  width: inherit;
  height: 2px;
  background: var(--tube-core);
  box-shadow: 0 0 4px rgba(255, 246, 251, 0.8);
  pointer-events: none;
  will-change: transform;
}

/* --- The jukebox: a bubbler arch with a live platter. Press it. --- */
.jukebox {
  position: fixed;
  left: max(0.9rem, env(safe-area-inset-left));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: 4;
  width: 6.6rem;
  height: 8.8rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
/* It spills light onto the floor like real furniture — and the spill
   pumps with the low end (viz.js writes --pulse from the kick). */
.jukebox::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  width: 130%;
  height: 1.4rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 46, 200, 0.22), transparent 70%);
  opacity: calc(0.6 + var(--pulse, 0) * 0.4);
  pointer-events: none;
}
.jukebox svg {
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 0 10px rgba(255, 46, 200, 0.35))
    drop-shadow(0 8px 18px rgba(5, 2, 4, 0.8));
  transition: filter 0.25s ease-out;
}
.jukebox:hover svg,
.jukebox:focus-visible svg {
  filter:
    drop-shadow(0 0 18px rgba(255, 46, 200, 0.6))
    drop-shadow(0 8px 18px rgba(5, 2, 4, 0.8));
}
.jukebox:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.jukebox:disabled { cursor: not-allowed; }
.jukebox:disabled svg {
  filter: grayscale(0.7) brightness(0.6) drop-shadow(0 8px 18px rgba(5, 2, 4, 0.8));
}

/* The color cylinder: the arch cycles like a real Wurlitzer bubbler. */
.jb__body {
  fill: url(#jbBody);
  stroke: var(--pink);
  stroke-width: 2.5;
  animation: jb-arch 11s linear infinite;
}
.jb__innerarch {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  opacity: 0.85;
  animation: jb-arch 11s linear -5.5s infinite; /* opposite phase */
}
@keyframes jb-arch {
  0%   { stroke: var(--pink); }
  33%  { stroke: var(--blue); }
  66%  { stroke: var(--amber); }
  100% { stroke: var(--pink); }
}
.jb__lamp {
  fill: var(--amber);
  opacity: 0.35;
  animation: jb-lamp 2.4s ease-in-out infinite;
}
.jb__lamp--2 { animation-delay: 0.5s; fill: var(--pink); }
.jb__lamp--3 { animation-delay: 1s; }
.jb__lamp--4 { animation-delay: 1.5s; fill: var(--blue); }
.jb__lamp--5 { animation-delay: 1.9s; fill: var(--pink); }
@keyframes jb-lamp { 50% { opacity: 0.95; } }
.jb__bezel { fill: rgba(5, 2, 4, 0.9); stroke: var(--amber-dim); stroke-width: 2; }
.jb__vinyl { fill: var(--ink-deep); stroke: rgba(255, 246, 251, 0.14); stroke-width: 1; }
.jb__groove { fill: none; stroke: rgba(255, 246, 251, 0.09); stroke-width: 0.8; }
.jb__label { fill: var(--pink); }
.jb__spindle { fill: var(--amber); }
.jb__notch { fill: rgba(255, 246, 251, 0.35); }
.jb__plate { fill: rgba(5, 2, 4, 0.8); stroke: rgba(69, 200, 255, 0.55); stroke-width: 1; }
.jb__platetext {
  font-family: var(--font-machine);
  font-size: 6.4px;
  letter-spacing: 0.12em;
  fill: var(--amber);
  text-anchor: middle;
}
.jb__grille line { stroke: rgba(255, 177, 78, 0.35); stroke-width: 1.6; }
.jb__slot { fill: none; stroke: var(--amber-dim); stroke-width: 1; }
.jb__button {
  fill: var(--red);
  filter: drop-shadow(0 0 5px rgba(255, 48, 64, 0.8));
}

/* The platter turns while the house system plays. */
.jb__record {
  transform-box: fill-box;
  transform-origin: center;
  animation: jb-spin 1.8s linear infinite;
  animation-play-state: paused;
}
.jukebox--playing .jb__record { animation-play-state: running; }
@keyframes jb-spin { to { transform: rotate(360deg); } }

/* Bubbles climb the side tubes — faster when the band is on. */
.jb__bubble {
  fill: rgba(69, 200, 255, 0.75);
  animation: jb-bubble 3.4s linear infinite;
}
.jukebox--playing .jb__bubble { animation-duration: 1.9s; }
.jb__bubble--2 { animation-delay: 1.1s; }
.jb__bubble--3 { animation-delay: 2.2s; }
.jb__bubble--4 { animation-delay: 0.6s; }
.jb__bubble--5 { animation-delay: 1.7s; }
.jb__bubble--6 { animation-delay: 2.8s; }
@keyframes jb-bubble {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { transform: translateY(-54px); opacity: 0; }
}

/* The attendant's press lands here. */
.jukebox--hit svg { animation: jb-wobble 0.45s ease-out; }
.jukebox--hit .jb__button { fill: var(--tube-core); filter: drop-shadow(0 0 10px rgba(255, 48, 64, 1)); }
@keyframes jb-wobble {
  0% { transform: rotate(0); }
  30% { transform: rotate(-2.4deg); }
  60% { transform: rotate(1.6deg); }
  100% { transform: rotate(0); }
}
/* The meltdown slams: a continuous shake sized to the 260ms slam cadence,
   so six blows read as six blows — not one wobble restarted mid-swing. */
.jukebox--slam svg { animation: jb-slam 0.26s ease-out infinite; }
@keyframes jb-slam {
  0%   { transform: rotate(0); }
  30%  { transform: rotate(-3deg); }
  65%  { transform: rotate(2deg); }
  100% { transform: rotate(0); }
}

/* --- SW-1PR, the track attendant: dome, bowtie, one wheel, long day --- */
.attendant {
  position: fixed;
  bottom: max(0.4rem, env(safe-area-inset-bottom));
  left: 0;
  z-index: 4;
  pointer-events: none;
  /* parked off the right edge of the room; attendant.js drives --ax */
  transform: translateX(calc(100vw + 140px)) translateX(var(--ax, 0px));
}
.attendant__bot {
  display: block;
  filter:
    drop-shadow(0 6px 10px rgba(5, 2, 4, 0.85))
    drop-shadow(0 0 14px rgba(255, 46, 200, 0.14));
}

.att__body { fill: var(--shell-deep); stroke: var(--amber-dim); stroke-width: 2; }
.att__neck { fill: var(--surface); stroke: var(--amber-dim); stroke-width: 1.4; }
.att__dome { fill: var(--shell); stroke: var(--amber-dim); stroke-width: 2; }
.att__eyesocket { fill: var(--ink-deep); stroke: rgba(69, 200, 255, 0.5); stroke-width: 1; }
.att__eye {
  fill: var(--blue);
  filter: drop-shadow(0 0 4px rgba(69, 200, 255, 0.9));
  transform-box: fill-box;
  transform-origin: center;
  animation: att-blink 4.6s ease-in-out infinite;
}
@keyframes att-blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.12); } }
.att__antenna { stroke: var(--amber-dim); stroke-width: 1.6; }
.att__tip {
  fill: var(--red);
  animation: att-tip 1.4s steps(1) infinite;
}
@keyframes att-tip { 50% { opacity: 0.15; } }
.att__bowtie { fill: var(--pink); filter: drop-shadow(0 0 4px rgba(255, 46, 200, 0.7)); }
.att__knot { fill: var(--tube-core); }
.att__led { fill: var(--blue); opacity: 0.25; }
.att__led--1 { animation: att-led 1.3s steps(1) infinite; }
.att__led--2 { animation: att-led 1.3s steps(1) 0.45s infinite; }
.att__led--3 { animation: att-led 1.3s steps(1) 0.9s infinite; }
@keyframes att-led { 50% { opacity: 0.95; } }
.att__fork { stroke: var(--amber-dim); stroke-width: 2; }
.att__tire { fill: var(--surface); stroke: var(--amber-dim); stroke-width: 2.5; }
.att__hub { fill: var(--shell); stroke: rgba(255, 177, 78, 0.6); stroke-width: 1; }
.att__spoke { stroke: rgba(255, 177, 78, 0.55); stroke-width: 1.6; }
.att__wheel { transform-box: fill-box; transform-origin: center; }
/* Wheel speed tracks ground speed (attendant.js sets --spin from the
   trip velocity) and reverses when he rolls the other way — rubber
   gripping the floor, not a looping gif. */
.attendant--rolling .att__wheel { animation: wheel-spin var(--spin, 0.45s) linear infinite; }
@keyframes wheel-spin { to { transform: rotate(-360deg); } }
.attendant--east .att__wheel { animation-direction: reverse; }
.attendant--rolling .attendant__bot { animation: bot-bob 0.5s ease-in-out infinite; }
@keyframes bot-bob { 50% { transform: rotate(-1.6deg) translateY(-1.5px); } }

/* He faces his direction of travel. The flip lives on the `scale`
   property so it composes with the bob/rage transform keyframes. */
.attendant--east .attendant__bot { scale: -1 1; }

/* Arrival: a one-wheeled mass pitches over its axle when it brakes. */
.attendant--settle .attendant__bot { animation: att-settle 0.3s ease-out; }
@keyframes att-settle {
  0%   { transform: rotate(0); }
  35%  { transform: rotate(2.4deg) translateY(-1px); }
  70%  { transform: rotate(-0.8deg); }
  100% { transform: rotate(0); }
}
/* The dead stop mid-floor (U-turn, interruption): harder lurch. */
.attendant--lurch .attendant__bot { animation: att-lurch 0.36s ease-out; }
@keyframes att-lurch {
  0%   { transform: rotate(0); }
  30%  { transform: rotate(4deg) translateY(-2px); }
  65%  { transform: rotate(-1.4deg); }
  100% { transform: rotate(0); }
}

/* The press: arm telescopes out, head leans into the work. */
.attendant__arm {
  transform-box: fill-box;
  transform-origin: right center;
  transition: transform 0.18s ease-out;
}
.attendant--pressing .attendant__arm { transform: translateX(-9px); }
.att__arm-upper { fill: var(--shell); stroke: var(--amber-dim); stroke-width: 1.6; }
.att__arm-fore { fill: var(--surface); stroke: var(--amber-dim); stroke-width: 1.2; }
.att__grip { stroke: var(--amber-dim); stroke-width: 1.6; }
.att__head {
  transform-box: fill-box;
  transform-origin: bottom center;
  transition: transform 0.25s ease-out;
}
.attendant--pressing .att__head { transform: rotate(-7deg); }

/* The scolding: he stops, arm up, head turned. You know what you did. */
.attendant--scold .attendant__arm { transform: rotate(-38deg); }
.attendant--scold .att__head { transform: rotate(7deg); }
.attendant--scold .att__eye {
  fill: var(--red);
  filter: drop-shadow(0 0 6px rgba(255, 48, 64, 1));
  animation: none;
}

/* The incident: red eye, two backflips, zero apologies. */
.attendant--rage .attendant__bot { animation: att-rage 1.5s ease-in-out 1; }
.attendant--rage .att__eye {
  fill: var(--red);
  filter: drop-shadow(0 0 6px rgba(255, 48, 64, 1));
  animation: none;
}
@keyframes att-rage {
  0%   { transform: rotate(0) translateY(0); }
  50%  { transform: rotate(-360deg) translateY(-18px); }
  100% { transform: rotate(-720deg) translateY(0); }
}

/* His voice: pinned above wherever he currently is (attendant.js sets
   --bx). Lives outside the transformed robot so position:fixed works. */
.attendant__bubble {
  position: fixed;
  left: var(--bx, auto);
  bottom: 8.2rem;
  z-index: 8; /* his voice carries over the video wall, always */
  width: max-content;
  max-width: 14rem;
  padding: 0.45rem 0.65rem;
  background: rgba(13, 7, 12, 0.96);
  border: 1px solid rgba(255, 177, 78, 0.35);
  font-family: var(--font-machine);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--amber);
  /* A 120ms pop when he speaks: opacity/translate/scale properties only,
     so nothing fights position math. Exit stays instant — he's done. */
  transform-origin: bottom center;
  transition:
    opacity 0.12s ease-out,
    translate 0.12s ease-out,
    scale 0.14s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@starting-style {
  .attendant__bubble:not([hidden]) { opacity: 0; translate: 0 5px; scale: 0.92; }
}
.attendant__bubble[hidden] { display: none; }

/* The robot is a real employee: clickable. */
.attendant__hit {
  display: block;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}
.attendant__hit:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* --- The attendant's door, carnival edition: chasing bulbs, a lying
       marquee, an arrow pointing down, one red door. Think funhouse. --- */
.staffdoor {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: 5; /* above the robot: he hides behind it */
  width: 6.4rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.staffdoor:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* The marquee board. */
.staffdoor__marquee {
  position: relative;
  display: block;
  padding: 0.6rem 0.3rem 0.65rem;
  background: linear-gradient(180deg, #3a0d16, #1c060c);
  border: 2px solid var(--red);
  border-radius: 3px; /* stamp radius — the fixture vocabulary's ceiling */
  box-shadow: 0 0 16px rgba(255, 48, 64, 0.4), inset 0 0 12px rgba(5, 2, 4, 0.8);
  transform: rotate(-1.6deg);
}
.staffdoor__txt {
  display: block;
  font-family: var(--font-machine);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: center;
  color: var(--tube-core);
  text-shadow: 0 0 8px rgba(255, 46, 200, 0.95), 0 0 20px rgba(255, 46, 200, 0.55);
}
.staffdoor__txt em {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.42rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 48, 64, 0.85);
  text-shadow: none;
}
.staffdoor__txt--ooo { display: none; }

/* The bulbs. They chase clockwise, like every good bad sign. */
.bulb {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 177, 78, 0.95);
  animation: bulb-chase 1s linear infinite;
}
.bulb:nth-child(even) {
  background: var(--pink);
  box-shadow: 0 0 6px rgba(255, 46, 200, 0.95);
}
.b1 { top: -3px; left: 8%; animation-delay: 0s; }
.b2 { top: -3px; left: 32%; animation-delay: 0.1s; }
.b3 { top: -3px; left: 56%; animation-delay: 0.2s; }
.b4 { top: -3px; left: 80%; animation-delay: 0.3s; }
.b5 { right: -3px; top: 50%; animation-delay: 0.4s; }
.b6 { bottom: -3px; left: 80%; animation-delay: 0.5s; }
.b7 { bottom: -3px; left: 56%; animation-delay: 0.6s; }
.b8 { bottom: -3px; left: 32%; animation-delay: 0.7s; }
.b9 { bottom: -3px; left: 8%; animation-delay: 0.8s; }
.b10 { left: -3px; top: 50%; animation-delay: 0.9s; }
@keyframes bulb-chase { 0%, 30% { opacity: 1; } 55%, 100% { opacity: 0.18; } }

/* The arrow: three chevrons walking downward at the door. */
.staffdoor__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.72;
  margin: 0.2rem 0 0.15rem;
  font-family: var(--font-machine); /* not the UA button default */
  font-size: 1.05rem;
  color: var(--red);
  text-shadow: 0 0 9px rgba(255, 48, 64, 0.85);
}
.staffdoor__chevrons i { font-style: normal; animation: chev-walk 0.9s steps(1) infinite; }
.staffdoor__chevrons i:nth-child(2) { animation-delay: 0.3s; }
.staffdoor__chevrons i:nth-child(3) { animation-delay: 0.6s; }
@keyframes chev-walk { 0% { opacity: 1; } 34%, 100% { opacity: 0.22; } }

/* The red door itself. */
.staffdoor__frame {
  position: relative;
  display: block;
  height: 5.4rem;
  background: rgba(5, 2, 4, 0.92);
  border: 2px solid rgba(255, 48, 64, 0.65);
  overflow: hidden;
}
.staffdoor__panel {
  position: absolute;
  inset: 3px;
  background: linear-gradient(180deg, #4a0f1b, #23070d);
  border: 1px solid rgba(255, 48, 64, 0.4);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.staffdoor__panel::after { /* the handle */
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 5px rgba(255, 177, 78, 0.8);
}
.staffdoor--open .staffdoor__panel { transform: translateX(96%); }
.staffdoor--peek .staffdoor__panel { transform: translateX(38%); }
.staffdoor:hover .staffdoor__frame { border-color: var(--red); }

/* Strike: the lie comes down, the truth goes up, the party lights die. */
.staffdoor--struck .staffdoor__txt--std { display: none; }
.staffdoor--struck .staffdoor__txt--ooo {
  display: block;
  color: var(--red);
  text-shadow: 0 0 9px rgba(255, 48, 64, 0.9);
}
.staffdoor--struck .bulb { animation: none; opacity: 0.12; }
.staffdoor--struck .staffdoor__chevrons { opacity: 0.25; }
.staffdoor--struck .staffdoor__chevrons i { animation: none; }
.staffdoor--knock { animation: door-knock 0.4s ease-out; }
@keyframes door-knock {
  25% { transform: translateX(-2px); }
  55% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* --- His options: a service ticket he prints under protest --- */
.attmenu {
  position: fixed;
  bottom: 8rem;
  z-index: 7;
  width: min(14.5rem, calc(100vw - 32px)); /* survives 200% zoom on phones — the tilt's corner swing included */
  padding: 0.65rem 0.7rem 0.5rem;
  background:
    repeating-linear-gradient(to bottom,
      rgba(255, 246, 251, 0.015) 0 1px, transparent 1px 3px),
    linear-gradient(172deg, var(--shell) 0%, rgba(13, 7, 12, 0.98) 30%);
  border: 1px solid rgba(255, 177, 78, 0.4);
  box-shadow:
    0 18px 46px rgba(5, 2, 4, 0.85),
    0 0 26px rgba(255, 46, 200, 0.1);
  font-family: var(--font-machine);
  transform: rotate(-1.4deg); /* printed in a hurry, torn off harder */
  /* It feeds out like the receipt it is. scale property, not transform —
     the tilt stays untouched. Origin stays centered so the tilt's corner
     swing never pushes the box past a small viewport. Receipts don't
     retract: closing is instant. */
  transition: opacity 0.16s ease-out, scale 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@starting-style {
  .attmenu:not([hidden]) { opacity: 0; scale: 1 0.15; }
}
.attmenu[hidden] { display: none; }
/* Perforation: the top edge it was ripped from. */
.attmenu::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 6%;
  right: 6%;
  height: 0;
  border-top: 2px dashed rgba(255, 177, 78, 0.5);
}
/* Speech tail toward the door. */
.attmenu::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 2rem;
  width: 14px;
  height: 14px;
  background: inherit;
  border-right: 1px solid rgba(255, 177, 78, 0.4);
  border-bottom: 1px solid rgba(255, 177, 78, 0.4);
  transform: rotate(45deg);
}
.attmenu__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--tube-core);
  text-shadow: 0 0 7px rgba(69, 200, 255, 0.55);
}
.attmenu__ticket { color: var(--amber-dim); text-shadow: none; letter-spacing: 0.08em; }
.attmenu__ticket b { font-weight: 400; color: var(--amber); }
.attmenu__motto {
  font-size: 0.6rem;
  font-style: italic;
  color: var(--amber-dim);
  padding-bottom: 0.45rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px dashed rgba(255, 177, 78, 0.3);
}
.attmenu button {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--amber);
  background: none;
  border: none;
  padding: 0.6rem 0.35rem;
  min-height: 44px; /* the tap-target floor, everywhere */
  cursor: pointer;
  transition: transform 0.15s ease-out, background 0.15s ease-out;
}
.attmenu button i {
  font-style: normal;
  color: var(--pink);
  text-shadow: 0 0 6px rgba(255, 46, 200, 0.6);
  opacity: 0;
  transition: opacity 0.15s;
}
.attmenu button em { font-style: normal; }
.attmenu button span {
  margin-left: auto;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--amber-dim);
  opacity: 0.8;
}
.attmenu button:hover,
.attmenu button:focus-visible {
  color: var(--tube-core);
  background: rgba(255, 46, 200, 0.08);
  transform: translateX(3px);
}
.attmenu button:hover i,
.attmenu button:focus-visible i { opacity: 1; }
.attmenu button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.attmenu__fine {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(255, 177, 78, 0.3);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--amber-dim); /* full strength: fine print still has to read */
}

/* --- Stage directions for the uninitiated. One interaction burns them. --- */
.hint {
  position: fixed;
  z-index: 3;
  font-family: var(--font-machine);
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-shadow: 0 1px 3px rgba(5, 2, 4, 0.95), 0 0 12px rgba(255, 177, 78, 0.35);
  animation: hint-bob 2.6s ease-in-out infinite;
  pointer-events: none;
}
.hint[hidden] { display: none; }
.hint--jukebox { left: max(1rem, env(safe-area-inset-left)); bottom: 10rem; transform: rotate(-2deg); }
/* Sits fully ABOVE the door (door top ≈ 12.7rem from the floor on
   desktop) so the sign never swallows the arrow or the punchline. */
.hint--door { right: max(1rem, env(safe-area-inset-right)); bottom: 13.4rem; text-align: right; transform: rotate(1.5deg); }
.hint__arrow {
  display: block;
  width: 44px;
  height: 32px;
  margin: 0 0 0.15rem 0.2rem;
}
.hint__arrow path {
  stroke: var(--pink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 4 5;
  filter: drop-shadow(0 0 5px rgba(255, 46, 200, 0.6));
}
.hint__arrow--right { margin: 0.15rem 0.2rem 0 auto; }
@keyframes hint-bob { 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .hint { animation: none; } }

/* --- The gratuity terminal. Only one button survived configuration. --- */
.tipscreen {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 2, 4, 0.7);
}
.tipscreen[hidden] { display: none; }
.tip__card {
  width: min(20rem, 100%);
  padding: 1.1rem 1.2rem 1.2rem;
  background: rgba(13, 7, 12, 0.97);
  border: 1px solid rgba(255, 177, 78, 0.4);
  box-shadow: 0 20px 60px rgba(5, 2, 4, 0.85), 0 0 30px rgba(255, 46, 200, 0.08);
  font-family: var(--font-machine);
  text-align: center;
}
.tip__head {
  letter-spacing: 0.26em;
  color: var(--tube-core);
  text-shadow: 0 0 8px rgba(69, 200, 255, 0.6);
}
.tip__sub {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--amber-dim);
}
.tip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.tip__grid button {
  font: inherit;
  font-family: var(--font-machine);
  font-size: 1rem;
  padding: 0.7rem 0.4rem;
  min-height: 52px;
  color: var(--amber-dim);
  background: rgba(5, 2, 4, 0.6);
  border: 1px solid rgba(255, 177, 78, 0.25);
}
.tip__grid button span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  opacity: 0.7;
}
.tip__grid button:disabled { opacity: 0.4; cursor: not-allowed; }
.tip__yes {
  color: var(--tube-core) !important;
  border-color: var(--pink) !important;
  box-shadow: 0 0 14px rgba(255, 46, 200, 0.35), inset 0 0 10px rgba(255, 46, 200, 0.1);
  text-shadow: 0 0 7px rgba(255, 46, 200, 0.75);
  cursor: pointer;
}
.tip__yes:hover, .tip__yes:focus-visible {
  box-shadow: 0 0 24px rgba(255, 46, 200, 0.55), inset 0 0 14px rgba(255, 46, 200, 0.18);
}
.tip__no {
  margin-top: 0.6rem;
  width: 100%;
  font: inherit;
  font-family: var(--font-machine);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 0.55rem;
  color: var(--amber-dim);
  background: none;
  border: 1px dashed rgba(255, 177, 78, 0.25);
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Small rooms: the deck and jukebox own the floor; the footer steps up
   out of their way, and the jukebox shrinks to phone scale. */
@media (max-width: 640px) {
  /* Room for the fixtures AND the first-visit hints: the footer must
     finish above the hint text (hints sit at bottom 10-11rem). */
  .stage { padding-bottom: 15rem; }
  .jukebox { width: 4.6rem; height: 6.1rem; }

  /* MOBILE NOW-PLAYING: the floating tilted plate crowded the centered
     sign and read as a web banner. On a phone it becomes a mounted LED
     strip — flush under the nav, full width, dead straight — the kind of
     now-playing ticker every real club bolts over the bar. Nothing
     competes with the sign in the center of the room anymore. */
  .marquee {
    top: max(2.5rem, calc(env(safe-area-inset-top) + 2.5rem));
    left: 0;
    right: 0;
    width: auto;
    transform: none;
    border-left: 0;
    border-right: 0;
    padding: 0.85rem 0.9rem 0.3rem;
    box-shadow: 0 6px 18px rgba(5, 2, 4, 0.75);
  }
  .marquee__tag { top: 0.3rem; left: 0.9rem; transform: none; }
  .marquee__spectrum { height: 13px; margin-top: 0.28rem; padding-top: 0.25rem; }

  .staffdoor { width: 5rem; }
  .staffdoor__txt { font-size: 0.66rem; }
  .staffdoor__frame { height: 4rem; }
  .staffdoor__chevrons { font-size: 0.85rem; }
  /* Door is shorter here (top ≈ 10.3rem); the hint rides just above it. */
  .hint--door { bottom: 11rem; }
  /* The insult still has to fit the room on a phone. */
  .walltv--rick .walltv__sign { top: -2.1rem; gap: 0.35rem; }
  .walltv--rick .walltv__sign b { font-size: 0.95rem; }
  .walltv--rick .walltv__sign i { font-size: 0.82rem; letter-spacing: 0.1em; }
}
/* --- The video wall: four CRTs stacked on the left wall, murmuring --- */
.videowall {
  position: fixed;
  left: max(0.9rem, env(safe-area-inset-left));
  top: 4.6rem;
  z-index: 2;
  width: 4.2rem;
  padding: 0.3rem 0.3rem 0.45rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  background: rgba(5, 2, 4, 0.85);
  border: 1px solid rgba(255, 177, 78, 0.3);
  cursor: pointer;
  transform: rotate(1deg);
}
.videowall__crt {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, rgba(69, 200, 255, 0.35), rgba(255, 46, 200, 0.2) 60%, rgba(5, 2, 4, 0.9));
  border: 1px solid rgba(255, 246, 251, 0.15);
  animation: crt-murmur 3.1s steps(2) infinite;
}
.videowall__crt--2 { animation-delay: 0.8s; }
.videowall__crt--3 { animation-delay: 1.6s; }
.videowall__crt--4 { animation-delay: 2.3s; }
@keyframes crt-murmur {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
.videowall__label {
  grid-column: 1 / -1;
  font-family: var(--font-machine);
  font-size: 0.44rem;
  letter-spacing: 0.26em;
  text-align: center;
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255, 177, 78, 0.6);
}
.videowall:hover { border-color: var(--amber); }
.videowall:hover .videowall__crt { animation-duration: 1.2s; }
.videowall:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* PHONES: the top belongs to the neon sign — it fills the width, and on a
   short viewport it rides high, so ANY fixture up there lands on the name.
   The CRT bank comes DOWN to the floor and joins the jukebox and the door
   as a three-fixture bottom shelf, all in the thumb zone. (After the base
   rule so it wins the cascade.) */
@media (max-width: 640px) {
  .videowall {
    top: auto;
    bottom: max(1.1rem, calc(env(safe-area-inset-bottom) + 1.1rem));
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 4.8rem;
  }
}

/* Woken up: the murmur quickens while the attendant is en route... */
.videowall--wait .videowall__crt { animation-duration: 0.9s; }
/* ...and the hard flicker lands at the SMACK. Percussive maintenance. */
.videowall--hit .videowall__crt { animation-duration: 0.25s; }

/* --- The big screen: the house rig, hung over the stage. Neon sign on
       top, chasing bulbs around the frame, a dancing crowd at the lip,
       light spilling onto the floor. Brad approved the budget for once. --- */
.walltv {
  position: fixed;
  left: 50%;
  top: 44%; /* rides high enough to clear the attendant's bubbles below */
  transform: translate(-50%, -50%) rotate(-0.6deg);
  z-index: 6;
  /* Bound by viewport HEIGHT too, so a 16:9 screen plus its sign and bezel
     always fit — the difference between a usable iPhone landscape and a
     rig that runs off the top and bottom of the screen. */
  width: min(54rem, 92vw, 132vh);
  padding: 0.6rem 0.6rem 0.35rem;
  background: linear-gradient(180deg, var(--shell), var(--surface));
  border: 2px solid var(--pink);
  animation: jb-arch 12s linear infinite; /* frame tubes cycle like the jukebox */
  box-shadow:
    /* the room dims behind the rig (100vmax spread = full-screen scrim),
       so the busy neon stops fighting the wall's own signage */
    0 0 0 100vmax rgba(5, 2, 4, 0.62),
    0 30px 90px rgba(5, 2, 4, 0.9),
    0 0 34px rgba(255, 46, 200, 0.25),
    0 0 70px rgba(69, 200, 255, 0.12),
    inset 0 0 18px rgba(5, 2, 4, 0.9);
}
.walltv { animation-name: walltv-tubes; }
@keyframes walltv-tubes {
  0%   { border-color: var(--pink); }
  33%  { border-color: var(--blue); }
  66%  { border-color: var(--amber); }
  100% { border-color: var(--pink); }
}
.walltv[hidden] { display: none; }
/* Light spills off the rig onto the floor below. */
.walltv::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2.2rem;
  height: 2.6rem;
  background: radial-gradient(ellipse at top,
    rgba(255, 46, 200, 0.18), rgba(69, 200, 255, 0.08) 55%, transparent 75%);
  pointer-events: none;
}

/* The house sign, mounted on the frame. */
.walltv__sign {
  position: absolute;
  top: -2.9rem;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
  pointer-events: none;
}
.walltv__sign b {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2rem;
  color: var(--tube-core);
  text-shadow: var(--glow-blue);
}
.walltv__sign i {
  font-family: var(--font-tube);
  font-style: normal;
  font-size: 1.85rem;
  letter-spacing: 0.2em;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--pink);
  filter: var(--tubeglow-pink);
}

/* Frame bulbs: same chase as the door marquee, bigger circuit. */
.walltv .wbulb {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 7px rgba(255, 177, 78, 0.95);
  animation: bulb-chase 1.2s linear infinite;
}
.walltv .wbulb:nth-child(even) {
  background: var(--blue);
  box-shadow: 0 0 7px rgba(69, 200, 255, 0.95);
}
.wbulb--1 { top: -4px; left: 6%; animation-delay: 0s; }
.wbulb--2 { top: -4px; left: 27%; animation-delay: 0.1s; }
.wbulb--3 { top: -4px; left: 73%; animation-delay: 0.2s; }
.wbulb--4 { top: -4px; left: 94%; animation-delay: 0.3s; }
.wbulb--5 { right: -4px; top: 22%; animation-delay: 0.4s; }
.wbulb--6 { right: -4px; top: 72%; animation-delay: 0.5s; }
.wbulb--7 { bottom: -4px; left: 94%; animation-delay: 0.6s; }
.wbulb--8 { bottom: -4px; left: 66%; animation-delay: 0.7s; }
.wbulb--9 { bottom: -4px; left: 33%; animation-delay: 0.8s; }
.wbulb--10 { bottom: -4px; left: 6%; animation-delay: 0.9s; }
.wbulb--11 { left: -4px; top: 72%; animation-delay: 1s; }
.wbulb--12 { left: -4px; top: 22%; animation-delay: 1.1s; }

/* The aura: the frame itself feels the music. A blurred halo behind
   the screen breathes at club tempo and drifts through the house
   colors — pink to blue to amber and back — like stage lighting
   soaking the wall behind a rig. */
.walltv::before {
  content: '';
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 8px;
  background: conic-gradient(from 40deg,
    rgba(255, 46, 200, 0.55), rgba(69, 200, 255, 0.45),
    rgba(255, 177, 78, 0.4), rgba(255, 46, 200, 0.55));
  filter: blur(24px);
  animation:
    aura-drift 18s linear infinite,
    aura-breathe 0.96s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aura-drift { to { filter: blur(24px) hue-rotate(360deg); } }
@keyframes aura-breathe { 50% { opacity: 0.5; } }
/* The broadcast: the mood goes red and the pulse goes double-time. */
.walltv--rick::before {
  background: radial-gradient(ellipse at center,
    rgba(255, 48, 64, 0.6), rgba(255, 48, 64, 0.25) 60%, transparent);
  animation: aura-breathe 0.45s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .walltv::before { animation: none; }
}

/* --- Rick mode: the frame stops being polite --- */
.walltv__knob:disabled { opacity: 0.3; cursor: not-allowed; }
.walltv--rick {
  animation: none;
  border-color: var(--red);
  box-shadow:
    0 0 0 100vmax rgba(5, 2, 4, 0.72), /* darker scrim: the broadcast owns the room */
    0 30px 90px rgba(5, 2, 4, 0.9),
    0 0 44px rgba(255, 48, 64, 0.45),
    inset 0 0 18px rgba(5, 2, 4, 0.9);
}
.walltv--rick .walltv__sign { top: -2.6rem; }
.walltv--rick .walltv__sign b {
  font-size: 1.5rem;
  color: var(--tube-core);
  text-shadow: var(--glow-red);
}
.walltv--rick .walltv__sign i {
  /* Solid core, not hollow: the insult must read across the room. */
  font-size: 1.6rem;
  letter-spacing: 0.16em;
  color: var(--tube-core);
  -webkit-text-stroke: 0;
  filter: none;
  text-shadow: var(--glow-red);
}
.walltv--rick .wbulb,
.walltv--rick .wbulb:nth-child(even) {
  background: var(--red);
  box-shadow: 0 0 7px rgba(255, 48, 64, 0.95);
  animation-duration: 0.45s;
}
.walltv__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-deep);
  border: 1px solid rgba(255, 246, 251, 0.12);
  overflow: hidden;
}
/* The locked minute: a shield over the glass AND a dead player beneath
   it. No pause, no mute, no scrubbing — no player controls exist for
   you right now. */
.walltv--locked .walltv__screen iframe { pointer-events: none; }
.walltv--locked .walltv__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  cursor: not-allowed;
}
/* Poke the shield and the sign flares at you. */
.walltv--sass .walltv__sign { animation: sign-sass 0.45s ease-out; }
@keyframes sign-sass {
  30% { transform: translateX(-50%) rotate(1deg) scale(1.14); filter: brightness(1.8); }
  100% { transform: translateX(-50%) rotate(1deg) scale(1); }
}
.walltv__screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* The control strip: CHANNEL on the left, POWER on the right — two
   controls, two jobs, labeled in full so nobody has to guess. */
.walltv__bezel {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.35rem;
}
.walltv__knob {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-machine);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  background: rgba(5, 2, 4, 0.75);
  border: 1px solid rgba(255, 177, 78, 0.45);
  box-shadow: inset 0 -2px 0 rgba(5, 2, 4, 0.9); /* a pressed-metal lip */
  padding: 0.55rem 1.1rem;
  min-height: 48px;
  cursor: pointer;
  transition: box-shadow 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.walltv__knob i {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--pink);
  text-shadow: 0 0 7px rgba(255, 46, 200, 0.7);
}
/* POWER is the master switch, and it reads like one: visibly bigger,
   hotter, ringed in the warning color. */
.walltv__knob--power {
  font-size: 0.88rem;
  padding: 0.7rem 2rem;
  min-height: 58px;
  color: var(--tube-core);
  border-width: 2px;
  border-color: rgba(255, 48, 64, 0.7);
  box-shadow:
    inset 0 -2px 0 rgba(5, 2, 4, 0.9),
    0 0 14px rgba(255, 48, 64, 0.3);
}
.walltv__knob--power i { font-size: 1.25rem; }
.walltv__knob--power i {
  color: var(--red);
  text-shadow: 0 0 8px rgba(255, 48, 64, 0.9);
}
/* Busy = he's fetching one. Dimmed, but still clickable (so pestering
   registers) — unlike :disabled, which swallows clicks entirely. */
.walltv__knob--busy { opacity: 0.5; }
.walltv__knob:hover,
.walltv__knob:focus-visible {
  color: var(--tube-core);
  border-color: var(--amber);
}
.walltv__knob--power:hover,
.walltv__knob--power:focus-visible {
  border-color: var(--red);
  box-shadow:
    inset 0 -2px 0 rgba(5, 2, 4, 0.9),
    0 0 20px rgba(255, 48, 64, 0.45);
}
.walltv__knob:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* CRT snap-to-life: a line of light that blooms into a picture.
   (videos.js drops the class on animationend so the frame tubes — an
   animation on the same shorthand — resume their cycle.) */
.walltv--on { animation: tv-on 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes tv-on {
  0%   { transform: translate(-50%, -50%) rotate(-0.6deg) scale(1, 0.006); filter: brightness(5); }
  55%  { transform: translate(-50%, -50%) rotate(-0.6deg) scale(1.015, 1); filter: brightness(1.9); }
  100% { transform: translate(-50%, -50%) rotate(-0.6deg) scale(1, 1); filter: brightness(1); }
}
/* And the power-off: a tube never dies instantly. The picture collapses
   to one bright line, the line burns out. */
.walltv--off { animation: tv-off 0.45s cubic-bezier(0.7, 0, 0.85, 0.5) both; }
@keyframes tv-off {
  0%   { transform: translate(-50%, -50%) rotate(-0.6deg) scale(1, 1); filter: brightness(1); opacity: 1; }
  55%  { transform: translate(-50%, -50%) rotate(-0.6deg) scale(1.02, 0.006); filter: brightness(4); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(-0.6deg) scale(0.06, 0.004); filter: brightness(6); opacity: 0; }
}
/* Dead-channel snow: real analog noise (SVG turbulence tile), jittered
   in hard steps so it crawls like a channel with nothing on it. videos.js
   raises it the moment a picture dies and drops it only when the next
   one has actually loaded. Faint scanlines ride on top of the noise. */
.walltv__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease-out; /* the fade back INTO picture */
  /* Self-hosted noise tile: the strict img-src 'self' CSP (deliberate)
     blocks data: URIs, so the turbulence lives in /img/tv-noise.svg. */
  background-image:
    repeating-linear-gradient(0deg, rgba(5, 2, 4, 0.28) 0 2px, transparent 2px 4px),
    url('/img/tv-noise.svg');
  background-size: 100% 4px, 260px 260px;
}
.walltv__screen--static::before {
  opacity: 1;
  transition: none; /* snow snaps ON; only the exit fades */
  animation: wall-snow 0.36s steps(5, end) infinite;
}
@keyframes wall-snow {
  0%   { background-position: 0 0, 0 0; filter: brightness(1.12) contrast(1.2); }
  20%  { background-position: 0 1px, -84px 46px; filter: brightness(0.94) contrast(1.25); }
  40%  { background-position: 0 -1px, 62px -78px; filter: brightness(1.06) contrast(1.15); }
  60%  { background-position: 0 2px, -38px -126px; filter: brightness(0.98) contrast(1.3); }
  80%  { background-position: 0 -2px, 104px 88px; filter: brightness(1.1) contrast(1.18); }
  100% { background-position: 0 0, -140px 12px; filter: brightness(1) contrast(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  /* The snow holds as a still frame between channels — a state, not
     motion; only the jitter is suppressed. */
  .walltv--on, .walltv--off { animation: none; }
  .walltv__screen--static::before { animation: none; }
}
.wallview__cell {
  aspect-ratio: 16 / 9;
  background: rgba(13, 7, 12, 0.9);
  border: 1px solid rgba(255, 177, 78, 0.3);
  box-shadow: 0 10px 34px rgba(5, 2, 4, 0.8), 0 0 18px rgba(69, 200, 255, 0.08);
}
.wallview__cell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Short rooms: drop the screen so its rooftop sign never collides with
   the nav or the now-playing board. 820px (not 720) because at 1366x768
   the sign's top edge still lands in the nav row. */
@media (max-height: 820px) {
  .walltv { top: 49%; }
  .walltv__sign b { font-size: 1.2rem; }
  .walltv__sign i { font-size: 1.05rem; }
}

/* Landscape phone: the whole rig has to fit a wide, SHORT viewport. Cap the
   screen hard by height, pull the sign in tight, and shrink the corner
   fixtures so they frame the video instead of covering it. */
@media (max-height: 560px) and (orientation: landscape) {
  .walltv {
    top: 55%; /* shifted down so the rooftop sign has sky above it */
    width: min(88vw, 104vh);
    padding: 0.3rem 0.4rem 0.2rem;
  }
  .walltv__sign { top: -1.25rem; gap: 0.3rem; }
  .walltv__sign b { font-size: 0.95rem; }
  .walltv__sign i { font-size: 0.85rem; letter-spacing: 0.12em; }
  .walltv::after { display: none; } /* no floor for the glow to spill onto */
  .walltv__bezel { padding-top: 0.2rem; }
  .walltv__knob { font-size: 0.62rem; padding: 0.3rem 0.7rem; min-height: 44px; }
  .walltv__knob--power { font-size: 0.68rem; padding: 0.3rem 0.9rem; min-height: 44px; } /* short room, full tap targets */
  .walltv--rick .walltv__sign { top: -1.4rem; }
  .walltv--rick .walltv__sign b { font-size: 0.85rem; }
  .walltv--rick .walltv__sign i { font-size: 0.72rem; }

  /* Fixtures tuck into the corners so they never sit on the picture. */
  .marquee { top: 0.4rem; width: min(15rem, 42vw); font-size: 0.6rem; }
  .marquee__spectrum { display: none; } /* no vertical room for it */
  .videowall { top: 0.5rem; width: 3.4rem; }
  .jukebox { width: 3.6rem; height: 4.8rem; }
  .staffdoor { width: 4rem; }
  .staffdoor__frame { height: 3.2rem; }
  .stage { padding-bottom: 1rem; }
  .attendant__bubble { bottom: 5.6rem; font-size: 0.62rem; max-width: 11rem; }
  /* The service ticket needs the full short viewport: drop it to the
     floor and lose the tail (it would point at nothing). */
  .attmenu { bottom: 0.75rem; max-height: calc(100dvh - 1rem); overflow-y: auto; }
  .attmenu::after { display: none; }
}

/* --- Team overlay: the personnel wall drops over the room --- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: stretch;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: rgba(5, 2, 4, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.overlay[hidden] { display: none; }
.overlay__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* The injected /team/ <main> keeps its own styles; kill its nav clearance
   since the overlay has a header of its own. */
.overlay .team { padding-top: 1rem; min-height: 0; }
.overlay__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(to bottom, rgba(5, 2, 4, 0.9), transparent);
}
.overlay__close {
  font-family: var(--font-machine);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: rgba(13, 7, 12, 0.8);
  border: 1px solid rgba(255, 177, 78, 0.35);
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
}
.overlay__close:hover { color: var(--tube-core); border-color: var(--amber); }
.overlay__close:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
