/* Stage branding and a restrained layer of club atmosphere.
   Intentionally leaves the calibrated mascots, turntable sizes and chat alone. */
.venue-sign {
  position: absolute;
  top: clamp(20px, 3.5svh, 39px);
  left: clamp(18px, 2.6vw, 54px);
  z-index: 8;
  width: clamp(190px, 20vw, 315px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: #ecf1eb;
  pointer-events: none;
  user-select: none;
}
.venue-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(241, 247, 241, .18));
  animation: wordmarkGlow 12s ease-in-out infinite;
}
.venue-tagline {
  display: block;
  margin-left: 2px;
  font-size: 10px;
  font-weight: 580;
  letter-spacing: .24em;
  color: #adb9b3;
  text-shadow: 0 1px 8px #000;
}
.venue-on-deck {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
  margin-left: 1px;
  color: #9faea7;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .12em;
}
.venue-on-deck strong {
  color: #d6e2d9;
  font-weight: 650;
  letter-spacing: .08em;
}
.venue-on-deck-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #95b9a0;
  box-shadow: 0 0 9px rgba(161, 212, 176, .55);
}
.theme-maverick .venue-sign { color: #f0d6b0; }
.theme-maverick .venue-wordmark { filter: drop-shadow(0 0 12px rgba(245, 174, 92, .17)); }
.theme-maverick .venue-tagline,
.theme-maverick .venue-on-deck { color: #bfaa91; }
.theme-maverick .venue-on-deck strong { color: #efd2a7; }
.theme-maverick .venue-on-deck-dot {
  background: #e7b56e;
  box-shadow: 0 0 9px rgba(231, 181, 110, .6);
}

/* The light sits behind the performer and changes tint with the theme. */
.venue-halo {
  position: absolute;
  top: 12svh;
  left: 50%;
  width: min(1040px, 80vw);
  height: min(70svh, 660px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(var(--beam-color), .075) 0%,
    rgba(var(--beam-color), .033) 38%,
    transparent 72%);
  filter: blur(28px);
  opacity: .8;
  animation: venueHalo 15s ease-in-out infinite;
}

/* A hint of reflected light under the deck anchors it in the virtual room. */
.masthead::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: var(--stage-x);
  top: calc(var(--deck-y) + var(--booth-width) * .23);
  width: calc(var(--booth-width) * 1.4);
  height: clamp(110px, 14svh, 185px);
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(var(--beam-color), .075) 0%,
    rgba(var(--beam-color), .028) 38%,
    transparent 74%);
  filter: blur(26px);
}
.theme-maverick .masthead::before {
  background: radial-gradient(ellipse at center,
    rgba(202, 147, 87, .115) 0%,
    rgba(202, 147, 87, .035) 40%,
    transparent 74%);
}

/* Thin reflections read as powered hardware without taking attention from the vinyl. */
.deck::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 24% 16%, rgba(var(--beam-color), .065), transparent 32%),
    radial-gradient(ellipse at 77% 16%, rgba(var(--beam-color), .065), transparent 32%);
}
.mixer::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right,
    #90bba0 0 4px, transparent 4px 7px,
    #90bba0 7px 11px, transparent 11px 14px,
    #d2b875 14px 18px, transparent 18px 21px,
    #88978b 21px 25px, transparent 25px);
  box-shadow: 0 0 7px rgba(156, 203, 158, .22);
  opacity: .75;
  animation: boardLevels 3.8s ease-in-out infinite;
  pointer-events: none;
}
.theme-maverick .mixer::before {
  filter: sepia(.55) saturate(1.2);
  box-shadow: 0 0 8px rgba(220, 151, 77, .29);
}
@keyframes wordmarkGlow {
  0%, 100% { opacity: .88; }
  50% { opacity: 1; }
}
@keyframes venueHalo {
  0%, 100% { opacity: .69; }
  50% { opacity: .87; }
}
@keyframes boardLevels {
  0%, 100% { opacity: .54; }
  35% { opacity: .94; }
  72% { opacity: .69; }
}
@media (max-width: 700px) {
  .venue-sign { width: clamp(165px, 45vw, 220px); top: 22px; left: 17px; gap: 5px; }
  .venue-tagline { font-size: 8px; letter-spacing: .14em; }
  .venue-on-deck { font-size: 9px; gap: 5px; margin-top: 3px; letter-spacing: .07em; }
  .venue-on-deck strong { letter-spacing: .045em; }
  .venue-halo { width: 98vw; height: 60svh; }
}
@media (prefers-reduced-motion: reduce) {
  .venue-wordmark, .venue-halo, .mixer::before { animation: none !important; }
}


/* One continuous chassis: side walls and fascia share the outer deck edges.
   Keep the face below the vinyl and tuck the foot rail behind its lower bevel. */
