body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff, var(--bg));
}

.wheel-page-main {
  width: 100%;
}

.wheel-tool-shell {
  min-height: auto;
  padding-top: 18px;
  padding-bottom: 24px;
}

.wheel-header,
.wheel-toolbar,
.wheel-stage-panel,
.wheel-sidebar__card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.wheel-header,
.wheel-toolbar {
  width: min(1260px, 100%);
}

.wheel-header {
  align-items: center;
}

.wheel-title-wrap {
  text-align: left;
}

.wheel-title-wrap h1 {
  color: var(--ink);
}

.wheel-header__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.back-link,
.action-btn,
.wheel-stepper__btn,
.wheel-stepper__input,
.segment-editor,
.wheel-toolbar select {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
}

.back-link:hover,
.action-btn:hover,
.wheel-stepper__btn:hover {
  border-color: rgba(20, 184, 166, 0.28);
}

.action-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #14b8a6, #63e8da 60%, #d8f9f2);
  color: #0a1820;
}

.control-field span,
.wheel-sidebar__card p:last-child {
  color: var(--muted);
}

.wheel-toolbar {
  flex-wrap: wrap;
  align-items: end;
}

.wheel-toolbar__theme {
  flex: 1 1 260px;
  min-width: 240px;
}

.wheel-toolbar__segments {
  flex: 0 1 260px;
  min-width: 220px;
}

.wheel-toolbar__mode {
  flex: 0 1 360px;
  min-width: 280px;
}

.wheel-toolbar__raffle-title {
  flex: 1 1 280px;
  min-width: 240px;
}

.wheel-toolbar__actions {
  margin-left: auto;
}

.wheel-stepper {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 8px;
}

.wheel-stepper__btn,
.wheel-stepper__input,
.wheel-toolbar select {
  min-height: 48px;
  border-radius: 14px;
  font: inherit;
}

.wheel-stepper__btn {
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 800;
}

.wheel-stepper__input {
  width: 100%;
  padding: 0 12px;
  text-align: center;
  font-weight: 800;
}

.wheel-board-stage {
  width: min(1260px, 100%);
  margin: 0 auto;
  min-height: 0;
}

.wheel-board-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 14px;
  min-height: calc(100svh - 188px);
}

.wheel-stage-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
}

.raffle-title-display {
  min-height: 0;
  text-align: center;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.raffle-fullscreen-meta {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.raffle-meta-card {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(19, 22, 33, 0.92), rgba(11, 15, 24, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.raffle-meta-card h2,
.raffle-meta-card p {
  margin: 0;
}

.raffle-meta-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #f7f2ea;
}

.raffle-meta-card__subtext {
  color: rgba(240, 233, 224, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

.raffle-luck-pad {
  position: relative;
  min-height: 110px;
  height: 100%;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 58%),
    linear-gradient(180deg, rgba(10, 14, 24, 0.88), rgba(14, 18, 29, 0.96));
  overflow: hidden;
}

.raffle-luck-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.raffle-luck-prompt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(247, 242, 234, 0.64);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(7, 12, 21, 0.98));
  border: 1px solid rgba(18, 33, 61, 0.08);
}

.wheel-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wheel-mode-toggle {
  width: 100%;
}

.wheel-subtoggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.wheel-subtoggle-label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.wheel-subtoggle-btn {
  min-width: 84px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
}

.wheel-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 13, 24, 0.76);
  backdrop-filter: blur(6px);
}

.wheel-stage-overlay__card {
  width: min(100%, 440px);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 24px;
  border: 1px solid rgba(99, 232, 218, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 24, 37, 0.96), rgba(10, 16, 28, 0.94));
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.wheel-stage-overlay__card h2 {
  margin: 0;
  color: #f4f6fb;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.wheel-stage-overlay__cta {
  min-width: 180px;
  text-decoration: none;
}

.wheel-stage.is-disabled .wheel-viewport {
  opacity: 0.28;
}

.wheel-stage.is-disabled .wheel-button {
  cursor: not-allowed;
}

body.wheel-raffle-mode .wheel-toolbar__segments {
  display: none;
}

body.wheel-raffle-mode .wheel-button {
  display: none;
}

body.wheel-raffle-mode .raffle-drum {
  display: grid;
}

.wheel-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.wheel-button:focus-visible {
  outline: 3px solid rgba(99, 232, 218, 0.8);
  outline-offset: 8px;
  border-radius: 50%;
}

.wheel-button:active {
  cursor: grabbing;
}

.wheel-viewport {
  position: relative;
  width: min(74vw, 900px);
  aspect-ratio: 1;
}

.raffle-drum {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
}

