:root {
  --raffle-bg: #050505;
  --raffle-bg-2: #0b0a09;
  --raffle-panel: rgba(20, 18, 16, 0.82);
  --raffle-panel-strong: #15120f;
  --raffle-line: rgba(255, 239, 214, 0.12);
  --raffle-line-hot: rgba(201, 126, 54, 0.46);
  --raffle-text: #fff7ed;
  --raffle-muted: #c9b9a6;
  --raffle-dim: #867868;
  --raffle-gold: #d5aa68;
  --raffle-orange: #c76f2a;
  --raffle-red: #ff6b55;
  --raffle-green: #67d391;
  --raffle-radius: 8px;
  --raffle-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  --raffle-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--raffle-bg);
}

body.raffle-body {
  min-height: 100%;
  margin: 0;
  color: var(--raffle-text);
  font-family: var(--raffle-font);
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(199, 111, 42, 0.16), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(213, 170, 104, 0.16), transparent 30%),
    linear-gradient(180deg, #090807 0%, #050505 48%, #0b0a09 100%);
  overflow-x: hidden;
}

body.raffle-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 239, 214, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 239, 214, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.74) 48%, transparent 100%);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.gate-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gate-form {
  width: min(100%, 360px);
  display: grid;
  gap: 12px;
}

.gate-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--raffle-line-hot);
  border-radius: var(--raffle-radius);
  padding: 0 16px;
  color: var(--raffle-text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.gate-form input:focus {
  border-color: var(--raffle-gold);
  box-shadow: 0 0 0 4px rgba(213, 170, 104, 0.12);
}

.gate-form button,
.raffle-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--raffle-radius);
  padding: 11px 16px;
  color: #170f09;
  background: linear-gradient(135deg, var(--raffle-orange), var(--raffle-gold));
  box-shadow: 0 18px 42px rgba(199, 111, 42, 0.22);
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.gate-form button:hover,
.raffle-button:hover { transform: translateY(-1px); }

.gate-form button:disabled,
.raffle-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.raffle-button.secondary {
  color: var(--raffle-text);
  border-color: var(--raffle-line);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.raffle-button.danger {
  color: #fff;
  border-color: rgba(255, 107, 85, 0.34);
  background: rgba(255, 107, 85, 0.18);
  box-shadow: none;
}

.raffle-button.small {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.86rem;
}

.form-error {
  min-height: 22px;
  margin: 0;
  color: #ffb3a7;
  font-size: 0.9rem;
}

.admin-shell,
.history-shell {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 38px) 48px;
}

.raffle-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 22px;
}

.raffle-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--raffle-text);
  text-decoration: none;
  font-weight: 950;
}

.raffle-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #19100a;
  background: linear-gradient(135deg, var(--raffle-orange), var(--raffle-gold));
  box-shadow: 0 18px 42px rgba(199, 111, 42, 0.24);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-nav a {
  padding: 9px 12px;
  border: 1px solid var(--raffle-line);
  border-radius: 999px;
  color: var(--raffle-muted);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
  color: var(--raffle-text);
  border-color: var(--raffle-line-hot);
}

.panel {
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  background: var(--raffle-panel);
  box-shadow: var(--raffle-shadow);
  backdrop-filter: blur(18px);
}

.panel.pad { padding: clamp(18px, 3vw, 28px); }

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

.view-head h1,
.view-head h2,
.room-title h1,
.history-title h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.view-head h1,
.history-title h1 { font-size: clamp(2rem, 5vw, 4.6rem); }
.view-head h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }

.muted { color: var(--raffle-muted); }
.dim { color: var(--raffle-dim); }

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(213, 170, 104, 0.28);
  border-radius: 999px;
  color: var(--raffle-gold);
  background: rgba(213, 170, 104, 0.09);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat {
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  background: rgba(255, 255, 255, 0.045);
}

.stat span {
  display: block;
  color: var(--raffle-dim);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--raffle-text);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--raffle-muted);
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.chat-composer input {
  width: 100%;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  padding: 12px 13px;
  color: var(--raffle-text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.form-grid textarea { min-height: 132px; resize: vertical; }

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.chat-composer input:focus {
  border-color: var(--raffle-line-hot);
  box-shadow: 0 0 0 4px rgba(199, 111, 42, 0.1);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  background: rgba(255, 255, 255, 0.04);
}

.list-item strong { display: block; overflow-wrap: anywhere; }
.list-item p { margin: 3px 0 0; color: var(--raffle-muted); }

.empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 239, 214, 0.2);
  border-radius: var(--raffle-radius);
  color: var(--raffle-muted);
}

