:root {
  --paper: #f4f7fc;
  --white: #ffffff;
  --white-2: #fafcff;
  --ink: #0a1628;
  --ink-2: #1e2d45;
  --muted: #5a6b85;
  --soft: #e8effc;
  --soft-2: #dce6f9;
  --line: rgba(28, 66, 145, 0.10);
  --line-strong: rgba(53, 104, 255, 0.20);
  --blue: #3568ff;
  --blue-2: #1a52f0;
  --blue-soft: #dfe8ff;
  --cyan: #15bdf4;
  --green: #12b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 4px 16px rgba(30, 72, 160, 0.08);
  --shadow-md: 0 12px 36px rgba(30, 72, 160, 0.12);
  --shadow-lg: 0 28px 78px rgba(30, 72, 160, 0.16);
  --shadow-blue: 0 24px 70px rgba(53, 104, 255, 0.22);
  --radius: 14px;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button-link { -webkit-tap-highlight-color: transparent; }

/* -------------------------------------------------------------------------- */
/* LAUNCHER */
/* -------------------------------------------------------------------------- */
.launcher-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(53,104,255,0.14), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(21,189,244,0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
}

.launcher-body::before,
.launcher-body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
}

.launcher-body::before {
  width: 520px;
  height: 520px;
  right: -160px;
  top: -180px;
  background: rgba(53, 104, 255, 0.06);
  border: 1px solid rgba(53, 104, 255, 0.10);
}

.launcher-body::after {
  width: 660px;
  height: 660px;
  left: -220px;
  bottom: -260px;
  background: rgba(21, 189, 244, 0.06);
  border: 1px solid rgba(21, 189, 244, 0.10);
}

.launcher-card {
  width: min(760px, 94vw);
  padding: 56px;
  border-radius: 44px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.launcher-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 32px;
  border: 1px dashed rgba(53,104,255,0.16);
  pointer-events: none;
}

.launcher-card img {
  width: min(420px, 76vw);
  filter: drop-shadow(0 18px 32px rgba(53, 104, 255, 0.16));
}

