/* Penny Pitch — Dish Garden 3D tent. Desktop Grok. PF only. Never booth/port 6000. */

#cabinet-penny-pitch {
  max-width: min(1180px, 100%);
}

#cabinet-penny-pitch .interior-stage .attraction-card {
  transform: none;
  max-width: none;
}

#cabinet-penny-pitch.pitch-immersed .plaque-kicker,
#cabinet-penny-pitch.pitch-immersed .interior-blurb {
  display: none;
}

#cabinet-penny-pitch.pitch-immersed .interior-header {
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
}

#cabinet-penny-pitch.pitch-immersed .interior-header h1 {
  font-size: 1.18rem;
}

.pennypitch-card #pennyPitchArt,
.pennypitch-card .card-hero,
.pennypitch-card .signature-prop--pennypitch {
  display: none;
}

.pennypitch-card.is-vestibule .vendor-stage--pitch3d {
  height: min(64vh, 640px);
  min-height: 400px;
}
.pennypitch-card.is-playing .vendor-stage--pitch3d {
  height: min(78vh, 840px);
  min-height: 440px;
}
.pennypitch-card .vendor-stage--pitch3d {
  position: relative;
  height: min(78vh, 840px);
  min-height: 440px;
  margin: 0.35rem 0 0.65rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 164, 90, 0.5);
  background:
    radial-gradient(ellipse at 50% 12%, rgba(232, 176, 90, 0.16), transparent 52%),
    #10080c;
  box-shadow:
    inset 0 0 0 6px rgba(58, 36, 24, 0.45),
    inset 0 0 48px rgba(0, 0, 0, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.pennypitch-card .vendor-stage--pitch3d::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    #7a2140 0 16px,
    #d4a45a 16px 32px,
    #1e4a3a 32px 48px,
    #d4a45a 48px 64px
  );
}

.pennypitch-card .vendor-stage--pitch3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.pennypitch-card.is-playing .vendor-stage--pitch3d canvas {
  cursor: grab;
}

.pennypitch-card.is-playing .vendor-stage--pitch3d.is-aiming canvas,
.pennypitch-card.is-playing .vendor-stage--pitch3d canvas:active {
  cursor: grabbing;
}

.pennypitch-card.is-result .vendor-stage {
  opacity: 1;
}