.meta-table {
  display: grid;
  gap: 10px;
}

.meta-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--raffle-line);
}

.meta-row span { color: var(--raffle-dim); }
.meta-row strong { overflow-wrap: anywhere; }

.live-shell {
  min-height: 100svh;
  padding: clamp(14px, 2vw, 24px);
}

.live-grid {
  min-height: calc(100svh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: stretch;
}

.stage {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  background:
    radial-gradient(circle at 50% 38%, rgba(213, 170, 104, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--raffle-shadow);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(213, 170, 104, 0.08);
  border-radius: var(--raffle-radius);
  pointer-events: none;
}

.room-top,
.room-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 26px);
}

.room-title h1 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 4vw, 3.2rem);
}

.prize-line {
  margin: 0;
  color: var(--raffle-gold);
  font-weight: 900;
  font-size: clamp(1.02rem, 2vw, 1.35rem);
}

.sound-toggle {
  min-width: 44px;
  min-height: 40px;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  color: var(--raffle-text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.wheel-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 12px;
}

.wheel-frame {
  position: relative;
  width: min(76svh, 78vw, 620px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 34px solid var(--raffle-gold);
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.45));
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.55));
}

.wheel-center {
  position: absolute;
  width: 32%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 170, 104, 0.44);
  border-radius: 50%;
  color: var(--raffle-text);
  background:
    radial-gradient(circle, rgba(255, 239, 214, 0.13), transparent 62%),
    rgba(12, 10, 8, 0.9);
  box-shadow: inset 0 0 34px rgba(213, 170, 104, 0.16);
  text-align: center;
  font-weight: 950;
}

.wheel-center span {
  display: block;
  max-width: 90%;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  overflow-wrap: anywhere;
}

.ticker {
  min-height: 52px;
  overflow: hidden;
  border-top: 1px solid var(--raffle-line);
  border-bottom: 1px solid var(--raffle-line);
  background: rgba(0, 0, 0, 0.2);
}

.ticker-track {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-width: max-content;
  padding: 14px 18px;
  color: var(--raffle-muted);
  animation: tickerMove 34s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--raffle-gold);
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.room-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.room-stat {
  padding: 12px;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  background: rgba(255, 255, 255, 0.045);
}

.room-stat span {
  display: block;
  color: var(--raffle-dim);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.room-stat strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 650px;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  background: rgba(15, 13, 11, 0.86);
  box-shadow: var(--raffle-shadow);
  overflow: hidden;
}

.chat-head {
  padding: 18px;
  border-bottom: 1px solid var(--raffle-line);
}

.chat-head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.chat-head p {
  margin: 0;
  color: var(--raffle-muted);
  font-size: 0.9rem;
}

.chat-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.chat-message {
  padding: 10px 11px;
  border: 1px solid rgba(255, 239, 214, 0.08);
  border-radius: var(--raffle-radius);
  background: rgba(255, 255, 255, 0.045);
}

.chat-message strong {
  display: block;
  margin-bottom: 3px;
  color: var(--raffle-gold);
  font-size: 0.84rem;
}

.chat-message p {
  margin: 0;
  color: var(--raffle-text);
  overflow-wrap: anywhere;
}

.chat-composer {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--raffle-line);
}

.chat-composer .inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.entry-overlay[hidden],
.entry-overlay.is-closed {
  display: none !important;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 35%, rgba(213, 170, 104, 0.16), transparent 32%),
    rgba(4, 4, 4, 0.94);
}

.entry-card {
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--raffle-line-hot);
  border-radius: var(--raffle-radius);
  background: rgba(18, 15, 12, 0.88);
  box-shadow: var(--raffle-shadow);
  backdrop-filter: blur(18px);
}