.deck {
  --cheek-width: clamp(12px, 2.8%, 20px);
  --chassis-edge: #424d52;
  --chassis-highlight: #758185;
  --face-top: #323b40;
  --face-bottom: #10161a;
  --side-lit: #697579;
  --side-mid: #303a3f;
  --side-dark: #10161a;
  --face-edge-glint: rgba(218, 232, 229, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 20%),
    linear-gradient(165deg, #343b3e, #171c20 55%, #282e32);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 35px 60px #0009, inset 0 2px 2px #ffffff20;
  overflow: visible;
}

.deck::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: -1px;
  right: -1px;
  top: 78%;
  bottom: -12px;
  border-radius: 0 0 18px 18px;
  border: 1px solid var(--chassis-edge);
  border-top: 0;
  background:
    /* Glancing light at the transition from each side cheek onto the face. */
    linear-gradient(90deg,
      transparent 0%, transparent 2.5%,
      #0004 2.8%, var(--face-edge-glint) 3.5%,
      #ffffff07 5%, transparent 7.5%,
      transparent 92.5%, #ffffff07 95%,
      var(--face-edge-glint) 96.5%, #0004 97.2%,
      transparent 97.5%, transparent 100%),
    linear-gradient(180deg, var(--face-top), var(--face-bottom));
  box-shadow: inset 0 -7px 12px #0005, 0 8px 12px #0004;
  pointer-events: none;
}

/* The emblem retains its existing position and subdued finish. */
.deck-face-logo {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(79.6% + 3px);
  width: 31%;
  transform: translateX(-50%);
  color: #b9c4c0;
  opacity: .20;
  pointer-events: none;
  user-select: none;
}
.deck-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.75));
}

/* Rounded metal side cheeks wrap over the face. Their directional light and
   dark inner bevel give the side walls thickness without extra bottom outlines. */
.deck-side-support {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: -12px;
  width: var(--cheek-width);
  border: 0;
  pointer-events: none;
}
.deck-side-support.left {
  left: -1px;
  border-radius: 18px 3px 3px 18px;
  background: linear-gradient(90deg,
    var(--side-dark), var(--side-lit) 16%, var(--side-mid) 42%,
    var(--side-mid) 70%, var(--side-dark));
  box-shadow: inset 0 1px 1px #ffffff20, inset 0 -8px 8px #0007;
}
.deck-side-support.right {
  right: -1px;
  border-radius: 3px 18px 18px 3px;
  background: linear-gradient(90deg,
    var(--side-dark), var(--side-mid) 30%, var(--side-mid) 58%,
    var(--side-lit) 84%, var(--side-dark));
  box-shadow: inset 0 1px 1px #ffffff14, inset 0 -8px 8px #0007;
}

/* The rolled edge curves down into the side cheeks. Shared width keeps the
   small corner returns aligned on desktop and mobile. */
.deck-front-lip {
  position: absolute;
  z-index: 8;
  left: calc(var(--cheek-width) - 6px);
  right: calc(var(--cheek-width) - 6px);
  top: calc(78% - 2px);
  bottom: auto;
  height: 7px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg,
    var(--side-mid), var(--chassis-highlight) 24%,
    var(--face-top) 52%, var(--face-bottom));
  box-shadow: 0 2px 3px #0004;
  pointer-events: none;
}

/* Quarter-round returns use the same seven-pixel bevel profile as the lip.
   The reflection and contact shadow fade together as they turn down the rail. */
.deck-front-lip::before,
.deck-front-lip::after {
  content: "";
  position: absolute;
  top: 0;
  width: 12px;
  height: 14px;
  background: radial-gradient(circle at 100% 12px,
    transparent 4.5px, var(--face-bottom) 5px,
    var(--face-top) 8.36px, var(--chassis-highlight) 10.32px,
    var(--side-mid) 12px, transparent 12.5px);
  filter: drop-shadow(0 2px 1px #0004);
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 25%, transparent 100%);
  pointer-events: none;
}
.deck-front-lip::before { left: -12px; }
.deck-front-lip::after { right: -12px; transform: scaleX(-1); }

/* The fascia supplies the single lower silhouette; no stacked rail below it. */
.stage-platform { display: none; }

.theme-maverick .deck {
  --chassis-edge: #514438;
  --chassis-highlight: #806852;
  --face-top: #463b32;
  --face-bottom: #17120f;
  --side-lit: #88715b;
  --side-mid: #45392e;
  --side-dark: #1a140f;
  --face-edge-glint: rgba(236, 191, 137, .11);
}
.theme-maverick .deck-face-logo {
  color: #d9ba90;
  opacity: .22;
}
