:root {
  --bg-deep: #0d0d14;
  --bg-card: #15151f;
  --bg-card-hover: #1c1c2a;
  --neon-orange: #ff6b2b;
  --neon-red: #ff2d55;
  --neon-yellow: #ffbe0b;
  --neon-ember: #ff4500;
  --text-primary: #f0e6d8;
  --text-muted: #8a8497;
}

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,107,43,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,45,85,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255,190,11,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.font-display {
  font-family: 'Bebas Neue', sans-serif;
}

.fire-title {
  background: linear-gradient(135deg, #ffbe0b 0%, #ff6b2b 30%, #ff2d55 60%, #ff0844 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255,107,43,0.4));
  letter-spacing: 0.06em;
}

.roast-btn {
  background: linear-gradient(135deg, #ff6b2b, #ff2d55);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255,45,85,0.3), 0 0 60px rgba(255,107,43,0.15);
}

.roast-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(255,45,85,0.5), 0 0 80px rgba(255,107,43,0.25);
}

.roast-btn:active {
  transform: translateY(0) scale(0.98);
}

.roast-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

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

.roast-btn.loading::before {
  animation: none;
  opacity: 0;
}

.insult-card {
  background: linear-gradient(145deg, #1a1a28, #12121c);
  border: 1px solid rgba(255,107,43,0.15);
  box-shadow: 0 0 40px rgba(255,107,43,0.05), inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
}

.insult-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-orange), var(--neon-red), transparent);
}

.history-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.history-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,107,43,0.15);
}

.intensity-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.intensity-btn:hover {
  background: rgba(255,255,255,0.08);
}

.intensity-btn.active {
  border-color: var(--neon-orange);
  background: rgba(255,107,43,0.12);
  box-shadow: 0 0 15px rgba(255,107,43,0.15);
}

.meter-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  background: linear-gradient(90deg, #ffbe0b, #ff6b2b, #ff2d55, #ff0844);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(255,107,43,0.4);
}

@keyframes typewriter-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typing-cursor::after {
  content: '▊';
  animation: typewriter-cursor 0.7s step-end infinite;
  color: var(--neon-orange);
  margin-left: 2px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-0.5deg); }
  40% { transform: translateX(4px) rotate(0.5deg); }
  60% { transform: translateX(-3px) rotate(-0.3deg); }
  80% { transform: translateX(3px) rotate(0.3deg); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.copy-flash {
  animation: copyFlash 0.4s ease-out;
}

@keyframes copyFlash {
  0% { background: rgba(255,107,43,0.3); }
  100% { background: transparent; }
}

input::placeholder {
  color: #5a5470;
}

input:focus {
  outline: none;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,107,43,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,107,43,0.4);
}

@keyframes ember-float {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.4; }
  100% { transform: translateY(-40px) scale(0.6); opacity: 0; }
}

.sound-toggle {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}
.sound-toggle:hover {
  background: rgba(255,255,255,0.08);
}
.sound-toggle.active {
  border-color: var(--neon-yellow);
  background: rgba(255,190,11,0.1);
}

.settings-panel .intensity-btn {
  text-align: center;
}

.settings-panel .intensity-btn.active {
  border-color: var(--neon-orange);
  background: rgba(255,107,43,0.12);
  box-shadow: 0 0 15px rgba(255,107,43,0.15);
}

input[type="password"]::placeholder {
  color: #5a5470;
}

input[type="password"]:focus {
  outline: none;
  border-color: rgba(255,107,43,0.4) !important;
}