:root {
  --bg-1: #090412;
  --bg-2: #12081f;
  --bg-3: #25103c;
  --panel: rgba(11, 9, 23, 0.72);
  --panel-strong: rgba(18, 13, 35, 0.9);
  --line: rgba(255, 222, 156, 0.18);
  --text: #fff7da;
  --muted: rgba(255, 247, 218, 0.72);
  --gold: #ffbf3c;
  --gold-bright: #ffe389;
  --rose: #ff5f91;
  --cyan: #48d6ff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 191, 60, 0.18), transparent 24%),
    radial-gradient(circle at 20% 20%, rgba(72, 214, 255, 0.18), transparent 20%),
    radial-gradient(circle at 80% 12%, rgba(255, 95, 145, 0.12), transparent 18%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 227, 137, 0.55);
  outline-offset: 2px;
}

.show-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(9, 4, 18, 0.5), rgba(9, 4, 18, 0.62)),
    var(--custom-page-image, none),
    repeating-linear-gradient(
      115deg,
      transparent 0 60px,
      rgba(255, 255, 255, 0.02) 60px 64px
    ),
    radial-gradient(circle at 50% -10%, rgba(255, 227, 137, 0.12), transparent 32%);
  background-size: cover, auto, auto, auto;
  background-position: center center, center center, center center, center center;
}

.page {
  position: relative;
  z-index: 1;
  width: calc(100vw - 40px);
  max-width: 1920px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 0 28px;
}

.page--narrow {
  width: calc(100vw - 56px);
  max-width: 1680px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 10px 0 18px;
}

.brand-mark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-links,
.hero-actions,
.control-actions,
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.topbar-link--active,
.topbar-link--button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.hero-block,
.show-header,
.show-layout {
  display: grid;
  gap: 22px;
}

.hero-block {
  grid-template-columns: minmax(0, 1.5fr) minmax(380px, 460px);
  align-items: stretch;
  min-height: 28vh;
  margin-bottom: 18px;
}

.hero-block--compact {
  grid-template-columns: 1fr;
}

.hero-block__copy,
.scoreboard,
.glass-panel,
.show-stage {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-block__copy,
.scoreboard,
.glass-panel,
.show-header,
.show-stage,
.control-column {
  padding: 24px;
}

.hero-kicker,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(4rem, 6.8vw, 7.8rem);
  max-width: 12ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
}

h3 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}

.hero-copy,
.soft-copy,
.draw-card-description,
.result-copy,
.status-line {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.scoreboard {
  display: grid;
  gap: 16px;
}

.scoreboard-card,
.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.scoreboard-card span,
.metric-card__label {
  color: var(--muted);
  font-size: 0.88rem;
}

.scoreboard-card strong,
.metric-card strong {
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.metric-card--accent {
  background: linear-gradient(135deg, rgba(255, 191, 60, 0.18), rgba(255, 95, 145, 0.14));
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pill-button:hover {
  transform: translateY(-1px);
}

.pill-button--gold {
  background: linear-gradient(135deg, var(--gold) 0%, #ff8a00 100%);
  color: #2d1400;
  box-shadow: 0 14px 30px rgba(255, 138, 0, 0.28);
}

.pill-button--dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pill-button--danger {
  background: linear-gradient(135deg, #a61e4d, #7f1d1d);
  color: #fff5f5;
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.28);
}

.panel-head,
.draw-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.draw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.lobby-wheel-shell {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 18px;
  min-height: 64vh;
}

.lobby-wheel-copy {
  display: grid;
  gap: 18px;
}

.segment-list {
  display: grid;
  gap: 10px;
}

.segment-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.segment-chip strong,
.segment-chip span {
  min-width: 0;
}

.segment-chip__index {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-bright);
  font-weight: 800;
}

.segment-chip span:last-child {
  color: var(--muted);
}

.lobby-wheel-stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.lobby-wheel-pointer {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-top: 46px solid #fff0b5;
  filter: drop-shadow(0 0 12px rgba(255, 240, 181, 0.45));
}

.lobby-wheel-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lobby-wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.35));
  animation: lobbyWheelSpin 40s linear infinite;
  transform-origin: center;
}

.lobby-wheel-wrap:hover .lobby-wheel-svg,
.lobby-wheel-wrap:focus-within .lobby-wheel-svg {
  animation-play-state: paused;
}

.wheel-segment-link {
  cursor: pointer;
}

.wheel-segment {
  stroke: rgba(255, 247, 218, 0.28);
  stroke-width: 4;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.wheel-segment-link:hover .wheel-segment,
.wheel-segment-link:focus .wheel-segment {
  filter: brightness(1.14);
}

.wheel-label {
  fill: #fff8df;
  pointer-events: none;
}

.wheel-label__prize {
  font-size: 30px;
  font-weight: 900;
}

.wheel-label__title,
.wheel-label__host {
  font-size: 20px;
  font-weight: 700;
}

.wheel-center {
  fill: rgba(19, 11, 38, 0.96);
  stroke: rgba(255, 227, 137, 0.5);
  stroke-width: 10;
}

.wheel-center__text {
  fill: var(--gold-bright);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.draw-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 191, 60, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(18, 13, 35, 0.9), rgba(13, 10, 27, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.draw-card-host,
.draw-card-meta,
.draw-card-close {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.draw-card-prize {
  margin: 0;
  color: var(--gold-bright);
  font-weight: 700;
}

.draw-card-link {
  margin-top: auto;
}

.show-header {
  grid-template-columns: minmax(0, 1.6fr) minmax(420px, 520px);
  padding: 0 0 8px;
}

.show-metrics {
  display: grid;
  gap: 16px;
}

.show-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1.35fr) minmax(300px, 360px);
  align-items: start;
  min-height: calc(100vh - 260px);
}

.show-stage {
  min-height: calc(100vh - 280px);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 227, 137, 0.18), transparent 24%),
    radial-gradient(circle at 20% 0, rgba(72, 214, 255, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(14, 10, 28, 0.98), rgba(10, 7, 19, 0.98));
}

.show-stage__lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0, rgba(255, 227, 137, 0.18), transparent 18%),
    radial-gradient(circle at 50% 0, rgba(72, 214, 255, 0.16), transparent 18%),
    radial-gradient(circle at 82% 0, rgba(255, 95, 145, 0.14), transparent 18%);
}

.show-stage--winner .show-stage__lights {
  animation: stagePulse 0.9s ease-in-out infinite alternate;
}

