:root {
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --card-bg: rgba(255,255,255,0.1);
  --text-primary: white;
  --accent-gold: #ffd700;
}

[data-theme="dark"] {
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --card-bg: rgba(0,0,0,0.4);
  --text-primary: #e1e1ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh; padding: 20px; 
}
.container { max-width: 1200px; margin: 0 auto; text-align: center; }
h1 { color: var(--text-primary); margin-bottom: 20px; font-size: 2.5em; }
.controls { 
  background: var(--card-bg); padding: 20px; border-radius: 15px; 
  margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; 
  justify-content: center; align-items: center; backdrop-filter: blur(10px);
}
button { 
  padding: 12px 20px; border: none; border-radius: 25px; 
  background: rgba(255,255,255,0.2); color: var(--text-primary); font-weight: bold; 
  cursor: pointer; transition: all 0.3s; 
}
button:hover { transform: scale(1.05); background: rgba(255,255,255,0.3); }
#pauseBtn.paused { background: #ff6b6b; }
label { color: var(--text-primary); font-size: 1.1em; }
#queueSize { background: rgba(0,0,0,0.3); padding: 8px 15px; border-radius: 20px; color: var(--accent-gold); }
.queue { 
  display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; 
  min-height: 120px; background: var(--card-bg); 
  border: 3px dashed rgba(255,255,255,0.3); border-radius: 20px; 
  padding: 30px; backdrop-filter: blur(10px);
}
.order-item { 
  width: 90px; height: 90px; border-radius: 15px; 
  display: flex; flex-direction: column; align-items: center; 
  justify-content: center; font-weight: bold; color: white; 
  font-size: 11px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.vip { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.express { background: linear-gradient(135deg, #f7971e, #ffd200); }
.regular { background: linear-gradient(135deg, #56ab2f, #a8e6cf); }
.order-item.removing { 
  transform: scale(0.3) rotate(180deg) translateY(-20px); opacity: 0; 
}
.speedometer {
  width: 120px; height: 120px; margin: 0 10px; position: relative;
}
.speed-arc { 
  width: 100%; height: 50%; position: absolute; bottom: 0; left: 0;
  border-radius: 100px 100px 0 0; background: conic-gradient(var(--accent-gold) 0deg var(--speed-deg, 0deg), transparent 0deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.speed-needle {
  position: absolute; top: 50%; left: 50%; width: 2px; height: 40px;
  background: var(--accent-gold); transform-origin: bottom; 
  transform: translate(-50%, -100%) rotate(-90deg); transition: transform 0.5s;
}
.stats { display: flex; gap: 20px; justify-content: center; margin-top: 20px; color: var(--accent-gold); font-size: 1.1em; }
@media (max-width: 768px) { 
  .controls { flex-direction: column; } 
  .order-item { width: 70px; height: 70px; font-size: 10px; }
  .stats { flex-direction: column; gap: 10px; }
}
.perf-badge {
  position: fixed; top: 10px; right: 10px; 
  background: #10b981; color: white; padding: 5px 12px; 
  border-radius: 20px; font-size: 12px; font-weight: bold;
}