/* Pokemon Themed Background — shared across all pages */

/* Large faded Pikachu watermark */
body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: url('/images/pikachu-suit.png') no-repeat center;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.5);
}

/* Pokeball pattern overlay */
.pokeball-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pokeball-bg svg {
  position: absolute;
  opacity: 0.03;
  fill: #f5c518;
}

/* Floating pokeballs at various positions */
.pokeball-bg .pb1 { top: 5%; left: 8%; width: 120px; transform: rotate(15deg); }
.pokeball-bg .pb2 { top: 15%; right: 12%; width: 80px; transform: rotate(-20deg); opacity: 0.025; }
.pokeball-bg .pb3 { top: 45%; left: 3%; width: 100px; transform: rotate(35deg); opacity: 0.02; }
.pokeball-bg .pb4 { top: 70%; right: 5%; width: 140px; transform: rotate(-10deg); opacity: 0.035; }
.pokeball-bg .pb5 { top: 85%; left: 15%; width: 70px; transform: rotate(45deg); opacity: 0.02; }
.pokeball-bg .pb6 { top: 30%; right: 25%; width: 60px; transform: rotate(-30deg); opacity: 0.015; }
.pokeball-bg .pb7 { top: 60%; left: 20%; width: 90px; transform: rotate(20deg); opacity: 0.02; }

/* Lightning bolts (Pikachu themed) */
.lightning-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lightning-bg .bolt {
  position: absolute;
  opacity: 0.03;
  fill: #f5c518;
}

.lightning-bg .b1 { top: 10%; left: 25%; width: 40px; transform: rotate(15deg); }
.lightning-bg .b2 { top: 35%; right: 18%; width: 30px; transform: rotate(-25deg); opacity: 0.02; }
.lightning-bg .b3 { top: 55%; left: 40%; width: 35px; transform: rotate(40deg); opacity: 0.025; }
.lightning-bg .b4 { top: 80%; right: 30%; width: 45px; transform: rotate(-15deg); opacity: 0.02; }
.lightning-bg .b5 { top: 20%; left: 60%; width: 25px; transform: rotate(30deg); opacity: 0.015; }

/* Subtle grid lines (like a Pokemon card texture) */
body {
  background-image:
    linear-gradient(rgba(245,197,24,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  background-attachment: fixed;
}

/* Animated star sparkles */
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.6; transform: scale(1); }
}

.star-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star-field .star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #f5c518;
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}

.star-field .star:nth-child(1) { top: 8%; left: 12%; animation-delay: 0s; animation-duration: 5s; }
.star-field .star:nth-child(2) { top: 22%; left: 45%; animation-delay: 1.2s; animation-duration: 4s; }
.star-field .star:nth-child(3) { top: 38%; left: 78%; animation-delay: 2.4s; animation-duration: 6s; }
.star-field .star:nth-child(4) { top: 52%; left: 30%; animation-delay: 0.8s; animation-duration: 3.5s; }
.star-field .star:nth-child(5) { top: 65%; left: 65%; animation-delay: 3.1s; animation-duration: 5.5s; }
.star-field .star:nth-child(6) { top: 78%; left: 18%; animation-delay: 1.7s; animation-duration: 4.5s; }
.star-field .star:nth-child(7) { top: 15%; left: 88%; animation-delay: 2.9s; animation-duration: 3s; }
.star-field .star:nth-child(8) { top: 42%; left: 8%; animation-delay: 0.3s; animation-duration: 6.5s; }
.star-field .star:nth-child(9) { top: 88%; left: 52%; animation-delay: 4s; animation-duration: 4s; }
.star-field .star:nth-child(10) { top: 5%; left: 55%; animation-delay: 1.5s; animation-duration: 5s; }
.star-field .star:nth-child(11) { top: 72%; left: 42%; animation-delay: 3.5s; animation-duration: 3.8s; }
.star-field .star:nth-child(12) { top: 30%; left: 92%; animation-delay: 0.6s; animation-duration: 4.2s; }
