:root {
  --pink-soft: #ffd6e8;
  --pink-mid: #ffb3d1;
  --pink-hot: #ff69b4;
  --pink-deep: #e91e8c;
  --lavender: #e8d5ff;
  --mint: #d0f5e8;
  --cream: #fff8f0;
  --gold: #ffd700;
  --animate-spin: spin 1s linear infinite;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  background: linear-gradient(
    135deg,
    #ffe0f0 0%,
    #f0d6ff 30%,
    #d6eeff 60%,
    #ffe0f0 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* Target the element you want to hide the scrollbar for */
.hide-scrollbar {
  /* IE and Edge (Legacy) */
  -ms-overflow-style: none;

  /* Firefox */
  scrollbar-width: none;
}

/* Chrome, Safari, and Opera */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ===== CUSTOM CURSOR ===== */
#cursor {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ff69b4, #ff1493);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s ease,
    width 0.2s,
    height 0.2s;
  mix-blend-mode: multiply;
  box-shadow: 0 0 12px #ff69b4aa;
}
#cursor-trail {
  width: 8px;
  height: 8px;
  background: #ffb3d1;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
  opacity: 0.7;
}
body:hover #cursor {
  opacity: 1;
}

/* ===== FLOATING PARTICLES ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== ONBOARDING ===== */
#onboarding {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ff9ec8, #c8a0ff, #a0d4ff, #ff9ec8);
  background-size: 400% 400%;
  animation: gradientShift 4s ease infinite;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
#onboarding.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

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

.warning-box {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(255, 105, 180, 0.3);
}

.warning-emoji {
  font-size: 3rem;
  animation: wobble 1s infinite;
  display: inline-block;
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.1);
  }
}

.onboard-title {
  font-family: "Pacifico", cursive;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #7a0060;
  line-height: 1.3;
  margin: 1rem 0;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.onboard-sub {
  font-size: 0.95rem;
  color: #5a004a;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-enter {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}
.btn-enter:hover {
  transform: scale(1.05) rotate(-1deg);
}
.btn-enter:active {
  transform: scale(0.97);
}
.btn-primary {
  background: linear-gradient(135deg, #ff69b4, #e91e8c);
  color: white;
  box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}
.btn-secondary {
  background: linear-gradient(135deg, #c8a0ff, #a855f7);
  color: white;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}
.btn-tertiary {
  background: rgba(255, 255, 255, 0.5);
  color: #7a0060;
  border: 2px solid rgba(255, 105, 180, 0.5);
}

/* ===== FAKE LOADING ===== */
#fake-loading {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffe0f0, #e0d6ff);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#fake-loading.active {
  opacity: 1;
  pointer-events: all;
}
.loading-bar-wrap {
  width: 280px;
  height: 8px;
  background: rgba(255, 182, 193, 0.4);
  border-radius: 999px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff69b4, #c8a0ff, #ff69b4);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: loadingAnim 0.05s linear forwards;
}
@keyframes loadingAnim {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.loading-text {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: #c04090;
  text-align: center;
}
.loading-emoji {
  font-size: 2.5rem;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== TRANSITION OVERLAY ===== */
#transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 8998;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 182, 193, 0.8) 0%,
    transparent 70%
  );
  transition: opacity 0.5s ease;
}
#transition-overlay.active {
  opacity: 1;
}

/* ===== MAIN CONTENT ===== */
#main-content {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease 0.3s,
    transform 0.8s ease 0.3s;
  position: relative;
  z-index: 1;
}
#main-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GLITTER TEXT ===== */
.glitter {
  background: linear-gradient(90deg, #ff69b4, #c8a0ff, #ffd700, #ff69b4);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitterShift 3s linear infinite;
}
@keyframes glitterShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: "Pacifico", cursive;
  font-size: clamp(2.2rem, 9vw, 6rem);
  line-height: 1.2;
  text-shadow: 3px 3px 0 rgba(255, 105, 180, 0.3);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  color: #7a0060;
  font-weight: 700;
  max-width: 600px;
  line-height: 1.6;
}

/* floating decorative elements */
.float-deco {
  position: absolute;
  pointer-events: none;
  animation: floatDeco linear infinite;
  user-select: none;
  z-index: 0;
}
@keyframes floatDeco {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-18px) rotate(5deg);
  }
  66% {
    transform: translateY(-8px) rotate(-3deg);
  }
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: "Pacifico", cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: #9c4070;
  font-weight: 700;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ===== ACHIEVEMENT CARDS ===== */
