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

body {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23ff00ff" width="50" height="50"/><rect fill="%2300ffff" x="50" width="50" height="50"/><rect fill="%2300ffff" y="50" width="50" height="50"/><rect fill="%23ff00ff" x="50" y="50" width="50" height="50"/></svg>');
  background-size: 20px 20px;
  animation: bgScroll 20s linear infinite;
  padding: 20px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><text y="15" font-size="16">🚗</text></svg>'), auto;
}

@keyframes bgScroll {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

/* Animated highway with cars */
.highway {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, #555 0%, #333 100%);
  z-index: 0;
  overflow: hidden;
}

.road-lines {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #fff 0px,
    #fff 40px,
    transparent 40px,
    transparent 80px
  );
  animation: roadScroll 2s linear infinite;
}

@keyframes roadScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-80px); }
}

.car {
  position: absolute;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: driveCar 15s linear infinite;
}

@keyframes driveCar {
  from { left: -200px; }
  to { left: 100%; }
}

.car-body {
  width: 120px;
  height: 50px;
  background: #e74c3c;
  border-radius: 10px 10px 5px 5px;
  position: relative;
  margin-bottom: 8px;
}

.car-window {
  width: 50px;
  height: 25px;
  background: #3498db;
  position: absolute;
  top: 5px;
  left: 35px;
  border-radius: 5px 5px 0 0;
}

.car-wheel {
  width: 15px;
  height: 15px;
  background: #222;
  border-radius: 50%;
  position: absolute;
  bottom: -7px;
}

.car-wheel.left { left: 15px; }
.car-wheel.right { right: 15px; }

