* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  background: #0a0a12;
  color: #e8e6f0;
}

.oracle-bg {
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(88, 28, 135, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, #0a0a12 0%, #1a1a2e 50%, #0a0a12 100%);
  min-height: 100vh;
}

.oracle-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.oracle-title {
  font-family: 'Cinzel', serif;
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(192, 132, 252, 0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 20px rgba(192, 132, 252, 0.3)); }
  to { filter: drop-shadow(0 0 40px rgba(244, 114, 182, 0.4)); }
}

.oracle-tagline {
  font-family: 'Space Grotesk', sans-serif;
  color: #a5b4fc;
  letter-spacing: 0.05em;
}

.oracle-card {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.2), rgba(124, 58, 237, 0.1));
  border-radius: 24px;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.oracle-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #c084fc, #f472b6, #fb923c, #c084fc);
  background-size: 300% 300%;
  border-radius: 26px;
  z-index: -1;
  animation: borderShift 6s linear infinite;
}

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

.oracle-card.floating {
  animation: float 6s ease-in-out infinite;
}

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

.oracle-card.revealing .card-inner {
  animation: cardReveal 0.6s ease-out;
}

@keyframes cardReveal {
  0% { opacity: 0; transform: scale(0.95) rotateX(10deg); }
  50% { opacity: 0.5; }
  100% { opacity: 1; transform: scale(1) rotateX(0); }
}

.card-inner {
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 22px;
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.wisdom-text {
  font-family: 'Cinzel', serif;
  color: #f0e7ff;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(192, 132, 252, 0.3);
}

.sacred-button {
  background: linear-gradient(135deg, #7c3aed, #c026d3, #f97316);
  background-size: 200% 200%;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 
    0 4px 30px rgba(124, 58, 237, 0.4),
    0 0 60px rgba(192, 38, 211, 0.2);
  animation: buttonShimmer 3s ease-in-out infinite;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes buttonShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.sacred-button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 
    0 6px 40px rgba(124, 58, 237, 0.5),
    0 0 80px rgba(192, 38, 211, 0.3);
}

.sacred-button:active:not(:disabled) {
  transform: scale(0.98);
}

.counter-badge {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: #c4b5fd;
  font-size: 0.9rem;
}

.share-button {
  background: rgba(244, 114, 182, 0.2);
  border: 1px solid rgba(244, 114, 182, 0.4);
  color: #f9a8d4;
  cursor: pointer;
}

.share-button:hover {
  background: rgba(244, 114, 182, 0.3);
}

.category-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  cursor: pointer;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

.category-pill.active {
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
}

.toggle-button {
  background: none;
  border: none;
  color: #a5b4fc;
  cursor: pointer;
}

.secret-unlock {
  color: #fbbf24;
  animation: secretPulse 2s ease-in-out infinite;
}

@keyframes secretPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.footer-link {
  color: #c4b5fd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #f472b6;
}

/* Particles */
.particles-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.8), transparent);
  border-radius: 50%;
  bottom: -10px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Sparkles */
.sparkle {
  position: absolute;
  font-size: 1.5rem;
  color: #fef08a;
  pointer-events: none;
  animation: sparkle 0.8s ease-out forwards;
  z-index: 10;
}

@keyframes sparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .oracle-title {
    font-size: 2rem;
  }
  
  .oracle-tagline {
    font-size: 1rem;
  }
  
  .wisdom-text {
    font-size: 1.1rem;
  }
  
  .card-inner {
    padding: 1.5rem;
    min-height: 220px;
  }
}