.raffle-drum__frame {
  position: relative;
  width: min(74vw, 900px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.96), rgba(10, 14, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 46px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.raffle-drum__glow {
  position: absolute;
  inset: 10% 12%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 68%);
  pointer-events: none;
}

.raffle-drum__viewport {
  position: relative;
  width: min(82%, 560px);
  height: clamp(300px, 42vw, 360px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(10, 14, 23, 0.96), rgba(17, 22, 33, 0.96));
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.raffle-drum__track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.raffle-drum__row {
  position: absolute;
  left: 0;
  right: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  overflow-wrap: anywhere;
  user-select: none;
}

.raffle-drum__row::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.72;
}

.raffle-drum__row.is-current::after {
  background: linear-gradient(90deg, transparent, rgba(255, 228, 181, 0.9), transparent);
  opacity: 1;
}

.raffle-drum__highlight {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82%, 560px);
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 0 24px rgba(255, 220, 145, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
  color: #ffe1b8;
}

.raffle-drum__highlight::before,
.raffle-drum__highlight::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 34px;
  background: currentColor;
  transform: translateY(-50%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: drop-shadow(0 0 10px rgba(255, 210, 120, 0.45));
}

.raffle-drum__highlight::before {
  left: -18px;
  transform: translateY(-50%) scaleX(-1);
}

.raffle-drum__highlight::after {
  right: -18px;
}

.raffle-drum__fade {
  position: absolute;
  left: 50%;
  width: min(82%, 560px);
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
}

.raffle-drum__fade--top {
  top: 11%;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(10, 14, 24, 0));
}

.raffle-drum__fade--bottom {
  bottom: 11%;
  background: linear-gradient(0deg, rgba(10, 14, 24, 0.98), rgba(10, 14, 24, 0));
}

.raffle-drum__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.46);
}

#wheelCanvas,
.wheel-hub,
.wheel-pointer,
.fallback-pointer,
.winning-glow,
.confetti-layer {
  position: absolute;
}

#wheelCanvas {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.42));
}

.wheel-hub {
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--hub-scale, 1));
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.wheel-pointer {
  left: 50%;
  top: -2.5%;
  width: 19%;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.56));
}

.fallback-pointer {
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 64px solid #d6fff8;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45));
}

.fallback-pointer::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f1728;
}

.winning-glow {
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(191, 255, 242, 0.06) 0%, rgba(86, 220, 204, 0.18) 44%, rgba(255, 224, 122, 0.18) 58%, transparent 74%);
  animation: winning-pulse 0.78s ease-in-out 4;
}

.elimination-flash {
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 147, 85, 0.22) 38%, rgba(255, 70, 70, 0.14) 58%, transparent 78%);
  animation: elimination-flash 0.5s ease-out 1;
}

.confetti-layer {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -8%;
  width: 12px;
  height: 20px;
  opacity: 0;
  border-radius: 4px;
  animation: confetti-fall linear forwards;
}

.wheel-fullscreen-actions {
  display: none;
  justify-content: center;
  gap: 12px;
}

.eliminator-winner-banner {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px 20px 4px;
  text-align: center;
}

