/* Dunk the Barker — full 3D dunk tent. PF only. Never booth/port 6000. */

#cabinet-dunk-tank.cabinet-interior {
  max-width: none;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #071018;
}
#cabinet-dunk-tank .interior-sky { display: none; }
#cabinet-dunk-tank .interior-room::before,
#cabinet-dunk-tank .interior-room::after { display: none; }

#dunkCard {
  position: relative;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: #071018;
  box-shadow: none;
  transform: none !important;
  animation: none;
  overflow: hidden;
  padding: 0;
}

#dunkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
  cursor: grab;
  background: #071018;
}
#dunkCard.is-playing #dunkCanvas { cursor: grab; }
#dunkCard.is-playing #dunkCanvas:active,
#dunkCard.is-aiming #dunkCanvas { cursor: grabbing; }
#dunkCard.is-vestibule #dunkCanvas,
#dunkCard.is-result #dunkCanvas { cursor: pointer; }

.dunk-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 36%, rgba(6, 10, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.35) 0%, transparent 18%, transparent 72%, rgba(6, 10, 16, 0.6) 100%);
}

.dunk-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(0.7rem + env(safe-area-inset-top)) 0.9rem 0;
  pointer-events: none;
}
.dunk-top .interior-back {
  pointer-events: auto;
  margin: 0;
  background: rgba(12, 8, 10, 0.62);
  backdrop-filter: blur(8px);
}
.dunk-titleblock {
  text-align: right;
  text-shadow: 0 2px 10px #000;
}
.dunk-titleblock .plaque-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: #f0d09a;
}
.dunk-titleblock h1 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  color: #fff6ec;
}

.dunk-depth-hud,
#dunkCard .dunk-depth-hud.depth-hud {
  position: absolute;
  top: calc(3.55rem + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 232, 224, 0.4);
  background: rgba(12, 8, 10, 0.72);
  color: #f0d09a;
  font: 700 0.78rem/1.2 Georgia, serif;
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
}

.dunk-seat-banner {
  position: absolute;
  top: calc(5.2rem + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.22rem 0.8rem;
  max-width: 92%;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff6ec;
  background: rgba(12, 6, 9, 0.7);
  border: 1px solid rgba(196, 30, 58, 0.45);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dunk-hud {
  position: absolute;
  top: calc(6.85rem + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.38rem 0.75rem;
  border-radius: 1rem;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(184, 232, 224, 0.28);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.dunk-hud-stat {
  display: flex;
  flex-direction: column;
  min-width: 3.4rem;
  text-align: center;
}
.dunk-hud-stat small {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: #b8e8e0;
  text-transform: uppercase;
}
.dunk-hud-stat strong {
  font-size: 1.05rem;
  color: #fff6ec;
}
#dunkCard .strike-pips {
  display: flex;
  gap: 0.28rem;
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 0;
}
#dunkCard .strike-pips i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1px solid rgba(240, 208, 154, 0.45);
  background: rgba(18, 8, 12, 0.5);
}
#dunkCard .strike-pips i.on {
  background: #c41e3a;
  box-shadow: 0 0 10px #c41e3a;
  border-color: #f0d09a;
}

.dunk-help {
  position: absolute;
  left: 0.7rem;
  top: calc(5.4rem + env(safe-area-inset-top));
  z-index: 5;
  width: min(16.6rem, 44vw);
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 0.85rem;
  background: rgba(8, 12, 16, 0.8);
  border: 1px solid rgba(240, 208, 154, 0.32);
  backdrop-filter: blur(10px);
  color: #fff6ec;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.dunk-help-title {
  margin: 0 0 0.35rem;
  font: 700 0.68rem/1 Georgia, serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0d09a;
}
.dunk-help ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #e8dcc8;
}
.dunk-help li + li { margin-top: 0.16rem; }
.dunk-help b { color: #fff6ec; }

.dunk-power {
  position: absolute;
  right: 0.85rem;
  bottom: calc(6.2rem + env(safe-area-inset-bottom));
  width: 0.85rem;
  height: 8.2rem;
  z-index: 5;
  border-radius: 9px;
  border: 1px solid rgba(212, 164, 90, 0.65);
  background: rgba(8, 6, 10, 0.55);
  overflow: hidden;
  pointer-events: none;
}
.dunk-power i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #f0d09a, #3d8a8a 55%, #c41e3a);
  box-shadow: 0 0 12px rgba(184, 232, 224, 0.55);
}
.dunk-power span {
  position: absolute;
  left: 50%;
  bottom: -1.35rem;
  transform: translateX(-50%);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: #f0d09a;
}

