@import url("https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");
:root {
  color-scheme: dark;
  --ink: #e9e7db;
  --muted: #9c9f92;
  --accent: #d7ff4e;
  --bg: #0d1110;
  --mono: "IBM Plex Mono", monospace;
  --display: "Anton", "Arial Narrow", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font:
    16px "DM Sans",
    sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  left: 240px;
  top: 82px;
  right: 0;
  bottom: 174px;
}
#world canvas {
  display: block;
  touch-action: none;
  cursor: grab;
  width: 100%;
  height: 100%;
}
#world canvas:active {
  cursor: grabbing;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #0d111088, transparent 20%, transparent 75%, #0d1110),
    linear-gradient(90deg, #0d1110 0%, #0d111055 20%, transparent 42%);
}
.print-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E");
}
header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 28px;
  right: 28px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #5360476b;
  pointer-events: none;
}
.brand,
.top-controls {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 17px;
  font: 500 12px var(--mono);
  letter-spacing: 0.9px;
}
.brand-mark {
  font: 42px/0.9 var(--display);
  letter-spacing: -3px;
  color: var(--accent);
  position: relative;
  margin-right: 8px;
}
.brand-mark > span {
  position: absolute;
  right: -14px;
  top: 1px;
  font: 12px var(--mono);
  letter-spacing: 0;
}
.brand small {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 1.1px;
  color: #8f9a84;
  margin-top: 6px;
}
.top-controls {
  display: flex;
  gap: 23px;
  align-items: center;
}
.top-controls button,
.labs-link {
  font: 11px var(--mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 10px 0;
  color: #bdc3b3;
}
.top-controls button:hover,
.labs-link:hover {
  color: var(--accent);
}
#tour {
  background: var(--accent);
  color: #11190e;
  padding: 12px 17px;
  box-shadow: 3px 3px 0 #456025;
  font-weight: 600;
  transform: rotate(-2deg);
}
#tour:hover {
  background: var(--ink);
}
.labs-link {
  font-size: 10px;
  color: #808e78;
}
.intro {
  position: fixed;
  top: 120px;
  left: 29px;
  pointer-events: none;
  width: 270px;
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  color: #9ca78f;
  margin: 0 0 21px;
}
h1 {
  font: clamp(78px, 8.2vw, 125px)/0.92 var(--display);
  letter-spacing: -4px;
  margin: 0;
  position: relative;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-4deg);
  transform-origin: 0 50%;
  margin-top: 7px;
}
.title-star {
  font: 55px sans-serif;
  color: var(--accent);
  position: absolute;
  top: -2px;
  right: -13px;
  transform: rotate(15deg);
}
.intro-rule {
  height: 1px;
  background: #58604966;
  width: 190px;
  margin: 28px 0 19px;
}
.manifesto {
  font: 28px/1.09 var(--display);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.intro-caption {
  font-size: 12px;
  line-height: 1.7;
  color: #9a9f91;
  margin: 0;
}
.admit-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  margin-top: 27px;
  border: 2px solid #bf6d49;
  color: #cb7d56;
  transform: rotate(-9deg);
  opacity: 0.8;
  outline: 1px solid #bf6d4977;
  outline-offset: 4px;
}
.admit-stamp span {
  font: 8px var(--mono);
  letter-spacing: 1.4px;
}
.admit-stamp strong {
  font: 24px var(--display);
  letter-spacing: 1px;
}
.scene-status {
  position: fixed;
  top: 111px;
  right: 29px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 9px var(--mono);
  letter-spacing: 1.1px;
  color: #8e9a7d;
}
.scene-status b {
  font: 9px var(--mono);
  color: #657255;
  margin-left: 25px;
}
.scene-cross {
  font: 22px var(--mono);
  color: var(--accent);
}
/* Labels follow the 3D rooms and can drift off-screen while the camera moves; clip them so
   they never widen the page (phones otherwise zoom the whole site out). */
