:root {
  --bg: #050509;
  --panel: rgba(17, 17, 27, 0.86);
  --panel-2: rgba(23, 24, 39, 0.9);
  --line: #2b2d44;
  --text: #f7f7ff;
  --muted: #a8adca;
  --cyan: #26f7ff;
  --pink: #ff4fd8;
  --lime: #b8ff5b;
  --red: #ff5e7a;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(130deg, rgba(38, 247, 255, 0.08), transparent 32%),
    linear-gradient(300deg, rgba(255, 79, 216, 0.12), transparent 40%),
    var(--bg);
}

a {
  color: var(--cyan);
}

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

.effect-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.78;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 9, 0.88);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 42px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 0 8px;
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(38, 247, 255, 0.35);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.form-shell {
  width: min(980px, calc(100% - 32px));
}

.hero-panel,
.panel,
.event-guide {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.hero-panel,
.event-guide {
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-panel {
  padding: clamp(28px, 6vw, 56px);
}

.hero-panel.compact {
  padding: 28px;
}

.event-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(22px, 5vw, 44px);
}

.event-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.header-illustration,
.header-banner {
  width: min(100%, 1040px);
  margin: 0 auto 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 16 / 5;
}

.header-illustration-image,
.header-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-illustration-preview {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.header-illustration-preview .header-illustration {
  margin: 0;
}

.event-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.event-meta div,
.rezonate-guide,
.boost-note,
.missing-list {
  border: 1px solid rgba(38, 247, 255, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(38, 247, 255, 0.06);
}

.event-meta dt {
  color: var(--cyan);
  font-weight: 800;
}

.event-meta dd {
  margin: 4px 0 0;
  color: var(--text);
}

.rezonate-guide {
  display: grid;
  gap: 12px;
}

.watch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.8rem);
}

h2 {
  font-size: 1.25rem;
}

p {
  line-height: 1.75;
}

.hero-panel p:last-child,
.panel p,
.muted {
  color: var(--muted);
}

.panel {
  padding: clamp(18px, 4vw, 28px);
  margin-top: 20px;
}

.entry-form,
.lookup-form,
.settings-grid {
  display: grid;
  gap: 18px;
}

.form-grid,
.settings-grid,
.meta-grid,
.stats-grid,
.results-grid,
.dashboard-top {
  display: grid;
  gap: 16px;
}

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

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

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

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

.dashboard-top {
  grid-template-columns: 1.35fr 1fr;
}

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

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

label b {
  color: var(--pink);
  font-size: 0.78rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #080912;
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(38, 247, 255, 0.35);
  border-color: var(--cyan);
}

.checks {
  display: grid;
  gap: 12px;
}

.checks label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 600;
}

.checks input {
  min-height: auto;
  margin-top: 4px;
}

.missing-list {
  color: var(--red);
  font-weight: 800;
}

.missing-list.is-ready {
  color: var(--lime);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions.wrap {
  flex-wrap: wrap;
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.primary-button {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: #070711;
}

.secondary-button {
  background: var(--cyan);
  color: #071014;
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.danger-button {
  background: rgba(255, 94, 122, 0.14);
  border-color: rgba(255, 94, 122, 0.55);
  color: #ffd5dc;
}

.entry-delete-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.message {
  min-height: 24px;
  color: var(--muted);
}

.message.success {
  color: var(--lime);
}

.message.error,
.message.warning {
  color: var(--red);
}

.status-pill,
.result-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.result-badge.accepted {
  border-color: rgba(38, 247, 255, 0.55);
  color: var(--cyan);
}

.result-badge.rejected {
  border-color: rgba(255, 94, 122, 0.45);
  color: var(--red);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--cyan);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.stat,
.mini-card,
.meta-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.stat span,
.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.stat strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 2rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

.mini-card strong,
.mini-card span {
  display: block;
}

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

textarea#outputText {
  margin-top: 14px;
}

.lookup-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.hidden {
  display: none;
}

.result-hero {
  display: grid;
  gap: 14px;
}

.meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-grid strong {
  overflow-wrap: anywhere;
}

.draw-body {
  overflow: hidden;
  background: #020205;
}

.draw-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
}

.draw-frame {
  position: relative;
  width: min(92vw, 1500px);
  min-height: 78vh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 5vw;
  border: 1px solid rgba(38, 247, 255, 0.35);
  background: rgba(4, 4, 10, 0.78);
  box-shadow: 0 0 70px rgba(38, 247, 255, 0.16), inset 0 0 50px rgba(255, 79, 216, 0.08);
  overflow: hidden;
}

.draw-frame h1 {
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 79, 216, 0.85);
}

