/* ───────────────────────────────────────────────────────────
   RESET & BASE
──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0f1a;
  --bg-card:      #13162a;
  --bg-card2:     #1a1e35;
  --border:       rgba(255,255,255,0.07);
  --text:         #e8eaf6;
  --text-muted:   #6b7280;
  --accent:       #7c6aff;
  --accent2:      #ff5e87;
  --accent3:      #00d2ff;
  --success:      #22c55e;
  --danger:       #f43f5e;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.45);
  --font:         'Inter', system-ui, sans-serif;

  /* Wheel segment palette */
  --w1: #7c6aff; --w2: #ff5e87; --w3: #00d2ff;
  --w4: #ffd166; --w5: #06d6a0; --w6: #ff9f1c;
  --w7: #c77dff; --w8: #4cc9f0; --w9: #f72585;
  --w10: #80ffdb;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────
   CONFETTI CANVAS
──────────────────────────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* ───────────────────────────────────────────────────────────
   AD SLOTS
──────────────────────────────────────────────────────────── */
.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-rectangle {
  width: 100%;
  max-width: 336px;
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ───────────────────────────────────────────────────────────
   HEADER
──────────────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13,15,26,0.85);
  backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.logo-icon { font-size: 1.5rem; animation: spin-idle 8s linear infinite; }

@keyframes spin-idle {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Theme picker dropdowns */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-select {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 180px;
}
.theme-select:hover,
.theme-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124,106,255,0.15);
}
.theme-select option { background: #1a1e35; }

/* Custom BG button & popover */
.custom-bg-wrap {
  position: relative;
}
.btn-custom-bg {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.btn-custom-bg:hover,
.btn-custom-bg.active { color: var(--text); border-color: var(--accent); }
.btn-custom-bg.active { background: rgba(124,106,255,0.12); }

.custom-bg-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  z-index: 200;
  backdrop-filter: blur(16px);
}
.custom-bg-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.bg-drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  user-select: none;
}
.bg-drop-zone:hover,
.bg-drop-zone.drag-over { border-color: var(--accent); background: rgba(124,106,255,0.08); color: var(--text); }
.bg-drop-zone.has-image  { border-color: var(--success); color: var(--success); }

.custom-bg-url-row {
  display: flex;
  gap: 0.4rem;
}
.bg-url-input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  outline: none;
  min-width: 0;
}
.bg-url-input:focus { border-color: var(--accent); }
.bg-url-input::placeholder { color: var(--text-muted); }
.custom-bg-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 1rem;
}

.header-actions { display: flex; align-items: center; gap: 1rem; position: relative; }

.btn-icon {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover { color: var(--text); border-color: var(--accent); background: rgba(124,106,255,0.1); }

.share-toast {
  position: absolute;
  right: 0; top: calc(100% + 0.5rem);
  background: var(--success);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s;
  pointer-events: none;
}
.share-toast.show { opacity: 1; transform: translateY(0); }

/* ───────────────────────────────────────────────────────────
   MAIN LAYOUT
──────────────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 2rem;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ───────────────────────────────────────────────────────────
   WHEEL SECTION
──────────────────────────────────────────────────────────── */
.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.wheel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 520px;
  height: 520px;
}

#wheel-canvas {
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.05),
    0 0 60px rgba(124,106,255,0.3),
    var(--shadow);
  transition: filter 0.3s;
  cursor: pointer;
  display: block;
}
#wheel-canvas:hover { filter: brightness(1.05); }

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  z-index: 10;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