.pennypitch-card .depth-hud {
  top: 1.15rem;
  z-index: 6;
}
.pitch-banner {
  position: absolute;
  top: 2.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: 92%;
  margin: 0;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #160b10;
  background: #f0d09a;
  border: 1px solid rgba(58, 36, 24, 0.35);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitch-live {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  pointer-events: none;
}

.pitch-live span {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d09a;
  background: rgba(12, 6, 9, 0.78);
  border: 1px solid rgba(212, 164, 90, 0.4);
}

.pitch-howto {
  position: absolute;
  left: 0.7rem;
  top: 3.35rem;
  z-index: 6;
  width: min(250px, 46%);
  margin: 0;
  padding: 0.55rem 0.7rem 0.6rem;
  border-radius: 10px;
  color: #fff6ec;
  background: rgba(12, 6, 9, 0.82);
  border: 1px solid rgba(212, 164, 90, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.pitch-howto-title {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d09a;
}

.pitch-howto ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pitch-howto li {
  margin: 0.12rem 0;
}

.pitch-howto b {
  color: #f0d09a;
  font-weight: 700;
}

.pitch-howto-warn {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #e8a0b8;
}

.pitch-power {
  position: absolute;
  right: 0.75rem;
  bottom: 3.4rem;
  width: 0.78rem;
  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;
}

.pitch-power i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #f0d09a, #c47a2a 55%, #c41e3a);
  box-shadow: 0 0 12px rgba(232, 176, 90, 0.55);
}

.pitch-power-label {
  position: absolute;
  right: 1.7rem;
  bottom: 3.4rem;
  z-index: 5;
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d09a;
  pointer-events: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.pitch-toast {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 7;
  margin: 0;
  padding: 0.45rem 1.15rem;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  color: #fff6ec;
  text-shadow: 0 2px 0 #3a2418, 0 0 18px rgba(232, 176, 90, 0.65);
  background: rgba(12, 6, 9, 0.32);
  border: 1px solid rgba(240, 208, 154, 0.45);
  pointer-events: none;
}

.pitch-toast.is-dead {
  color: #e8a0b8;
  border-color: rgba(232, 160, 184, 0.55);
}

.pitch-toast.is-yank {
  color: #fff0c8;
  border-color: rgba(196, 30, 58, 0.7);
  background: rgba(80, 12, 22, 0.55);
}

.pitch-toast.is-gold {
  color: #fff4c8;
  border-color: #e8b84a;
  background: rgba(90, 58, 8, 0.62);
  text-shadow: 0 2px 0 #3a2418, 0 0 16px rgba(232, 184, 74, 0.7);
}

.pitch-toast.is-ruby {
  color: #ffe0e4;
  border-color: #c41e3a;
  background: rgba(90, 10, 22, 0.62);
  text-shadow: 0 2px 0 #3a2418, 0 0 16px rgba(196, 30, 58, 0.7);
}

.pitch-toast.is-teal {
  color: #d8fff8;
  border-color: #2f8a88;
  background: rgba(8, 50, 48, 0.62);
  text-shadow: 0 2px 0 #3a2418, 0 0 16px rgba(47, 138, 136, 0.7);
}

.pitch-toast.is-green {
  color: #e4ffd8;
  border-color: #3f7a44;
  background: rgba(10, 48, 16, 0.62);
  text-shadow: 0 2px 0 #3a2418, 0 0 16px rgba(63, 122, 68, 0.7);
}

.pitch-toast.is-amber {
  color: #ffe4c4;
  border-color: #b06a2a;
  background: rgba(70, 32, 8, 0.62);
  text-shadow: 0 2px 0 #3a2418, 0 0 16px rgba(176, 106, 42, 0.7);
}

.pitch-toast.is-cream {
  color: #fff6ec;
  border-color: #f0d09a;
}

.pitch-yank-flash {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 8;
  margin: 0;
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff0c8;
  background: rgba(140, 16, 32, 0.82);
  border: 2px solid #f0d09a;
  box-shadow: 0 0 28px rgba(196, 30, 58, 0.55);
  pointer-events: none;
}

#pennyPitchLiveLand.is-gold { color: #e8b84a; border-color: #e8b84a; }
#pennyPitchLiveLand.is-ruby { color: #ff8a9a; border-color: #c41e3a; }
#pennyPitchLiveLand.is-teal { color: #7ee0d8; border-color: #2f8a88; }
#pennyPitchLiveLand.is-green { color: #8fd48a; border-color: #3f7a44; }
#pennyPitchLiveLand.is-amber { color: #f0b070; border-color: #b06a2a; }
#pennyPitchLiveLand.is-cream { color: #f0d09a; border-color: #f0d09a; }
#pennyPitchLiveLand.is-dead { color: #e8a0b8; border-color: #e8a0b8; }

.pitch-aim-hint {
  position: absolute;
  left: 50%;
  bottom: 3.15rem;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d09a;
  background: rgba(12, 6, 9, 0.62);
  border: 1px solid rgba(212, 164, 90, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.pennypitch-card .barker-call {
  letter-spacing: 0.08em;
}

.pennypitch-card.is-playing .vendor-vestibule-only,
.pennypitch-card.is-result .vendor-vestibule-only {
  display: none;
}

.pennypitch-card.is-playing #pennyPitchStart {
  display: none;
}

.pennypitch-card.is-vestibule .pitch-power,
.pennypitch-card.is-vestibule .pitch-power-label,
.pennypitch-card.is-result .pitch-power,
.pennypitch-card.is-result .pitch-power-label {
  display: none;
}

@media (max-width: 720px) {
  .pennypitch-card .vendor-stage--pitch3d {
    height: min(74vh, 680px);
    min-height: 380px;
    border-radius: 10px;
  }
  .pitch-howto {
    width: min(210px, 58%);
    top: 1.85rem;
    left: 0.45rem;
    padding: 0.4rem 0.5rem;
  }
  .pitch-howto ol {
    font-size: 0.7rem;
  }
  .pitch-aim-hint {
    white-space: normal;
    text-align: center;
    max-width: 92%;
    bottom: 3.4rem;
  }
  .pitch-banner {
    font-size: 0.58rem;
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pennypitch-card .vendor-stage--pitch3d {
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.4);
  }
  .pitch-toast {
    text-shadow: 0 2px 0 #3a2418;
  }
}