.roulette {
  min-height: clamp(190px, 30vh, 360px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--cyan);
  text-align: center;
  text-shadow: 0 0 28px rgba(38, 247, 255, 0.65);
  padding: clamp(18px, 4vw, 48px);
  container-type: inline-size;
}

.winner-now {
  min-height: 42px;
  color: var(--pink);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 900;
}

.draw-artist,
.draw-song {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.04;
}

.draw-artist {
  color: var(--text);
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  font-weight: 950;
  text-shadow: 0 0 18px rgba(38, 247, 255, 0.55), 0 0 34px rgba(255, 79, 216, 0.35);
}

.draw-song {
  color: var(--cyan);
  font-size: clamp(1.5rem, 4.5vw, 4rem);
  font-weight: 850;
}

.draw-frame.is-spinning .draw-artist,
.draw-frame.is-spinning .draw-song {
  filter: blur(0.5px);
}

.draw-frame.is-selected .draw-artist,
.draw-frame.is-selected .draw-song {
  animation: selectedPop 620ms cubic-bezier(0.2, 1.4, 0.2, 1);
}

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

.winner-list.final {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.winner-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid rgba(38, 247, 255, 0.32);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(38, 247, 255, 0.08);
}

.winner-chip span {
  grid-row: span 2;
  color: var(--pink);
  font-weight: 900;
}

.winner-chip em {
  color: var(--muted);
  font-style: normal;
}

.draw-footer {
  color: var(--muted);
  font-weight: 700;
}

.winner-effect-cyber-slot.is-spinning .roulette {
  background: repeating-linear-gradient(180deg, rgba(38, 247, 255, 0.08) 0 8px, transparent 8px 18px);
  animation: slotReel 240ms linear infinite;
}

.winner-effect-cyber-slot.is-selected .roulette {
  box-shadow: inset 0 0 40px rgba(38, 247, 255, 0.28), 0 0 34px rgba(255, 79, 216, 0.3);
}

.winner-effect-manga-impact.is-selected::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.96) 0 10%, transparent 11%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0.95) 0 5deg, transparent 5deg 10deg);
  opacity: 0;
  pointer-events: none;
  animation: mangaImpact 700ms ease-out;
}

.winner-effect-manga-impact.is-selected .winner-now {
  color: #fff;
  text-shadow: 0 0 10px #000, 0 0 22px var(--pink);
  transform: rotate(-2deg);
}

.winner-effect-hologram-call .roulette {
  background:
    linear-gradient(180deg, rgba(38, 247, 255, 0.12), transparent 36%, rgba(255, 79, 216, 0.08)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 7px);
}

.winner-effect-hologram-call.is-selected .draw-artist,
.winner-effect-hologram-call.is-selected .draw-song {
  color: #d9feff;
  animation: hologramRise 900ms ease-out;
}

