/* Flash Booth — 3D living-plate studio. Namespaced to #cabinet-snap / .snap-card. */
#cabinet-snap .interior-blurb {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
#cabinet-snap .interior-stage {
  max-width: 78rem;
}
#cabinet-snap:has(.snap-card.is-playing) .plaque-kicker,
#cabinet-snap:has(.snap-card.is-playing) .interior-blurb {
  display: none;
}
#cabinet-snap:has(.snap-card.is-playing) .interior-header h1 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
}
.snap-card.is-playing .machine-number,
.snap-card.is-playing > h2,
.snap-card.is-playing .depth-readout {
  display: none;
}
.snap-card {
  position: relative;
}
.snap-card .machine-number {
  letter-spacing: 0.08em;
}
.snap-card.is-playing .vendor-vestibule-only,
.snap-card.is-result .vendor-vestibule-only {
  display: none;
}
.snap-card .vendor-play-only {
  display: none;
}
.snap-card.is-playing .vendor-play-only {
  display: none;
}
.snap-card.is-playing #snapFreeze {
  display: none !important;
}
.snap-card.is-playing #snapStart,
.snap-card.is-result #snapStart {
  display: none;
}
.snap-card.is-result #snapStart {
  display: inline-flex;
}
.snap-card.is-result .vendor-stage--flash {
  opacity: 0.82;
}

