:root {
  --gold: #C8A951;
  --loess-tan: #D4A76A;
  --prairie-green: #6B8E23;
  --river-blue: #4A90A4;
  --cave-gray: #5C5C5C;
  --sunset-orange: #E07B39;
  --pokeball-red: #EE1515;
  --wind-teal: #7ECFC0;
  --cream: #FFF8E7;
  --dark-brown: #2C1810;
  --text-brown: #3E2723;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text-brown);
  overflow-x: hidden;
}

.font-pixel { font-family: 'Press Start 2P', monospace; }
.font-hand { font-family: 'Caveat', cursive; }

/* Wind particles */
@keyframes windDrift {
  0% { transform: translateX(-20px) translateY(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { transform: translateX(calc(100vw + 20px)) translateY(-30px); opacity: 0; }
}

.wind-particle {
  position: absolute;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wind-teal), transparent);
  border-radius: 2px;
  animation: windDrift linear infinite;
  pointer-events: none;
}

.wind-particle.fast {
  animation-duration: 1.5s !important;
  height: 3px;
}

/* Rain drops */
@keyframes rainFall {
  0% { transform: translateY(-20px) rotate(15deg); opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(15deg); opacity: 0.3; }
}

.rain-drop {
  position: absolute;
  width: 2px;
  height: 12px;
  background: linear-gradient(180deg, transparent, #6BA3BE);
  border-radius: 0 0 2px 2px;
  animation: rainFall linear infinite;
  pointer-events: none;
}

/* Grass rustle */
@keyframes grassRustle {
  0%, 100% { transform: skewX(0deg); }
  25% { transform: skewX(5deg); }
  75% { transform: skewX(-5deg); }
}

.grass-patch:hover .grass-blade {
  animation: grassRustle 0.4s ease-in-out;
}

/* Shimmer for rare */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-gold {
  background: linear-gradient(90deg, transparent 0%, rgba(200, 169, 81, 0.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* Card flip */
@keyframes cardFlipIn {
  0% { transform: perspective(600px) rotateY(90deg); opacity: 0; }
  100% { transform: perspective(600px) rotateY(0deg); opacity: 1; }
}

.card-flip {
  animation: cardFlipIn 0.5s ease-out;
}

/* Slide up modal */
@keyframes slideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.slide-up {
  animation: slideUp 0.4s ease-out;
}

/* Equalizer bars */
@keyframes eqBounce1 { 0%, 100% { height: 6px; } 50% { height: 18px; } }
@keyframes eqBounce2 { 0%, 100% { height: 14px; } 50% { height: 6px; } }
@keyframes eqBounce3 { 0%, 100% { height: 10px; } 50% { height: 22px; } }
@keyframes eqBounce4 { 0%, 100% { height: 8px; } 50% { height: 16px; } }

.eq-bar-1 { animation: eqBounce1 0.8s ease-in-out infinite; }
.eq-bar-2 { animation: eqBounce2 0.6s ease-in-out infinite 0.1s; }
.eq-bar-3 { animation: eqBounce3 0.7s ease-in-out infinite 0.2s; }
.eq-bar-4 { animation: eqBounce4 0.9s ease-in-out infinite 0.3s; }

/* Screen shake */
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3px, 2px); }
  20% { transform: translate(3px, -2px); }
  30% { transform: translate(-2px, 3px); }
  40% { transform: translate(2px, -3px); }
  50% { transform: translate(-3px, 1px); }
  60% { transform: translate(3px, -1px); }
  70% { transform: translate(-1px, 3px); }
  80% { transform: translate(1px, -2px); }
  90% { transform: translate(-2px, 2px); }
}

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

/* Encounter flash */
@keyframes encounterFlash {
  0% { opacity: 1; }
  10% { opacity: 0; }
  20% { opacity: 1; }
  30% { opacity: 0; }
  40% { opacity: 1; }
}

.encounter-flash {
  animation: encounterFlash 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--loess-tan); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Type badge colors */
.type-normal { background: #A8A878; }
.type-fire { background: #F08030; }
.type-water { background: #6890F0; }
.type-grass { background: #78C850; }
.type-electric { background: #F8D030; }
.type-ice { background: #98D8D8; }
.type-fighting { background: #C03028; }
.type-poison { background: #A040A0; }
.type-ground { background: #E0C068; }
.type-flying { background: #A890F0; }
.type-psychic { background: #F85888; }
.type-bug { background: #A8B820; }
.type-rock { background: #B8A038; }
.type-ghost { background: #705898; }
.type-dragon { background: #7038F8; }
.type-dark { background: #705848; }
.type-steel { background: #B8B8D0; }
.type-fairy { background: #EE99AC; }

/* Parchment */
.parchment-bg {
  background: linear-gradient(135deg, #F5E6C8 0%, #EAD5A6 30%, #E8D09B 60%, #F0DEB5 100%);
  border: 2px solid #C8A962;
  box-shadow: inset 0 0 30px rgba(139, 105, 50, 0.15);
}

/* Pixel border */
.pixel-border {
  border: 4px solid var(--text-brown);
  box-shadow: 
    4px 4px 0 0 rgba(0,0,0,0.2),
    inset 2px 2px 0 0 rgba(255,255,255,0.15);
}