/* =========================
   YukiCookie OpenBeta Styles
   ========================= */

body {
  font-family: "Segoe UI", sans-serif;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, #1f1f2f, #2e1f4f, #3b2f6f, #5c3aed);
  background-size: 600% 600%;
  animation: rainbowShift 25s ease infinite;
  overflow-x: hidden;
}

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

.container {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(24, 24, 32, 0.9);
  border-radius: 20px;
  border: 2px solid #8b5cf6;
  box-shadow: 0 10px 25px rgba(139,92,246,0.5);
  position: relative;
}

h1 {
  font-size: 2rem;
  color: #fe28d7; /* Yuki logo cyan */
  text-shadow: 0 0 10px #7c3aed;
}

.yuki-cookie-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 5px #8b5cf6); }
  100% { filter: drop-shadow(0 0 20px #ffcc00); }
}

#cookie-button {
  margin: 15px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

#cookie-button img {
  width: 120px;
  height: 120px;
  transition: transform 0.15s ease;
}

#cookie-button:hover img {
  transform: scale(1.1) rotate(-5deg);
}

#cookie-button:active img {
  transform: scale(1.25) rotate(20deg);
}

.upgrades {
  margin-top: 20px;
}

.upgrades button {
  display: block;
  margin: 8px auto;
  padding: 10px;
  width: 85%;
  background-color: #8b5cf6;
  border: 2px solid #7c3aed;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(139,92,246,0.5);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.upgrades button:hover:not(:disabled) {
  transform: scale(1.05);
  background-color: #7c3aed;
}

.upgrades button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-float {
  position: absolute;
  pointer-events: none;
  animation: floatUpFade 0.8s ease-out forwards;
}

@keyframes floatUpFade {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  30% { transform: translateY(-30px) scale(1.4); opacity: 1; }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

.upgrade-flash {
  animation: flashUpgrade 0.6s ease forwards;
}

@keyframes flashUpgrade {
  0% { transform: scale(1); background-color: #8b5cf6; }
  50% { transform: scale(1.2); background-color: #7c3aed; }
  100% { transform: scale(1); background-color: #8b5cf6; }
}

.upgrade-float-text {
  position: absolute;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
  font-size: 1.4rem;
  opacity: 1;
  animation: floatText 1.2s ease-out forwards;
}

@keyframes floatText {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-80px) scale(1.5); opacity: 0; }
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(0deg);
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  80% { transform: translateY(300px) rotate(180deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(360deg); opacity: 0; }
}

.gold-sparkle {
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #fff700, #ffcc00);
  position: absolute;
  border-radius: 50%;
  animation: sparkle 0.8s ease-out forwards;
}

@keyframes sparkle {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.cookie-particle {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
  opacity: 0.7;
  animation: drift linear forwards;
}

@keyframes drift {
  0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0.7; }
  100% { transform: translateY(-400px) rotate(360deg) scale(1.2); opacity: 0; }
}

.leaderboard ol {
  text-align: left;
  padding-left: 20px;
}

.leaderboard li:first-child {
  color: #ffcc00;
  font-weight: bold;
  text-shadow: 0 0 5px #ffcc00;
}

.signature {
  font-size: 0.8rem;
  color: #c7c9ff;
  margin-top: 15px;
  opacity: 0.7;
  text-align: center;
  font-style: italic;
}

/* Footer sparkles container */
.footer-sparkles {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  pointer-events: none;
  overflow: hidden;
  z-index: 500;
}