.vendor-stage--flash {
  position: relative;
  height: min(74vh, 680px);
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 214, 150, 0.18), transparent 42%),
    #12080c;
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 214, 150, 0.12);
  touch-action: none;
  overscroll-behavior: none;
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
}
.vendor-stage--flash.is-looking {
  cursor: grabbing;
}
.vendor-stage--flash canvas {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.snap-viewfinder {
  pointer-events: none;
  position: absolute;
  inset: 12px;
  border: 0;
}
.snap-viewfinder::before,
.snap-viewfinder::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 236, 196, 0.72);
}
.snap-viewfinder::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.snap-viewfinder::after {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}
.snap-viewfinder i {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 236, 196, 0.72);
}
.snap-viewfinder i:first-child {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
.snap-viewfinder i:last-child {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
}
.snap-card.is-playing .snap-viewfinder {
  animation: snap-finder-breathe 2.4s ease-in-out infinite;
}
.snap-card.is-playing .vendor-stage--flash.is-window .snap-viewfinder::before,
.snap-card.is-playing .vendor-stage--flash.is-window .snap-viewfinder::after,
.snap-card.is-playing .vendor-stage--flash.is-window .snap-viewfinder i {
  border-color: #fff6d8;
  box-shadow: 0 0 12px rgba(255, 240, 180, 0.8);
}
.snap-card.is-playing .vendor-stage--flash.is-fake .snap-viewfinder::before,
.snap-card.is-playing .vendor-stage--flash.is-fake .snap-viewfinder::after,
.snap-card.is-playing .vendor-stage--flash.is-fake .snap-viewfinder i {
  border-color: #ff7a4a;
  box-shadow: 0 0 10px rgba(255, 90, 40, 0.55);
}
@keyframes snap-finder-breathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

.snap-reticle {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid rgba(255, 236, 196, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(12, 6, 9, 0.45), 0 0 10px rgba(255, 220, 140, 0.25);
  z-index: 4;
  transition: border-color 0.08s linear, box-shadow 0.08s linear, transform 0.08s linear;
}
.snap-reticle::before,
.snap-reticle::after {
  content: "";
  position: absolute;
  background: rgba(255, 236, 196, 0.9);
}
.snap-reticle::before {
  left: 50%;
  top: -7px;
  bottom: -7px;
  width: 1px;
  margin-left: -0.5px;
}
.snap-reticle::after {
  top: 50%;
  left: -7px;
  right: -7px;
  height: 1px;
  margin-top: -0.5px;
}
.snap-reticle.is-true {
  border-color: #fff6d8;
  transform: scale(1.18);
  box-shadow: 0 0 16px rgba(255, 240, 180, 0.9);
}
.snap-reticle.is-fake {
  border-color: #ff7a4a;
  box-shadow: 0 0 14px rgba(255, 90, 40, 0.7);
}

.snap-flash-veil {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: #fff8ee;
  opacity: 0;
  mix-blend-mode: screen;
  z-index: 5;
}
.snap-flash-veil.is-pop {
  animation: snap-true-pop 0.48s ease-out forwards;
}
.snap-flash-veil.is-fake {
  animation: snap-liar-pop 0.32s ease-out forwards;
  background: #ffd0a0;
}
.snap-flash-veil.is-die {
  animation: snap-die-veil 0.7s ease-out forwards;
  background: #3a1020;
  mix-blend-mode: multiply;
}
@keyframes snap-true-pop {
  0% { opacity: 0.96; }
  18% { opacity: 0.7; }
  100% { opacity: 0; }
}
@keyframes snap-liar-pop {
  0% { opacity: 0.42; }
  100% { opacity: 0; }
}
@keyframes snap-die-veil {
  0% { opacity: 0.15; }
  40% { opacity: 0.55; }
  100% { opacity: 0.22; }
}

.snap-help {
  pointer-events: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  bottom: auto;
  z-index: 6;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  padding: 0.42rem 0.7rem 0.46rem;
  border-radius: 10px;
  background: rgba(10, 5, 8, 0.82);
  border: 1px solid rgba(212, 164, 90, 0.45);
  color: #f3e6d0;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.snap-help-title {
  margin: 0;
  color: #f0d09a;
  font: 700 0.68rem/1.35 Georgia, serif;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.snap-help-line {
  margin: 0;
  font: 600 0.78rem/1.4 Georgia, serif;
}
.snap-help b {
  color: #fff6d8;
  letter-spacing: 0.04em;
}
.snap-leg-true {
  color: #fff6d8;
  text-shadow: 0 0 8px rgba(255, 230, 160, 0.8);
}
.snap-leg-fake {
  color: #ffb089;
}
.snap-leg-bird {
  color: #f0d05a;
}

.snap-legend {
  display: none;
}
.snap-legend span {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font: 700 0.68rem/1.3 Georgia, serif;
  letter-spacing: 0.06em;
  background: rgba(10, 5, 8, 0.78);
  border: 1px solid rgba(212, 164, 90, 0.35);
  color: #f0d09a;
}
.snap-legend .is-true {
  color: #fff6d8;
  border-color: rgba(255, 236, 196, 0.55);
  box-shadow: 0 0 10px rgba(255, 230, 160, 0.25);
}
.snap-legend .is-fake {
  color: #ffb089;
  border-color: rgba(255, 122, 74, 0.5);
}
.snap-legend .is-bird {
  color: #f0d05a;
  border-color: rgba(240, 208, 90, 0.5);
}

.snap-hud {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3.6rem 12% 4.6rem;
  text-align: center;
  z-index: 3;
}
.snap-hud-depth {
  margin: 0;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 6, 9, 0.62);
  border: 1px solid rgba(212, 164, 90, 0.4);
  color: #f0d09a;
  font: 700 0.78rem/1.4 Georgia, serif;
  letter-spacing: 0.08em;
}
.snap-hud-need {
  margin: 0.28rem 0 0;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: rgba(12, 6, 9, 0.55);
  color: #fff6d8;
  font: 700 0.8rem/1.35 Georgia, serif;
  letter-spacing: 0.1em;
}
.snap-timer {
  position: relative;
  width: min(22rem, 70%);
  height: 10px;
  margin: 0.45rem 0 0;
  border-radius: 999px;
  background: rgba(12, 6, 9, 0.55);
  border: 1px solid rgba(212, 164, 90, 0.35);
  overflow: hidden;
}
.snap-timer i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #d4a45a, #fff6d8);
  transform-origin: left center;
}
.snap-timer.is-low i {
  background: linear-gradient(90deg, #8a1a28, #ff7a4a);
}
.snap-timer span {
  position: absolute;
  right: 8px;
  top: -1.15rem;
  color: #e8c878;
  font: 700 0.72rem/1 Georgia, serif;
}
.snap-callout {
  margin: 0.55rem 0 0;
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: clamp(1.35rem, 4.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff4d6;
  text-shadow:
    0 0 18px rgba(255, 210, 120, 0.7),
    0 4px 0 rgba(80, 20, 30, 0.35);
  line-height: 1.05;
}
.snap-callout.is-fake {
  color: #ffb089;
  text-shadow: 0 0 16px rgba(255, 90, 40, 0.55);
}
.snap-callout.is-real {
  color: #fff;
  text-shadow:
    0 0 28px #fff,
    0 0 48px rgba(255, 230, 160, 0.9);
}
.snap-hint {
  margin: 0.15rem 0 0;
  max-width: 36rem;
  color: #f0d09a;
  font: 600 0.92rem/1.35 Georgia, serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.snap-ms {
  margin: 0.2rem 0 0;
  color: #e8c878;
  font: 700 0.95rem/1 Georgia, serif;
}

.snap-polaroid-fly {
  pointer-events: none;
  position: absolute;
  right: 8%;
  bottom: 22%;
  width: 7.2rem;
  padding: 0.45rem 0.45rem 1.4rem;
  background: #f6efe2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(80, 40, 20, 0.2);
  transform: rotate(8deg);
  animation: snap-eject 0.7s cubic-bezier(0.2, 1.4, 0.3, 1) both;
  z-index: 7;
}
.snap-polaroid-fly img {
  display: block;
  width: 100%;
  height: 6.4rem;
  object-fit: cover;
  background: #2a1810;
}
.snap-polaroid-fly p {
  margin: 0.35rem 0 0;
  color: #3a2418;
  font: 700 0.72rem/1 Georgia, serif;
  text-align: center;
}
@keyframes snap-eject {
  0% { opacity: 0; transform: translate(40px, 50px) rotate(22deg) scale(0.6); }
  100% { opacity: 1; transform: translate(0, 0) rotate(8deg) scale(1); }
}

.snap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: center;
}
.snap-stage-actions {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 8;
  justify-content: center;
}
.snap-stage-actions .ticket-button {
  pointer-events: auto;
}
#snapFreeze.snap-shutter {
  min-width: 11.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  background: radial-gradient(circle at 50% 0%, #ffe7b0, #d4a45a 45%, #8a4a18);
  color: #2a140c;
  box-shadow: 0 0 0 2px rgba(255, 230, 170, 0.35), 0 8px 20px rgba(180, 80, 20, 0.35);
}
.snap-card.is-playing #snapFreeze.snap-shutter:not(:disabled) {
  animation: snap-shutter-pulse 1.1s ease-in-out infinite;
}
@keyframes snap-shutter-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.12); }
}

