/* =============================================
   PRIZE ZONE – Fixed Stage (1920x1080) Layout
   - Keeps a true 16:9 stage for OBS/LED capture
   - Scales proportionally with letterboxing
   ============================================= */

:root {
  --stage-w: 1920;
  --stage-h: 1080;
  --stage-scale: 1;
  --safe: 48px;
}

html, body {
  height: 100%;
}

body {
  background: #000;
}

/* Fullscreen viewport that letterboxes the stage */
.viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

/* The fixed 1920x1080 stage that gets scaled */
.stage {
  width: calc(var(--stage-w) * 1px);
  height: calc(var(--stage-h) * 1px);
  transform: scale(var(--stage-scale));
  transform-origin: center;
  position: relative;
  overflow: hidden; /* CRITICAL: no overflow outside 1920x1080 frame */
  background: var(--bg-dark, #0a0a1a);
}

/* Optional subtle bezel to look like an arcade cabinet */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 90px rgba(0,0,0,0.65);
  z-index: 5;
}

/* Safe area for important UI */
.safe {
  position: absolute;
  inset: var(--safe);
  z-index: 10;
}

/* HUD */
.hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none; /* enable click only on buttons */
}

.hud .hud-left,
.hud .hud-right {
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}

.hud-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.hud-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.28); }
.hud-btn:active { transform: translateY(1px); }

.hud-badge {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  letter-spacing: 1px;
  font-family: 'Bungee', cursive;
  font-size: 14px;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(255,215,0,0.20);
}

/* Transitions */
.screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 450ms cubic-bezier(.2,.9,.2,1);
}
.screen.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* OBS / LED capture mode (admin-configurable) */
.pz-obs .hud {
  display: none;
}

.pz-obs .stage::before {
  /* Reduce bezel for cleaner capture if desired */
  border-color: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 70px rgba(0,0,0,0.55);
}