#labels {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#labels .room-label {
  pointer-events: auto;
}
.room-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font: 500 10px var(--mono);
  letter-spacing: 0.9px;
  background: #141912ed;
  border: 1px solid #7b8653;
  color: var(--ink);
  padding: 0 11px 0 0;
  min-height: 32px;
  will-change: transform;
  box-shadow: 3px 3px 0 #0005;
  transition: background 0.15s;
}
.room-label span {
  background: var(--room-color);
  color: #152013;
  padding: 8px 10px;
  font-weight: 600;
  border-right: 1px solid #7b8653;
}
.room-label b {
  font: 9px var(--mono);
  color: #818e6d;
  margin-left: 8px;
}
.room-label:after {
  content: "";
  position: absolute;
  width: 1px;
  height: 24px;
  top: 100%;
  left: 15px;
  background: var(--room-color);
}
.room-label:hover {
  background: #384026;
}
.room-label[data-room="0"],
.room-nav button[data-room="0"] {
  --room-color: #d7ff4e;
}
.room-label[data-room="1"],
.room-nav button[data-room="1"] {
  --room-color: #f1906e;
}
.room-label[data-room="2"],
.room-nav button[data-room="2"] {
  --room-color: #b9a3ee;
}
footer {
  position: fixed;
  bottom: 0;
  left: 28px;
  right: 28px;
  pointer-events: none;
}
.lineup-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
  font: 10px var(--mono);
  letter-spacing: 1.2px;
  color: #929f85;
}
.lineup-heading > span:first-child {
  color: var(--ink);
}
.instructions {
  font: 9px var(--mono);
  color: #79836b;
  letter-spacing: 0.5px;
}
.instructions b {
  font-weight: 400;
  margin: 0 9px;
}
.room-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  pointer-events: auto;
}
.room-nav button {
  background: var(--ink);
  color: #1b2516;
  display: flex;
  align-items: center;
  position: relative;
  text-align: left;
  padding: 0;
  min-height: 99px;
  transition:
    transform 0.2s,
    background 0.2s;
  isolation: isolate;
  overflow: visible;
}
.room-nav button:hover {
  transform: translateY(-6px) rotate(-1deg);
  background: var(--room-color);
}
.room-nav button.active {
  background: var(--room-color);
  transform: translateY(-5px);
}
.room-nav button:before,
.room-nav button:after {
  content: "";
  position: absolute;
  left: 54px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
}
.room-nav button:before {
  top: -6px;
}
.room-nav button:after {
  bottom: -6px;
}
.ticket-stub {
  width: 60px;
  align-self: stretch;
  flex-shrink: 0;
  border-right: 1px dashed #27351d88;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font: 8px var(--mono);
  letter-spacing: 1px;
  gap: 4px;
}
.ticket-stub b {
  font: 33px var(--display);
  letter-spacing: 0;
}
.ticket-body {
  padding: 14px 17px;
  display: block;
}
.ticket-body small {
  font: 8px var(--mono);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}