.marquee {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 999px;
  color: #1b0f00;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--gold-bright), #ffbb38);
  box-shadow: 0 0 0 5px rgba(255, 191, 60, 0.14);
}

.wheel-frame {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#wheel-canvas {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 56px rgba(0, 0, 0, 0.38));
}

.wheel-prize-center {
  position: absolute;
  inset: 50%;
  width: 31%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(15, 10, 30, 0.94);
  border: 8px solid rgba(255, 224, 138, 0.9);
  box-shadow:
    0 0 0 10px rgba(255, 224, 138, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.35);
}

.wheel-prize-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wheel-pointer {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-top: 42px solid #fff0b5;
  filter: drop-shadow(0 0 10px rgba(255, 240, 181, 0.5));
}

.control-column {
  display: grid;
  gap: 18px;
  padding: 0;
  align-self: stretch;
}

.control-column--left,
.control-column--right {
  align-content: start;
}

.show-form,
.show-form--stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.show-form--stack {
  grid-template-columns: 1fr;
}

.show-form label {
  display: grid;
  gap: 8px;
}

.show-form__wide {
  grid-column: 1 / -1;
}

.status-line[data-variant="success"] {
  color: #a3ffcf;
}

.status-line[data-variant="error"] {
  color: #ffb8c9;
}

.image-preview {
  display: grid;
  gap: 12px;
}

.image-preview--hidden {
  display: none;
}

.image-preview__frame {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.image-preview__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.winner-panel {
  background:
    radial-gradient(circle at top, rgba(255, 227, 137, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(44, 19, 2, 0.92), rgba(82, 31, 6, 0.9));
}

.counter-pill {
  display: inline-flex;
  min-width: 52px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.entrants-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 520px);
  overflow: auto;
}

.entrant-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.entrant-row__number,
.entrant-row__time {
  color: var(--muted);
  font-size: 0.85rem;
}

.result-panel input {
  margin-bottom: 10px;
}

.admin-login-panel {
  max-width: 760px;
}

.admin-settings-panel {
  display: grid;
  gap: 20px;
}

.admin-settings-form {
  align-items: start;
}

.admin-background-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-background-card__preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-background-card__preview--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.admin-background-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-inline-check {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-inline-check input {
  width: auto;
}

.admin-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--gold-bright);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-cell-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-link-stack,
.admin-actions {
  display: grid;
  gap: 8px;
}

.admin-link-stack a {
  color: var(--gold-bright);
}

.admin-status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
}

.admin-status-pill--live {
  background: rgba(16, 185, 129, 0.14);
  color: #9ff5d0;
}

.admin-status-pill--closed {
  background: rgba(255, 191, 60, 0.14);
  color: #ffe389;
}

@keyframes stagePulse {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.18) brightness(1.12);
  }
}

@keyframes lobbyWheelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .hero-block,
  .show-header,
  .show-layout,
  .draw-grid,
  .lobby-wheel-shell {
    grid-template-columns: 1fr;
  }

  .page,
  .page--narrow {
    width: min(100% - 24px, 1360px);
    max-width: none;
  }

  .control-column--left {
    order: 2;
  }

  .show-stage {
    order: 1;
  }

  .control-column--right {
    order: 3;
  }
}

@media (max-width: 720px) {
  .page,
  .page--narrow {
    width: min(100% - 18px, 1360px);
    padding-top: 18px;
  }

  .topbar,
  .panel-head,
  .draw-card-footer {
    display: grid;
    justify-content: stretch;
  }

  .hero-block__copy,
  .scoreboard,
  .glass-panel,
  .show-stage {
    border-radius: 22px;
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4.6rem);
  }

  .show-form {
    grid-template-columns: 1fr;
  }

  .show-form__wide {
    grid-column: auto;
  }
}

/* Redesigned admin dashboard */
.theme-admin .show-bg {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 191, 60, 0.18), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(72, 214, 255, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(9, 4, 18, 0.92), rgba(20, 9, 35, 0.96));
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  width: min(100% - 32px, 1680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 28px;
}

.admin-sidebar,
.admin-login-card,
.admin-hero,
.admin-panel,
.admin-metric-card,
.admin-draw-card {
  border: 1px solid rgba(255, 222, 156, 0.16);
  background: rgba(12, 9, 25, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 36px);
  padding: 22px;
  border-radius: 28px;
}

.admin-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #2d1400;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.admin-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav a:hover,
.admin-nav a:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.admin-main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.admin-login-card,
.admin-hero,
.admin-panel {
  border-radius: 30px;
  padding: clamp(20px, 3vw, 34px);
}

.admin-login-card {
  max-width: 760px;
  margin: min(8vh, 80px) auto 0;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 191, 60, 0.16), transparent 32%),
    rgba(12, 9, 25, 0.78);
}

.admin-hero h1,
.admin-login-card h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5vw, 6.2rem);
}

.admin-eyebrow {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-muted {
  color: var(--muted);
  line-height: 1.55;
}

.admin-quick-actions,
.admin-card-actions,
.admin-link-row,
.admin-save-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-button--primary {
  color: #2d1400;
  background: linear-gradient(135deg, var(--gold-bright), #ff9f1c);
  border-color: transparent;
}

.admin-button--danger {
  color: #fff5f5;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  border-color: transparent;
}

.admin-alert {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.5;
}

.admin-alert--success {
  color: #b8ffd8;
  background: rgba(16, 185, 129, 0.12);
}

.admin-alert--error {
  color: #ffc5d2;
  background: rgba(190, 18, 60, 0.12);
}

.admin-alert--warning {
  color: #ffe9a8;
  background: rgba(255, 191, 60, 0.12);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-metric-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
}

.admin-metric-card span {
  color: var(--muted);
}

.admin-metric-card strong {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-draw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-draw-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 191, 60, 0.10), transparent 32%),
    rgba(255, 255, 255, 0.04);
}

.admin-draw-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-draw-card h3,
.admin-health-item h3,
.admin-empty h3 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.15;
  font-size: 1.25rem;
}

.admin-status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
}

.admin-status--live {
  color: #a3ffcf;
  background: rgba(16, 185, 129, 0.15);
}

.admin-status--closed {
  color: #ffe389;
  background: rgba(255, 191, 60, 0.15);
}