.achievement-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 182, 193, 0.5);
  border-radius: 20px;
  padding: 1.4rem 1.2rem;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.achievement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 182, 193, 0.2),
    rgba(200, 160, 255, 0.2)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.achievement-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 12px 30px rgba(255, 105, 180, 0.25);
  border-color: rgba(255, 105, 180, 0.7);
}
.achievement-card:hover::before {
  opacity: 1;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}
.badge-gold {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #5a3000;
}
.badge-pink {
  background: linear-gradient(135deg, #ff69b4, #e91e8c);
  color: white;
}
.badge-purple {
  background: linear-gradient(135deg, #c8a0ff, #a855f7);
  color: white;
}
.badge-mint {
  background: linear-gradient(135deg, #b0f5d8, #00c896);
  color: #00543a;
}
.badge-blue {
  background: linear-gradient(135deg, #b0d6ff, #4490ff);
  color: white;
}

/* ===== INTERACTIVE BUTTONS ===== */
.fun-btn {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.fun-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.15s;
}
.fun-btn:active::after {
  opacity: 1;
}
.fun-btn:hover {
  transform: scale(1.06) rotate(-2deg);
}
.fun-btn:active {
  transform: scale(0.95);
}

/* ===== POPUP ===== */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 100, 180, 0.15);
  backdrop-filter: blur(4px);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
#popup-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 105, 180, 0.5);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
}
#popup-overlay.active #popup-box {
  transform: scale(1);
}
.popup-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.75rem;
  animation: bounceIn 0.5s ease;
}
@keyframes bounceIn {
  0% {
    transform: scale(0) rotate(-20deg);
  }
  70% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.popup-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #7a0060;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  white-space: pre-line;
}
.popup-close {
  background: linear-gradient(135deg, #ff69b4, #e91e8c);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 2rem;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.popup-close:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(233, 30, 140, 0.4);
}

/* ===== CONFETTI ===== */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 8000;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== HEART BURST ===== */
.heart-burst {
  position: fixed;
  pointer-events: none;
  z-index: 8001;
  font-size: 1.5rem;
  animation: heartBurst 1s ease forwards;
}
@keyframes heartBurst {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.5);
    opacity: 0;
  }
}

/* ===== FLOATING TEXT ===== */
.float-text {
  position: fixed;
  pointer-events: none;
  z-index: 8001;
  font-family: "Pacifico", cursive;
  font-size: clamp(0.8rem, 3vw, 1.1rem);
  color: #e91e8c;
  animation: floatUp 2s ease forwards;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}
@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(var(--rot));
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) rotate(var(--rot2));
    opacity: 0;
  }
}

/* ===== ENDING SECTION ===== */
.ending-text {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: #7a0060;
  font-weight: 700;
  line-height: 1.8;
}

/* ===== RANDOM CORNER TEXTS ===== */
.corner-text {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  color: rgba(180, 0, 100, 0.35);
  position: fixed;
  pointer-events: none;
  user-select: none;
  z-index: 5;
}

/* ===== EASTER EGG ===== */
#easter-egg-trigger {
  width: 20px;
  height: 20px;
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 600;
  cursor: pointer;
  opacity: 0.15;
  transition: opacity 0.3s;
}
#easter-egg-trigger:hover {
  opacity: 0.9;
}

#easter-egg-popup {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 50, 150, 0.15);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}
#easter-egg-popup.active {
  opacity: 1;
  pointer-events: all;
}
#easter-egg-box {
  background: rgba(255, 240, 255, 0.95);
  border: 3px solid #ff69b4;
  border-radius: 28px;
  padding: 2rem 1.8rem;
  max-width: 360px;
  text-align: center;
  transform: scale(0.7) rotate(-5deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
}
#easter-egg-popup.active #easter-egg-box {
  transform: scale(1) rotate(0deg);
}

/* ===== DIVIDER ===== */
.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff69b4, #c8a0ff, #ff69b4);
  border-radius: 999px;
  margin: 0 auto 2rem;
}

/* scroll fade in */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* wiggle anim */
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(4deg);
  }
}
.wiggle:hover {
  animation: wiggle 0.5s ease;
}

/* pulse */
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 105, 180, 0);
  }
}
.pulse-glow {
  animation: pulseGlow 2s ease infinite;
}

/* heart throb */
@keyframes heartThrob {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

/* typing cursor blink */
.blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* star twinkle */
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* mobile adjustments */
@media (max-width: 480px) {
  .warning-box {
    padding: 1.5rem 1.2rem;
  }
  .onboard-title {
    font-size: 1.3rem;
  }
}
