/* The supplied PNG is the complete cabinet: marquee, silhouette, and controls. */
body {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.arcade {
  position: relative;
  z-index: 2;
  display: block;
  flex: none;
  width: min(1710px, 122.55dvh);
  height: auto;
  aspect-ratio: 1 / .775;
  margin: 0;
  overflow: clip;
  filter: drop-shadow(0 12px 22px #000c);
}

.arcade::before {
  content: '';
  position: absolute;
  top: -15.484%;
  left: 0;
  width: 100%;
  height: 129.032%;
  z-index: 0;
  background: url('cabinet-v3.png?v=2') top center / 100% 100% no-repeat;
  pointer-events: none;
}

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

/* Fill the black display opening, leaving the artwork's bezel untouched. */
.cabinet-body {
  position: absolute;
  z-index: 1;
  top: 30.58%;
  left: 24.1%;
  width: 55.8%;
  height: 48.97%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
  clip-path: none;
  border: 0;
  background: #030b16;
  box-shadow: inset 0 0 12px #000;
}

.cabinet-body::before,
.cabinet-body::after,
.speaker,
.screen-head,
.screen-bottom,
.screen-bezel::before {
  display: none;
}

.screen-bezel {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.screen {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  background: #030d25;
  box-shadow: inset 0 0 20px #0007;
}
.screen::-webkit-scrollbar { width: 5px; }
.screen::-webkit-scrollbar-thumb { background: #4872b0; border-radius: 5px; }

/* Screen text stays readable at the smaller physical size of a cabinet CRT. */
.panel { min-height: 100%; padding: clamp(17px, 2.4vw, 33px); }
.panel h2 { margin-bottom: 12px; font-size: clamp(32px, 4.2vw, 62px); line-height: .94; }
.eyebrow, .section-number { font-size: 9px; letter-spacing: .08em; }
.square { width: 5px; height: 5px; margin-right: 4px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: clamp(10px, 1.5vw, 20px); padding-top: 8px; }
.hero-layout > div { min-width: 0; }
.content-grid, .crew-grid { display: block; padding-top: 8px; }
.profile-card { display: none; }
.hero-panel h2 { font-size: clamp(25px, 3vw, 44px); }
.intro-label { margin-bottom: 9px; font-size: 11px; letter-spacing: .1em; }
.hero-copy, .story-copy p, .section-intro, .crew-card p { font-size: clamp(12px, 1.4vw, 17px); line-height: 1.45; }
.hero-copy { margin: 0; }
.hero-photo { display: block; width: 100%; height: auto; border: 2px solid #5f93c5; box-shadow: 0 0 0 3px #081432, 0 0 16px #2c8cdb55; }
.story-banner { display: block; width: 100%; height: auto; margin: 12px 0 16px; border: 2px solid #5f93c5; box-shadow: 0 0 0 3px #081432, 0 0 16px #2c8cdb55; }
.hero-actions { gap: 7px; margin-top: 14px; }
.screen-button { gap: 7px; padding: 7px 9px; font-size: 10px; }
.hero-footer { margin-top: 13px; padding-top: 8px; font-size: 8px; }
.story-copy .highlight { margin-bottom: 8px; font-size: 19px; }
.story-copy .note { margin-top: 13px; font-size: 9px; }
.time-strip { margin: 14px 0; }
.time-strip > div { padding: 7px; }
.time-strip span, .route-point small, .crew-card small { font-size: 8px; }
.time-strip strong { margin: 4px 0 1px; font-size: 17px; }
.time-strip small { font-size: 9px; }
.route-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.route-point { display: flex; min-width: 0; gap: 8px; margin-bottom: 9px; }
.route-point div { min-width: 0; }
.route-point strong { font-size: 17px; }
.route-point div > span { font-size: 10px; }
.route-line { display: none; }
.fine-print { margin-top: 11px; font-size: 10px; }
.section-heading-row { display: block; }
.map-badge { margin-bottom: 8px; padding: 4px 6px; font-size: 8px; }
.map-frame { height: 400px; }
.map-link { margin-top: 9px; }
.crew-card { min-height: 0; margin-bottom: 9px; padding: 10px; }
.crew-card h3 { margin: 5px 0; font-size: 18px; }
.crew-card p { margin: 0 0 7px; }
.crew-card a { color: #b9edff; text-decoration: underline; text-underline-offset: 2px; }
.crew-symbol { font-size: 18px; }
.card-status { font-size: 8px; }
.closing { margin-top: 13px; }
.closing span { font-size: 8px; }
.closing strong { font-size: 20px; }

/* The transparent hit areas align with the three named photographed buttons. */
.photo-controls {
  position: absolute;
  z-index: 3;
  inset: 82% 0 0;
  pointer-events: auto;
}
.photo-control {
  position: absolute;
  display: grid;
  place-items: center;
  width: 7%;
  aspect-ratio: 1;
  min-width: 36px;
  max-width: 56px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: white;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.photo-control:focus-visible {
  outline: 2px solid #fff16e;
  outline-offset: 2px;
  box-shadow: 0 0 14px #fff16e;
}
.route-control { left: 39.5%; top: 35.5%; }
.top-control { left: 51.5%; top: 65.6%; }
.tracker-control { left: 61.7%; top: 34.8%; }
.tracker-control.is-off::before,
.tracker-control.is-live::before {
  content: '';
  position: absolute;
  inset: 21%;
  border-radius: 50%;
  background: #07180ec7;
  box-shadow: inset 0 1px 4px #000;
  pointer-events: none;
}
.tracker-control.is-live::before {
  background: #35ef7766;
  box-shadow: 0 0 18px #23ef6c, inset 0 0 7px #b7ffc0;
}
.tracker-control.is-off { cursor: not-allowed; }

@media (max-width: 580px) {
  body { align-items: flex-start; }
  .arcade { width: min(646px, 95dvh); max-width: none; margin-top: 5dvh; }
  .panel { padding: 11px 12px; }
  .panel h2 { margin-bottom: 9px; font-size: 28px; }
  .hero-panel h2 { font-size: 25px; }
  .hero-copy, .story-copy p, .section-intro, .crew-card p { font-size: 11px; }
  .hero-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; }
  .intro-label { font-size: 9px; margin-bottom: 6px; }
  .hero-actions { margin-top: 9px; }
  .screen-button { font-size: 9px; padding: 5px 7px; }
  .time-strip { display: block; }
  .time-strip > div { border-right: 0; border-bottom: 1px solid #2b6994; }
  .time-strip > div:last-child { border-bottom: 0; }
  .time-strip strong { font-size: 14px; }
  .route-flow { gap: 8px; }
  .route-point { display: block; }
  .route-point .point-icon { display: none; }
  .route-point strong { font-size: 14px; }
  .route-point div > span { font-size: 9px; }
  .map-frame { height: 300px; }
}
