/* Playable cabinets share the site's printed-paper controls and display face. */
.arcade-marquee--compact {
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  margin: 0.5rem 0 1rem;
}
.arcade-marquee--compact h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  margin: 0.12em 0;
}
.arcade-marquee--compact .arcade-token {
  width: clamp(2.8rem, 7vw, 4.3rem);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
#cabinet-session {
  --board-ink: #25243a;
  --board-paper: #fff8e5;
  --board-mint: #bfe9d5;
  --board-gold: #ffdb67;
  --board-blue: #c7e7ff;
}
#cabinet-session > .arcade-panel {
  margin-top: 1.2rem;
}
#cabinet-session h3 {
  font: 650 1.16rem/1.2 var(--font-display);
  margin: 1.05rem 0 0.6rem;
}
#cabinet-session fieldset {
  min-inline-size: 0;
}
#cabinet-session figure {
  margin: 0;
}
#cabinet-session [hidden] {
  display: none;
}
.cab-message:empty {
  margin: 0;
}
.cab-message:focus-visible,
#play:focus-visible {
  outline: 3px solid var(--sky);
}
.cab-message .arcade-note {
  margin: 0 0 0.7rem;
}
.cab-instruction {
  margin: 0.5rem 0 0.9rem;
}
.cab-guide {
  padding-left: 1.6rem;
}
.cab-guide li {
  margin: 0.45rem 0;
  padding-left: 0.2rem;
}
.cab-guide li::marker {
  font: 700 1.1rem var(--font-display);
}
.cab-help {
  margin: 0.85rem 0;
}
.cab-help summary {
  cursor: pointer;
  font: 600 1rem var(--font-display);
  padding: 0.3rem 0;
}
.cab-help p,
.cab-meta {
  font-size: 0.94rem;
}
.cab-help li {
  margin: 0.25rem 0;
}
.cab-meter,
.cab-result small,
.cab-card small,
.desk-stop small {
  display: block;
  font: 600 0.95rem var(--font-display);
}
.cab-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.cab-result > span {
  font-size: 3rem;
}
.cab-result strong {
  display: block;
  font: 700 1.8rem var(--font-display);
}
.cab-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 15px;
  background: repeating-linear-gradient(-45deg, #e0d4ac 0 2px, #faedcb 2px 12px);
  border: 2px solid var(--board-ink);
}
.cab-preview-card {
  min-width: 3.7rem;
  padding: 0.25rem 0.55rem;
  border: 2px solid var(--board-ink);
  border-radius: 7px;
  background: var(--board-paper);
  box-shadow: 2px 3px var(--board-ink);
  transform: rotate(-6deg);
}
.cab-preview-card:last-child {
  transform: rotate(6deg);
}
.cab-preview-card b {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.cab-preview-card img {
  width: 3.5rem;
  image-rendering: pixelated;
}
.cab-hand,
.desk-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.2rem), 1fr));
  gap: 0.6rem;
  margin: 0.7rem 0 1rem;
}
.cab-card,
.desk-stop,
.cab-choices label > span {
  display: grid;
  gap: 0.25rem;
  align-content: center;
  justify-items: center;
  padding: 0.65rem 0.45rem;
  text-align: center;
  border: 2px solid var(--board-ink);
  border-radius: 12px;
  background: var(--board-paper);
  color: var(--board-ink);
  font: 600 1rem/1.18 var(--font-display);
  cursor: pointer;
  box-shadow: 2px 3px var(--board-ink);
}
.cab-card b,
.desk-stop b,
.cab-choices b {
  font-size: 1.65rem;
  line-height: 1.15;
}
.cab-card:disabled {
  background: #e0dfd8;
  color: #484956;
  box-shadow: none;
}
.cab-card:enabled:hover,
.desk-stop:hover,
.cab-choices label:hover > span {
  background: #ffecae;
}
.cab-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 1rem 0;
}
.cab-choices legend,
.pixel-tray legend {
  margin-bottom: 0.4rem;
  font: 650 1.05rem var(--font-display);
}
.cab-choices label,
.stamp-pair {
  position: relative;
}
.cab-choices input,
.stamp-pair input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.cab-choices input:checked + span,
.stamp-pair:has(:checked) {
  background: var(--board-gold);
  outline: 2px solid var(--board-ink);
  outline-offset: -4px;
}
.cab-choices input:checked + span::before {
  content: '✓';
  position: absolute;
  top: 0;
  right: 0.15rem;
  font-size: 0.8rem;
}
.cab-choices label:has(:focus-visible),
.stamp-pair:has(:focus-visible) {
  outline: 4px solid #2473c7;
  outline-offset: 3px;
  border-radius: 10px;
}
.cut-reel {
  list-style: none;
  padding: 0.65rem 0.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  color: var(--board-ink);
  background: repeating-linear-gradient(90deg, #242538 0 7px, #b2afae 7px 12px, #242538 12px 20px);
  border-radius: 10px;
}
.cut-reel li {
  text-align: center;
  display: flex;
  flex-direction: column;
  border: 2px solid #242538;
  background: #e8dcc0;
  border-radius: 6px;
  min-height: 4.7rem;
  padding: 0.2rem;
  font: 600 0.88rem var(--font-display);
}
.cut-reel li.is-next {
  background: var(--board-gold);
}
.cut-reel button {
  display: grid;
  place-items: center;
  flex: 1;
  color: inherit;
  background: var(--board-paper);
  border: 0;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}
.cut-reel b {
  display: block;
  font-size: 1.45rem;
}
.cut-cues,
.cab-exhibits blockquote,
.torn-sheet {
  background: #fff4d2;
  color: var(--board-ink);
  border: 2px solid var(--board-ink);
  border-radius: 4px 12px 8px 3px;
  padding: 0.75rem 1rem;
  margin: 0.9rem 0;
}
.cut-cues h3:first-child {
  margin-top: 0 !important;
}
.cut-cues p,
.torn-sheet p {
  margin: 0.45rem 0;
}
.cut-cues b {
  background: var(--board-ink);
  color: white;
  padding: 0 0.3rem;
  border-radius: 3px;
}
.projection {
  height: clamp(9rem, 22vw, 13rem);
  position: relative;
  overflow: hidden;
  border: 4px solid #232337;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 80%, #fff2c4 0 18%, #e6b09e 58%, #724863 100%);
}
.projection::before,
.projection::after {
  content: '';
  position: absolute;
  top: 0;
  width: 14%;
  height: 74%;
  border-radius: 0 0 90% 0;
  background: repeating-linear-gradient(90deg, #502c46 0 12%, #8d4860 13% 34%);
}
.projection::after {
  right: 0;
  transform: scaleX(-1);
}
.projection-prop {
  position: absolute;
  left: 26%;
  bottom: 24%;
  font-size: 2.8rem;
}
.projection[data-frame='1'] .projection-prop {
  transform: rotate(-15deg) translateY(-12%);
}
.projection-actor {
  position: absolute;
  bottom: 19%;
  height: 72%;
  left: 100%;
  transition: left 0.25s ease;
}
.projection[data-frame='2'] .projection-actor {
  left: 57%;
}
.projection[data-frame='3'] .projection-actor {
  left: 39%;
}
.projection[data-frame='4'] .projection-actor {
  left: 81%;
}
.projection-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  background: #232337;
  color: #fff2cb;
  font-family: var(--font-display);
}
.frame-strip label {
  flex: 1 1 4rem;
}
.frame-strip label > span {
  height: 100%;
  padding: 0.35rem;
}
.frame-strip small {
  font-size: 0.76rem;
}
.ending-rack,
.room-route,
.plate-scores {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0;
  margin: 0.7rem 0;
}
.ending-rack li,
.room-route li,
.plate-scores li {
  display: grid;
  align-content: start;
  gap: 0.18rem;
  padding: 0.55rem;
  border: 2px solid var(--board-ink);
  border-radius: 10px;
  background: #f1e7d3;
  color: var(--board-ink);
  font: 500 0.92rem/1.2 var(--font-display);
}
.ending-rack li > b {
  font-size: 1.6rem;
}
#cabinet-session .is-earned {
  background: var(--board-mint);
  color: var(--board-ink);
}
.room-route .is-current {
  background: var(--board-gold);
}
.clock-platform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  max-width: 32rem;
  padding: 0.6rem;
  background: #292b43;
  border: 3px solid #171827;
  border-radius: 15px;
}
.station-tile {
  position: relative;
  min-height: clamp(4.6rem, 12vw, 6.7rem);
  border: 2px solid #c5c0b9;
  border-radius: 8px;
  background: #d9d1c4;
  color: #25243a;
  font: 600 0.88rem var(--font-display);
}
.station-tile.can-step {
  background: #ffe59a;
  border-color: #e2a330;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px #fff5cc;
}
.station-tile small {
  position: absolute;
  top: 2px;
  left: 0.25rem;
}
.station-tile strong {
  position: absolute;
  inset: auto 0 2px;
}
.station-fixture {
  font-size: 1.6rem;
}
.station-piece,
.station-echo {
  position: absolute;
  height: 76%;
  width: 40%;
  bottom: 12%;
  left: 1%;
}
.station-piece svg {
  display: block;
  height: 100%;
  width: 100%;
}
.station-echo {
  left: auto;
  right: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.suspects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.suspects label > span,
.claims label > span {
  height: 100%;
}
.claims {
  display: grid;
}
.claims label > span {
  text-align: left;
  justify-items: start;
  padding: 0.65rem 0.85rem;
}
.cab-exhibits blockquote strong,
.postcard small,
.desk-stop small {
  display: block;
}
.postcard {
  position: relative;
  padding: 1rem 3.4rem 1rem 1rem;
  background: #fff4d6;
  color: #3b2a30;
  border: 6px solid;
  border-image: repeating-linear-gradient(135deg, #8c4150 0 9px, #f9f1de 9px 17px, #305677 17px 26px, #f9f1de 26px 34px)
    6;
}
.postcard p {
  margin: 0.6rem 0;
  font: 600 clamp(1.16rem, 3vw, 1.55rem) var(--font-display);
}
.postage {
  position: absolute;
  right: 0.4rem;
  top: 0.55rem;
  border: 2px dotted #7e7161;
  font-size: 1.65rem;
}
.postmarks {
  display: flex;
  gap: 0.45rem;
  margin: 0.6rem 0;
}
.postmarks span {
  border: 2px dashed currentColor;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  font-weight: 800;
}
.desk-map {
  border-radius: 10px;
  padding: 0.65rem;
  background: repeating-linear-gradient(20deg, #ccdab9 0 14px, #e6e8cb 15px 17px, #ccdab9 18px 38px);
}
.desk-stop {
  text-decoration: none;
}
.calendar-board {
  border: 3px solid #282437;
  border-radius: 12px;
  overflow: hidden;
  color: #282437;
  background: #fff2d5;
}
.calendar-board > strong {
  display: block;
  padding: 0.4rem 0.7rem;
  background: #6e354c;
  color: white;
  letter-spacing: 0.1em;
}
.calendar-board > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.calendar-board span {
  text-align: center;
  padding: 0.7rem 0.2rem;
  border: 1px dashed #6e354c;
  font-family: var(--font-display);
}
.calendar-board b {
  display: block;
  font-size: 1.5rem;
}
.pixel-lab {
  display: grid;
  gap: 0.65rem;
  align-items: start;
}
.pixel-lens,
.pixel-proof {
  background: #29353c;
  color: #fff5d4;
  border: 3px solid #182329;
  border-radius: 16px;
  padding: 0.65rem;
}
.pixel-lens > strong {
  display: block;
  font-family: var(--font-display);
}
.lens-panes,
.proof-images {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.4rem 0;
}
.lens-panes figure,
.proof-images figure {
  position: relative;
  text-align: center;
  font: 600 0.86rem var(--font-display);
}
.lens-panes figure > div {
  position: relative;
}
.lens-panes img,
.proof-images img {
  display: block;
  width: clamp(4rem, 10vw, 6rem);
  image-rendering: pixelated;
}
.pixel-marker,
[data-lens-mark] {
  position: absolute;
  top: 0;
  left: 0;
  width: 12.5%;
  aspect-ratio: 1;
  box-shadow:
    0 0 0 1px #171624,
    inset 0 0 0 1px #ffcf32;
  pointer-events: none;
}
.pixel-proof p {
  text-align: center;
  margin: 0.4rem 0;
}
.pixel-tray {
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  margin: 0;
}
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stamp-pair {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 46px;
  padding: 0.25rem;
  border: 2px dashed #71644d;
  border-radius: 5px;
  color: #262436;
  background: #fff8df;
  font: 600 0.85rem var(--font-display);
  cursor: zoom-in;
}
.stamp-print {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.stamp-print img {
  width: min(45%, 2rem);
  image-rendering: pixelated;
}
.plate-scores {
  grid-template-columns: repeat(5, 1fr);
}
.plate-scores li {
  padding: 0.4rem 0.2rem;
  text-align: center;
}
@media (min-width: 880px) {
  .pixel-lab {
    grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr);
  }
  .pixel-lens {
    grid-column: 2;
    grid-row: 1;
  }
  .pixel-tray {
    grid-column: 1;
    grid-row: 1;
  }
}
@media (max-width: 520px) {
  .room-route {
    grid-template-columns: 1fr;
  }
  .room-route li {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .arcade-marquee--compact .arcade-token {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .projection-actor {
    transition: none;
  }
}

html.reduced .projection-actor {
  transition: none;
}

.screening {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0;
  padding: 1rem;
  color: #fff4cf;
  background: radial-gradient(ellipse at 50% 40%, #584668, #25243a 70%);
  border: 4px solid #25243a;
  border-radius: 12px;
  font-family: var(--font-display);
}
.screening [data-shot-art] {
  font-size: 3.75rem;
  line-height: 1.1;
}

#cabinet-session[aria-busy='true'] :is(button, .desk-stop) {
  cursor: progress;
}
#cabinet-session[aria-busy='true'] button:focus {
  box-shadow: inset 0 0 0 3px #57a4d8;
}

.hover-loupe {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 82px;
  height: 82px;
  border: 4px solid #29353c;
  border-radius: 50%;
  overflow: hidden;
  background: #fcf1cb;
  box-shadow: 0 2px 6px #2226;
}
.hover-loupe img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 192px;
  height: 192px;
  max-width: none;
  image-rendering: pixelated;
}
.hover-loupe i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid white;
  outline: 1px solid #25243a;
}

/* The print desk keeps the two sheets registered at the same scale. */
.gallery-preview { width: min(100%, 31rem); position: relative; }
.gallery-preview img { display: block; width: 100%; max-height: 17rem; object-fit: cover; border: 3px solid var(--board-ink); border-radius: 8px; }
.gallery-preview figcaption { position: absolute; bottom: .6rem; left: .6rem; right: .6rem; width: fit-content; padding: .2rem .6rem; border-radius: 4px; background: #fff8e5; color: #25243a; font: 600 .88rem var(--font-display); }
.picture-line, .picture-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.picture-line { font: 650 .94rem var(--font-display); border-bottom: 2px solid var(--ink); padding-bottom: .45rem; }
.picture-instruction { margin: .55rem 0 .8rem; }
.picture-pair, .glass-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.picture-mat { padding: .4rem; border: 2px solid #292833; border-radius: .6rem; background: #252638; color: #fff8e8; min-width: 0; }
.picture-mat figcaption { font: 650 .9rem var(--font-display); padding: 0 .2rem .3rem; }
.picture-surface, .proof-art { position: relative; line-height: 0; }
.picture-surface { touch-action: manipulation; cursor: crosshair; }
.picture-surface img, .proof-art img { width: 100%; height: auto; object-fit: contain; display: block; image-rendering: pixelated; }
.search-frame { position: absolute; pointer-events: none; left: var(--search-x); top: var(--search-y); width: var(--search-w); height: var(--search-h); outline: 1px dashed #151515; box-shadow: inset 0 0 0 1px #fff897; }
.picture-aim { position: absolute; pointer-events: none; width: 13px; height: 13px; border: 1px solid #171521; box-shadow: inset 0 0 0 1px white, 0 0 0 1px white; border-radius: 50%; transform: translate(-50%,-50%); }
.picture-surface:focus-visible { outline: 3px solid #ffe075; outline-offset: 2px; }
.picture-switch { display: none; }
.glass-desk { margin: .8rem 0; padding: .65rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem 1.25rem; background: #252638; color: #fff8e8; border: 2px solid #191820; border-radius: .7rem; }
.glass-pair { gap: .6rem; grid-template-columns: repeat(2, auto); }
.glass-window { --zoom: 12px; width: calc(11 * var(--zoom)); height: calc(11 * var(--zoom)); position: relative; background-color: #151424; background-repeat: no-repeat; image-rendering: pixelated; background-size: calc(256 * var(--zoom)) calc(192 * var(--zoom)); background-position: calc((5 - var(--gx)) * var(--zoom)) calc((5 - var(--gy)) * var(--zoom)); outline: 1px solid #f1d28a; cursor: crosshair; }
.glass-window i { position: absolute; left: calc(5 * var(--zoom)); top: calc(5 * var(--zoom)); width: var(--zoom); height: var(--zoom); outline: 1px solid white; box-shadow: 0 0 0 2px #171521; pointer-events: none; }
.glass-pair figcaption { font: 600 .85rem var(--font-display); margin-top: .25rem; text-align: center; }
.glass-pair figcaption span { display: block; font: .72rem monospace; color: #f9e2a4; }
.glass-tools { flex: 1 1 10rem; max-width: 18rem; }
.glass-tools strong { font-family: var(--font-display); }
.glass-tools p { margin: .25rem 0 .5rem; color: #f6eedb; font-size: .88rem; }
.picture-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
.picture-proof .proof-art { border: 3px solid #272737; }
.picture-coordinates input { width: 6rem; }
@media (min-width: 1100px) {
  .arcade-columns:has(.picture-lab) { grid-template-columns: minmax(0,1fr) minmax(13rem,19%); }
}
@media (max-width: 1099px) {
  .arcade-columns:has(.picture-lab) { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 660px) {
  .picture-pair, .picture-proof { grid-template-columns: minmax(0,1fr); }
  .picture-switch:not([hidden]) { display: flex; gap: .4rem; margin-bottom: .4rem; }
  .picture-switch [aria-pressed=true] { background: var(--board-gold); }
  .picture-lab[data-show=copy] [data-side=original], .picture-lab[data-show=original] [data-side=copy] { display: none; }
  .glass-window { --zoom: clamp(8px, 2.7vw, 12px); }
  .glass-tools { flex-basis: 100%; max-width: none; text-align: center; }
}

.floating-glass { --zoom: 9px; position: fixed; z-index: 20; pointer-events: none; border-radius: 50%; outline: 3px solid #252638; box-shadow: 0 0 0 5px #ffdc74, 0 4px 12px #17152266; overflow: hidden; }
.picture-catalog { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 13rem),1fr)); gap: 1rem; }
.picture-entry { display: grid; align-content: start; gap: .28rem; padding: .55rem .55rem .75rem; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 12px; text-decoration: none; }
.picture-entry:hover strong, .picture-entry:focus-visible strong { text-decoration: underline; }
.picture-thumb { aspect-ratio: 4 / 3; display: block; background: #e9dfc5 url('/img/picture-archive-v1.webp') no-repeat; border-radius: 5px; }
.picture-entry strong { font: 650 1.08rem/1.15 var(--font-display); }
.picture-entry small { margin-top: .2rem; font-weight: 700; }