.entry-card .eyebrow {
  margin: 0 0 14px;
  color: var(--raffle-gold);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.entry-card p {
  margin: 0 0 12px;
  color: var(--raffle-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.entry-actions .raffle-button {
  min-height: 64px;
  font-size: 1rem;
}

.winner-banner {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(103, 211, 145, 0.28);
  border-radius: var(--raffle-radius);
  color: #dfffe9;
  background: rgba(103, 211, 145, 0.08);
  font-weight: 950;
  text-align: center;
}

.countdown-badge {
  min-width: 72px;
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--raffle-line-hot);
  border-radius: 50%;
  color: var(--raffle-gold);
  background: rgba(0, 0, 0, 0.3);
  font-size: 2rem;
  font-weight: 950;
}

.history-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--raffle-line);
  border-radius: var(--raffle-radius);
  background: rgba(255, 255, 255, 0.045);
}

.history-card h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.history-card p { margin: 0; color: var(--raffle-muted); }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

@media (max-width: 980px) {
  .grid.two,
  .grid.three,
  .live-grid,
  .history-card {
    grid-template-columns: 1fr;
  }

  .stage,
  .chat-panel {
    min-height: auto;
  }

  .wheel-frame {
    width: min(92vw, 560px);
  }

  .room-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .raffle-topbar,
  .view-head,
  .room-top,
  .room-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-nav,
  .action-row,
  .entry-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-nav a,
  .raffle-button {
    width: 100%;
    text-align: center;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }

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

  .chat-composer .inline {
    grid-template-columns: 1fr;
  }
}


/* Premium live room refresh */
body.raffle-body {
  background:
    linear-gradient(120deg, rgba(199, 111, 42, 0.13), transparent 34%),
    linear-gradient(210deg, rgba(213, 170, 104, 0.09), transparent 28%),
    linear-gradient(180deg, #030303 0%, #090806 46%, #050505 100%);
}

.live-shell {
  padding: clamp(10px, 1.6vw, 22px);
}

.live-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(12px, 1.8vw, 22px);
}

.stage {
  isolation: isolate;
  min-height: 720px;
  grid-template-rows: auto minmax(360px, 1fr) auto auto auto;
  border-color: rgba(213, 170, 104, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    linear-gradient(135deg, rgba(199, 111, 42, 0.12), transparent 36%),
    #080706;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 239, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 239, 214, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}

.room-top {
  align-items: center;
  border-bottom: 1px solid rgba(255, 239, 214, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), transparent);
}

.room-title .status-pill {
  margin-bottom: 12px;
  border-color: rgba(213, 170, 104, 0.42);
  background: rgba(213, 170, 104, 0.12);
}

.room-title h1 {
  max-width: 900px;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  letter-spacing: 0;
}

.prize-line {
  padding: 10px 12px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(213, 170, 104, 0.2);
  border-radius: 8px;
  color: #ffe2aa;
  background: rgba(213, 170, 104, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.wheel-wrap {
  min-height: 500px;
  padding: clamp(18px, 3vw, 34px);
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  width: min(72svh, 72vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(213, 170, 104, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(213, 170, 104, 0.018),
    0 0 80px rgba(199, 111, 42, 0.14);
}

.wheel-frame {
  width: min(78svh, 74vw, 690px);
}

.wheel-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(213, 170, 104, 0.16);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
  box-shadow: inset 0 0 45px rgba(213, 170, 104, 0.08);
}

.wheel-pointer {
  top: -22px;
  border-left-width: 24px;
  border-right-width: 24px;
  border-top-width: 48px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.55));
}

.wheel-canvas {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 82px rgba(0, 0, 0, 0.72));
}

.wheel-center {
  z-index: 2;
  width: 30%;
  border-color: rgba(255, 226, 170, 0.56);
  background: linear-gradient(180deg, rgba(31, 24, 16, 0.96), rgba(8, 7, 6, 0.96));
  box-shadow:
    inset 0 0 28px rgba(213, 170, 104, 0.2),
    0 0 42px rgba(213, 170, 104, 0.16);
}

.wheel-center span {
  color: #ffe2aa;
  text-transform: uppercase;
}

.ticker {
  min-height: 60px;
  border-color: rgba(213, 170, 104, 0.13);
  background: rgba(0, 0, 0, 0.32);
}

.ticker-track {
  padding: 17px 20px;
  font-weight: 800;
}

.room-footer {
  border-top: 1px solid rgba(255, 239, 214, 0.08);
}

.room-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.room-stat {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.chat-panel {
  border-color: rgba(213, 170, 104, 0.16);
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.9), rgba(8, 7, 6, 0.92));
}