.btn-spin {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.15);
  background: radial-gradient(135deg, #7c6aff 0%, #ff5e87 100%);
  color: #fff;
  font-family: var(--font);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(0,0,0,0.4), 0 4px 20px rgba(124,106,255,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 10;
  letter-spacing: 0.05em;
}
.btn-spin:hover:not(:disabled) {
  transform: scale(1.07);
  box-shadow: 0 0 0 6px rgba(0,0,0,0.4), 0 8px 30px rgba(124,106,255,0.7);
}
.btn-spin:active:not(:disabled) { transform: scale(0.97); }
.btn-spin:disabled {
  background: radial-gradient(135deg, #555 0%, #333 100%);
  cursor: not-allowed;
  box-shadow: 0 0 0 6px rgba(0,0,0,0.4);
}
.spin-label { pointer-events: none; }

/* ── Theme Decorations ── */
.deco-float,
.deco-fore {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
}
.deco-float { z-index: 5;  }
.deco-fore  { z-index: 12; overflow: visible; }

/* Each floating particle — default: fall (gravity) */
.deco-particle {
  position: absolute;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0;
  animation: deco-fall var(--dur, 4s) var(--delay, 0s) infinite ease-in;
  user-select: none;
}

/* ── Static fall (gravity, default) ── */
@keyframes deco-fall {
  0%   { transform: translateX(var(--sway-in,  0px)) translateY(-40px)  rotate(0deg);   opacity: 0; }
  8%   { opacity: 0.85; }
  50%  { transform: translateX(var(--sway-mid, 0px)) translateY(260px)  rotate(160deg); }
  92%  { opacity: 0.7; }
  100% { transform: translateX(var(--sway-out, 0px)) translateY(580px)  rotate(320deg); opacity: 0; }
}

/* ── Centrifugal (during wheel spin) ── */
@keyframes deco-centrifugal {
  0%   { transform: translate(0px, 0px)                   scale(1.2) rotate(0deg);   opacity: 1;  }
  60%  { opacity: 0.85; }
  100% { transform: translate(var(--dx, 150px), var(--dy, 0px)) scale(0.15) rotate(720deg); opacity: 0; }
}

/* When wheel is spinning: re-origin particles at center and use centrifugal */
.deco-float.spinning .deco-particle {
  left: 44% !important;
  top:  44% !important;
  animation-name:            deco-centrifugal                  !important;
  animation-duration:        var(--spin-burst-dur, 0.55s)      !important;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1)   !important;
  animation-fill-mode:       forwards                           !important;
}

/* ── Rise and Drift (kept for backward compat, not used as default) ── */
@keyframes deco-drift {
  0%   { transform: translate(0, -30px) rotate(0deg);          opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translate(var(--sway, 20px), 240px) rotate(120deg); }
  90%  { opacity: 0.7; }
  100% { transform: translate(0, 570px) rotate(240deg);        opacity: 0; }
}
@keyframes deco-rise {
  0%   { transform: translateY(570px) scale(0.7); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-30px) scale(1.1); opacity: 0; }
}
@keyframes deco-burst {
  0%   { transform: translate(0, 0) scale(0.4) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  80%  { transform: translate(var(--bx, 80px), var(--by, -80px)) scale(1.1) rotate(180deg); opacity: 0.7; }
  100% { transform: translate(var(--bx, 80px), var(--by, -80px)) scale(0.6) rotate(360deg); opacity: 0; }
}

/* Foreground decorative items */
.deco-fore-item {
  position: absolute;
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.9;
  user-select: none;
  animation: fore-bob 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
.deco-fore-item:nth-child(1) { bottom: -10px; left:  10%; animation-delay: 0s;    font-size: 2.4rem; }
.deco-fore-item:nth-child(2) { bottom: -10px; right: 10%; animation-delay: 0.6s;  font-size: 2.4rem; }
.deco-fore-item:nth-child(3) { bottom: -10px; left:  30%; animation-delay: 1.2s;  font-size: 1.8rem; }

@keyframes fore-bob {
  0%, 100% { transform: translateY(0)    rotate(-4deg); }
  50%       { transform: translateY(-8px) rotate( 4deg); }
}

/* Controls below wheel */
.wheel-controls {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
  transition: color 0.2s;
}
.toggle-label:hover { color: var(--text); }
.toggle-label input { display: none; }

.toggle-track {
  width: 36px; height: 20px;
  background: var(--bg-card2);
  border-radius: 999px;
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  top: 2px; left: 2px;
  transition: transform 0.2s, background 0.2s;
}
input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); background: #fff; }

/* ───────────────────────────────────────────────────────────
   NAMES PANEL
──────────────────────────────────────────────────────────── */
.names-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 120px);
  position: sticky;
  top: 80px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Tabs */