.ticket-body strong {
  font: 27px/1.05 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
}
/* Narrow tickets: let long names like SECOND VERSE wrap rather than clip (matters most if web fonts fail). */
@media (max-width: 600px) {
  .ticket-body strong {
    white-space: normal;
    overflow-wrap: break-word;
  }
}
.ticket-type {
  font-size: 10px;
  color: #505b44;
  display: block;
  margin-top: 6px;
}
.ticket-plus {
  font: 23px var(--mono);
  margin-left: auto;
  margin-right: 20px;
  color: #596149;
}
.bottom-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: #77806c;
}
.bottom-line button {
  pointer-events: auto;
  background: none;
  color: #b8c5a8;
  font: 9px var(--mono);
  padding: 0;
}
.bottom-line button:hover {
  color: var(--accent);
}
.camera-controls {
  position: fixed;
  right: 28px;
  bottom: 215px;
  display: grid;
  grid-template-columns: 34px 34px;
  background: #141a11cc;
  border: 1px solid #536343;
  box-shadow: 3px 3px 0 #0004;
}
.control-label {
  grid-column: span 2;
  text-align: center;
  padding: 6px;
  font: 8px var(--mono);
  letter-spacing: 2px;
  color: #8b9b78;
  border-bottom: 1px solid #536343;
}
.camera-controls button {
  height: 34px;
  width: 34px;
  background: transparent;
  font: 21px var(--mono);
  color: #c1caa8;
}
.camera-controls button:hover {
  background: var(--accent);
  color: #172015;
}
.camera-controls span {
  display: none;
}
.camera-controls #motion {
  font-size: 14px;
}
.sound-bars {
  display: flex;
  height: 14px;
  gap: 3px;
  align-items: center;
}
.sound-bars i {
  width: 2px;
  background: var(--accent);
  height: 5px;
}
.sound-bars i:nth-child(2) {
  height: 12px;
}
.sound-bars i:nth-child(3) {
  height: 9px;
}
.sound-bars i:nth-child(4) {
  height: 14px;
}
#sound {
  display: flex;
  align-items: center;
  gap: 9px;
}
#sound[aria-pressed="true"] i {
  animation: equalize 0.8s alternate infinite;
}
#sound[aria-pressed="true"] i:nth-child(2) {
  animation-delay: -0.4s;
}
@keyframes equalize {
  to {
    height: 3px;
  }
}
#details {
  position: fixed;
  z-index: 6;
  right: 28px;
  top: 132px;
  width: 318px;
  padding: 28px;
  background: #e9e7db;
  color: #172015;
  box-shadow: 8px 8px 0 #0007;
  max-height: calc(100dvh - 315px);
  overflow: auto;
  border-top: 7px solid var(--selected);
}
.detail-pass {
  font: 9px var(--mono);
  letter-spacing: 1.4px;
  border-bottom: 1px dashed #7c816d;
  padding-bottom: 18px;
  margin-bottom: 26px;
  color: #5c6751;
}
.close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: none;
  color: #172015;
  font-size: 24px;
}
.close:hover {
  color: #925038;
}
#details .eyebrow {
  font: 10px var(--mono);
  color: #516048;
  margin: 0 0 12px;
}
#details h2 {
  font: 36px/1.02 var(--display);
  text-transform: uppercase;
  margin: 0 0 19px;
}
#detail-description {
  font-size: 14px;
  line-height: 1.75;
  color: #46513e;
}
.detail-feature {
  border-top: 1px dashed #7c816d;
  margin-top: 22px;
  padding-top: 18px;
}
.detail-feature span {
  font: 9px var(--mono);
  letter-spacing: 1.1px;
  color: #526346;
}
.detail-feature p {
  font-size: 13px;
  line-height: 1.6;
  color: #67725c;
}
.project-status {
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.6px;
  color: #4f5a45;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  text-transform: uppercase;
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 23px;
}
.detail-actions button {
  background: transparent;
  border: 1px solid #728265;
  padding: 11px;
  font: 11px var(--mono);
  color: #27351c;
}
.detail-actions button:first-child {
  background: #172015;
  color: var(--ink);
  border-color: #172015;
}
.detail-actions button:hover {
  background: var(--selected);
  color: #172015;
}
.focused .intro {
  opacity: 0;
  transform: translateX(-15px);
}
.focused .scene-status {
  opacity: 0;
}
#fallback {
  position: fixed;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  max-width: 480px;
  width: 80%;
  padding: 30px;
  border: 1px solid var(--accent);
  background: #192013;
}
#fallback h2 {
  font: 35px var(--display);
}
#fallback p {
  font-size: 16px;
  line-height: 1.7;
  color: #b0bca3;
}
.no-webgl #labels,
.no-webgl .camera-controls {
  display: none;
}
@media (min-width: 1500px) {
  .intro {
    width: 340px;
  }
  #world {
    left: 270px;
  }
  h1 {
    font-size: 145px;
  }
  .manifesto {
    font-size: 32px;
  }
  .intro-caption {
    font-size: 14px;
  }
}
@media (max-height: 790px) and (min-width: 1000px) {
  .intro {
    top: 112px;
  }
  h1 {
    font-size: 90px;
  }
  .manifesto {
    font-size: 23px;
  }
  .admit-stamp {
    display: none;
  }
  .intro-rule {
    margin: 20px 0 15px;
  }
  .intro-caption {
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  #world {
    left: 0;
    top: 140px;
    bottom: 175px;
  }
  .intro {
    top: 111px;
    width: 100%;
    left: 28px;
  }
  h1 {
    font-size: 70px;
    line-height: 1;
    letter-spacing: -2px;
  }
  h1 br {
    display: none;
  }
  h1 em {
    margin-left: 16px;
    margin-top: 0;
    transform: rotate(-3deg);
  }
  .title-star {
    position: static;
    display: inline-block;
    font-size: 35px;
    vertical-align: top;
    margin-left: 18px;
    margin-top: 8px;
  }
  .intro .eyebrow {
    font-size: 8px;
    margin-bottom: 7px;
    letter-spacing: 1.8px;
  }
  .intro-rule,
  .manifesto,
  .intro-caption,
  .admit-stamp {
    display: none;
  }
  .scene-status {
    display: none;
  }
  .brand small {
    font-size: 8px;
  }
  .brand {
    font-size: 10px;
  }
  .top-controls {
    gap: 18px;
  }
  .labs-link {
    display: none;
  }
  .ticket-body {
    padding: 12px;
  }
  .ticket-body strong {
    font-size: 23px;
  }
  .ticket-stub {
    width: 44px;
  }
  .ticket-stub b {
    font-size: 27px;
  }
  .room-nav button:before,
  .room-nav button:after {
    left: 38px;
  }
  .ticket-plus {
    display: none;
  }
  .ticket-body small {
    font-size: 7px;
  }
  .ticket-type {
    font-size: 9px;
  }
  .lineup-heading > span:last-child {
    display: none;
  }
  .room-label {
    font-size: 9px;
    gap: 7px;
  }
  .room-label b {
    display: none;
  }
  #details {
    width: 295px;
  }
  .camera-controls {
    right: 28px;
    bottom: 203px;
  }
}
@media (max-width: 600px) {
  header {
    left: 18px;
    right: 18px;
    height: 78px;
  }
  .brand {
    font-size: 8px;
    gap: 13px;
    letter-spacing: 0.5px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .brand-mark {
    font-size: 34px;
  }
  .top-controls {
    gap: 13px;
  }
  #tour {
    font-size: 9px;
    padding: 10px;
  }
  #sound-label {
    display: none;
  }
  .labs-link {
    display: none;
  }
  .intro {
    left: 18px;
    top: 103px;
    width: calc(100% - 36px);
  }
  h1 {
    font-size: 55px;
    letter-spacing: -1.4px;
    white-space: nowrap;
  }
  h1 em {
    margin-left: 10px;
  }
  .title-star {
    display: none;
  }
  #world {
    top: 145px;
    bottom: 184px;
    left: -25px;
    right: -25px;
  }
  .room-label {
    font-size: 8px;
    min-height: 26px;
    padding-right: 8px;
    gap: 6px;
  }
  .room-label span {
    padding: 7px;
  }
  .room-label:after {
    height: 15px;
  }
  footer {
    left: 16px;
    right: 16px;
  }
  .lineup-heading {
    font-size: 8px;
    letter-spacing: 0.8px;
    margin-bottom: 11px;
  }
  .instructions {
    font-size: 7px;
    letter-spacing: 0;
  }
  .instructions b {
    margin: 0 3px;
  }
  .room-nav {
    gap: 7px;
  }
  .room-nav button {
    min-height: 104px;
    display: block;
    padding: 12px 9px 11px;
  }
  .ticket-stub {
    font: 7px var(--mono);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-right: 0;
    border-bottom: 1px dashed #27351d88;
    padding: 0 0 7px;
    margin: 0 0 7px;
    letter-spacing: 0.6px;
    gap: 6px;
  }
  .ticket-stub br {
    display: none;
  }
  .ticket-stub b {
    font: 16px var(--display);
  }
  .ticket-body {
    padding: 0;
  }
  .ticket-body small {
    font-size: 6px;
    letter-spacing: 0.2px;
    margin-bottom: 5px;
  }
  .ticket-body strong {
    font-size: 17px;
  }
  .ticket-type {
    display: none;
  }
  .room-nav button:before,
  .room-nav button:after {
    top: 33px;
    width: 8px;
    height: 8px;
    left: -4px;
  }
  .room-nav button:after {
    left: auto;
    right: -4px;
    bottom: auto;
  }
  .bottom-line {
    margin: 14px 0;
    font-size: 7px;
    letter-spacing: 0;
  }
  .bottom-line > span:first-child {
    display: none;
  }
  .bottom-line button {
    font-size: 8px;
  }
  .camera-controls {
    right: 16px;
    bottom: 189px;
    grid-template-columns: 30px 30px;
  }
  .camera-controls button {
    width: 30px;
    height: 30px;
  }
  .camera-controls #motion {
    font-size: 12px;
  }
  .control-label {
    font-size: 7px;
    padding: 4px;
  }
  .focused .camera-controls {
    top: 89px;
    bottom: auto;
  }
  #details {
    left: 16px;
    right: 16px;
    top: auto;
    /* Sits just above the lineup; --footer-h is measured in app.js so the panel never covers the tickets. */
    bottom: calc(var(--footer-h, 168px) + 8px);
    width: auto;
    max-height: 39dvh;
    padding: 20px;
    border-top-width: 5px;
  }
  .detail-pass {
    font-size: 8px;
    margin-bottom: 17px;
    padding-bottom: 12px;
  }
  #details h2 {
    font-size: 30px;
    margin-bottom: 13px;
  }
  #detail-description {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0;
  }
  .detail-feature,
  .project-status {
    display: none;
  }
  .detail-actions {
    margin-top: 17px;
  }
  .detail-actions button {
    font-size: 10px;
  }
  .focused .room-label {
    visibility: hidden;
  }
  .close {
    top: 9px;
  }
  .focused .intro {
    opacity: 0;
  }
}
@media (max-width: 370px) {
  h1 {
    font-size: 47px;
  }
  .brand > span:last-child {
    display: none;
  }
  .ticket-body strong {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 1001px) {
  body.focused #world {
    left: 0;
  }
}