.winner-effect-festival-screen .roulette {
  min-height: clamp(240px, 38vh, 430px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(90deg, rgba(255, 79, 216, 0.12), rgba(38, 247, 255, 0.14));
  border-color: rgba(255,255,255,0.25);
}

.winner-effect-festival-screen .draw-artist {
  font-size: clamp(3.4rem, 11vw, 10rem);
}

.winner-effect-festival-screen.is-selected .roulette {
  animation: festivalGlow 1s ease-out;
}

body.effect-winner-manga-impact .draw-frame {
  border-color: rgba(255, 255, 255, 0.4);
}

body.effect-winner-hologram-call .draw-frame {
  border-color: rgba(38, 247, 255, 0.58);
}

body.effect-winner-festival-screen .draw-frame {
  width: min(96vw, 1640px);
}

body.effect-neon-waves .effect-layer {
  background: repeating-radial-gradient(ellipse at 50% 110%, rgba(38, 247, 255, 0.18) 0 2px, transparent 2px 28px);
  animation: drift 9s linear infinite;
}

body.effect-floating-notes .effect-layer {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 79, 216, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(38, 247, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 30%, rgba(184, 255, 91, 0.18) 0 2px, transparent 3px);
  background-size: 160px 220px;
  animation: floatUp 11s linear infinite;
}

body.effect-digital-rain .effect-layer {
  background: repeating-linear-gradient(180deg, rgba(38, 247, 255, 0.16) 0 2px, transparent 2px 18px);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  animation: rain 1.8s linear infinite;
}

body.effect-pulse-rings .effect-layer {
  background: radial-gradient(circle at center, transparent 0 18%, rgba(255, 79, 216, 0.18) 19%, transparent 21%, transparent 38%, rgba(38, 247, 255, 0.16) 39%, transparent 41%);
  animation: pulseRing 5s ease-in-out infinite;
}

body.effect-star-dust .effect-layer {
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 30%, rgba(38,247,255,0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 75%, rgba(255,79,216,0.7) 0 1px, transparent 2px);
  background-size: 180px 180px;
  animation: twinkle 4s ease-in-out infinite;
}

body.effect-equalizer .effect-layer {
  background: repeating-linear-gradient(90deg, rgba(38, 247, 255, 0.18) 0 10px, transparent 10px 28px);
  mask-image: linear-gradient(0deg, #000 0 35%, transparent 75%);
  animation: eqPulse 1.2s steps(4) infinite;
}

body.effect-glitch-noise .effect-layer {
  background:
    linear-gradient(90deg, rgba(255, 79, 216, 0.12), transparent 35%, rgba(38, 247, 255, 0.12)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 4px);
  animation: glitch 0.9s steps(2) infinite;
}

body.effect-spotlight .effect-layer {
  background:
    conic-gradient(from 220deg at 20% 0%, rgba(38, 247, 255, 0.22), transparent 20deg 80deg, rgba(255, 79, 216, 0.16), transparent 140deg),
    conic-gradient(from 140deg at 80% 0%, rgba(255, 79, 216, 0.18), transparent 80deg);
  animation: spotlight 8s ease-in-out infinite alternate;
}

body.effect-aurora .effect-layer {
  background: linear-gradient(120deg, rgba(38, 247, 255, 0.18), transparent, rgba(255, 79, 216, 0.16), rgba(184, 255, 91, 0.1));
  filter: blur(18px);
  animation: aurora 10s ease-in-out infinite alternate;
}

body.effect-cyber-grid .effect-layer {
  background:
    linear-gradient(rgba(38, 247, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 247, 255, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg) scale(1.7);
  transform-origin: 50% 100%;
}

body.effect-laser-lines .effect-layer {
  background: repeating-linear-gradient(120deg, transparent 0 90px, rgba(255, 79, 216, 0.22) 91px 93px, transparent 94px 150px, rgba(38, 247, 255, 0.2) 151px 153px);
  animation: laser 5s linear infinite;
}

@keyframes drift {
  to { transform: translateY(-40px); }
}

@keyframes floatUp {
  to { background-position: 0 -220px; }
}

@keyframes rain {
  to { background-position: 0 36px; }
}

@keyframes pulseRing {
  50% { transform: scale(1.1); opacity: 0.46; }
}

@keyframes twinkle {
  50% { opacity: 0.38; }
}

@keyframes eqPulse {
  50% { transform: scaleY(0.75); }
}

@keyframes glitch {
  50% { transform: translateX(5px); }
}

@keyframes spotlight {
  to { transform: translateX(3vw) skewX(-4deg); }
}

@keyframes aurora {
  to { transform: translateX(-6vw) scale(1.1); }
}

@keyframes laser {
  to { background-position: 220px 0; }
}

@keyframes selectedPop {
  0% { transform: scale(0.72); opacity: 0.25; }
  72% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slotReel {
  to { background-position: 0 28px; }
}

@keyframes mangaImpact {
  0% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  18% { opacity: 0.92; }
  100% { opacity: 0; transform: scale(1.5) rotate(6deg); }
}

@keyframes hologramRise {
  0% { opacity: 0; transform: translateY(28px) scaleY(0.82); filter: blur(6px); }
  55% { opacity: 1; filter: blur(0); }
  100% { transform: translateY(0) scaleY(1); }
}

@keyframes festivalGlow {
  0% { transform: scale(0.96); box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 70px rgba(38,247,255,0.5); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  .effect-layer {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 860px) {
  .site-header,
  .section-head,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-guide,
  .form-grid,
  .settings-grid,
  .event-settings,
  .dashboard-top,
  .stats-grid,
  .results-grid,
  .meta-grid,
  .lookup-form {
    grid-template-columns: 1fr;
  }

  .lookup-form button,
  .settings-grid button,
  .actions a,
  .actions button {
    width: 100%;
  }

  .header-illustration,
  .header-banner {
    width: 100%;
    aspect-ratio: 16 / 7;
  }

  .watch-links {
    flex-direction: column;
  }

  .watch-links a {
    width: 100%;
  }

  .winner-list,
  .winner-list.final {
    grid-template-columns: 1fr;
  }

  .draw-frame {
    min-height: 88vh;
  }
}

/* ===== Mobile First UI Fix ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

main,
.container,
.wrap,
.panel,
.card,
form {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.3rem, 5vw, 2rem);
}

p,
li,
label,
input,
textarea,
select,
button {
  font-size: 1rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
}

textarea {
  min-height: 120px;
}

button,
.btn,
a.button {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

form {
  display: grid;
  gap: 16px;
}

.form-row,
.field,
.input-group {
  display: grid;
  gap: 8px;
}

.row,
.columns,
.actions,
.button-row,
.admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card,
.panel,
.entry-card {
  padding: 18px;
  border-radius: 20px;
  overflow-wrap: anywhere;
}

.draw-screen,
.draw-box,
.winner-card,
.result-card {
  width: 100%;
  text-align: center;
}

.shuffle-name,
.winner-name {
  font-size: clamp(2rem, 12vw, 5rem);
  line-height: 1.05;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.shuffle-title,
.winner-title {
  font-size: clamp(1.1rem, 6vw, 2.4rem);
  line-height: 1.25;
}

.x-account,
.winner-x {
  font-size: clamp(0.85rem, 4vw, 1.2rem);
}

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

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
  }

  td {
    padding: 8px 0;
    border: none;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 2px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 32px;
  }

  .actions,
  .button-row,
  .admin-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  button,
  .btn,
  a.button {
    width: auto;
  }
}

/* ===== Draw Page Responsive Overrides ===== */
.draw-body {
  padding: 0;
}

.draw-body .draw-stage,
.draw-body .draw-frame {
  max-width: none;
}

.draw-body .draw-stage {
  min-height: 100svh;
  height: 100svh;
  padding: clamp(8px, 1.4vw, 18px);
}

.draw-body .draw-frame {
  width: min(96vw, 1500px);
  max-height: calc(100svh - 16px);
  min-height: min(78vh, calc(100svh - 16px));
}

.draw-body .roulette {
  width: 100%;
  min-width: 0;
}

.draw-body .draw-artist,
.draw-body .draw-song,
.draw-body .winner-chip strong,
.draw-body .winner-chip em {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.draw-body .winner-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (max-width: 700px) {
  .draw-body .draw-stage {
    align-items: center;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    padding: 8px;
  }

  .draw-body .draw-frame {
    width: 100%;
    min-height: auto;
    max-height: calc(100svh - 16px);
    align-content: center;
    gap: clamp(8px, 2.2vh, 14px);
    padding: clamp(12px, 4vw, 18px);
    border-radius: var(--radius);
  }

  .draw-body .draw-frame .eyebrow {
    margin-bottom: 0;
    font-size: clamp(0.72rem, 3vw, 0.9rem);
  }

  .draw-body .draw-frame h1 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 7vw, 2.4rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .draw-body .winner-now {
    min-height: auto;
    font-size: clamp(1.05rem, 6vw, 1.8rem);
    line-height: 1.08;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .draw-body .roulette {
    min-height: clamp(170px, 34svh, 300px);
    max-height: 40svh;
    gap: clamp(8px, 2vh, 14px);
    padding: clamp(12px, 4vw, 20px);
    overflow: hidden;
  }

  .draw-body .draw-artist {
    font-size: clamp(2.2rem, 15vw, 4.6rem);
    line-height: 0.98;
  }

  .draw-body .draw-song {
    font-size: clamp(1.15rem, 7vw, 2.15rem);
    line-height: 1.12;
  }

  .draw-body .winner-list,
  .draw-body .winner-list.final {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 24svh;
  }

  .draw-body .winner-chip {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    padding: 9px 10px;
    border-radius: var(--radius);
  }

  .draw-body .winner-chip strong {
    font-size: clamp(0.98rem, 4.8vw, 1.35rem);
    line-height: 1.08;
  }

  .draw-body .winner-chip em {
    font-size: clamp(0.86rem, 4.2vw, 1.05rem);
    line-height: 1.18;
  }

  .draw-body .draw-footer {
    font-size: clamp(0.68rem, 3vw, 0.82rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .winner-effect-festival-screen .draw-artist {
    font-size: clamp(2.4rem, 16vw, 5rem);
  }
}

@media (max-width: 420px) {
  .draw-body .draw-frame {
    gap: 8px;
    padding: 10px;
  }

  .draw-body .roulette {
    min-height: 150px;
    max-height: 36svh;
  }

  .draw-body .draw-artist {
    font-size: clamp(1.9rem, 14vw, 3.7rem);
  }

  .draw-body .draw-song {
    font-size: clamp(1rem, 6.4vw, 1.75rem);
  }

  .draw-body .winner-list,
  .draw-body .winner-list.final {
    max-height: 22svh;
  }
}
