/* ========================================
   WHEEL OF DECIDING - Premium Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  /* Core colors */
  --bg-dark: #030712;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-input: rgba(0, 0, 0, 0.4);
  
  /* Accent spectrum */
  --orange: #f97316;
  --orange-light: #fb923c;
  --orange-glow: rgba(249, 115, 22, 0.5);
  --pink: #ec4899;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --green: #22c55e;
  --yellow: #fbbf24;
  --red: #ef4444;
  --blue: #3b82f6;
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(249, 115, 22, 0.4);
  
  /* Effects */
  --glow-orange: 0 0 40px rgba(249, 115, 22, 0.4);
  --glow-intense: 0 0 60px rgba(249, 115, 22, 0.6), 0 0 120px rgba(249, 115, 22, 0.3);
  
  /* Spacing */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== BASE ========== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  background: #000000;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ========== STUDIO BACKGROUND ========== */

.studio-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(to bottom, #1a0a1a 0%, #0a0a1a 30%, #000000 100%);
}

/* Studio Lighting */
.studio-lighting {
  position: absolute;
  inset: 0;
}

.light {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: light-pulse 4s ease-in-out infinite;
}

.light-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
  top: -200px;
  left: 10%;
  animation-delay: 0s;
}

.light-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #f97316 0%, transparent 70%);
  top: -150px;
  right: 15%;
  animation-delay: -1s;
}

.light-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -100px;
  left: 20%;
  animation-delay: -2s;
}

.light-4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  bottom: -80px;
  right: 25%;
  animation-delay: -3s;
}

@keyframes light-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Studio Audience */
.studio-audience {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 5%;
  opacity: 0.3;
}

.audience-person {
  width: 40px;
  height: 60px;
  background: linear-gradient(to bottom, #1a1a2e 0%, #0f0f1e 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
  animation: audience-cheer 2s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * 0.1s);
}

.audience-person::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #1a1a2e;
  border-radius: 50%;
}

.audience-person::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

@keyframes audience-cheer {
  0%, 100% { transform: translateY(0) scaleY(1); }
  25% { transform: translateY(-8px) scaleY(1.1); }
  50% { transform: translateY(-12px) scaleY(1.15); }
  75% { transform: translateY(-8px) scaleY(1.1); }
}

.studio-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(to top, 
    rgba(139, 69, 19, 0.3) 0%,
    rgba(101, 67, 33, 0.2) 50%,
    transparent 100%
  );
  border-top: 2px solid rgba(184, 134, 11, 0.2);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

/* ========== LAYOUT ========== */

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* ========== HEADER ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.95) 0%,
    rgba(26, 10, 26, 0.9) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px var(--orange-glow));
}

.logo-wheel-spin {
  transform-origin: 50px 50px;
  animation: logo-rotate 20s linear infinite;
}

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

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--orange-light) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sound & Volume Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--orange);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 6px;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.volume-control:hover {
  border-color: var(--orange-light);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.sound-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--orange);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  position: relative;
  color: #000;
}

.sound-toggle:hover {
  background: var(--orange-light);
  transform: scale(1.05);
}

.sound-toggle:active {
  transform: scale(0.95);
}

.sound-toggle.is-muted {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.sound-icon {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: all 0.2s var(--ease-out);
}

.sound-icon-off {
  opacity: 0;
  transform: scale(0.8);
}

.sound-toggle.is-muted .sound-icon-on {
  opacity: 0;
  transform: scale(0.8);
}

.sound-toggle.is-muted .sound-icon-off {
  opacity: 1;
  transform: scale(1);
}

/* Volume Slider */
.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 4px;
  padding-right: 4px;
}

.volume-slider-wrap {
  --volume-percent: 70%;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--orange) 0%,
    var(--orange) var(--volume-percent, 70%),
    rgba(255, 255, 255, 0.15) var(--volume-percent, 70%),
    rgba(255, 255, 255, 0.15) 100%
  );
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  position: relative;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 0 2px var(--orange);
  position: relative;
  z-index: 2;
  transition: all 0.15s var(--ease-out);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.5), 0 0 0 3px var(--orange);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.volume-slider::-moz-range-progress {
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: var(--radius-full);
  height: 6px;
}

.volume-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange-light);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Hide volume slider when muted */
.volume-control.is-muted .volume-slider-wrap {
  display: none;
}

.volume-control.is-muted {
  border-color: var(--text-muted);
  box-shadow: none;
}

/* ========== MAIN LAYOUT ========== */

.layout {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ========== WHEEL PANEL ========== */

.wheel-panel {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.wheel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-glow {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 50%);
  animation: glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.wheel-sparkles {
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.wheel-wrapper {
  width: min(500px, 88vw);
  aspect-ratio: 1;
  position: relative;
}

/* Wheel Frame - The outer ring */
.wheel-frame {
  width: 100%;
  height: 100%;
  padding: 6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--orange),
    var(--yellow),
    var(--green),
    var(--cyan),
    var(--blue),
    var(--purple),
    var(--pink),
    var(--orange)
  );
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    var(--glow-intense);
  animation: frame-spin 30s linear infinite;
}

@keyframes frame-spin {
  from { 
    filter: hue-rotate(0deg);
  }
  to { 
    filter: hue-rotate(360deg);
  }
}

.wheel-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 40%, var(--bg-dark) 100%);
  box-shadow:
    inset 0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#wheelCanvas {
  width: 94%;
  height: 94%;
  border-radius: 50%;
}

