/* Labyrinth uplink — same phosphor room as Zero Point, now with a key line.
   WHY: Dad t2174–t2177. Fully in-world. Font credit same as the Zero Point prompt:
   "Web437 IBM VGA 8x16" from The Ultimate Oldschool PC Font Pack v2.2 by VileR
   (int10h.org/oldschool-pc-fonts), CC BY-SA 4.0, unmodified. */
.lab-gate-host,
.lab-maze-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: auto;
  background: #010a04;
}
.lab-gate-host[hidden],
.lab-maze-host[hidden] { display: none !important; }
.lab-gate-host::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
}
.lab-maze-host {
  border: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
.lab-gate {
  position: absolute;
  left: 5%;
  top: 22%;
  max-width: min(20rem, 32%);
  margin: 0;
  padding: 0;
  font-family: "ZPVGA", ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.55;
  color: #2ee86a;
  text-shadow: 0 0 6px rgba(51,255,119,.35);
  white-space: pre-wrap;
  background: transparent;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}
.lab-gate-log,
.lab-gate-row {
  display: block;
  min-height: 1.55em;
}
.lab-gate-cursor {
  display: inline;
  color: #33ff77;
  text-shadow: 0 0 7px rgba(51,255,119,.55);
}
.lab-gate-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
html[data-theme="labyrinth"] .theme-plate,
html[data-theme="labyrinth"] .dash-plate,
html[data-theme="labyrinth"] .dash-plate-vid { opacity: 0 !important; }
html[data-theme="labyrinth"] .sky-veil {
  background:
    linear-gradient(to top, rgba(0, 8, 4, 0.72) 0%, rgba(0, 8, 4, 0.32) 42%, rgba(0, 8, 4, 0.16) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
html[data-theme="labyrinth"] .dash-ui { pointer-events: none; }
html[data-theme="labyrinth"] .dash-ui button,
html[data-theme="labyrinth"] .dash-ui a,
html[data-theme="labyrinth"] .dash-ui input,
html[data-theme="labyrinth"] .dash-ui select,
html[data-theme="labyrinth"] .dash-ui textarea,
html[data-theme="labyrinth"] .dash-ui .menu-tray,
html[data-theme="labyrinth"] .dash-ui .timer-tray,
html[data-theme="labyrinth"] .dash-ui .vol,
html[data-theme="labyrinth"] .dash-ui .clock-block .world-times,
html[data-theme="labyrinth"] .dash-ui .clock-block .wx-strip {
  pointer-events: auto;
}

/* t2195: hide the big centre clock during the uplink, and park a compact
   clock at the top centre once the maze is open so it no longer covers the hall. */
html[data-lab-chrome="gate"] .clock-block,
html[data-lab-chrome="gate"] .wx-strip,
html[data-lab-chrome="gate"] .world-times {
  opacity: 0;
  pointer-events: none;
}

html[data-lab-chrome="maze"] .clock-block,
html[data-lab-chrome="maze"] .dash-ui[data-layout="both-min"] .clock-block,
html[data-lab-chrome="maze"] .dash-ui[data-layout="todo-min"] .clock-block,
html[data-lab-chrome="maze"] .dash-ui[data-layout="lib-min"] .clock-block,
html[data-lab-chrome="maze"] .dash-ui[data-layout="both"] .clock-block {
  position: absolute !important;
  top: 0.5rem !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: min(42%, 14rem) !important;
  z-index: 4;
  pointer-events: none !important;
}
html[data-lab-chrome="maze"] .hero-clock,
html[data-lab-chrome="maze"] .dash-ui[data-layout="both-min"] .hero-clock,
html[data-lab-chrome="maze"] .dash-ui[data-layout="both"] .hero-clock,
html[data-lab-chrome="maze"] .dash-box:fullscreen .hero-clock,
html[data-lab-chrome="maze"] .dash-box:-webkit-full-screen .hero-clock,
html[data-lab-chrome="maze"] .dash-box.is-fullscreen .hero-clock,
html[data-lab-chrome="maze"] .dash-box:fullscreen .dash-ui[data-layout="both-min"] .hero-clock,
html[data-lab-chrome="maze"] .dash-box:-webkit-full-screen .dash-ui[data-layout="both-min"] .hero-clock,
html[data-lab-chrome="maze"] .dash-box.is-fullscreen .dash-ui[data-layout="both-min"] .hero-clock {
  font-size: clamp(1.35rem, 3vw, 2.1rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7), 0 0 12px var(--clock-glow, rgba(255, 140, 40, 0.4));
}
html[data-lab-chrome="maze"] .world-times,
html[data-lab-chrome="maze"] .wx-strip,
html[data-lab-chrome="maze"] .analog-clock {
  display: none !important;
}
html[data-lab-chrome="maze"] .radio-clock {
  margin-top: 0.12rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.88;
}
html[data-lab-chrome="maze"] .dash-hero::before {
  display: none;
}

/* The gate log can run longer now (ZERO's intro). */
.lab-gate {
  top: 16%;
  max-width: min(28rem, 46%);
  max-height: 68%;
  overflow: auto;
}

html[data-lab-chrome="maze"] .dash-box { position: relative; }
html[data-lab-chrome="maze"] .dash-body { position: static; }
html[data-lab-chrome="maze"] .clock-block {
  top: 0.45rem !important;
}

/* v12.18 (Dad t2259): on a phone the uplink text gets the width of the screen, below the radio's thin top strip. */
html.is-phone .lab-gate {
  left: 4%;
  right: 4%;
  top: 3.6rem;
  max-width: none;
  max-height: calc(100% - 4.4rem);
  font-size: clamp(12px, 3.4vw, 16px);
}