.detail-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.shot {
  padding: 0;
  border: 1px solid #172015;
  background: #172015;
  aspect-ratio: 9/19;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 3px 3px 0 #0003;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.shot:hover,
.shot:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--selected);
}
.shot:focus-visible {
  outline: 2px solid #172015;
  outline-offset: 2px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--selected);
  box-shadow: 0 0 0 2px #172015;
}
.detail-link {
  display: block;
  margin-top: 14px;
  background: var(--selected);
  color: #172015;
  text-align: center;
  padding: 12px;
  font: 600 11px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #172015;
}
.detail-link:hover {
  background: #172015;
  color: var(--selected);
}
.detail-link[hidden] {
  display: none;
}
#shot-viewer {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
#shot-viewer[open] {
  display: flex;
}
#shot-viewer::backdrop {
  background: #0a0b0cee;
}
#shot-viewer figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-height: 92dvh;
}
#shot-viewer img {
  max-height: 84dvh;
  max-width: min(86vw, 420px);
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 20px 60px #000a;
}
#shot-viewer figcaption {
  font: 10px var(--mono);
  letter-spacing: 1.4px;
  color: #e9e7db;
}
.shot-nav,
.shot-close {
  background: #e9e7db;
  color: #172015;
  border: 0;
  width: 44px;
  height: 44px;
  font: 24px/1 var(--mono);
  cursor: pointer;
}
.shot-close {
  position: fixed;
  top: 16px;
  right: 16px;
}
.shot-nav:hover,
.shot-close:hover {
  background: #d7ff4e;
}
@media (max-width: 600px) {
  .detail-shots {
    margin-top: 14px;
    gap: 6px;
  }
  .detail-shots .shot {
    aspect-ratio: 9/12;
  }
  .project-status {
    display: flex;
    margin-top: 12px;
    font-size: 9px;
  }
  #shot-viewer {
    gap: 6px;
  }
  .shot-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  #shot-viewer img {
    max-width: 74vw;
  }
}
/* Short phones: give the scene more room above the details panel. */
@media (max-width: 600px) and (max-height: 720px) {
  #details {
    max-height: 31dvh;
    padding: 16px 18px;
  }
  #details h2 {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .detail-pass {
    display: none;
  }
}