.panel-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-card2);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.panel-tab {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.panel-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.panel-tab:hover:not(.active) { color: var(--text); }

.history-count {
  background: var(--accent2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

/* History List */
.history-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-right: 2px;
  counter-reset: history-counter;
  max-height: 340px;
}
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-track { background: transparent; }
.history-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.history-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card2);
  animation: slide-in 0.2s ease;
}
.history-item:first-child {
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.06);
}
.history-spin-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 28px;
  background: var(--bg-card);
  border-radius: 5px;
  padding: 0.15rem 0.35rem;
  text-align: center;
}
.history-item:first-child .history-spin-num {
  background: rgba(255,209,102,0.2);
  color: #ffd166;
}
.history-winner-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.panel-actions { display: flex; gap: 0.5rem; }

/* Text buttons */
.btn-text {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.btn-text:hover { color: var(--text); background: var(--bg-card2); }
.btn-text.btn-danger:hover { color: var(--danger); }
.btn-text.btn-small { font-size: 0.78rem; }

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(124,106,255,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,106,255,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-small { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

/* Add entry row */
.add-entry-row {
  display: flex;
  gap: 0.5rem;
}

.input-name {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-name::placeholder { color: var(--text-muted); }
.input-name:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,106,255,0.15);
}
.input-name.input-duplicate {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(244,63,94,0.2);
  animation: shake-input 0.35s ease;
}
@keyframes shake-input {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

.btn-add {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.btn-add:hover { background: #6a58f0; transform: scale(1.05); }

/* Paste area */
.paste-hint { text-align: center; }
.paste-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.paste-area textarea {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.6rem;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}
.paste-area textarea:focus { border-color: var(--accent); }
.paste-actions { display: flex; gap: 0.5rem; }
.hidden { display: none !important; }

/* Name List */
.name-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-right: 2px;
}
.name-list::-webkit-scrollbar { width: 4px; }
.name-list::-webkit-scrollbar-track { background: transparent; }
.name-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.name-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card2);
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  animation: slide-in 0.2s ease;
  cursor: default;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.name-item:hover { border-color: var(--border); }
.name-item.winner-flash {
  border-color: #ffd166;
  background: rgba(255,209,102,0.1);
  animation: flash-winner 0.4s ease;
}
@keyframes flash-winner {
  0%, 100% { border-color: #ffd166; }
  50% { border-color: #fff; background: rgba(255,209,102,0.2); }
}

.name-color-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.name-text {
  flex: 1;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.name-item:hover .name-remove { opacity: 1; }
.name-remove:hover { color: var(--danger); }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.88rem;
}
.empty-icon { font-size: 2.5rem; }

/* ───────────────────────────────────────────────────────────
   WINNER MODAL
──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fade-in 0.25s ease;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow), 0 0 80px rgba(124,106,255,0.2);
  animation: pop-in 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 440px;
  width: calc(100% - 2rem);
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: bounce 0.6s ease 0.3s both;
}
@keyframes bounce {
  from { transform: scale(0.5) rotate(-10deg); }
  60%  { transform: scale(1.15) rotate(5deg); }
  to   { transform: scale(1) rotate(0deg); }
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.modal-winner {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.75rem;
  word-break: break-word;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* ───────────────────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .wheel-container {
    width: 340px;
    height: 340px;
  }
  #wheel-canvas {
    width: 340px;
    height: 340px;
  }
  .btn-spin { width: 70px; height: 70px; font-size: 0.85rem; }
  .names-panel { position: static; max-height: 500px; }
}

@media (max-width: 480px) {
  .header { padding: 0.75rem 1rem; }
  .wheel-container { width: 300px; height: 300px; }
  #wheel-canvas { width: 300px; height: 300px; }
  .wheel-pointer { font-size: 1.6rem; }
}
