/* ============================================
   SpinWheel — Complete Design System & Styles
   ============================================ */

/* ── CSS Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* Accents */
  --accent-cyan: #06b6d4;
  --accent-cyan-dim: #0891b2;
  --accent-magenta: #d946ef;
  --accent-magenta-dim: #a21caf;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Semantic */
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Z-index layers */
  --z-base: 1;
  --z-wheel: 5;
  --z-pointer: 10;
  --z-header: 50;
  --z-modal: 100;
  --z-cheat: 90;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ── Utility: Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ── Material Symbols Override ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* ══════════════════════════════════
   LAYOUT — App Shell
   ══════════════════════════════════ */

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Background animated gradient */
.app-shell::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(217, 70, 239, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-2xl);
  height: 72px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.brand-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-normal);
}

.brand-logo:hover {
  filter: brightness(1.2);
}

.brand-tagline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ── Main Grid ── */
.app-main {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: var(--z-base);
}

/* ══════════════════════════════════
   COMPONENTS — Shared
   ══════════════════════════════════ */

/* ── Glass Panel ── */
.panel-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: border-color var(--transition-normal);
}

.panel-glass:hover {
  border-color: var(--border-glass-hover);
}

/* ── Panel Sections ── */
.panel-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.panel-label-icon {
  font-size: 16px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.btn-sm .material-symbols-outlined {
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(217, 70, 239, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.icon-btn.muted .material-symbols-outlined {
  color: var(--text-muted);
}

/* ══════════════════════════════════
   INPUT PANEL — Left Sidebar
   ══════════════════════════════════ */

.input-panel {
  position: relative;
}

.items-textarea {
  width: 100%;
  min-height: 160px;
  max-height: 260px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  outline: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.items-textarea::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.items-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.item-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  width: fit-content;
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.panel-actions-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Chips ── */
.chips-section {
  border-top: 1px solid var(--border-glass);
  padding-top: var(--space-lg);
}

.chips-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-height: 200px;
  overflow-y: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  animation: chipIn 0.3s ease;
}

.chip-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-delete {
  display: flex;
  align-items: center;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  padding: 0;
  transition: color var(--transition-fast);
}

.chip-delete:hover {
  color: var(--danger);
}

.chip-delete .material-symbols-outlined {
  font-size: 14px;
}

@keyframes chipIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Toggle Switch ── */
.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  user-select: none;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-glass);
}

.toggle-row input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
}

.toggle-row input:checked ~ .toggle-slider {
  background: rgba(6, 182, 212, 0.3);
}

.toggle-row input:checked ~ .toggle-slider::after {
  transform: translateX(18px);
  background: var(--accent-cyan);
}

.toggle-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ══════════════════════════════════
   WHEEL STAGE — Center
   ══════════════════════════════════ */

.wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 650px;
  padding: var(--space-xl) 0;
}

/* ── Background Glow ── */
.wheel-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.glow-orb-1 {
  width: 450px;
  height: 450px;
  background: rgba(6, 182, 212, 0.07);
  animation: glowPulse 4s ease-in-out infinite;
}

.glow-orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(217, 70, 239, 0.05);
  animation: glowPulse 4s ease-in-out infinite 2s;
}

.wheel-stage.spinning .glow-orb-1 {
  opacity: 1;
  background: rgba(6, 182, 212, 0.15);
}

.wheel-stage.spinning .glow-orb-2 {
  opacity: 1;
  background: rgba(217, 70, 239, 0.12);
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* ── Wheel Pointer ── */
.wheel-pointer {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-pointer) + 1);
  line-height: 0;
  transition: filter var(--transition-fast);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.wheel-stage.spinning .wheel-pointer {
  filter: drop-shadow(0 2px 16px rgba(6, 182, 212, 0.5));
}

/* ── Wheel Container ── */
.wheel-container {
  position: relative;
  width: 500px;
  height: 500px;
  z-index: var(--z-wheel);
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.4));
  transition: filter var(--transition-slow);
}

.wheel-stage.spinning #wheel-canvas {
  filter: drop-shadow(0 0 60px rgba(6, 182, 212, 0.25));
}