/* Back link for visitors arriving from hardydigitallabs.com */
.back-to-labs {
  font: 600 11px var(--mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 11px 14px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.back-to-labs:hover,
.back-to-labs:focus-visible {
  background: var(--accent);
  color: #11190e;
  outline: none;
}
.back-to-labs[hidden] {
  display: none;
}
.back-to-labs .back-short {
  display: none;
}
/* When the back link is showing, the separate "Visit the city" link is redundant. */
body.from-labs .labs-link {
  display: none;
}
@media (max-width: 1000px) {
  .back-to-labs .back-long {
    display: none;
  }
  .back-to-labs .back-short {
    display: inline;
  }
}
@media (max-width: 600px) {
  .back-to-labs {
    font-size: 9px;
    padding: 9px 10px;
  }
}

@media (max-width: 600px) {
  body.from-labs .top-controls {
    gap: 9px;
  }
  body.from-labs #tour {
    white-space: nowrap;
    padding: 10px 8px;
  }
}

/* ------------------------------------------------------------------
   Phone legibility pass: nothing smaller than ~8-9px, no colliding
   room labels, and long app names wrap instead of clipping.
   ------------------------------------------------------------------ */
@media (max-width: 600px) {
  .brand {
    font-size: 10px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  /* Room labels collapse to their letter badge (A/B/C) so they can't overlap;
     the full names stay in the accessible name and on the lineup tickets. */
  .room-label {
    font-size: 0;
    gap: 0;
    padding: 0;
    min-height: 0;
    letter-spacing: 0;
  }
  .room-label span {
    font: 600 12px var(--mono);
    padding: 7px 9px;
    border-right: 0;
  }
  .room-label b {
    display: none;
  }
  .lineup-heading {
    font-size: 9px;
  }
  .instructions {
    display: none;
  }
  .ticket-stub {
    font-size: 9px;
  }
  .ticket-body small {
    font-size: 8px;
    letter-spacing: 0.4px;
  }
  .ticket-body strong {
    white-space: normal;
    overflow-wrap: break-word;
    font-size: clamp(15px, 4.6vw, 19px);
    line-height: 1;
  }
  .bottom-line {
    font-size: 9px;
  }
  .bottom-line button {
    font-size: 10px;
  }
  .control-label {
    font-size: 8px;
  }
  .detail-pass {
    font-size: 9px;
  }
}
@media (max-width: 600px) {
  /* The subtitle crowds the header buttons on phones; the brand name stays. */
  .brand small {
    display: none;
  }
}