/* Center Hub */
.wheel-center-hub {
  position: absolute;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 3px solid var(--orange);
  box-shadow:
    0 0 30px var(--orange-glow),
    inset 0 2px 10px rgba(255, 255, 255, 0.1),
    inset 0 -2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hub-inner {
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--orange) 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.hub-icon {
  width: 50%;
  height: 50%;
  color: var(--bg-dark);
}

.hub-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 3;
}

/* Pointer */
.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 50px;
  filter: drop-shadow(0 8px 16px rgba(249, 115, 22, 0.5));
}

.pointer-svg {
  width: 100%;
  height: auto;
}

/* ========== SPIN BUTTON ========== */

.wheel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.spin-button {
  position: relative;
  min-width: 180px;
  height: 56px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.spin-button .btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 50%, var(--pink) 100%);
  background-size: 200% 200%;
  animation: gradient-flow 3s ease infinite;
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.spin-button .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s var(--ease-out);
}

.spin-button:hover .btn-shine {
  left: 100%;
}

.spin-button .btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.spin-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
}

.spin-button:active {
  transform: translateY(-1px) scale(1);
}

.spin-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.spin-button.is-spinning .btn-bg {
  animation: gradient-flow 0.5s ease infinite;
}

.spin-button.is-spinning .btn-content .btn-icon {
  animation: spin-icon 1s linear infinite;
}

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

/* Secondary Button */
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-icon-small {
  width: 16px;
  height: 16px;
}

/* ========== RESULT DISPLAY ========== */

.result-display {
  width: 100%;
  max-width: 400px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-out);
}

.result-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.result-display.has-result {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  border-color: var(--orange);
  box-shadow: var(--glow-orange);
}

.result-display.has-result .result-value {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: result-pop 0.5s var(--ease-bounce);
}

@keyframes result-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ========== CONFETTI ========== */

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* ========== HISTORY SECTION ========== */

.history-section {
  width: 100%;
  max-width: 500px;
  margin-top: 0.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-header h2,
.section-header h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.section-header-tight {
  margin-bottom: 0.5rem;
}

.clear-history-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.clear-history-btn svg {
  width: 16px;
  height: 16px;
}

.clear-history-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  animation: slide-in 0.3s var(--ease-out);
}

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

.history-item:last-child {
  border-bottom: none;
}

.history-result {
  font-weight: 600;
  color: var(--text-primary);
}

.history-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.history-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== OPTIONS PANEL ========== */

.options-panel {
  flex: 1 1 360px;
}

.options-panel-inner {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.options-panel-inner > *:not(.panel-glow) {
  position: relative;
  z-index: 1;
}

.options-heading {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.options-heading .section-icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
  opacity: 1;
}

/* Form */
.option-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.text-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s var(--ease-out);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.text-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.option-input-row {
  display: flex;
  gap: 0.5rem;
}

.add-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.add-button svg {
  width: 20px;
  height: 20px;
}

.add-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.add-button:active {
  transform: scale(0.95);
}

.field-help {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Options List */
.option-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.options-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.options-list::-webkit-scrollbar {
  width: 6px;
}

.options-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.options-list-empty {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.options-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.2s var(--ease-out);
  animation: fade-in 0.2s var(--ease-out);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.options-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.option-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

.option-label {
  flex: 1;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-index {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 1.5rem;
}

.icon-button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s var(--ease-out);
}

.icon-button:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
  transform: scale(1.1);
}

/* Share Section */
.share-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.share-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.share-input {
  font-size: 0.8rem;
  padding: 0.625rem 0.875rem;
}

.copy-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.copy-button svg {
  width: 18px;
  height: 18px;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.toast {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER ========== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ========== ANIMATIONS ========== */

@keyframes screen-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.is-shaking {
  animation: screen-shake 0.5s var(--ease-out);
}

@keyframes win-celebration {
  0%, 100% { 
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), var(--glow-intense);
  }
  50% { 
    box-shadow: 0 0 0 4px var(--orange), 0 0 100px var(--orange-glow), 0 0 200px rgba(249, 115, 22, 0.3);
  }
}

.wheel-frame.is-celebrating {
  animation: win-celebration 0.6s var(--ease-out) 4;
}

/* ========== ACCESSIBILITY ========== */

button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 960px) {
  .layout {
    padding-top: 2rem;
  }

  .wheel-panel {
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    padding: 0.625rem 1rem;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-tagline {
    display: none;
  }

  .layout {
    gap: 2rem;
    padding: 1.5rem 1rem;
  }

  .wheel-wrapper {
    width: min(420px, 92vw);
  }

  .spin-button {
    min-width: 160px;
    height: 50px;
  }

  .options-panel-inner {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  .volume-slider {
    width: 70px;
  }
  
  .volume-value {
    display: none;
  }
  
  .volume-control {
    padding: 4px 6px 4px 4px;
  }
}

@media (max-width: 480px) {
  .wheel-controls {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .spin-button,
  .secondary-button {
    width: 100%;
  }
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }

  .wheel-glow,
  .logo-wheel-spin,
  .wheel-frame {
    animation: none !important;
  }
}