.admin-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-mini-stats div {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-mini-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-mini-stats dd {
  margin: 4px 0 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-link-row a {
  color: var(--gold-bright);
  font-weight: 900;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form--login {
  margin-top: 22px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form label span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-upload-card,
.admin-empty {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-image-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-check {
  display: flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.admin-check input {
  width: auto;
}

.admin-health-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-health-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-health-item > strong {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.admin-health-item--ok > strong {
  color: #05331f;
  background: #a3ffcf;
}

.admin-health-item--bad > strong {
  color: #3b0715;
  background: #ffc5d2;
}

.admin-health-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-metrics,
  .admin-draw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(100% - 18px, 1680px);
    padding-top: 10px;
  }

  .admin-hero,
  .admin-section-head {
    display: grid;
  }

  .admin-nav,
  .admin-metrics,
  .admin-draw-grid,
  .admin-settings-grid,
  .admin-health-list {
    grid-template-columns: 1fr;
  }

  .admin-mini-stats {
    grid-template-columns: 1fr;
  }
}

.admin-nav__link--active {
  color: #1d102b !important;
  background: linear-gradient(135deg, var(--gold-bright), #fff1a8) !important;
  box-shadow: 0 14px 35px rgba(255, 208, 84, 0.22);
}

.admin-page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-page-title h1 {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.admin-action-list,
.admin-compact-list {
  display: grid;
  gap: 12px;
}

.admin-action-list a,
.admin-compact-list a {
  display: grid;
  gap: 5px;
  padding: 15px;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-action-list a:hover,
.admin-compact-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 208, 84, 0.35);
}

.admin-action-list strong,
.admin-compact-list strong {
  font-size: 1rem;
}

.admin-action-list span,
.admin-compact-list em {
  color: var(--muted);
  font-style: normal;
}

.admin-compact-list a {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.admin-small-link {
  color: var(--gold-bright);
  font-weight: 900;
}

@media (max-width: 900px) {
  .admin-page-title,
  .admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-compact-list a {
    grid-template-columns: 1fr;
  }
}

/* Game-page wheel upgrade: transparent stage, wooden lucky-wheel rim, bulbs, synced flipper */
.theme-draw .show-stage {
  background: transparent;
  border-color: rgba(255, 222, 156, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

.theme-draw .show-stage::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 227, 137, 0.16), transparent 24%),
    radial-gradient(circle at 18% 0, rgba(72, 214, 255, 0.12), transparent 22%),
    radial-gradient(circle at 84% 0, rgba(255, 95, 145, 0.1), transparent 22%);
}

.theme-draw .show-stage__lights {
  opacity: 0.55;
}

.wheel-frame {
  padding: clamp(34px, 4.1vw, 58px);
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 236, 166, 0.55), transparent 8%),
    radial-gradient(circle at 62% 72%, rgba(83, 31, 9, 0.38), transparent 18%),
    repeating-conic-gradient(from -8deg, #4d220b 0deg 7deg, #8a4718 7deg 14deg, #c98232 14deg 20deg, #6b300e 20deg 28deg);
  box-shadow:
    inset 0 0 0 9px rgba(255, 204, 104, 0.55),
    inset 0 0 0 24px rgba(74, 30, 8, 0.82),
    inset 0 0 34px rgba(255, 222, 135, 0.35),
    0 34px 86px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(255, 180, 51, 0.22);
}

.wheel-frame::before,
.wheel-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-frame::before {
  inset: clamp(14px, 1.6vw, 22px);
  border: clamp(4px, 0.7vw, 8px) solid rgba(255, 216, 132, 0.88);
  box-shadow: inset 0 0 18px rgba(51, 20, 3, 0.75), 0 0 16px rgba(255, 227, 137, 0.34);
}

.wheel-frame::after {
  inset: clamp(50px, 5.8vw, 84px);
  border: 5px solid rgba(84, 39, 13, 0.86);
  box-shadow: inset 0 0 0 3px rgba(255, 224, 138, 0.42), 0 0 20px rgba(0, 0, 0, 0.3);
}

.wheel-bulbs {
  position: absolute;
  inset: clamp(21px, 2.45vw, 36px);
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-bulbs span {
  position: absolute;
  width: clamp(12px, 1.38vw, 22px);
  height: clamp(12px, 1.38vw, 22px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 28%, #fff8cb 0 18%, #ffd357 34%, #ff9500 68%, #9d3f00 100%);
  box-shadow: 0 0 8px rgba(255, 211, 87, 0.8), 0 0 18px rgba(255, 149, 0, 0.55), 0 0 0 2px rgba(82, 31, 4, 0.38);
  animation: wheelBulbFlash 0.56s steps(2, end) infinite;
  animation-delay: var(--bulb-delay);
}

#wheel-canvas {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  filter: drop-shadow(0 30px 56px rgba(0, 0, 0, 0.38));
}

.wheel-prize-center { z-index: 4; }

.wheel-pointer {
  z-index: 5;
  top: clamp(10px, 1.1vw, 18px);
  border-left-width: clamp(18px, 2.4vw, 30px);
  border-right-width: clamp(18px, 2.4vw, 30px);
  border-top-width: clamp(38px, 4.4vw, 58px);
  border-top-color: #ffc54f;
  transform-origin: 50% 15%;
  filter: drop-shadow(0 0 12px rgba(255, 213, 96, 0.68)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.42));
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  left: -9px;
  top: -48px;
  width: 18px;
  height: 30px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #fff2b0, #c16911 70%, #6f2b05);
}

.wheel-flipper--kick { animation: flipperKick 92ms ease-out; }

@keyframes wheelBulbFlash {
  0%, 100% { filter: brightness(1.35) saturate(1.2); opacity: 1; }
  50% { filter: brightness(0.68) saturate(0.82); opacity: 0.74; }
}

@keyframes flipperKick {
  0% { transform: translateX(-50%) rotate(0deg); }
  42% { transform: translateX(-50%) rotate(-17deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* Full-screen draw layout: non-repeating cover background, fixed centred wheel, entrants-only scrolling */
html,
body.theme-draw {
  width: 100%;
  height: 100%;
}

body.theme-draw {
  min-height: 100vh;
  overflow: hidden;
}

body.theme-draw .show-bg {
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, auto, cover;
  background-position: center center, center center, center center, center center;
}

body.theme-draw .page {
  width: 100vw;
  max-width: none;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: clamp(12px, 1.4vw, 22px);
  overflow: hidden;
}

body.theme-draw .topbar,
body.theme-draw .show-header,
body.theme-draw .show-layout,
body.theme-draw .control-column,
body.theme-draw .show-stage {
  position: relative;
  z-index: 3;
}

body.theme-draw .topbar {
  position: fixed;
  top: clamp(10px, 1.2vw, 18px);
  left: clamp(14px, 1.6vw, 24px);
  right: clamp(14px, 1.6vw, 24px);
  padding: 0;
}

body.theme-draw .show-header {
  position: fixed;
  top: clamp(58px, 6.2vw, 82px);
  left: clamp(14px, 1.6vw, 24px);
  right: clamp(14px, 1.6vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  pointer-events: none;
}

body.theme-draw .show-header a,
body.theme-draw .show-header button,
body.theme-draw .show-header input,
body.theme-draw .show-header textarea,
body.theme-draw .show-header .metric-card {
  pointer-events: auto;
}

body.theme-draw .show-copy h1 {
  margin-block: 0.12em;
  font-size: clamp(1.6rem, 2.8vw, 3.2rem);
}

body.theme-draw .hero-copy {
  max-width: 52ch;
  max-height: 3.2em;
  overflow: hidden;
}

body.theme-draw .show-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.theme-draw #manage-badge {
  grid-column: 1 / -1;
}

body.theme-draw .show-layout {
  display: block;
  min-height: 0;
  height: 100vh;
}

body.theme-draw .show-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  border: 0;
  z-index: 1;
  pointer-events: none;
}

body.theme-draw .show-stage::before,
body.theme-draw .show-stage__lights {
  display: none;
}

body.theme-draw .marquee {
  position: fixed;
  top: clamp(112px, 12vw, 150px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
  pointer-events: none;
}

body.theme-draw .marquee span {
  min-height: 42px;
  padding: 0 20px;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
}

body.theme-draw .wheel-frame {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(72vmin, 860px);
  max-width: calc(100vw - 560px);
  min-width: min(54vmin, 460px);
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: auto;
}

body.theme-draw .control-column {
  position: fixed;
  top: clamp(180px, 18vh, 230px);
  bottom: clamp(14px, 1.6vw, 24px);
  width: clamp(270px, 21vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  overflow: hidden;
}

body.theme-draw .control-column--left {
  left: clamp(14px, 1.6vw, 24px);
}

body.theme-draw .control-column--right {
  right: clamp(14px, 1.6vw, 24px);
}

body.theme-draw .control-column .glass-panel {
  flex: 0 0 auto;
}

body.theme-draw .control-column--left .glass-panel:nth-child(2) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.theme-draw .entrants-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

body.theme-draw .entrant-row {
  padding: 10px 12px;
}

body.theme-draw .winner-panel {
  overflow-y: auto;
  max-height: 42vh;
}

@media (max-width: 1180px) {
  body.theme-draw .show-header {
    display: none;
  }

  body.theme-draw .control-column {
    top: auto;
    bottom: 12px;
    width: calc(50vw - 24px);
    max-height: 34vh;
  }

  body.theme-draw .wheel-frame {
    width: min(66vmin, 680px);
    max-width: calc(100vw - 32px);
    min-width: 0;
    top: 43%;
  }

  body.theme-draw .marquee {
    top: 62px;
  }
}


/* Final gameshow polish patch: centred wheel, readable labels, spotlight sweep, confetti */
body.theme-draw .show-bg {
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover, cover;
  background-position: center center, center center, center center, center center;
}

body.theme-draw .wheel-frame {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(65vmin, 740px);
  height: min(65vmin, 740px);
  max-width: none;
  min-width: 0;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: auto;
}

body.theme-draw .wheel-frame::after {
  inset: clamp(50px, 5.8vw, 84px);
  border: 5px solid rgba(84, 39, 13, 0.86);
  box-shadow:
    inset 0 0 0 3px rgba(255, 224, 138, 0.42),
    0 0 20px rgba(0, 0, 0, 0.3);
  background:
    linear-gradient(
      120deg,
      transparent 22%,
      rgba(255, 255, 255, 0.22) 43%,
      transparent 62%
    );
  mix-blend-mode: screen;
  animation: wheelLightSweep 3.4s linear infinite;
}

body.theme-draw .wheel-prize-center {
  width: 24%;
  border-width: 6px;
}

body.theme-draw .winner-panel {
  box-shadow:
    0 0 0 1px rgba(255, 227, 137, 0.18),
    0 0 34px rgba(255, 191, 60, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.32);
}

body.theme-draw .entrant-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

body.theme-draw .entrant-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-flipper--kick {
  animation: flipperKick 112ms cubic-bezier(.2, .9, .2, 1);
}

.confetti-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 999;
  pointer-events: none;
}

.confetti-burst span {
  position: absolute;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  animation: confettiPop 1.65s ease-out forwards;
  animation-delay: var(--delay);
  transform: translate(-50%, -50%);
}

@keyframes wheelLightSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes confettiPop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--x)), calc(-50% + var(--y)))
      scale(1)
      rotate(var(--r));
  }
}

@keyframes flipperKick {
  0% { transform: translateX(-50%) rotate(0deg); }
  30% { transform: translateX(-50%) rotate(-25deg); }
  62% { transform: translateX(-50%) rotate(8deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

@media (max-width: 1180px) {
  body.theme-draw .wheel-frame {
    width: min(62vmin, 660px);
    height: min(62vmin, 660px);
    top: 43%;
  }
}

@media (min-width: 1600px) {
  body.theme-draw .wheel-frame {
    width: min(62vmin, 780px);
    height: min(62vmin, 780px);
  }
}


/* Full gameshow winner effects: camera zoom, stage flashes, and physics confetti */
body.theme-draw .wheel-frame {
  transition:
    transform 780ms cubic-bezier(.18, .9, .2, 1),
    filter 780ms ease;
  will-change: transform, filter;
}

body.theme-draw--winner-zoom .wheel-frame {
  transform: translate(-50%, -50%) scale(1.09);
  filter:
    drop-shadow(0 0 34px rgba(255, 227, 137, 0.44))
    drop-shadow(0 34px 80px rgba(0, 0, 0, 0.46));
}

body.theme-draw--winner-zoom .wheel-prize-center {
  box-shadow:
    0 0 0 10px rgba(255, 224, 138, 0.2),
    0 0 36px rgba(255, 191, 60, 0.5),
    0 18px 42px rgba(0, 0, 0, 0.35);
}

body.theme-draw .show-stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 247, 218, 0.45), transparent 20%),
    radial-gradient(circle at 22% 12%, rgba(72, 214, 255, 0.34), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(255, 95, 145, 0.32), transparent 25%),
    linear-gradient(90deg, transparent, rgba(255, 227, 137, 0.12), transparent);
}

body.theme-draw .show-stage--flash::after {
  animation: winnerStageFlash 1.9s ease-out forwards;
}

body.theme-draw--winner-zoom .show-bg {
  filter: saturate(1.18) brightness(1.08);
}

.confetti-physics {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
  perspective: 700px;
}

.confetti-physics span {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 1;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  will-change: transform, opacity;
}

@keyframes winnerStageFlash {
  0% {
    opacity: 0;
    filter: brightness(1);
  }
  8% {
    opacity: 1;
    filter: brightness(1.8);
  }
  18% {
    opacity: 0.24;
    filter: brightness(1.1);
  }
  28% {
    opacity: 0.92;
    filter: brightness(1.55);
  }
  46% {
    opacity: 0.28;
  }
  68% {
    opacity: 0.54;
  }
  100% {
    opacity: 0;
    filter: brightness(1);
  }
}

@media (max-width: 1180px) {
  body.theme-draw--winner-zoom .wheel-frame {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Emergency draw-page cleanup: fixes overlapping HUD, oversized panels, and small-screen behaviour */
body.theme-draw .show-bg {
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-size: cover, cover, cover, cover !important;
  background-position: center center, center center, center center, center center !important;
}

body.theme-draw .topbar {
  z-index: 20;
}

body.theme-draw .brand-mark {
  font-size: clamp(0.82rem, 1vw, 1.05rem);
}

body.theme-draw .topbar-link {
  min-height: 34px;
  padding: 7px 12px;
  font-size: clamp(0.74rem, 0.9vw, 0.9rem);
}

body.theme-draw .show-header {
  top: clamp(48px, 5.3vw, 70px);
  left: clamp(14px, 1.4vw, 22px);
  right: clamp(14px, 1.4vw, 22px);
  grid-template-columns: minmax(230px, 36vw) minmax(260px, 360px);
  align-items: start;
  gap: 14px;
  z-index: 8;
}

body.theme-draw .show-copy {
  max-width: 520px;
  pointer-events: none;
}

body.theme-draw .show-copy .hero-kicker {
  margin-bottom: 4px;
  font-size: clamp(0.58rem, 0.72vw, 0.78rem);
}

body.theme-draw .show-copy h1 {
  max-width: 11ch;
  font-size: clamp(1.35rem, 2.25vw, 2.75rem);
  line-height: 0.95;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

body.theme-draw .hero-copy {
  display: none;
}

body.theme-draw .show-metrics {
  justify-self: end;
  width: min(100%, 360px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.theme-draw .metric-card {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(11, 9, 23, 0.46);
}

body.theme-draw .metric-card__label,
body.theme-draw .metric-card span {
  font-size: 0.72rem;
}

body.theme-draw .metric-card strong {
  display: block;
  max-height: 3.1em;
  overflow: hidden;
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  line-height: 1.05;
  word-break: normal;
}

body.theme-draw #manage-badge {
  grid-column: 1 / -1;
}

body.theme-draw .wheel-frame {
  width: min(60vmin, 690px) !important;
  height: min(60vmin, 690px) !important;
  top: 50% !important;
  left: 50% !important;
  max-width: calc(100vw - 620px) !important;
  min-width: 420px !important;
  transform: translate(-50%, -50%) !important;
}

body.theme-draw--winner-zoom .wheel-frame {
  transform: translate(-50%, -50%) scale(1.045) !important;
}

body.theme-draw .marquee {
  top: clamp(88px, 10vh, 118px);
  z-index: 9;
}

body.theme-draw .marquee span {
  min-height: 36px;
  padding: 0 17px;
  font-size: clamp(0.62rem, 0.75vw, 0.82rem);
}

body.theme-draw .control-column {
  top: clamp(150px, 18vh, 205px);
  bottom: 14px;
  width: clamp(250px, 18vw, 320px);
  z-index: 12;
}

body.theme-draw .glass-panel {
  padding: clamp(14px, 1.35vw, 20px);
  border-radius: 22px;
}

body.theme-draw .control-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

body.theme-draw .pill-button {
  min-height: 44px;
  padding: 0 13px;
  font-size: clamp(0.72rem, 0.86vw, 0.9rem);
  white-space: nowrap;
}

body.theme-draw .control-column--right label {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

body.theme-draw .control-column--right label span {
  font-size: 0.78rem;
  font-weight: 800;
}

body.theme-draw .control-column--right input,
body.theme-draw .show-form input {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  text-overflow: ellipsis;
}

body.theme-draw .panel-head h2 {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
}

body.theme-draw .entrants-list {
  scrollbar-width: thin;
}

body.theme-draw .entrant-row {
  min-width: 0;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 13px;
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
}

body.theme-draw .entrant-row__time {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-draw .winner-panel h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

body.theme-draw .winner-panel p,
body.theme-draw .winner-panel small {
  font-size: clamp(0.72rem, 0.84vw, 0.9rem);
}

@media (min-width: 1500px) and (max-height: 920px) {
  body.theme-draw .wheel-frame {
    width: min(58vmin, 660px) !important;
    height: min(58vmin, 660px) !important;
  }

  body.theme-draw .control-column {
    top: 158px;
    width: clamp(245px, 17vw, 305px);
  }
}

@media (max-width: 1320px) {
  body.theme-draw .show-header {
    grid-template-columns: minmax(220px, 34vw) minmax(240px, 320px);
  }

  body.theme-draw .control-column {
    width: clamp(230px, 20vw, 285px);
  }

  body.theme-draw .wheel-frame {
    width: min(56vmin, 610px) !important;
    height: min(56vmin, 610px) !important;
    max-width: calc(100vw - 540px) !important;
    min-width: 360px !important;
  }
}

@media (max-width: 980px) {
  body.theme-draw {
    overflow: hidden;
  }

  body.theme-draw .page {
    padding: 10px;
  }

  body.theme-draw .topbar {
    left: 10px;
    right: 10px;
  }

  body.theme-draw .show-header {
    display: block;
    top: 52px;
    left: 10px;
    right: 10px;
    pointer-events: none;
  }

  body.theme-draw .show-copy h1 {
    max-width: 12ch;
    font-size: clamp(1.25rem, 5.4vw, 2rem);
  }

  body.theme-draw .show-metrics {
    display: none;
  }

  body.theme-draw .marquee {
    top: 76px;
  }

  body.theme-draw .marquee span {
    min-height: 32px;
    padding: 0 13px;
    font-size: 0.62rem;
  }

  body.theme-draw .wheel-frame {
    top: 37% !important;
    width: min(72vmin, 430px) !important;
    height: min(72vmin, 430px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
  }

  body.theme-draw--winner-zoom .wheel-frame {
    transform: translate(-50%, -50%) scale(1.02) !important;
  }

  body.theme-draw .control-column {
    position: fixed;
    top: auto;
    bottom: 10px;
    width: calc(50vw - 15px);
    max-height: 34vh;
    gap: 10px;
  }

  body.theme-draw .control-column--left {
    left: 10px;
  }

  body.theme-draw .control-column--right {
    right: 10px;
  }

  body.theme-draw .control-column .glass-panel {
    padding: 12px;
    border-radius: 18px;
  }

  body.theme-draw .control-column--left .glass-panel:first-child {
    flex: 0 0 auto;
  }

  body.theme-draw .control-column--left .glass-panel:nth-child(2),
  body.theme-draw .control-column--right .glass-panel:first-child {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.theme-draw .panel-head h2 {
    font-size: 1.45rem;
  }

  body.theme-draw .panel-kicker {
    font-size: 0.58rem;
  }

  body.theme-draw .counter-pill {
    min-width: 36px;
    min-height: 30px;
  }

  body.theme-draw .control-actions {
    grid-template-columns: 1fr;
  }

  body.theme-draw .pill-button {
    min-height: 38px;
    font-size: 0.68rem;
  }

  body.theme-draw .show-form {
    gap: 8px;
  }

  body.theme-draw .show-form input,
  body.theme-draw .control-column--right input {
    padding: 8px 9px;
    font-size: 0.65rem;
  }

  body.theme-draw .control-column--right label span {
    font-size: 0.64rem;
  }

  body.theme-draw .entrants-list {
    max-height: none;
  }

  body.theme-draw .entrant-row {
    grid-template-columns: auto minmax(0, 1fr);
    font-size: 0.64rem;
  }

  body.theme-draw .entrant-row__time {
    display: none;
  }

  body.theme-draw .winner-panel {
    display: none;
  }
}

@media (max-width: 620px) {
  body.theme-draw .brand-mark {
    font-size: 0.72rem;
  }

  body.theme-draw .topbar-links {
    gap: 6px;
  }

  body.theme-draw .topbar-link {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  body.theme-draw .show-header {
    display: none;
  }

  body.theme-draw .marquee {
    top: 50px;
  }

  body.theme-draw .wheel-frame {
    top: 31% !important;
    width: min(78vmin, 350px) !important;
    height: min(78vmin, 350px) !important;
  }

  body.theme-draw .control-column {
    width: calc(50vw - 12px);
    bottom: 8px;
    max-height: 44vh;
  }

  body.theme-draw .control-column--left {
    left: 8px;
  }

  body.theme-draw .control-column--right {
    right: 8px;
  }

  body.theme-draw .control-column .glass-panel {
    padding: 10px;
    border-radius: 16px;
  }

  body.theme-draw .control-column--right label {
    display: none;
  }
}

/* iMac / desktop final draw layout reset
   This deliberately overrides the earlier experimental HUD rules. */
body.theme-draw,
body.theme-draw .page {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}

body.theme-draw .show-bg {
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-size: cover, cover, cover, cover !important;
  background-position: center center, center center, center center, center center !important;
}

body.theme-draw .page {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
}

body.theme-draw .topbar {
  position: fixed !important;
  top: 18px !important;
  left: 22px !important;
  right: 22px !important;
  z-index: 40 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

body.theme-draw .brand-mark,
body.theme-draw .topbar-links {
  pointer-events: auto !important;
}

body.theme-draw .brand-mark {
  font-size: 0.92rem !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.7) !important;
}

body.theme-draw .topbar-links {
  gap: 8px !important;
}

body.theme-draw .topbar-link {
  min-height: 32px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  background: rgba(9, 7, 18, 0.62) !important;
  backdrop-filter: blur(10px) !important;
}

/* Keep the title as a compact title card only. Hide the duplicate prize/status HUD. */
body.theme-draw .show-header {
  position: fixed !important;
  top: 70px !important;
  left: 22px !important;
  right: auto !important;
  width: 340px !important;
  display: block !important;
  z-index: 22 !important;
  pointer-events: none !important;
}

body.theme-draw .show-copy {
  width: 100% !important;
  max-width: 340px !important;
}

body.theme-draw .show-copy .hero-kicker {
  margin: 0 0 5px !important;
  font-size: 0.62rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0.15em !important;
}

body.theme-draw .show-copy h1 {
  max-width: 10ch !important;
  margin: 0 !important;
  font-size: clamp(1.8rem, 2.2vw, 3rem) !important;
  line-height: 0.92 !important;
  text-shadow: 0 3px 20px rgba(0,0,0,.78) !important;
}

body.theme-draw .hero-copy,
body.theme-draw .show-metrics {
  display: none !important;
}

body.theme-draw .show-layout,
body.theme-draw .show-stage {
  position: fixed !important;
  inset: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  display: block !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.theme-draw .show-stage {
  z-index: 1 !important;
  pointer-events: none !important;
}

body.theme-draw .marquee {
  position: fixed !important;
  top: 122px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 24 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

body.theme-draw .marquee span {
  min-height: 34px !important;
  padding: 0 18px !important;
  font-size: 0.74rem !important;
  box-shadow: 0 0 0 4px rgba(255, 191, 60, .13), 0 10px 24px rgba(0,0,0,.28) !important;
}

body.theme-draw .wheel-frame {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  width: clamp(520px, 43vw, 760px) !important;
  height: clamp(520px, 43vw, 760px) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 760px) !important;
  max-height: calc(100vh - 190px) !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

body.theme-draw--winner-zoom .wheel-frame {
  transform: translate(-50%, -50%) scale(1.035) !important;
}

body.theme-draw .wheel-prize-center {
  width: 24% !important;
}

body.theme-draw .control-column {
  position: fixed !important;
  top: 215px !important;
  bottom: 22px !important;
  width: 320px !important;
  max-width: calc((100vw - min(43vw, 760px)) / 2 - 54px) !important;
  min-width: 250px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 30 !important;
}

body.theme-draw .control-column--left {
  left: 22px !important;
}

body.theme-draw .control-column--right {
  right: 22px !important;
}

body.theme-draw .glass-panel {
  padding: 16px !important;
  border-radius: 22px !important;
  background: rgba(12, 7, 24, 0.68) !important;
  border: 1px solid rgba(255, 222, 156, 0.16) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(14px) !important;
}

body.theme-draw .control-column .glass-panel {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

body.theme-draw .control-column--left .glass-panel:nth-child(2) {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.theme-draw .panel-head {
  gap: 10px !important;
  align-items: start !important;
  flex: 0 0 auto !important;
}

body.theme-draw .panel-kicker {
  margin-bottom: 5px !important;
  font-size: 0.62rem !important;
}

body.theme-draw .panel-head h2 {
  font-size: clamp(2rem, 2.35vw, 3.05rem) !important;
  line-height: 0.9 !important;
}

body.theme-draw .counter-pill {
  min-width: 42px !important;
  min-height: 36px !important;
}

body.theme-draw .entrants-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
  display: grid !important;
  gap: 8px !important;
}

body.theme-draw .entrant-row {
  grid-template-columns: 28px minmax(0, 1fr) minmax(74px, 92px) !important;
  gap: 8px !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  font-size: 0.74rem !important;
}

body.theme-draw .entrant-row strong,
body.theme-draw .entrant-row__time {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.theme-draw .show-form {
  gap: 10px !important;
}

body.theme-draw .show-form input,
body.theme-draw .control-column--right input {
  padding: 10px 12px !important;
  border-radius: 13px !important;
  font-size: 0.78rem !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.theme-draw .status-line {
  margin: 12px 0 0 !important;
  font-size: 0.82rem !important;
}

body.theme-draw .control-actions {
  display: grid !important;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
  gap: 10px !important;
}

body.theme-draw .pill-button {
  min-height: 42px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
}

body.theme-draw .control-column--right label {
  display: grid !important;
  gap: 6px !important;
  margin-top: 8px !important;
  min-width: 0 !important;
}

body.theme-draw .control-column--right label span {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
}

body.theme-draw .winner-panel {
  max-height: 34vh !important;
  overflow: auto !important;
}

body.theme-draw .winner-panel h3 {
  font-size: clamp(1.55rem, 2vw, 2.2rem) !important;
}

/* Medium desktops / laptops: stack controls lower and let the wheel shrink. */
@media (max-width: 1500px) {
  body.theme-draw .show-header {
    width: 290px !important;
  }

  body.theme-draw .show-copy h1 {
    font-size: clamp(1.55rem, 2.1vw, 2.45rem) !important;
  }

  body.theme-draw .control-column {
    top: 195px !important;
    width: 280px !important;
    min-width: 230px !important;
  }

  body.theme-draw .wheel-frame {
    width: clamp(440px, 40vw, 640px) !important;
    height: clamp(440px, 40vw, 640px) !important;
    max-width: calc(100vw - 640px) !important;
  }
}

/* Tablet/small laptop fallback: wheel above, panels at bottom. */
@media (max-width: 1120px) {
  body.theme-draw .show-header {
    display: none !important;
  }

  body.theme-draw .marquee {
    top: 58px !important;
  }

  body.theme-draw .wheel-frame {
    top: 38% !important;
    width: min(70vmin, 520px) !important;
    height: min(70vmin, 520px) !important;
    max-width: calc(100vw - 28px) !important;
    max-height: calc(66vh - 80px) !important;
  }

  body.theme-draw .control-column {
    top: auto !important;
    bottom: 10px !important;
    width: calc(50vw - 16px) !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: 34vh !important;
  }

  body.theme-draw .control-column--left {
    left: 10px !important;
  }

  body.theme-draw .control-column--right {
    right: 10px !important;
  }
}

@media (max-width: 680px) {
  body.theme-draw .brand-mark {
    font-size: 0.72rem !important;
  }

  body.theme-draw .topbar {
    top: 10px !important;
    left: 8px !important;
    right: 8px !important;
  }

  body.theme-draw .topbar-link {
    padding: 6px 8px !important;
    font-size: 0.64rem !important;
  }

  body.theme-draw .marquee {
    top: 48px !important;
  }

  body.theme-draw .marquee span {
    min-height: 28px !important;
    padding: 0 12px !important;
    font-size: 0.58rem !important;
  }

  body.theme-draw .wheel-frame {
    top: 31% !important;
    width: min(78vmin, 360px) !important;
    height: min(78vmin, 360px) !important;
  }

  body.theme-draw .control-column {
    bottom: 8px !important;
    width: calc(50vw - 12px) !important;
    max-height: 44vh !important;
  }

  body.theme-draw .control-column--left {
    left: 8px !important;
  }

  body.theme-draw .control-column--right {
    right: 8px !important;
  }

  body.theme-draw .glass-panel {
    padding: 10px !important;
    border-radius: 16px !important;
  }

  body.theme-draw .control-column--right label {
    display: none !important;
  }

  body.theme-draw .entrant-row {
    grid-template-columns: 24px minmax(0, 1fr) !important;
  }

  body.theme-draw .entrant-row__time {
    display: none !important;
  }

  body.theme-draw .winner-panel {
    display: none !important;
  }
}


/* User-led draw layout refinement:
   - draw title centered at the top
   - no site brand in the header
   - no "Stage lineup" heading
   - winner replaces entry form after completion
   - controls move to the lower-right panel position
   - entrants list shows names only */
body.theme-draw .topbar {
  display: block !important;
  height: 96px !important;
}

body.theme-draw .draw-title-top {
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  width: min(48vw, 760px) !important;
  transform: translateX(-50%) !important;
  z-index: 45 !important;
  text-align: center !important;
  pointer-events: none !important;
}

body.theme-draw .draw-title-top .hero-kicker {
  margin: 0 0 4px !important;
  font-size: clamp(0.58rem, 0.7vw, 0.78rem) !important;
  line-height: 1 !important;
  letter-spacing: 0.16em !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.85) !important;
}

body.theme-draw .draw-title-top h1 {
  margin: 0 auto !important;
  max-width: 18ch !important;
  font-size: clamp(1.45rem, 2.15vw, 3.1rem) !important;
  line-height: 0.95 !important;
  text-wrap: balance !important;
  text-shadow: 0 4px 24px rgba(0,0,0,.85) !important;
}

body.theme-draw .topbar-links {
  position: fixed !important;
  top: 18px !important;
  right: 22px !important;
  z-index: 46 !important;
}

body.theme-draw .show-header {
  display: none !important;
}

body.theme-draw .marquee {
  top: 118px !important;
}

body.theme-draw .control-column--left {
  top: 170px !important;
}

body.theme-draw .control-column--right {
  top: 170px !important;
  justify-content: flex-end !important;
}

body.theme-draw .control-column--right .glass-panel {
  width: 100% !important;
}

body.theme-draw #entry-panel[hidden],
body.theme-draw #winner-panel[hidden] {
  display: none !important;
}

body.theme-draw .control-column--left #winner-panel:not([hidden]) {
  display: block !important;
  flex: 0 0 auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.theme-draw .entrants-panel {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.theme-draw .panel-head {
  align-items: center !important;
}

body.theme-draw .panel-head .panel-kicker {
  margin: 0 !important;
}

body.theme-draw .entrant-row {
  grid-template-columns: 30px minmax(0, 1fr) !important;
}

body.theme-draw .entrant-row__time {
  display: none !important;
}

body.theme-draw .entrant-row strong {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1500px) {
  body.theme-draw .draw-title-top {
    width: min(46vw, 620px) !important;
  }

  body.theme-draw .draw-title-top h1 {
    font-size: clamp(1.25rem, 2vw, 2.45rem) !important;
  }

  body.theme-draw .control-column--left,
  body.theme-draw .control-column--right {
    top: 155px !important;
  }
}

@media (max-width: 1120px) {
  body.theme-draw .draw-title-top {
    top: 44px !important;
    width: min(72vw, 620px) !important;
  }

  body.theme-draw .draw-title-top h1 {
    font-size: clamp(1.1rem, 4vw, 2rem) !important;
  }

  body.theme-draw .marquee {
    top: 96px !important;
  }

  body.theme-draw .control-column--right {
    justify-content: flex-start !important;
  }
}

@media (max-width: 680px) {
  body.theme-draw .draw-title-top {
    top: 44px !important;
    width: calc(100vw - 24px) !important;
  }

  body.theme-draw .draw-title-top h1 {
    font-size: clamp(1rem, 6vw, 1.5rem) !important;
  }

  body.theme-draw .draw-title-top .hero-kicker {
    font-size: 0.52rem !important;
  }

  body.theme-draw .topbar-links {
    right: 8px !important;
  }
}


/* TV upgrade: winner focus, pointer feedback, entrant winner highlight, full-screen TV mode */
body.theme-draw::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0 27%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.62) 100%);
  transition: opacity 420ms ease;
}
body.theme-draw--winner-focus::before { opacity: 1; }
body.theme-draw--winner-focus .wheel-frame { filter: drop-shadow(0 0 38px rgba(255, 227, 137, 0.36)); }
.show-stage--flash::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,0.42), transparent 30%), linear-gradient(90deg, rgba(255,191,60,0.18), rgba(72,214,255,0.18), rgba(255,95,145,0.16));
  animation: stageWinnerFlash 1.25s ease-out forwards;
}
@keyframes stageWinnerFlash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
body.theme-draw--tick-shake .wheel-frame { animation: pointerHitShake 105ms linear; }
@keyframes pointerHitShake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 2px), calc(-50% + 1px)); }
  50% { transform: translate(calc(-50% + 2px), calc(-50% - 1px)); }
  75% { transform: translate(calc(-50% - 1px), -50%); }
}
.entrant-row--winner {
  color: #1f1200;
  background: linear-gradient(135deg, #ffe389, #ffbf3c) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 227, 137, 0.18), 0 0 28px rgba(255, 191, 60, 0.34);
  animation: winnerRowPulse 1.1s ease-in-out 4;
}
.entrant-row--winner .entrant-row__number { color: #5a3100; }
@keyframes winnerRowPulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.025); filter: brightness(1.18); } }
.confetti-physics { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.confetti-physics span { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
body.theme-draw--winner-zoom .wheel-frame {
  transition: transform 520ms cubic-bezier(.2,.85,.18,1), filter 520ms ease;
  transform: translate(-50%, -50%) scale(1.08) !important;
  filter: drop-shadow(0 0 48px rgba(255, 227, 137, 0.54));
}
body.theme-draw--tv .topbar,
body.theme-draw--tv .show-header,
body.theme-draw--tv .control-column,
body.theme-draw--tv .marquee {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 240ms ease !important;
}
body.theme-draw--tv .wheel-frame {
  width: min(82vmin, 1040px) !important;
  height: min(82vmin, 1040px) !important;
  max-width: calc(100vw - 40px) !important;
  top: 50% !important;
}
body.theme-draw--tv .wheel-prize-center { width: 23% !important; }
@media (max-width: 1120px) {
  body.theme-draw--tv .wheel-frame {
    width: min(86vmin, 820px) !important;
    height: min(86vmin, 820px) !important;
    top: 50% !important;
  }
}

/* Cinematic spin upgrade: slow-motion finish, reactive lights, extra confetti energy */
body.theme-draw {
  --spin-light-intensity: 0;
  --spin-light-speed: 0.9s;
  --spin-bulb-duration: 0.56s;
}

body.theme-draw--spinning-lights::after {
  content: "";
  position: fixed;
  inset: -18vmax;
  z-index: 2;
  pointer-events: none;
  opacity: var(--spin-light-intensity);
  mix-blend-mode: screen;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(255, 227, 137, 0.32) 24deg,
      transparent 58deg,
      rgba(72, 214, 255, 0.24) 116deg,
      transparent 164deg,
      rgba(255, 95, 145, 0.22) 216deg,
      transparent 276deg,
      rgba(255, 227, 137, 0.24) 324deg,
      transparent 360deg
    );
  animation: reactiveStageSweep var(--spin-light-speed) linear infinite;
}

body.theme-draw--slowmo::before {
  opacity: 0.42 !important;
}

body.theme-draw--slowmo .wheel-frame {
  filter: drop-shadow(0 0 44px rgba(255, 227, 137, 0.46));
}

body.theme-draw--slowmo .wheel-pointer {
  filter:
    drop-shadow(0 0 18px rgba(255, 213, 96, 0.9))
    drop-shadow(0 9px 12px rgba(0, 0, 0, 0.52));
}

body.theme-draw .wheel-bulbs span {
  animation-duration: var(--spin-bulb-duration, 0.56s) !important;
}

body.theme-draw--winner-zoom .confetti-physics span {
  filter: drop-shadow(0 0 6px rgba(255, 227, 137, 0.42));
}

@keyframes reactiveStageSweep {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  to { transform: rotate(360deg) scale(1); }
}