.fullscreen-winner-badge {
  display: none;
  justify-self: center;
  align-self: center;
  max-width: min(92vw, 760px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.15;
  letter-spacing: 0.12em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.eliminator-winner-banner h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.wheel-sidebar {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.wheel-sidebar__card {
  min-height: 0;
  padding: 16px;
  border-radius: 24px;
  overflow: hidden;
}

.wheel-sidebar__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wheel-sidebar__head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.wheel-sidebar__refresh {
  min-height: 40px;
  padding-inline: 14px;
}

.raffle-entries-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.raffle-bulk-entry,
.raffle-single-entry {
  display: grid;
  gap: 10px;
}

.raffle-field {
  display: grid;
  gap: 8px;
}

.raffle-textarea,
.raffle-single-input {
  width: 100%;
}

.raffle-textarea {
  min-height: 126px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  resize: vertical;
}

.raffle-textarea:focus {
  outline: 2px solid rgba(99, 232, 218, 0.7);
  outline-offset: 2px;
}

.raffle-name-count {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.raffle-name-list {
  display: grid;
  gap: 8px;
  min-height: 140px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.raffle-name-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
}

.raffle-name-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 800;
}

.raffle-name-label {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.raffle-name-remove {
  min-height: 38px;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
}

.raffle-name-list--empty {
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(20, 184, 166, 0.05);
  color: var(--muted);
  text-align: center;
}

.segment-editor-list {
  display: grid;
  gap: 10px;
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.segment-editor-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.segment-editor-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--brand-deep);
  font-weight: 800;
}

.segment-editor-row.is-eliminated .segment-editor-index {
  background: rgba(18, 33, 61, 0.08);
  color: var(--muted);
}

.segment-editor-row.is-eliminated .segment-editor {
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.72;
}

.segment-editor {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
}

.segment-editor:focus,
.wheel-toolbar select:focus,
.wheel-stepper__input:focus {
  outline: 2px solid rgba(99, 232, 218, 0.7);
  outline-offset: 2px;
}

.history-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.history-list strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.history-list span {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.status-pill-alt {
  border-color: var(--line);
  color: var(--muted);
}

.status-pill-winner {
  border-color: rgba(232, 191, 90, 0.22);
  color: #8b6611;
}

.raffle-winner-panel,
.raffle-drawn-panel {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 6px 0 0;
  text-align: center;
}

.raffle-winner-panel h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: var(--ink);
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.raffle-winner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.raffle-fullscreen-controls {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.raffle-drawn-panel {
  justify-items: stretch;
  padding-top: 2px;
}

.raffle-drawn-panel__head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.raffle-drawn-list {
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.raffle-name-row.is-removed {
  opacity: 0.62;
}

.raffle-name-row.is-removed .raffle-name-index {
  background: rgba(18, 33, 61, 0.08);
  color: var(--muted);
}

.raffle-name-row.is-removed .raffle-name-label {
  color: var(--muted);
  text-decoration: line-through;
}

body.is-fullscreen {
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 24%), linear-gradient(180deg, #06111d 0%, #0a1322 100%);
  overflow: hidden;
}

body.is-fullscreen .wheel-header,
body.is-fullscreen .wheel-toolbar,
body.is-fullscreen .wheel-sidebar,
body.is-fullscreen .site-header,
body.is-fullscreen .site-footer {
  display: none;
}

body.is-fullscreen .wheel-tool-shell {
  height: 100svh;
  max-height: 100svh;
  padding: 10px;
  overflow: hidden;
}

body.is-fullscreen .wheel-board-stage,
body.is-fullscreen .wheel-board-frame {
  width: 100%;
  max-width: none;
  height: calc(100svh - 20px);
  min-height: 0;
  max-height: calc(100svh - 20px);
  overflow: hidden;
}

body.is-fullscreen .wheel-board-frame {
  grid-template-columns: 1fr;
}

body.is-fullscreen .wheel-stage-panel {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  height: calc(100svh - 20px);
  min-height: 0;
  max-height: calc(100svh - 20px);
  padding: 12px;
  border-color: rgba(18, 33, 61, 0.08);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(7, 12, 21, 0.98));
  box-shadow: none;
  overflow: hidden;
}

body.is-fullscreen .raffle-title-display {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  padding-top: 4px;
}

body.is-fullscreen .raffle-winner-panel h2 {
  font-size: clamp(3.2rem, 7vw, 6rem);
}

body.is-fullscreen.wheel-raffle-mode .wheel-stage-panel {
  position: relative;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  justify-items: stretch;
  gap: 12px;
  padding: 16px 16px 18px;
  background: transparent;
  border-color: transparent;
}

body.is-fullscreen.wheel-raffle-mode .raffle-title-display {
  display: block;
  min-height: 0;
  padding: 4px 0 2px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 0.98;
}

body.is-fullscreen.wheel-raffle-mode .raffle-fullscreen-meta {
  display: grid;
}

body.is-fullscreen.wheel-raffle-mode .raffle-meta-card {
  min-height: 122px;
  padding: 16px 20px;
  border-radius: 0;
  border-color: rgba(237, 194, 142, 0.26);
  background:
    linear-gradient(180deg, rgba(38, 21, 32, 0.78), rgba(10, 14, 24, 0.95));
}

body.is-fullscreen.wheel-raffle-mode .raffle-meta-card--count {
  justify-items: center;
  text-align: center;
}

body.is-fullscreen.wheel-raffle-mode .raffle-meta-card--luck {
  align-content: stretch;
  padding: 0;
}

body.is-fullscreen.wheel-raffle-mode .wheel-stage {
  min-height: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border-color: transparent;
}

body.is-fullscreen.wheel-raffle-mode .raffle-drum {
  height: 100%;
}

body.is-fullscreen.wheel-raffle-mode .raffle-drum__frame {
  width: min(96vw, 980px);
  height: 100%;
  aspect-ratio: auto;
  padding: 12px 16px;
  border-radius: 38px;
}

body.is-fullscreen.wheel-raffle-mode .raffle-drum__viewport {
  width: min(88%, 680px);
  height: min(72svh, 700px);
  border-radius: 28px;
}

body.is-fullscreen.wheel-raffle-mode .raffle-drum__highlight {
  width: min(88%, 680px);
  height: 78px;
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 0 36px rgba(255, 208, 124, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.is-fullscreen.wheel-raffle-mode .raffle-drum__fade {
  width: min(88%, 680px);
  height: 172px;
}

body.is-fullscreen.wheel-raffle-mode .raffle-drum__fade--top {
  top: 6%;
}

body.is-fullscreen.wheel-raffle-mode .raffle-drum__fade--bottom {
  bottom: 6%;
}

body.is-fullscreen.wheel-raffle-mode .raffle-winner-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: min(80vw, 560px);
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 20, 31, 0.94), rgba(10, 15, 25, 0.97));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 42px rgba(255, 215, 145, 0.12);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

body.is-fullscreen.wheel-raffle-mode .raffle-winner-panel .eyebrow {
  display: block;
  letter-spacing: 0.22em;
}

body.is-fullscreen.wheel-raffle-mode .raffle-winner-panel h2 {
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  line-height: 0.92;
}

body.is-fullscreen.wheel-raffle-mode .raffle-winner-actions {
  gap: 10px;
}

body.is-fullscreen.wheel-raffle-mode .raffle-winner-actions .action-btn {
  min-height: 46px;
  padding: 0 18px;
}

body.is-fullscreen.wheel-raffle-mode .raffle-fullscreen-controls {
  display: flex;
  align-items: center;
}

body.is-fullscreen.wheel-raffle-mode .raffle-fullscreen-controls .action-btn {
  min-height: 50px;
  padding: 0 22px;
}

@media (max-width: 760px) {
  .raffle-fullscreen-meta {
    grid-template-columns: 1fr;
  }
}

body.is-fullscreen.wheel-raffle-mode #raffleDrawnPanel,
body.is-fullscreen.wheel-raffle-mode .fullscreen-winner-badge,
body.is-fullscreen.wheel-raffle-mode .wheel-fullscreen-actions,
body.is-fullscreen.wheel-raffle-mode .wheel-toolbar {
  display: none !important;
}

body.is-fullscreen .wheel-stage {
  min-height: 0;
  height: 100%;
  padding-top: clamp(12px, 2svh, 20px);
  border-color: transparent;
  background: transparent;
}

body.is-fullscreen .wheel-viewport {
  width: min(94vw, calc(100svh - 220px));
  max-width: 100%;
}

body.is-fullscreen .raffle-drum__frame {
  width: min(94vw, calc(100svh - 220px));
  max-width: 100%;
}

body.is-fullscreen .fullscreen-winner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.is-fullscreen .wheel-fullscreen-actions {
  display: flex;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--confetti-x, 0px), 115vh, 0) rotate(var(--confetti-rot, 540deg));
    opacity: 0;
  }
}

@keyframes winning-pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes elimination-flash {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@media (max-width: 1120px) {
  .wheel-board-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .wheel-sidebar {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .wheel-stage {
    min-height: 540px;
  }

  .wheel-viewport {
    width: min(82vw, 760px);
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .play-shell {
    padding: 12px;
    gap: 10px;
  }

  .wheel-header {
    padding: 14px 16px;
  }

  .wheel-header__meta {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .wheel-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
  }

  .wheel-toolbar__theme,
  .wheel-toolbar__segments,
  .wheel-toolbar__mode,
  .wheel-toolbar__raffle-title,
  .wheel-toolbar__actions {
    min-width: 0;
  }

  .wheel-toolbar__theme {
    grid-column: 1;
  }

  .wheel-toolbar__segments {
    grid-column: 2;
  }

  .wheel-toolbar__mode,
  .wheel-toolbar__raffle-title,
  .wheel-toolbar__actions {
    grid-column: 1 / -1;
  }

  .wheel-mode-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wheel-toolbar__actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .wheel-stage-panel {
    padding: 14px;
    gap: 12px;
  }

  .wheel-stage {
    min-height: 460px;
  }

  .wheel-viewport,
  .raffle-drum__frame {
    width: min(92vw, 700px);
  }

  .wheel-sidebar__card {
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .play-shell {
    padding: 10px;
  }

  .wheel-header,
  .wheel-toolbar,
  .wheel-sidebar__head {
    flex-direction: column;
    align-items: stretch;
  }

  .wheel-header__meta,
  .wheel-toolbar__actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .wheel-sidebar {
    grid-template-columns: 1fr;
  }

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

  .wheel-subtoggle-row {
    align-items: stretch;
    flex-direction: column;
  }

  .raffle-name-row {
    grid-template-columns: 32px minmax(0, 1fr) 38px;
  }

  .raffle-winner-actions {
    flex-direction: column;
  }

  .wheel-stage {
    min-height: 420px;
  }

  .wheel-viewport {
    width: min(92vw, 520px);
  }
}
