:root {
  --bg-dark: #0a0a0f;
  --bg-purple: #1a0a2e;
  --bg-charcoal: #1c1c1c;
  --gold: #d4a017;
  --crimson: #8b0000;
  --purple-accent: #6b21a8;
  --blue-portal: #3b82f6;
  --orange-portal: #f97316;
  --toxic-green: #22c55e;
}

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

body {
  font-family: 'Crimson Pro', serif;
  background: var(--bg-dark);
  min-height: 100vh;
}

.font-pirata {
  font-family: 'Pirata One', cursive;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes card-breathe {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-2px) scale(1.01); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes float-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes swirl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes toxic-bubble {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes flicker {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

.animate-breathe {
  animation: card-breathe 3s ease-in-out infinite;
}

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

.animate-float-in {
  animation: float-in 0.4s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.chess-square-light {
  background: linear-gradient(135deg, #2d1f4e 0%, #1f1635 100%);
}

.chess-square-dark {
  background: linear-gradient(135deg, #141218 0%, #0d0b10 100%);
}

.card-piece-border {
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
}

.card-square-border {
  border: 2px solid var(--purple-accent);
  box-shadow: 0 0 10px rgba(107, 33, 168, 0.3);
}

.board-container {
  perspective: 1000px;
}

.board-tilt {
  transform: rotateX(2deg);
}

.legal-move-dot {
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.5);
}

.capture-circle {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 3px solid rgba(239, 68, 68, 0.6);
}

.toast-notification {
  animation: float-in 0.3s ease-out forwards;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #2d1f4e;
  border-radius: 3px;
}

.selected-square {
  box-shadow: inset 0 0 0 3px var(--gold);
}

.last-move {
  box-shadow: inset 0 0 0 2px rgba(212, 160, 23, 0.3);
}

.check-indicator {
  box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.8);
}

.pixelated {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}