/* ── Center Hub ── */
.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, #2a2f45, #111827);
  border: 3px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.5),
    inset 0 2px 8px rgba(255, 255, 255, 0.08);
  z-index: var(--z-wheel);
  pointer-events: none;
}

.hub-icon {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-secondary);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* ── Spin Button ── */
.btn-spin {
  margin-top: var(--space-2xl);
  padding: 18px 64px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: var(--z-wheel);
  box-shadow:
    0 4px 30px rgba(6, 182, 212, 0.3),
    0 0 60px rgba(217, 70, 239, 0.15);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-spin:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 8px 40px rgba(6, 182, 212, 0.4),
    0 0 80px rgba(217, 70, 239, 0.25);
}

.btn-spin:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.btn-spin:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.btn-spin.is-spinning {
  opacity: 0.7;
  pointer-events: none;
}

.btn-spin.is-spinning .btn-spin-text::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinLoader 0.6s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════
   HISTORY PANEL — Right Sidebar
   ══════════════════════════════════ */

.history-panel .panel-glass {
  height: 100%;
  max-height: calc(100vh - 140px);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spin-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-right: var(--space-xs);
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.history-empty p {
  font-size: 12px;
  color: var(--text-muted);
}

.history-item {
  padding: var(--space-md) var(--space-lg);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  animation: slideInRight 0.3s ease;
}

.history-item:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.history-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.history-item-badge {
  font-size: 10px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
}

.history-item-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-item-time .material-symbols-outlined {
  font-size: 14px;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════
   WINNER MODAL
   ══════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  max-width: 480px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-glow-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta), var(--accent-cyan));
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.modal-body {
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.modal-icon {
  font-size: 64px;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.modal-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.modal-winner-box {
  width: 100%;
  padding: var(--space-xl) var(--space-lg);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-xl);
}

.modal-winner-text {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: winnerGlow 1.5s ease-in-out infinite alternate;
  word-break: break-word;
}

@keyframes winnerGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.3); }
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-body .btn-primary {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-lg);
  margin-top: var(--space-md);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ══════════════════════════════════
   CHEAT PANEL — Secret Overlay
   ══════════════════════════════════ */

.cheat-panel {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-cheat);
  width: 260px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.2s ease;
  font-size: 13px;
}

.cheat-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(239, 68, 68, 0.05);
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.cheat-status {
  font-size: 12px;
  font-weight: 700;
}

.cheat-title {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.cheat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cheat-close:hover {
  color: var(--text-primary);
}

.cheat-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.cheat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.cheat-select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.cheat-select:focus {
  border-color: var(--accent-rose);
}

.cheat-select option {
  background: #1a1f2f;
  color: var(--text-primary);
}

/* ══════════════════════════════════
   RESPONSIVE — Media Queries
   ══════════════════════════════════ */

/* Tablet */
@media (max-width: 1200px) {
  .app-main {
    grid-template-columns: 280px 1fr 260px;
    gap: var(--space-xl);
    padding: var(--space-xl);
  }

  .wheel-container {
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 1024px) {
  .app-main {
    grid-template-columns: 1fr;
    max-width: 700px;
  }

  .brand-tagline {
    display: none;
  }

  .input-panel {
    order: 1;
  }

  .wheel-stage {
    order: 2;
    min-height: 550px;
  }

  .history-panel {
    order: 3;
  }

  .history-panel .panel-glass {
    max-height: 400px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header-inner {
    padding: 0 var(--space-lg);
    height: 60px;
  }

  .brand-logo {
    font-size: 22px;
  }

  .app-main {
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .wheel-container {
    width: 320px;
    height: 320px;
  }

  .btn-spin {
    padding: 16px 48px;
    font-size: 17px;
  }

  .modal-winner-text {
    font-size: 28px;
  }

  .modal-title {
    font-size: 28px;
  }

  .cheat-panel {
    right: var(--space-md);
    bottom: var(--space-md);
    width: 240px;
  }
}

@media (max-width: 400px) {
  .wheel-container {
    width: 280px;
    height: 280px;
  }
}

/* ── Wheel empty state ── */
.wheel-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  z-index: 6;
}

.wheel-empty-state .material-symbols-outlined {
  font-size: 48px;
  display: block;
  margin-bottom: var(--space-sm);
  opacity: 0.3;
}