.chat-head {
  background: rgba(213, 170, 104, 0.055);
}

.winner-spotlight[hidden] {
  display: none !important;
}

.winner-spotlight {
  position: relative;
  z-index: 3;
  margin: 0 clamp(16px, 3vw, 34px) clamp(14px, 2vw, 22px);
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid rgba(213, 170, 104, 0.45);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(213, 170, 104, 0.18), rgba(199, 111, 42, 0.11)),
    rgba(5, 5, 5, 0.86);
  box-shadow: 0 22px 80px rgba(213, 170, 104, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.winner-spotlight span,
.winner-spotlight small {
  color: var(--raffle-gold);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.winner-spotlight strong {
  max-width: 100%;
  color: #fff7ed;
  font-size: clamp(2.8rem, 9vw, 8.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 18px rgba(213, 170, 104, 0.42),
    0 0 44px rgba(199, 111, 42, 0.28);
  animation: winnerPulse 920ms ease-in-out infinite alternate;
}

.winner-banner {
  margin: 0 clamp(16px, 3vw, 34px) 14px;
  padding: 18px;
  border-color: rgba(213, 170, 104, 0.36);
  color: #ffe2aa;
  background: rgba(213, 170, 104, 0.1);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

@keyframes winnerPulse {
  from { transform: scale(1); opacity: 0.74; }
  to { transform: scale(1.035); opacity: 1; }
}

@media (max-width: 980px) {
  .stage { min-height: auto; }
  .wheel-wrap { min-height: 390px; }
  .room-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .wheel-frame { width: min(92vw, 430px); }
  .wheel-wrap::before { width: min(88vw, 430px); }
  .winner-spotlight strong { font-size: clamp(2.3rem, 15vw, 4.7rem); }
}


/* Mobile live room fix */
@media (max-width: 760px) {
  body.raffle-body {
    overflow-x: hidden;
  }

  .live-shell {
    min-height: 100svh;
    padding: 8px;
  }

  .live-grid {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .stage {
    order: 1;
    width: 100%;
    min-height: auto;
    grid-template-rows: auto auto auto auto auto;
    overflow: visible;
  }

  .room-top,
  .room-footer {
    padding: 14px;
  }

  .room-title h1 {
    font-size: clamp(1.45rem, 8vw, 2.35rem);
    line-height: 1;
  }

  .prize-line {
    width: 100%;
    font-size: 0.98rem;
  }

  .wheel-wrap {
    min-height: auto;
    padding: 18px 8px 12px;
  }

  .wheel-wrap::before {
    width: min(86vw, 360px);
  }

  .wheel-frame {
    width: min(84vw, 360px);
  }

  .wheel-frame::before {
    inset: -10px;
  }

  .wheel-pointer {
    top: -14px;
    border-left-width: 18px;
    border-right-width: 18px;
    border-top-width: 36px;
  }

  .wheel-center span {
    font-size: 0.72rem;
  }

  .winner-spotlight {
    margin: 0 10px 10px;
    padding: 16px 10px;
  }

  .winner-spotlight strong {
    font-size: clamp(2rem, 14vw, 4rem);
  }

  .winner-banner {
    margin: 0 10px 10px;
    font-size: 1.05rem;
  }

  .ticker {
    min-height: 44px;
  }

  .ticker-track {
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  .room-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .room-stat {
    padding: 10px;
  }

  .room-stat span {
    font-size: 0.66rem;
  }

  .room-stat strong {
    font-size: 0.86rem;
  }

  .chat-panel {
    order: 2;
    width: 100%;
    min-height: 360px;
    max-height: 58svh;
  }

  .chat-head {
    padding: 13px;
  }

  .chat-list {
    padding: 12px;
  }

  .chat-composer {
    padding: 12px;
  }
}

@media (max-width: 420px) {
  .wheel-frame {
    width: min(88vw, 330px);
  }

  .wheel-wrap::before {
    width: min(90vw, 340px);
  }

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

  .chat-panel {
    max-height: 52svh;
  }
}
