:root {
  --bg-primary: #FF6B00;
  --bg-dark: #D45500;
  --bg-darker: #B34700;
  --accent: #FFD700;
  --accent-glow: #FFAA00;
  --text-light: #FFF8F0;
  --text-dark: #3D1600;
  --acid: #39FF14;
  --teal: #00E5CC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 30%, #E55A00 70%, #CC4400 100%);
  min-height: 100vh;
  color: var(--text-light);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,215,0,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,100,0,0.2) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.02) 50px, rgba(255,255,255,0.02) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.02) 50px, rgba(255,255,255,0.02) 51px);
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; }

@keyframes glitch1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(3px, 0); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(-1px, 0); }
  60% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(-3px, 0); }
}
@keyframes glitch2 {
  0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 0); }
  20% { clip-path: inset(60% 0 20% 0); transform: translate(-3px, 0); }
  40% { clip-path: inset(30% 0 50% 0); transform: translate(1px, 0); }
  60% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
  80% { clip-path: inset(80% 0 10% 0); transform: translate(3px, 0); }
}
@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 0 40px rgba(255,100,0,0.3); }
  50% { text-shadow: 0 0 30px rgba(255,215,0,0.8), 0 0 60px rgba(255,100,0,0.5), 0 0 80px rgba(255,50,0,0.2); }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progressStripe { 0% { background-position: 0 0; } 100% { background-position: 40px 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes gm90Swirl { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes tilePop { from { transform: scale(0.6); } to { transform: scale(1); } }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 8px rgba(57,255,20,0.5); } 50% { box-shadow: 0 0 18px rgba(57,255,20,0.9); } }

.title-glitch {
  position: relative;
  font-family: 'Archivo Black', sans-serif;
  animation: titlePulse 3s ease-in-out infinite;
}
.title-glitch::before, .title-glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.title-glitch::before { color: #ff0040; animation: glitch1 3s infinite linear; opacity: 0.6; }
.title-glitch::after { color: #00ffff; animation: glitch2 3s infinite linear; opacity: 0.6; }

.fast-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #052b00;
  background: linear-gradient(135deg, #5CFF3A, #39FF14);
  animation: badgePulse 2s ease-in-out infinite;
}

.fade-in { animation: fadeInUp 0.6s ease-out forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }
.fade-in-delay-5 { animation-delay: 0.5s; opacity: 0; }

.progress-bar-animated {
  background-image: linear-gradient(45deg,
    rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%,
    rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
  animation: progressStripe 1s linear infinite;
}

.card-glow { transition: all 0.3s ease; }
.card-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.card-glow.selected { box-shadow: 0 0 0 3px var(--accent), 0 0 30px rgba(255,215,0,0.3); }

.gm90-card:hover { box-shadow: 0 8px 30px rgba(139,0,255,0.3), 0 0 20px rgba(255,0,200,0.15); }
.gm90-card.selected { box-shadow: 0 0 0 3px #B040FF, 0 0 30px rgba(139,0,255,0.4), 0 0 60px rgba(255,0,200,0.15); }
.gm90-shimmer {
  background: linear-gradient(135deg, rgba(139,0,255,0.3), rgba(255,0,200,0.2), rgba(0,200,255,0.15), rgba(139,0,255,0.3));
  background-size: 300% 300%;
  animation: gm90Swirl 4s ease-in-out infinite;
  border-radius: inherit;
}

/* NEW: G Mijor 305 acid-green shimmer */
.gm305-card:hover { box-shadow: 0 8px 30px rgba(57,255,20,0.35), 0 0 20px rgba(168,255,0,0.2); }
.gm305-card.selected { box-shadow: 0 0 0 3px #5CFF3A, 0 0 30px rgba(57,255,20,0.5), 0 0 60px rgba(0,255,120,0.2); }
.gm305-shimmer {
  background: linear-gradient(135deg, rgba(57,255,20,0.35), rgba(168,255,0,0.25), rgba(0,255,150,0.2), rgba(57,255,20,0.35));
  background-size: 300% 300%;
  animation: gm90Swirl 3.2s ease-in-out infinite;
  border-radius: inherit;
}

/* NEW: Ian's G Major 19 mirror/flip accent */
.ian19-card:hover { box-shadow: 0 8px 30px rgba(0,229,204,0.3), 0 0 20px rgba(255,140,0,0.2); }
.ian19-card.selected { box-shadow: 0 0 0 3px #00E5CC, 0 0 30px rgba(0,229,204,0.4), 0 0 50px rgba(255,140,0,0.2); }

.btn-fire { position: relative; overflow: hidden; transition: all 0.3s ease; }
.btn-fire::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  transform: scale(0); transition: transform 0.5s ease;
}
.btn-fire:hover::before { transform: scale(1); }
.btn-fire:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(255,215,0,0.5); }
.btn-fire:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.drop-zone { border: 3px dashed rgba(255,255,255,0.4); transition: all 0.3s ease; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: rgba(255,215,0,0.1); }

.spinner { animation: spin 1s linear infinite; }

/* Render queue tile strip */
.queue-tile {
  width: 16px; height: 16px; border-radius: 4px;
  transition: all 0.25s ease;
  animation: tilePop 0.25s ease;
}
.tile-pending { background: rgba(255,255,255,0.12); }
.tile-active {
  background: linear-gradient(135deg, #FFD700, #FF6B00);
  box-shadow: 0 0 12px rgba(255,215,0,0.8);
  transform: scale(1.15);
}
.tile-done {
  background: linear-gradient(135deg, #5CFF3A, #39FF14);
  box-shadow: 0 0 8px rgba(57,255,20,0.6);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.5); }