.car-plate {
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  border: 3px solid #c41e3a;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: 'Arial Black', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #222;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

.car-plate::before {
  content: 'CALIFORNIA';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5px;
  color: #c41e3a;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Anthropic Judge Car */
.judge-car {
  position: fixed;
  bottom: 220px;
  right: 40px;
  z-index: 100;
  animation: judgeFloat 3s ease-in-out infinite;
}

@keyframes judgeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.judge-car-body {
  width: 140px;
  height: 60px;
  background: linear-gradient(135deg, #191919 0%, #2d2d2d 100%);
  border-radius: 12px 12px 6px 6px;
  position: relative;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.judge-car-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f5dc;
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-weight: bold;
  font-style: italic;
}

.judge-car-window {
  width: 55px;
  height: 30px;
  background: rgba(245, 245, 220, 0.3);
  position: absolute;
  top: 8px;
  left: 42px;
  border-radius: 6px 6px 0 0;
  border: 2px solid #f5f5dc;
}

.judge-car-wheel {
  width: 18px;
  height: 18px;
  background: #0a0a0a;
  border-radius: 50%;
  position: absolute;
  bottom: -9px;
  border: 3px solid #f5f5dc;
}

.judge-car-wheel.left { left: 18px; }
.judge-car-wheel.right { right: 18px; }

.judge-speech {
  position: absolute;
  bottom: 80px;
  right: -20px;
  background: white;
  border: 3px solid #191919;
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 280px;
  font-size: 14px;
  font-weight: 600;
  color: #191919;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: speechBubblePop 0.3s ease-out;
  line-height: 1.4;
}

.judge-speech::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 40px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid white;
}

.judge-speech::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 37px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid #191919;
}

@keyframes speechBubblePop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.rating-stars {
  color: #f39c12;
  font-size: 16px;
  margin-top: 8px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(45deg, #ff1493 0%, #00ff00 25%, #ffff00 50%, #00ffff 75%, #ff1493 100%);
  border: 5px ridge #ffd700;
  padding: 5px;
  box-shadow: 0 0 30px #ff00ff, 0 0 50px #00ffff;
  position: relative;
  z-index: 1;
  animation: rainbowPulse 3s linear infinite;
}

.container > * {
  background: #000;
  padding: 20px;
}

@keyframes rainbowPulse {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

h1 {
  text-align: center;
  color: #00ff00;
  margin-bottom: 32px;
  font-size: 36px;
  text-shadow: 3px 3px #ff00ff, 6px 6px #00ffff;
  animation: blink 1s infinite;
  font-weight: bold;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.7; }
}

h2 {
  color: #ffff00;
  font-size: 24px;
  margin-bottom: 16px;
  margin-top: 32px;
  text-decoration: underline;
  text-shadow: 2px 2px #ff00ff;
}

.input-section {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

#plateInput {
  flex: 1;
  padding: 14px 18px;
  font-size: 18px;
  border: 3px groove #00ff00;
  background: #000;
  color: #00ff00;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
}

#plateInput:focus {
  outline: none;
  border-color: #ff00ff;
  background: #001100;
  animation: inputGlow 0.5s infinite;
}

@keyframes inputGlow {
  0%, 100% { box-shadow: 0 0 10px #00ff00; }
  50% { box-shadow: 0 0 20px #00ff00; }
}

button {
  padding: 14px 24px;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(180deg, #ff0000, #ff6600);
  color: #ffff00;
  border: 3px outset #ffd700;
  cursor: pointer;
  font-family: 'Comic Sans MS', cursive;
  text-shadow: 2px 2px #000;
}

button:hover {
  background: linear-gradient(180deg, #ff6600, #ff0000);
  transform: scale(1.05);
}

button:active {
  border-style: inset;
  transform: scale(0.98);
}

button.secondary {
  background: linear-gradient(180deg, #00ff00, #00aa00);
  color: #000;
  border: 3px outset #00ff00;
}

button.secondary:hover {
  background: linear-gradient(180deg, #00aa00, #00ff00);
}

.stats-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #000080;
  padding: 20px;
  text-align: center;
  border: 5px ridge #ffd700;
  box-shadow: 0 0 20px #ff00ff;
}

.stat-card.highlight {
  background: #800080;
  border-color: #00ffff;
  animation: statBounce 2s infinite;
}

@keyframes statBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.stat-label {
  color: #00ffff;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: 1px 1px #ff00ff;
}

.stat-value {
  color: #ffff00;
  font-size: 42px;
  font-weight: bold;
  font-family: 'Comic Sans MS', cursive;
  letter-spacing: 2px;
  text-shadow: 3px 3px #ff00ff;
}

.lookup-section {
  background: linear-gradient(90deg, #ff00ff 0%, #00ffff 50%, #ff00ff 100%);
  padding: 24px;
  margin-bottom: 24px;
  border: 5px double #ffd700;
  background-size: 200% 100%;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.age-display {
  color: #ffff00;
  font-size: 16px;
  line-height: 1.8;
  min-height: 80px;
  background: #000;
  padding: 15px;
  border: 3px groove #00ff00;
  font-weight: bold;
}

.plate-preview {
  font-size: 48px;
  font-weight: 900;
  font-family: 'Impact', 'Arial Black', sans-serif;
  color: #000;
  text-align: center;
  margin: 20px auto;
  letter-spacing: 6px;
  padding: 24px 32px;
  background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
  border: 8px ridge #c41e3a;
  box-shadow: 0 0 30px #ff00ff, 0 0 40px #00ffff;
  position: relative;
  max-width: 420px;
  animation: plateShake 2s infinite;
}

@keyframes plateShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

.plate-preview::before {
  content: '🌟 CALIFORNIA 🌟';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #c41e3a;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
  padding: 2px 12px;
  border: 2px solid #ffd700;
}

.age-period {
  text-align: center;
  font-size: 18px;
  margin-bottom: 12px;
  color: #00ffff;
  text-shadow: 2px 2px #ff00ff;
}

.age-details {
  text-align: center;
  color: #00ff00;
  font-size: 14px;
  margin-top: 8px;
}

.progress-info {
  text-align: center;
  color: #ffff00;
  font-weight: bold;
  margin-top: 12px;
  font-size: 16px;
  text-shadow: 1px 1px #ff00ff;
}

.history-section {
  margin-top: 24px;
}

#platesList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plate-item {
  background: #f7fafc;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #e2e8f0;
  transition: transform 0.2s;
}

.plate-item:hover {
  transform: translateX(4px);
}

.plate-item.newest {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-color: #667eea;
}

.plate-number {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #2d3748;
}

.plate-date {
  color: #718096;
  font-size: 14px;
}

.badge {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.empty-state {
  text-align: center;
  color: #a0aec0;
  padding: 40px;
  font-style: italic;
}

.info-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 5px dotted #ff00ff;
}

.info-section p {
  color: #00ffff;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
  text-shadow: 1px 1px #ff00ff;
}

.info-section strong {
  color: #ffff00;
  font-weight: bold;
}

center {
  margin-top: 20px;
  margin-bottom: 20px;
}

center img {
  margin: 5px;
  animation: badgeBounce 1s infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Confetti animation */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9999;
  animation: confettiFall linear forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* 90s Ad Sidebars */
.ad-sidebar-left, .ad-sidebar-right {
  position: fixed;
  top: 100px;
  width: 140px;
  z-index: 999;
}

.ad-sidebar-left {
  left: 10px;
}

.ad-sidebar-right {
  right: 10px;
}

.ad-box {
  background: linear-gradient(45deg, #ff0000, #ff00ff, #0000ff);
  border: 3px ridge #ffd700;
  padding: 10px;
  text-align: center;
  color: #ffff00;
  font-family: 'Comic Sans MS', cursive;
  box-shadow: 0 0 20px #00ffff;
  animation: adPulse 1.5s infinite;
  cursor: pointer;
}

.ad-box:hover {
  animation: adShake 0.3s infinite;
}

@keyframes adPulse {
  0%, 100% {
    box-shadow: 0 0 20px #00ffff;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px #ff00ff;
    transform: scale(1.02);
  }
}

@keyframes adShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-2deg); }
  75% { transform: translateX(3px) rotate(2deg); }
}

.ad-box p {
  margin: 5px 0;
  line-height: 1.2;
}

/* Blink effect (RIP <blink> tag) */
blink {
  animation: blinkAnim 1s infinite;
}

@keyframes blinkAnim {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 1200px) {
  .ad-sidebar-left, .ad-sidebar-right {
    display: none;
  }
}

/* iPod Winner Popup */
.ipod-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ipod-popup-content {
  background: linear-gradient(135deg, #ff00ff 0%, #00ffff 50%, #ffff00 100%);
  border: 8px ridge #ffd700;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  font-family: 'Comic Sans MS', cursive;
  box-shadow: 0 0 50px #ff00ff, 0 0 100px #00ffff;
  animation: popupShake 0.5s infinite;
  position: relative;
}

@keyframes popupShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1deg); }
  75% { transform: rotate(1deg); }
}

.ipod-popup-content h2 {
  animation: blinkAnim 0.8s infinite;
  text-shadow: 3px 3px #000;
  margin-bottom: 15px !important;
}

.ipod-popup-content p {
  color: #000;
  font-weight: bold;
  text-shadow: 1px 1px #fff;
}

.ipod-popup-content img {
  margin: 20px 0;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Cult Section Styling */
.cult-section {
  background: #000;
  padding: 20px;
  border: 5px double #ff00ff;
  box-shadow: 0 0 40px #ff00ff inset, 0 0 60px #00ffff;
  animation: cultGlow 3s infinite;
}

@keyframes cultGlow {
  0%, 100% {
    box-shadow: 0 0 40px #ff00ff inset, 0 0 60px #00ffff;
  }
  50% {
    box-shadow: 0 0 60px #00ffff inset, 0 0 80px #ff00ff;
  }
}

.prophecy-box {
  background: linear-gradient(45deg, #1a0033 0%, #003300 50%, #330000 100%);
  border: 5px ridge #ffd700;
  padding: 20px;
  margin: 20px 0;
  animation: prophecyPulse 2s infinite;
}

@keyframes prophecyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

.testimonials {
  margin-top: 20px;
}

.testimonials h3 {
  text-align: center;
  margin-bottom: 15px;
  animation: blinkAnim 1.5s infinite;
}

.testimonials blockquote {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  animation: testimonialFloat 3s infinite ease-in-out;
}

@keyframes testimonialFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.ad-box.cult-themed {
  background: linear-gradient(45deg, #4a0080 0%, #800040 50%, #004080 100%);
  animation: cultAdPulse 1s infinite;
}

@keyframes cultAdPulse {
  0%, 100% {
    box-shadow: 0 0 20px #ff00ff;
  }
  50% {
    box-shadow: 0 0 40px #ff00ff, 0 0 60px #00ffff;
  }
}