.dunk-playhint {
  position: absolute;
  left: 50%;
  bottom: calc(1.05rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(8, 14, 16, 0.78);
  border: 1px solid rgba(184, 232, 224, 0.28);
  color: #fff6ec;
  font: 700 0.78rem/1.2 Georgia, serif;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 2px 8px #000;
}
#dunkCard.is-playing .dunk-playhint { bottom: calc(1.05rem + env(safe-area-inset-bottom)); }
#dunkCard.is-vestibule .dunk-playhint { bottom: calc(8.2rem + env(safe-area-inset-bottom)); }
#dunkCard.is-result .dunk-playhint { display: none; }

.dunk-toast {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 6;
  margin: 0;
  padding: 0.7rem 1.2rem;
  border-radius: 0.85rem;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  letter-spacing: 0.08em;
  color: #fff6ec;
  text-shadow: 0 2px 0 #3a2418, 0 0 18px rgba(184, 232, 224, 0.65);
  background: rgba(12, 6, 9, 0.72);
  border: 1px solid rgba(184, 232, 224, 0.4);
  pointer-events: none;
}
.dunk-toast.is-fake {
  color: #e8a0b8;
  border-color: rgba(232, 160, 184, 0.55);
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
}

.dunk-stamp {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 7;
  margin: 0;
  padding: 0.55rem 1.4rem;
  transform: translate(-50%, -50%) rotate(-14deg);
  border: 6px solid rgba(196, 30, 58, 0.92);
  color: #c41e3a;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.18em;
  background: rgba(196, 30, 58, 0.12);
  pointer-events: none;
}

.dunk-vestibule {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 5;
  width: min(32rem, 94vw);
  padding: 0.65rem 0.9rem calc(0.8rem + env(safe-area-inset-bottom));
  border-radius: 1.1rem 1.1rem 0 0;
  background:
    linear-gradient(180deg, rgba(18, 28, 36, 0.12), rgba(8, 12, 16, 0.9) 28%, rgba(6, 10, 14, 0.95));
  border: 1px solid rgba(212, 164, 90, 0.32);
  border-bottom: 0;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
  pointer-events: auto;
}
.dunk-vestibule [data-pf-depth-tag] { display: none; }
.dunk-vestibule [data-pf-depth-copy] { display: none; }
.dunk-vestibule .machine-number {
  margin: 0;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: #d4a45a;
}
.dunk-vestibule h2 {
  margin: 0.2rem 0 0;
  font-size: 1.45rem;
  color: #fff6ec;
}
.dunk-vestibule .tent-mouth-joke {
  margin: 0.25rem 0 0.45rem;
  color: #b8e8e0;
  font-style: italic;
}
.dunk-vestibule [data-pf-depth-copy] {
  margin: 0 auto 0.65rem;
  max-width: 34rem;
  font-size: 0.82rem;
  color: #c8b8a4;
}
.dunk-vestibule .depth-readout {
  justify-content: center;
  margin: 0.35rem 0 0.55rem;
}
.dunk-vestibule .barker-call {
  margin: 0.2rem 0 0.7rem;
  letter-spacing: 0.12em;
  color: #f0d09a;
}
.dunk-vestibule .ticket-button { min-width: 12.5rem; }
.dunk-vestibule .status-ticket {
  margin: 0.45rem 0 0;
  color: #e8c4a0;
}

#dunkCard.is-playing .dunk-vestibule,
#dunkCard.is-playing .vendor-vestibule-only { display: none; }
#dunkCard.is-playing #dunkStart { display: none; }
#dunkCard.is-result .dunk-help { display: none; }
#dunkCard.is-result #dunkCanvas { opacity: 1; }

#dunkCard.is-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 58%, rgba(184, 232, 224, 0.42), transparent 58%);
}
#dunkCard.is-soak::after {
  background:
    radial-gradient(circle at 50% 62%, rgba(184, 232, 224, 0.7), rgba(240, 208, 154, 0.16) 42%, transparent 68%),
    radial-gradient(circle at 48% 70%, rgba(90, 200, 190, 0.28), transparent 46%);
}

#cabinet-dunk-tank .tier-pill,
#cabinet-dunk-tank .love-verdict {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
}
#cabinet-dunk-tank .love-verdict {
  bottom: calc(7.5rem + env(safe-area-inset-bottom));
  width: min(28rem, 90vw);
  text-align: center;
  pointer-events: none;
}

#cabinet-dunk-tank .vendor-result {
  position: absolute;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 7;
  width: min(26rem, 92vw);
  pointer-events: auto;
}

@media (max-width: 720px) {
  .dunk-help { display: none; }
  .dunk-playhint { font-size: 0.68rem; max-width: 94vw; white-space: normal; text-align: center; }
  .dunk-hud { top: calc(5.9rem + env(safe-area-inset-top)); }
  .dunk-seat-banner { top: calc(4.55rem + env(safe-area-inset-top)); font-size: 0.58rem; }
}