.launcher-card h1 {
  margin: 32px 0 12px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.launcher-card p {
  margin: 0 auto 32px;
  max-width: 590px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/* COMMON BUTTONS + BADGES */
/* -------------------------------------------------------------------------- */
button,
.button-link {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(53,104,255,0.24);
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.44;
  filter: grayscale(0.18);
  transform: none;
  box-shadow: none;
}

button:disabled:hover,
button[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

button.is-next-action:not(:disabled) {
  border-color: rgba(53,104,255,0.42);
  box-shadow: 0 0 0 5px rgba(53,104,255,0.10), var(--shadow-blue);
}

.primary,
.button-link.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #113fbf);
  box-shadow: var(--shadow-blue);
}

.warning { color: #fff; background: linear-gradient(135deg, var(--yellow), #d97706); }
.success { color: #fff; background: linear-gradient(135deg, var(--green), #047857); }
.danger { color: #fff; background: linear-gradient(135deg, var(--red), #b91c1c); }
.ghost { background: rgba(255,255,255,0.88); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.action-row {
  align-items: stretch;
}

.shortcut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shortcut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(53,104,255,0.10);
  border-radius: 999px;
  background: #f7faff;
}

kbd {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(53,104,255,0.18);
  box-shadow: inset 0 -1px 0 rgba(30,72,160,0.10);
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.badge,
.prize-chip,
.status-chip,
.ticker-pill,
.ticker-label,
.stage-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--soft);
  color: var(--blue-2);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge {
  padding: 8px 12px;
  font-size: 11px;
}

.badge.green,
.status-chip { color: #047857; background: #e9fbf4; border-color: rgba(18,185,129,0.22); }
.badge.yellow { color: #a16207; background: #fff7dc; border-color: rgba(245,158,11,0.24); }
.badge.red { color: #b91c1c; background: #fff0f0; border-color: rgba(239,68,68,0.22); }

/* -------------------------------------------------------------------------- */
/* TV DISPLAY */
/* -------------------------------------------------------------------------- */
body.display-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.display-fullscreen-control {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(53, 104, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-2);
  box-shadow: 0 12px 30px rgba(25, 62, 140, 0.18);
  backdrop-filter: blur(16px);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -50%);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.display-controls-visible .display-fullscreen-control,
.display-fullscreen-control:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.display-fullscreen-control:hover {
  background: #ffffff;
}

.display-fullscreen-control:focus-visible {
  outline: 3px solid rgba(53, 104, 255, 0.25);
  outline-offset: 3px;
}

.display-fullscreen-control:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.display-fullscreen-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.display-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 20%, rgba(53,104,255,0.18), transparent 32%),
    radial-gradient(circle at 18% 84%, rgba(21,189,244,0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 48%, #edf4ff 100%);
}

.display-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(53,104,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,104,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 0 56%, transparent 82%);
}

.race-bg,
.race-bg span {
  position: absolute;
  pointer-events: none;
}

.race-bg { inset: 0; z-index: 1; overflow: hidden; }

.race-orbit {
  border-radius: 999px;
  border: 1px solid rgba(53,104,255,0.14);
}
.orbit-a { width: 980px; height: 980px; right: -280px; top: -430px; }
.orbit-b { width: 680px; height: 680px; left: -260px; bottom: -300px; border-color: rgba(21,189,244,0.12); }

.lane {
  height: 10px;
  width: 58vw;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(53,104,255,0.18), transparent);
  transform: rotate(-11deg);
  filter: blur(.1px);
}
.lane::after {
  content: "";
  position: absolute;
  inset: 4px 12%;
  border-top: 2px dashed rgba(53,104,255,0.28);
}
.lane-1 { top: 23%; left: -8%; }
.lane-2 { top: 48%; right: -14%; width: 72vw; opacity: .72; }
.lane-3 { bottom: 17%; left: 18%; width: 54vw; opacity: .58; }

.blue-block {
  border-radius: 42px;
  background: linear-gradient(135deg, var(--blue), #1746c9);
  box-shadow: 0 30px 80px rgba(53,104,255,0.18);
  opacity: .10;
  transform: rotate(-8deg);
}
.block-a { width: 240px; height: 120px; top: 12%; right: 10%; }
.block-b { width: 320px; height: 150px; bottom: 14%; left: 8%; opacity: .08; }

.display-header,
.display-footer {
  position: absolute;
  left: 42px;
  right: 42px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.display-header { top: 34px; }
.display-footer { bottom: 28px; }

.live-state-banner {
  position: absolute;
  top: 112px;
  left: 50%;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  min-height: 52px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #1746c9);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(30, 72, 160, 0.24);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.live-state-banner strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.live-state-banner > span:last-child {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.36);
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.live-state-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
}

.display-stage[data-phase="shuffle"] .live-state-banner {
  background: linear-gradient(135deg, #1746c9, #071f79);
  box-shadow: 0 14px 38px rgba(23, 70, 201, 0.34);
}

.display-stage[data-phase="shuffle"] .live-state-dot {
  animation: liveStatePulse 0.8s ease-in-out infinite;
}

.display-stage[data-phase="reveal"] .live-state-banner {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 14px 38px rgba(5, 150, 105, 0.30);
}

.display-stage[data-phase="done"] .live-state-banner {
  background: linear-gradient(135deg, #1f2937, #0f172a);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26);
}

@keyframes liveStatePulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.78);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}

.brand-lockup img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(53,104,255,0.14));
}

.kicker,
.event-title {
  margin: 0;
}

.kicker {
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 11px;
}

.event-title {
  margin-top: 3px;
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--ink);
  font-weight: 700;
}

.prize-chip,
.status-chip {
  padding: 14px 18px;
  max-width: 44vw;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #ffffff;
  color: var(--blue-2);
  box-shadow: 0 4px 14px rgba(30, 72, 160, 0.10);
  border-radius: 8px;
  font-weight: 700;
}

.display-main {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 132px 64px 112px;
}

.screen {
  position: relative;
  width: min(1220px, 92vw);
  min-height: 548px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 8px;
  border: 1px dashed rgba(53,104,255,0.14);
  pointer-events: none;
}

.screen::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -150px;
  background: radial-gradient(circle, rgba(53,104,255,0.12), transparent 70%);
  pointer-events: none;
}

.screen-inner {
  position: relative;
  min-height: 548px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.logo-hero {
  width: min(640px, 72vw);
  margin-bottom: 34px;
  filter: drop-shadow(0 24px 36px rgba(53,104,255,0.16));
}

.stage-label {
  margin: 0 0 12px;
  padding: 10px 15px;
  font-size: clamp(14px, 1.35vw, 20px);
  background: #eef4ff;
}

.stage-headline {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.86;
  color: var(--ink);
}

.stage-headline::selection,
.winner-bib::selection { background: var(--blue); color: #fff; }

.stage-subtitle {
  margin: 24px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.45;
}

.prize-focus {
  margin: 18px 0 0;
  font-size: clamp(28px, 4vw, 64px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--blue-2);
}

.standby-screen {
  padding-block: clamp(42px, 6vw, 72px);
}

.standby-screen .stage-label {
  margin-bottom: 20px;
  padding: 12px 18px;
  font-size: clamp(15px, 1.35vw, 22px);
}

.standby-screen .stage-headline {
  max-width: 1100px;
  font-size: clamp(48px, 7.4vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.standby-screen .prize-focus {
  margin-top: 24px;
  font-size: clamp(22px, 2.4vw, 38px);
  letter-spacing: 0.02em;
}

.standby-screen .stage-subtitle {
  margin-top: 18px;
  max-width: 820px;
}

.roulette-wrap {
  position: relative;
  width: min(900px, 86vw);
  margin: 38px auto 26px;
}

.roulette-window {
  position: relative;
  height: 252px;
  border-radius: 12px;
  overflow: hidden;
  contain: paint;
  border: 1px solid rgba(53,104,255,0.18);
  background:
    linear-gradient(90deg, rgba(53,104,255,0.06), rgba(255,255,255,0.96), rgba(53,104,255,0.06)),
    #fff;
  box-shadow: var(--shadow-md);
}

.roulette-window::before,
.roulette-window::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 76px;
  pointer-events: none;
}

.roulette-window::before { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.roulette-window::after { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }

.roulette-line {
  position: absolute;
  z-index: 4;
  left: 22px;
  right: 22px;
  top: 50%;
  height: 86px;
  transform: translateY(-50%);
  border-radius: 10px;
  border: 2px solid rgba(53,104,255,0.42);
  box-shadow: 0 0 0 8px rgba(53,104,255,0.05), 0 12px 40px rgba(53,104,255,0.16);
  pointer-events: none;
}

.roulette-items {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  overflow: hidden;
}

.roulette-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  min-height: 54px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #f6f9ff;
  color: var(--ink);
  border: 1px solid rgba(53,104,255,0.08);
  box-shadow: 0 6px 16px rgba(8, 31, 84, 0.04);
  text-align: left;
  flex-shrink: 0;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.roulette-item strong {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: .9;
  color: var(--blue-2);
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
}

.roulette-item span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roulette-items.bib-only {
  gap: 12px;
}

.roulette-item.bib-only {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 66px;
  padding: 14px 22px;
  text-align: center;
}

.roulette-item.bib-only strong {
  font-size: clamp(46px, 6vw, 72px);
  letter-spacing: .08em;
}

.roulette-item.bib-only span {
  display: none;
}

.shuffle-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.spinner-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid var(--blue-soft);
  border-top-color: var(--blue-2);
  display: inline-block;
}

/* Roulette window tension glow during shuffle */
@keyframes windowPulse {
  0%, 100% {
    border-color: rgba(53,104,255,0.18);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(53,104,255,0);
  }
  50% {
    border-color: rgba(53,104,255,0.36);
    box-shadow: var(--shadow-md), 0 0 28px rgba(53,104,255,0.12);
  }
}

.roulette-window.shuffling {
  animation: windowPulse 2s ease-in-out infinite;
}

.winner-card {
  position: relative;
  width: min(1040px, 90vw);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border: 1px solid rgba(53,104,255,0.20);
  box-shadow: var(--shadow-blue);
  overflow: hidden;
  transform-style: preserve-3d;
}

.winner-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 8px;
  border: 1px dashed rgba(53,104,255,0.18);
}

.winner-card::after {
  content: "WINNER";
  position: absolute;
  right: -28px;
  top: 20px;
  font-family: var(--font-display);
  font-size: 120px;
  letter-spacing: .04em;
  color: rgba(53,104,255,0.05);
  transform: rotate(-8deg);
}

.winner-visual,
.winner-copy {
  position: relative;
  z-index: 2;
}

.winner-visual {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(53,104,255,0.18), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(53,104,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 34px rgba(30, 72, 160, 0.08);
}

.winner-prize-image {
  width: 100%;
  max-width: 420px;
  max-height: 300px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 22px 30px rgba(30, 72, 160, 0.18));
}

.winner-prize-image-fallback {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(53,104,255,0.14), rgba(21,189,244,0.08));
  color: var(--blue-2);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
}

.winner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.winner-prize-kicker {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(53,104,255,0.16);
  background: #eef4ff;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.winner-bib {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 116px;
  margin: 16px 0 0;
  padding: 14px 26px 8px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: clamp(74px, 9vw, 142px);
  line-height: .78;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0b2fa8);
  box-shadow: var(--shadow-blue);
}

.winner-name {
  position: relative;
  z-index: 2;
  margin: 20px 0 0;
  font-size: clamp(38px, 4.6vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.96;
  font-weight: 900;
}

.winner-prize {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(24px, 2.8vw, 42px);
  color: var(--blue-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.winner-prize-reference {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.validation-note {
  margin-top: 24px;
  padding: 13px 18px;
  border-radius: 8px;
  background: #fff7df;
  border: 1px solid rgba(245,158,11,0.22);
  color: #a16207;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -40px;
  display: block;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(53,104,255,0.16);
}

.confetti i:nth-child(3n) { background: var(--cyan); }
.confetti i:nth-child(4n) { background: var(--ink); }
.confetti i:nth-child(5n) { background: #dbe6ff; }

.winner-ticker {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 10px;
  max-width: 74vw;
  border-radius: 12px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.ticker-label {
  padding: 9px 12px;
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  font-size: 11px;
}

.ticker-items {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.ticker-pill {
  padding: 9px 12px;
  background: #f3f7ff;
  color: var(--ink-2);
  border-color: rgba(53,104,255,0.10);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.footer-right {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 10px;
  backdrop-filter: blur(18px);
}

.footer-right strong { color: var(--ink); font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* ADMIN */
/* -------------------------------------------------------------------------- */
.admin-body {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(53,104,255,0.12), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(21,189,244,0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  overflow-x: hidden;
}

.admin-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.admin-bg span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(53,104,255,0.12);
  background: rgba(53,104,255,0.04);
}

.admin-bg span:nth-child(1) { width: 420px; height: 420px; right: -140px; top: -160px; }
.admin-bg span:nth-child(2) { width: 520px; height: 520px; left: -210px; bottom: -250px; background: rgba(21,189,244,0.04); }
.admin-bg span:nth-child(3) { width: 780px; height: 2px; left: 12%; top: 22%; border-radius: 999px; transform: rotate(-10deg); background: rgba(53,104,255,0.12); }

.admin-shell {
  position: relative;
  z-index: 2;
  max-width: 1580px;
  margin: 0 auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 36px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.admin-brand img {
  width: 182px;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(53,104,255,0.14));
}

.admin-brand h1,
.admin-brand p { margin: 0; }

.admin-brand h1 {
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 900;
}

.admin-brand p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}

.admin-card {
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 32px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.card-header h2,
.card-header p { margin: 0; }

.card-header h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.card-header p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  min-height: 110px;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, #f3f7ff);
  border: 1px solid rgba(53,104,255,0.10);
  box-shadow: var(--shadow-sm);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: .85;
  color: var(--blue-2);
}

.current-state {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.state-box {
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
}

.state-box small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 800;
  font-size: 11px;
}

.state-box strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.state-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 14px;
}

.control-panel {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-weight: 700;
  letter-spacing: -0.01em;
}

select,
textarea,
input {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 14px rgba(14, 43, 108, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

select:focus,
textarea:focus,
input:focus {
  border-color: rgba(53,104,255,0.40);
  box-shadow: 0 0 0 4px rgba(53,104,255,0.08);
}

.prize-picker-field {
  position: relative;
}

.prize-picker {
  position: relative;
  z-index: 5;
}

.prize-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.prize-picker-trigger {
  width: 100%;
  padding: 16px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(53,104,255,0.16);
  box-shadow: 0 8px 24px rgba(30, 72, 160, 0.08);
}

.prize-picker-trigger:hover {
  border-color: rgba(53,104,255,0.28);
  box-shadow: 0 10px 28px rgba(30, 72, 160, 0.10);
}

.prize-picker[data-open="true"] .prize-picker-trigger {
  border-color: rgba(53,104,255,0.34);
  box-shadow: 0 0 0 4px rgba(53,104,255,0.08), 0 10px 28px rgba(30, 72, 160, 0.10);
}

.prize-picker-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.prize-picker-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

.prize-picker-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prize-picker-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.prize-picker-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.prize-picker-icon svg {
  width: 16px;
  height: 16px;
  transition: transform .24s ease;
}

.prize-picker[data-open="true"] .prize-picker-icon svg {
  transform: rotate(180deg);
}

.prize-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(53,104,255,0.14);
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 56, 138, 0.14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.prize-picker[data-open="true"] .prize-picker-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.prize-picker-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 8px;
}

.prize-picker-menu-title {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prize-picker-menu-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(53,104,255,0.14);
  background: #f4f8ff;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prize-picker-options {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.prize-picker-option {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid transparent;
  box-shadow: none;
}

.prize-picker-option:hover {
  border-color: rgba(53,104,255,0.18);
  background: #f8fbff;
  box-shadow: none;
}

.prize-picker-option.is-active {
  border-color: rgba(53,104,255,0.26);
  background: #f3f7ff;
}

.prize-picker-option.is-done {
  border-color: rgba(18,185,129,0.16);
  background: #f7fcfa;
}

.prize-picker-option-index {
  min-height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(53,104,255,0.14);
  background: #edf3ff;
  color: var(--blue-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: none;
}

.prize-picker-option.is-active .prize-picker-option-index {
  background: #dfe8ff;
}

.prize-picker-option.is-done .prize-picker-option-index {
  border-color: rgba(18,185,129,0.18);
  background: #e9fbf4;
  color: #047857;
}

.prize-picker-option-copy {
  min-width: 0;
}

.prize-picker-option-copy strong,
.prize-picker-option-copy span {
  display: block;
}

.prize-picker-option-copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prize-picker-option-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.prize-picker-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prize-picker-state.is-active {
  border-color: rgba(53,104,255,0.18);
  background: #edf3ff;
  color: var(--blue-2);
}

.prize-picker-state.is-done {
  border-color: rgba(18,185,129,0.18);
  background: #e9fbf4;
  color: #047857;
}

.prize-picker-option .prize-picker-state {
  justify-self: end;
}

.prize-picker-empty {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(53,104,255,0.18);
  background: #fafcff;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.notice {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(245,158,11,0.18);
  background: #fff8e8;
  color: #8a5b00;
  font-size: 14px;
  line-height: 1.5;
}

.list {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(14, 43, 108, 0.03);
}

.list-item strong,
.list-item span { display: block; }

.list-item strong {
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.list-item div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px dashed rgba(53,104,255,0.18);
  color: var(--muted);
  text-align: center;
}

.table-wrap {
  max-height: 420px;
  overflow: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: #fff;
}

.danger-zone {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: 22px;
  background: #fff7f7;
}

.danger-zone summary {
  cursor: pointer;
  color: #b91c1c;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.danger-zone p {
  margin: 10px 0 12px;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.5;
}

.prize-picker-options,
.list,
.table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(53,104,255,0.48) rgba(53,104,255,0.08);
}

.prize-picker-options::-webkit-scrollbar,
.list::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.prize-picker-options::-webkit-scrollbar-track,
.list::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: rgba(53,104,255,0.08);
  border-radius: 999px;
}

.prize-picker-options::-webkit-scrollbar-thumb,
.list::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(53,104,255,0.78), rgba(21,189,244,0.72));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.winner-cell strong,
.winner-cell span {
  display: block;
}

.winner-cell span {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

th, td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8ff;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}

td { color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------------------- */
/* ELITE MOTION PATTERNS */
/* -------------------------------------------------------------------------- */

/* Magnetic Button Hover */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

button,
.button-link {
  transition: transform .35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

/* Character Split Animation */
.char-split {
  display: inline-block;
}

.char-split span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-90deg);
  transform-origin: center bottom;
}

/* Winner Glow Pulse */
@keyframes winnerGlow {
  0%, 100% {
    box-shadow: 0 24px 70px rgba(53, 104, 255, 0.22), 0 0 0 0 rgba(53, 104, 255, 0.4);
  }
  50% {
    box-shadow: 0 24px 70px rgba(53, 104, 255, 0.22), 0 0 0 20px rgba(53, 104, 255, 0);
  }
}

.winner-card.reveal-active {
  animation: winnerGlow 2.4s ease-in-out infinite;
}

/* Screen Blur Entrance */
.screen.entrance-blur {
  filter: blur(12px);
  opacity: 0.6;
}

.screen.entrance-clear {
  filter: blur(0);
  opacity: 1;
  transition: filter 0.8s ease-out, opacity 0.6s ease-out;
}

/* Floating Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}

.particle-blue {
  background: radial-gradient(circle, rgba(53,104,255,0.6), transparent);
}

.particle-cyan {
  background: radial-gradient(circle, rgba(21,189,244,0.5), transparent);
}

/* Kinetic Underline */
.kinetic-underline {
  position: relative;
  display: inline-block;
}

.kinetic-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kinetic-underline.active::after {
  width: 100%;
}

/* Card Tilt on Hover */
.admin-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.admin-card:hover {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: 0 32px 88px rgba(30, 72, 160, 0.18);
}

/* Ambient Breathing */
@keyframes ambientBreathe {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.06;
  }
  50% {
    transform: scale(1.05) translateY(-8px);
    opacity: 0.08;
  }
}

.admin-bg span {
  animation: ambientBreathe 8s ease-in-out infinite;
}

.admin-bg span:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 10s;
}

.admin-bg span:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 12s;
}

/* Staggered List Entrance */
.list-item {
  opacity: 0;
  transform: translateX(-20px);
}

.list-item.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Metric Counter Pulse */
@keyframes metricPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.metric-animate {
  animation: metricPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced Confetti 3D */
.confetti i {
  transform-style: preserve-3d;
  backface-visibility: visible;
}

/* Prize Chip Glow */
@keyframes chipGlow {
  0%, 100% {
    box-shadow: 0 12px 36px rgba(30, 72, 160, 0.12), 0 0 0 0 rgba(53, 104, 255, 0.3);
  }
  50% {
    box-shadow: 0 12px 36px rgba(30, 72, 160, 0.12), 0 0 0 8px rgba(53, 104, 255, 0);
  }
}

.prize-chip.pulse {
  animation: chipGlow 1.8s ease-in-out;
}

/* Smooth Table Row */
tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(53, 104, 255, 0.03);
}

/* Noise Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Focus Ring for Accessibility */
button:focus-visible,
.button-link:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.admin-card:focus-within {
  border-color: rgba(53, 104, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(53, 104, 255, 0.08);
}

/* Text Wrap Balance */
h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  z-index: 10000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Spotlight Border on Admin Cards */
.admin-card {
  position: relative;
}

.admin-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 33px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(53, 104, 255, 0.28), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.admin-card:hover::before {
  opacity: 1;
}

/* Winner History Empty State */
.winner-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.winner-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.winner-empty strong {
  display: block;
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 700;
}

.winner-empty span {
  font-size: 14px;
  line-height: 1.5;
}

.admin-session-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.admin-session-controls form {
  margin: 0;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(53, 104, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: 0 8px 22px rgba(30, 72, 160, 0.10);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.connection-status > span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.connection-status.is-connected {
  border-color: rgba(5, 150, 105, 0.20);
  color: #047857;
}

.connection-status.is-connected > span {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.connection-status.is-connecting > span {
  animation: liveStatePulse 0.9s ease-in-out infinite;
}

.display-connection-status {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
  opacity: 0.86;
}

.auth-body {
  min-height: 100vh;
}

.auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(53, 104, 255, 0.15);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.auth-card > img {
  width: 150px;
  height: auto;
  margin-bottom: 28px;
}

.auth-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: -0.045em;
}

.auth-card > p:not(.kicker) {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card form button {
  width: 100%;
  margin-top: 6px;
}

.auth-card > a {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue-2);
  font-weight: 800;
}

.auth-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 14px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .admin-session-controls {
    align-items: stretch;
  }

  .display-connection-status {
    left: 12px;
    top: auto;
    bottom: 12px;
    transform: none;
    max-width: calc(100vw - 76px);
  }

  .live-state-banner {
    top: 202px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 14px;
  }

  .live-state-banner strong {
    font-size: 18px;
  }

  .live-state-banner > span:last-child {
    display: none;
  }

  .display-fullscreen-control {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    transform: translate(10px, 0);
  }

  .display-fullscreen-control span {
    display: none;
  }

  .display-controls-visible .display-fullscreen-control,
  .display-fullscreen-control:focus-visible {
    transform: translate(0, 0);
  }

  .display-header,
  .display-footer {
    left: 18px;
    right: 18px;
  }

  .display-header,
  .display-footer,
  .admin-topbar,
  .admin-brand,
  .current-state {
    flex-direction: column;
    align-items: stretch;
  }

  .display-main { padding: 134px 18px 128px; }
  .screen-inner { padding: 32px 20px; }
  .brand-lockup img { height: 34px; }
  .prize-chip { max-width: 100%; }
  .footer-right { display: none; }
  .winner-ticker { max-width: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-topbar { align-items: stretch; }
  .metric-grid,
  .current-state { grid-template-columns: 1fr; }
  .prize-picker-trigger {
    padding: 14px 16px;
    border-radius: 18px;
  }
  .prize-picker-copy strong { font-size: 16px; }
  .prize-picker-menu { padding: 8px; border-radius: 18px; }
  .prize-picker-option {
    grid-template-columns: 44px 1fr;
    align-items: start;
  }
  .prize-picker-option .prize-picker-state {
    grid-column: 2;
    justify-self: start;
  }
  .roulette-item { grid-template-columns: 108px 1fr; }
  .roulette-item strong { font-size: 30px; }
  .roulette-item span { font-size: 19px; }
  .winner-card {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .winner-copy { align-items: center; text-align: center; }
  .winner-visual { min-height: 220px; }
  .winner-prize-image { max-height: 220px; }
  .winner-bib {
    min-width: 200px;
    min-height: 100px;
    font-size: clamp(64px, 14vw, 110px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
