/* Stage composition. All pieces share one scale so hands stay over the vinyl. */
.masthead {
  --booth-width: min(720px, calc(100vw - 430px));
  --stage-x: 50vw; /* center the booth, turntables, and mascot together */
  --deck-y: clamp(340px, 53vh, 560px);
  min-height: 100svh;
  padding: 0;
  display: block;
}
#app { min-height: 0; }
.crowd { top: auto; }
.deck {
  left: var(--stage-x);
  top: var(--deck-y);
  width: var(--booth-width);
  /* Extra tabletop depth exposes the full vinyl circles above the front panel. */
  height: calc(var(--booth-width) * .31);
  transform: translateX(-50%);
  border-radius: 18px;
  background: linear-gradient(165deg, #343b3e, #171c20 55%, #282e32);
  border: 1px solid #535d60;
  box-shadow: 0 35px 60px #0009, inset 0 2px 2px #ffffff20;
  z-index: 2;
}
.deck::after {
  content: '';
  position: absolute;
  inset: 78% -1px -18px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(#272d31, #0e1114);
  border-top: 2px solid #687373;
  box-shadow: inset 0 1px #ffffff22;
  z-index: 5;
}
.disc {
  width: 25%; height: auto; aspect-ratio: 1;
  top: -7%;
  box-shadow: 0 6px 14px #000b;
}
.disc.left { left: 10%; }
.disc.right { right: 10%; }
.stage-platform { bottom: -35px; width: 104%; height: 22px; }
.mixer {
  position: absolute; left: 40%; top: 10%; width: 20%; height: 60%;
  display: flex; justify-content: space-evenly; align-items: center;
  background: linear-gradient(#20282b, #101619); border: 1px solid #ffffff15;
  border-radius: 6px; z-index: 4;
}
.mixer span { width: 5%; height: 72%; background: #070909; border-radius: 3px; position: relative; }
.mixer span::after { content: ''; position: absolute; top: 40%; left: -90%; width: 280%; height: 10%; background: #acb5b4; border-radius: 2px; }
.mixer span:nth-child(even)::after { top: 65%; }
.mascot.secondary { position: fixed; top: 44px; right: 30px; width: 108px; height: 108px; z-index: 6; }
.summon-label { white-space: nowrap; }
.stage-art { display: none; }
#mascot-invizible.primary,
#mascot-maverick.primary {
  width: calc(var(--booth-width) * .8); height: auto; aspect-ratio: 4 / 3;
  /* Set the hoodie hem near the rear edge of the deck, while hands overlap the vinyl. */
  left: var(--stage-x); top: calc(var(--deck-y) - var(--booth-width) * .53 - 4px);
  background: none; border-radius: 0; box-shadow: none; padding: 0;
  z-index: 3; transform: translateX(-50%);
}
#mascot-invizible.primary .portrait-art,
#mascot-maverick.primary .portrait-art { display: none; }
#mascot-invizible.primary .stage-art,
#mascot-maverick.primary .stage-art {
  display: block;
  width: 100% !important; height: 100% !important;
  top: 0 !important; left: 0 !important; margin: 0 !important;
  border-radius: 0 !important; object-fit: contain !important;
  animation: none;
  filter: drop-shadow(0 7px 5px #0006);
}
#mascot-invizible.primary:active,
#mascot-maverick.primary:active { transform: translateX(-50%); }

/* Maverick's art has slightly different framing than Invizible's. */
#mascot-maverick.primary {
  top: calc(var(--deck-y) - var(--booth-width) * .53 - 13px);
}
/* The summon badge belongs to the small alternate mascot, not the DJ on stage. */
.mascot.primary .summon-label { display: none; }
.mascot:focus-visible { outline: 2px solid #d9e9de; outline-offset: 6px; }
body.ai-only #panel { top: auto; bottom: 8vh; right: 24px; max-height: 60svh; }
.theme-maverick .deck { background: linear-gradient(165deg, #554332, #241b15 55%, #34271e); }
@media (max-width: 1050px) {
  .masthead { --booth-width: min(660px, 88vw); --stage-x: 50vw; --deck-y: clamp(300px, 47vh, 450px); }
  body.ai-only #panel { position: relative; inset: auto; margin: 0 auto 24px; width: min(660px, 92vw); max-width: 92vw; max-height: 42svh; }
  .masthead { min-height: calc(var(--deck-y) + var(--booth-width) * .31 + 75px); }
}
@media (max-width: 600px) {
  .masthead { --booth-width: 92vw; --deck-y: clamp(275px, 45svh, 390px); }
  .mascot.secondary { width: 78px; height: 78px; top: 38px; right: 18px; }
  body.ai-only #panel { max-height: 48svh; }
}
