:root {
  --pink: #ff9bb3;
  --pink-light: #ffc0cb;
  --pink-dark: #ff6b8b;
  --gold: #ffdfba;
  --purple: #d9b8ff;
  --blue: #b8e1ff;
  --mint: #b8ffc5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fff9fb;
  font-family: 'Patrick Hand', cursive;
  overflow-x: hidden;
  min-height: 100vh;
  color: var(--pink-dark);
  perspective: 1000px;
}

/* 🎀 Kawaii Header */
.kawaii-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: var(--pink);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 10px rgba(255, 105, 140, 0.3);
}

.kawaii-header::before {
  content: "🌸 🍬 💖 🎀 🍭";
  font-size: 24px;
  letter-spacing: 10px;
  color: white;
}

/* ✨ Floating Background Elements */
.floating-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-item {
  position: absolute;
  font-size: 30px;
  animation: floatBack 15s linear infinite;
  opacity: 0.6;
  transform-style: preserve-3d;
}

@keyframes floatBack {
  0% {
    transform: translateZ(500px) translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateZ(-500px) translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* 🧁 Main Content */
.container {
  max-width: 900px;
  margin: 80px auto 0;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* 🍡 Title Box */
.title-box {
  background: white;
  border-radius: 30px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 0 var(--gold);
  border: 3px solid var(--pink);
  text-align: center;
  transform: rotate(-1deg);
  animation: wiggle 3s infinite alternate;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

h1 {
  font-family: 'Short Stack', cursive;
  font-size: 3rem;
  color: var(--pink-dark);
  text-shadow: 2px 2px 0 var(--gold);
  margin-bottom: 10px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 15px;
}

/* 🎵 Hidden Music Player (will appear on first interaction) */
.music-player {
  background: white;
  border-radius: 50px;
  padding: 15px 25px;
  margin: 20px auto;
  width: fit-content;
  border: 3px solid var(--purple);
  box-shadow: 0 3px 0 var(--blue);
  display: none; /* Hidden by default */
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.music-player button {
  background: var(--pink);
  border: none;
  border-radius: 50%;
  width: 90px;
  height: 40px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 var(--pink-dark);
  transition: all 0.2s;
}

.music-player button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--pink-dark);
}

.music-player button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--pink-dark);
}

/* 🍬 Kawaii Grid */
.kawaii-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

/* 🍡 Cute Card */
.kawaii-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--pink-dark);
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 5px 0 var(--pink-light);
  border: 3px solid white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.kawaii-card:hover {
  transform: translateY(-5px) rotate(2deg);
  box-shadow: 0 8px 0 var(--pink-light);
}

/* Different colors for each card */
.kawaii-card:nth-child(1) { border-color: var(--pink); }
.kawaii-card:nth-child(2) { border-color: var(--gold); }
.kawaii-card:nth-child(3) { border-color: var(--purple); }
.kawaii-card:nth-child(4) { border-color: var(--blue); }
.kawaii-card:nth-child(5) { border-color: var(--mint); }
.kawaii-card:nth-child(5) { border-color: var(--blue); }

/* 🍭 Footer */
.kawaii-footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  font-size: 1.2rem;
  color: var(--pink-dark);
}

/* 🎀 Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .kawaii-grid {
    grid-template-columns: 1fr;
  }
}
.next-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: bold;
  color: #fff0f5;
  background: linear-gradient(135deg, #ff66b3, #cc0099);
  border: none;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 0 12px #ff80bf, 0 0 24px #ff66b3;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.next-btn:hover {
  background: linear-gradient(135deg, #cc0099, #ff66b3);
  box-shadow: 0 0 20px #ff99cc, 0 0 40px #ff66b3;
  transform: scale(1.05);
}

.next-btn::after {
  content: '💖';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.next-btn:hover::after {
  opacity: 1;
}