.signature-prop--snap {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.7rem;
  color: #f0d09a;
  font-family: Georgia, serif;
}
.signature-prop--snap span,
.signature-prop--snap i,
.signature-prop--snap b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 0.3rem;
  background: rgba(20, 8, 12, 0.7);
  border: 1px solid rgba(212, 164, 90, 0.35);
}
.signature-prop--snap span.is-true {
  background: #fff6d8;
  color: #2a140c;
  letter-spacing: 0.06em;
}
.signature-prop--snap i {
  color: #ffb089;
  font-style: normal;
  opacity: 0.95;
}
.signature-prop--snap b {
  background: #f3e6d0;
  color: #2a140c;
  letter-spacing: 0.06em;
}

.snap-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: #f0d09a;
  text-align: center;
  background: #160b10;
  z-index: 2;
}

@media (max-width: 720px) {
  .vendor-stage--flash {
    height: min(68vh, 540px);
    min-height: 340px;
  }
  .snap-callout {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }
  .snap-help {
    max-width: none;
    top: 8px;
    bottom: auto;
    font-size: 0.9em;
  }
  .snap-help-line {
    font-size: 0.68rem;
  }
  .snap-legend {
    display: none;
  }
  .snap-hint {
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .snap-card.is-playing .snap-viewfinder,
  .snap-card.is-playing #snapFreeze.snap-shutter:not(:disabled),
  .snap-polaroid-fly,
  .snap-flash-veil.is-pop,
  .snap-flash-veil.is-fake {
    animation: none;
  }
  .snap-flash-veil.is-pop,
  .snap-flash-veil.is-fake { opacity: 0; }
  .vendor-stage--flash { cursor: crosshair; }
}
