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

:root {
  --bg1: #fff0f8;
  --bg2: #ffe8f4;
  --bg3: #ffdff0;
  --card: rgba(255, 244, 250, 0.78);
  --card-strong: rgba(255, 245, 250, 0.92);
  --text: #5a3d4d;
  --muted: #7f6172;
  --accent: #ff6faf;
  --accent-2: #ffb3d8;
  --accent-3: #ffcce5;
  --border: rgba(255, 235, 245, 0.95);
  --shadow: 0 20px 50px rgba(231, 128, 178, 0.18);
  --shadow-soft: 0 12px 30px rgba(231, 128, 178, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 190, 225, 0.8), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(255, 205, 232, 0.7), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 214, 238, 0.62), transparent 26%),
    linear-gradient(180deg, var(--bg1), var(--bg2) 48%, var(--bg3));
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.45) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hidden {
  display: none;
}

.show {
  display: block;
  animation: fadeSite 0.9s ease;
}

.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.78), rgba(255, 232, 244, 0.96)),
    linear-gradient(180deg, #fff2fa, #ffeef8);
  z-index: 99999;
  overflow: hidden;
}

.loading-screen::before,
.loading-screen::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.58;
  animation: pulseBlob 5s ease-in-out infinite;
}

.loading-screen::before {
  background: rgba(255, 179, 216, 0.78);
  top: -80px;
  left: -40px;
}

.loading-screen::after {
  background: rgba(255, 201, 228, 0.72);
  bottom: -90px;
  right: -50px;
  animation-delay: 1.2s;
}

.loading-card {
  width: min(560px, 100%);
  text-align: center;
  padding: 46px 30px;
  border-radius: 36px;
  background: rgba(255, 248, 252, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 240, 247, 0.98);
  box-shadow: 0 28px 60px rgba(231, 128, 178, 0.16);
  position: relative;
  z-index: 2;
  animation: cardFloat 3s ease-in-out infinite;
}

.sparkles {
  font-size: 1.3rem;
  margin-bottom: 14px;
  letter-spacing: 4px;
}

.loading-top {
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-family: "Quicksand", sans-serif;
}

.loading-card h1 {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02;
  margin: 14px 0 12px;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 111, 175, 0.18);
}

.loading-text {
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.8;
}

.open-btn,
.btn,
.mini-btn,
.player-btn,
.surprise-btn,
.wish-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  font-family: "Quicksand", sans-serif;
}

.open-btn:hover,
.btn:hover,
.mini-btn:hover,
.player-btn:hover,
.surprise-btn:hover,
.wish-btn:hover,
.gift-box:hover,
.cake:hover {
  transform: translateY(-3px) scale(1.02);
}

.open-btn {
  margin-top: 24px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6faf, #ff9fcb, #ffc2df);
  color: white;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(255, 111, 175, 0.28);
}

.fade-out {
  animation: fadeAway 0.9s ease forwards;
}

.floating-hearts span {
  position: fixed;
  bottom: -40px;
  font-size: 20px;
  opacity: 0.24;
  animation: floatUp linear infinite;
  pointer-events: none;
  z-index: 0;
}

.floating-hearts span:nth-child(1) { left: 8%; animation-duration: 10s; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { left: 18%; animation-duration: 12s; animation-delay: 2s; }
.floating-hearts span:nth-child(3) { left: 30%; animation-duration: 11s; animation-delay: 5s; }
.floating-hearts span:nth-child(4) { left: 47%; animation-duration: 14s; animation-delay: 1s; }
.floating-hearts span:nth-child(5) { left: 62%; animation-duration: 10s; animation-delay: 4s; }
.floating-hearts span:nth-child(6) { left: 75%; animation-duration: 13s; animation-delay: 3s; }
.floating-hearts span:nth-child(7) { left: 88%; animation-duration: 12s; animation-delay: 6s; }

.balloons span {
  position: fixed;
  bottom: -60px;
  font-size: 2rem;
  pointer-events: none;
  z-index: 0;
  animation: balloonFloat linear infinite;
  opacity: 0.78;
}

.balloons span:nth-child(1) { left: 7%; animation-duration: 14s; }
.balloons span:nth-child(2) { left: 24%; animation-duration: 17s; animation-delay: 2s; }
.balloons span:nth-child(3) { left: 50%; animation-duration: 16s; animation-delay: 1s; }
.balloons span:nth-child(4) { left: 72%; animation-duration: 15s; animation-delay: 3s; }
.balloons span:nth-child(5) { left: 90%; animation-duration: 18s; animation-delay: 4s; }

.cookie-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.cookie-drop {
  position: fixed;
  top: -40px;
  font-size: 1.8rem;
  animation: cookieFall linear forwards;
  pointer-events: none;
}

.container {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

section {
  padding: 34px 0 74px;
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  inset: 12px 0;
  border-radius: 38px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.58;
}

main section:nth-of-type(1)::before {
  background: linear-gradient(135deg, rgba(255, 225, 240, 0.5), rgba(255,255,255,0.04));
}

main section:nth-of-type(2)::before {
  background: linear-gradient(135deg, rgba(255, 232, 244, 0.45), rgba(255,255,255,0.04));
}

main section:nth-of-type(3)::before {
  background: linear-gradient(135deg, rgba(245, 226, 255, 0.42), rgba(255,255,255,0.04));
}

main section:nth-of-type(4)::before {
  background: linear-gradient(135deg, rgba(255, 220, 238, 0.46), rgba(255,255,255,0.04));
}

main section:nth-of-type(5)::before {
  background: linear-gradient(135deg, rgba(255, 229, 243, 0.44), rgba(255,255,255,0.04));
}

main section:nth-of-type(6)::before {
  background: linear-gradient(135deg, rgba(255, 218, 239, 0.42), rgba(255,255,255,0.04));
}

main section:nth-of-type(7)::before {
  background: linear-gradient(135deg, rgba(255, 231, 245, 0.44), rgba(255,255,255,0.04));
}

main section:nth-of-type(8)::before {
  background: linear-gradient(135deg, rgba(255, 224, 240, 0.42), rgba(255,255,255,0.04));
}

.hero,
.hero-box,
.message-box,
.gallery-wrap,
.footer-box,
.counter-box,
.gift-box-wrap,
.final-scene-box,
.cake-wrap {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

.hero-box,
.message-box,
.gallery-wrap,
.footer-box,
.counter-box,
.gift-box-wrap,
.final-scene-box,
.cake-wrap {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 36px 28px;
}

.hero-box {
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-box::before,
.hero-box::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.58;
}

.hero-box::before {
  width: 180px;
  height: 180px;
  background: rgba(255, 184, 220, 0.62);
  top: -50px;
  left: -30px;
}

.hero-box::after {
  width: 200px;
  height: 200px;
  background: rgba(255, 208, 233, 0.7);
  bottom: -60px;
  right: -35px;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
  font-family: "Quicksand", sans-serif;
}

.hero-box h1,
.footer-box h2,
.message-box h2,
.gallery-wrap h2,
.counter-box h2,
.gift-box-wrap h2,
.cake-wrap h2 {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.04;
}

p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--muted);
}

.name {
  color: var(--accent);
  text-shadow: 0 4px 18px rgba(255, 111, 175, 0.24);
}

.hero-sub {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.16rem;
  min-height: 70px;
}

.typing-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 0.9s infinite;
}

.buttons {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6faf, #ff9fcb, #ffc2df);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.97);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.98);
}

.hero-mini {
  margin-top: 22px;
  font-size: 1rem;
  color: var(--text);
}

.message-box p + p {
  margin-top: 14px;
}

.section-title {
  text-align: center;
  margin-bottom: 22px;
  position: relative;
}

.section-title::before {
  content: "✨  💖  ✨";
  display: block;
  font-size: 1rem;
  letter-spacing: 8px;
  margin-bottom: 10px;
  opacity: 0.92;
  animation: titleSparkle 2.2s ease-in-out infinite;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: 160px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 192, 223, 0.45), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.section-title p {
  max-width: 650px;
  margin: 0 auto;
}

.music-box {
  margin-top: 24px;
  text-align: left;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255, 242, 248, 0.96));
  border: 1px solid rgba(255,255,255,0.98);
  box-shadow: var(--shadow-soft);
}

.music-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.music-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff9fcb, #ffc2df);
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(255, 111, 175, 0.18);
  animation: pulseSoft 2.2s ease-in-out infinite;
}

.music-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-label strong {
  font-size: 1.05rem;
  color: var(--text);
}

.music-label span {
  font-size: 0.92rem;
  color: var(--muted);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.volume-label {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: "Quicksand", sans-serif;
  color: var(--text);
  white-space: nowrap;
}

.volume-slider {
  width: 120px;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff8fbe 0%,
    #ff8fbe var(--volume, 70%),
    #ffe2ee var(--volume, 70%),
    #ffe2ee 100%
  );
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff6faf;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(255, 111, 175, 0.24);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff6faf;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(255, 111, 175, 0.24);
}

audio {
  display: none;
}

.custom-player {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,0.97);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.98), 0 12px 24px rgba(0,0,0,0.03);
}

.player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-btn,
.player-btn,
.surprise-btn,
.wish-btn {
  border-radius: 999px;
  padding: 12px 18px;
}

.player-btn,
.wish-btn {
  background: linear-gradient(135deg, #ff6faf, #ff9fcb, #ffc2df);
  color: white;
  box-shadow: 0 12px 24px rgba(255, 111, 175, 0.22);
}

.mini-btn {
  background: rgba(255,255,255,0.99);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.player-status {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
}

.visualizer {
  display: flex;
  gap: 4px;
  align-items: end;
  height: 24px;
}

.visualizer span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6faf, #ffb3d8);
  animation: visualizerBounce 1s infinite ease-in-out;
}

.visualizer span:nth-child(1) { height: 12px; animation-delay: 0s; }
.visualizer span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.visualizer span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.visualizer span:nth-child(4) { height: 22px; animation-delay: 0.3s; }
.visualizer span:nth-child(5) { height: 14px; animation-delay: 0.4s; }

.song-progress-wrap {
  display: grid;
  gap: 10px;
}

.song-progress {
  width: 100%;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff8fbe 0%,
    #ff8fbe var(--progress, 0%),
    #ffe2ee var(--progress, 0%),
    #ffe2ee 100%
  );
  cursor: pointer;
}

.song-progress::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff6faf;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(255, 111, 175, 0.28);
}

.song-progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff6faf;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(255, 111, 175, 0.28);
}

.song-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.song-time {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.song-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.banner-container {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 18px;
}

.banner-img {
  width: 100%;
  max-width: 900px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(231, 128, 178, 0.16);
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: bannerFloat 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.banner-img:hover {
  transform: scale(1.02);
  filter: saturate(1.04) brightness(1.01);
}

.banner-container::before,
.banner-container::after {
  position: absolute;
  font-size: 2rem;
  z-index: 3;
  animation: littleHeartFloat 2.8s ease-in-out infinite;
  pointer-events: none;
}

.banner-container::before {
  content: "💖";
  top: -8px;
  left: 24px;
}

.banner-container::after {
  content: "💕";
  top: 12px;
  right: 24px;
  animation-delay: 1.2s;
}

.banner-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.banner-hearts span {
  position: absolute;
  font-size: 1.4rem;
  animation: littleHeartFloat 3s ease-in-out infinite;
}

.banner-hearts span:nth-child(1) { top: 18%; left: 8%; animation-delay: 0.2s; }
.banner-hearts span:nth-child(2) { top: 65%; left: 12%; animation-delay: 1s; }
.banner-hearts span:nth-child(3) { top: 22%; right: 10%; animation-delay: 1.6s; }
.banner-hearts span:nth-child(4) { bottom: 10%; right: 14%; animation-delay: 0.7s; }

.banner-secret {
  position: absolute;
  right: 50%;
  bottom: 24px;
  transform: translateX(50%);
  background: rgba(255,255,255,0.97);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #ff6faf;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 4;
  box-shadow: var(--shadow-soft);
  font-family: "Quicksand", sans-serif;
}

.banner-container:hover .banner-secret {
  opacity: 1;
  transform: translateX(50%) translateY(-8px);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.counter-stat {
  background: rgba(255,255,255,0.9);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.03);
}

.counter-label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.counter-stat strong {
  font-size: 1.6rem;
  color: #ff6faf;
  font-family: "Quicksand", sans-serif;
}

.wish-btn {
  display: block;
  margin: 0 auto;
}

.cake-wrap {
  text-align: center;
}

.cake-scene {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake {
  position: relative;
  width: 220px;
  height: 240px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.cake-candles {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  z-index: 3;
}

.candle {
  position: relative;
  width: 14px;
  height: 52px;
  background: linear-gradient(180deg, #fff7fb, #ffd7ea);
  border-radius: 999px;
  box-shadow: inset 0 -4px 0 rgba(255, 170, 205, 0.35);
}

.flame {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%) scale(0);
  width: 16px;
  height: 20px;
  border-radius: 50% 50% 50% 50%;
  background: radial-gradient(circle at 50% 60%, #fff7b0 0%, #ffd86b 45%, #ff9b57 100%);
  box-shadow: 0 0 14px rgba(255, 203, 88, 0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cake.lit .flame {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  animation: flameFlicker 1s ease-in-out infinite;
}

.cake-top {
  position: absolute;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  width: 150px;
  height: 42px;
  background: linear-gradient(180deg, #ffd3e8, #ffb8d9);
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 6px 0 rgba(255, 154, 190, 0.35);
}

.cake-middle {
  position: absolute;
  left: 50%;
  top: 104px;
  transform: translateX(-50%);
  width: 180px;
  height: 54px;
  background: linear-gradient(180deg, #fff3f8, #ffddea);
  border-radius: 16px;
  box-shadow: 0 8px 0 rgba(255, 176, 208, 0.4);
}

.cake-bottom {
  position: absolute;
  left: 50%;
  top: 154px;
  transform: translateX(-50%);
  width: 210px;
  height: 64px;
  background: linear-gradient(180deg, #ffb0d4, #ff8fc4);
  border-radius: 18px;
  box-shadow: 0 10px 0 rgba(255, 136, 191, 0.28);
}

.cake-plate {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 240px;
  height: 20px;
  background: linear-gradient(180deg, #ffffff, #ffeef7);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.cake-message {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-weight: 800;
  font-family: "Quicksand", sans-serif;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.gift-box-wrap {
  text-align: center;
}

.gift-box {
  position: relative;
  width: 150px;
  height: 120px;
  margin: 0 auto;
  border: 0;
  background: linear-gradient(180deg, #ff89be, #ff6faf);
  border-radius: 20px;
  box-shadow: 0 18px 35px rgba(255, 111, 175, 0.18);
}

.gift-lid {
  position: absolute;
  width: 170px;
  height: 34px;
  left: -10px;
  top: -18px;
  background: linear-gradient(180deg, #ffb3d8, #ff96c7);
  border-radius: 18px;
  transition: transform 0.5s ease;
}

.gift-ribbon-vertical {
  position: absolute;
  width: 20px;
  height: 120px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: #fff1f8;
}

.gift-ribbon-horizontal {
  position: absolute;
  width: 150px;
  height: 18px;
  left: 0;
  top: 46px;
  background: #fff1f8;
}

.gift-box.open .gift-lid {
  transform: rotate(-18deg) translate(-16px, -24px);
}

.gift-message {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.88);
  font-weight: 700;
  color: #7a5668;
}

.hidden-gift {
  display: none;
}

.show-gift {
  display: block;
  animation: revealUp 0.6s ease forwards;
}

.footer-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 196, 228, 0.96), rgba(255, 223, 240, 0.96));
}

.footer-box p {
  color: #6d5160;
  max-width: 720px;
  margin: 0 auto;
}

.big-emoji {
  font-size: 2.3rem;
  margin-top: 18px;
  animation: bounce 2s infinite;
}

.sweet-note {
  margin-top: 18px;
  font-weight: 800;
  color: #7a5668;
  font-family: "Quicksand", sans-serif;
}

.surprise-btn {
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6faf, #ff9fcb, #ffc2df);
  color: white;
  box-shadow: 0 14px 32px rgba(255, 111, 175, 0.22);
  animation: surpriseBounce 2.6s ease-in-out infinite;
}

.surprise-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2.8s linear infinite;
}

.surprise-message {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  color: #7a5668;
  font-weight: 700;
  line-height: 1.8;
}

.hidden-surprise {
  display: none;
}

.show-surprise {
  display: block;
  animation: revealUp 0.7s ease forwards;
}

.final-scene-box {
  text-align: center;
}

.final-glow-text {
  font-family: "Quicksand", sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #ff6faf;
  text-shadow: 0 0 12px rgba(255, 164, 208, 0.72), 0 0 28px rgba(255, 203, 231, 0.56);
  animation: glowPulse 2.2s ease-in-out infinite;
}

.surprise-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 183, 221, 0.28);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100000;
}

.hidden-overlay {
  display: none;
}

.show-overlay {
  display: grid;
  animation: overlayFade 0.35s ease;
}

.surprise-popup {
  width: min(520px, 100%);
  padding: 34px 26px;
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255, 241, 248, 0.99));
  border: 1px solid rgba(255, 223, 239, 1);
  box-shadow: 0 26px 60px rgba(231, 128, 178, 0.2);
  position: relative;
  animation: popupIn 0.55s ease;
}

.surprise-popup h2 {
  font-family: "Quicksand", sans-serif;
  color: #ff6faf;
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.surprise-popup p {
  color: #7f6270;
  margin-top: 10px;
}

.popup-stars {
  font-size: 1.3rem;
  letter-spacing: 6px;
  margin-bottom: 10px;
  animation: popupSparkle 1.8s ease-in-out infinite;
}

.close-surprise {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.97);
  color: #ff6faf;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.close-surprise:hover {
  transform: scale(1.08);
}

.custom-cursor,
.custom-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='24'%3E%F0%9F%92%96%3C/text%3E%3C/svg%3E") 8 8, auto;
}

.cursor-sparkle,
.click-heart,
.firework-burst,
.confetti {
  pointer-events: none;
}

.cursor-sparkle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #ff8ebf;
  border-radius: 50%;
  animation: sparkleFade 0.7s linear forwards;
  z-index: 99999;
  box-shadow: 0 0 12px rgba(255, 111, 175, 0.42);
}

.click-heart {
  position: fixed;
  font-size: 1.1rem;
  animation: heartBurst 0.8s ease-out forwards;
  z-index: 99999;
}

.firework-burst {
  position: fixed;
  font-size: 1.6rem;
  animation: fireworkPop 0.7s ease-out forwards;
  z-index: 99999;
}

.confetti {
  position: fixed;
  width: 10px;
  height: 16px;
  top: -20px;
  opacity: 0.9;
  z-index: 9999;
  animation: fall linear forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(10px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.kawaii-mode {
  background:
    radial-gradient(circle at top left, rgba(255, 190, 225, 0.98), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 205, 232, 0.94), transparent 34%),
    radial-gradient(circle at bottom center, rgba(255, 214, 238, 0.9), transparent 28%),
    linear-gradient(180deg, #fff0f8, #ffe8f4 45%, #ffdff0);
  animation: kawaiiFade 0.8s ease;
}

.kawaii-mode .hero-box,
.kawaii-mode .message-box,
.kawaii-mode .gallery-wrap,
.kawaii-mode .footer-box,
.kawaii-mode .music-box,
.kawaii-mode .custom-player,
.kawaii-mode .counter-box,
.kawaii-mode .gift-box-wrap,
.kawaii-mode .final-scene-box,
.kawaii-mode .cake-wrap {
  background: rgba(255, 245, 251, 0.93);
  box-shadow: 0 20px 45px rgba(255, 111, 175, 0.16);
  border-color: rgba(255, 224, 238, 0.98);
  transition: all 0.5s ease;
}

.kawaii-mode .name,
.kawaii-mode h1,
.kawaii-mode h2 {
  color: #ff6faf;
}

.kawaii-mode .tag,
.kawaii-mode .btn-secondary,
.kawaii-mode .mini-btn {
  background: rgba(255, 255, 255, 0.98);
}

.kawaii-mode .btn-primary,
.kawaii-mode .player-btn,
.kawaii-mode .surprise-btn,
.kawaii-mode .open-btn,
.kawaii-mode .wish-btn {
  background: linear-gradient(135deg, #ff6faf, #ff9fcb, #ffc2df);
  box-shadow: 0 14px 30px rgba(255, 111, 175, 0.24);
}

.kawaii-mode .banner-img {
  filter: saturate(1.1) brightness(1.03);
  box-shadow: 0 22px 50px rgba(255, 111, 175, 0.2);
}

.kawaii-mode .floating-hearts span {
  opacity: 0.4;
}

@keyframes titleSparkle {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes balloonFloat {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.85; }
  100% { transform: translateY(-120vh); opacity: 0; }
}

@keyframes cookieFall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.95;
  }
}

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

@keyframes littleHeartFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.08); }
}

@keyframes pulseSoft {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(255, 111, 175, 0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 14px 28px rgba(255, 111, 175, 0.26);
  }
}

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

@keyframes shimmer {
  0% { left: -120%; }
  100% { left: 150%; }
}

@keyframes visualizerBounce {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.15); }
}

@keyframes flameFlicker {
  0%, 100% {
    transform: translateX(-50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) scale(1.08) rotate(3deg);
  }
}

@keyframes fadeAway {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.04); }
}

@keyframes fadeSite {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseBlob {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.08) translateY(10px); }
}

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

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  10% { opacity: 0.25; }
  100% { transform: translateY(-120vh) scale(1.2); opacity: 0; }
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 1;
  }
}

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

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kawaiiFade {
  from {
    filter: saturate(0.92) brightness(0.98);
    opacity: 0.92;
  }
  to {
    filter: saturate(1.08) brightness(1.02);
    opacity: 1;
  }
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popupSparkle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-4px) scale(1.05); opacity: 1; }
}

@keyframes sparkleFade {
  to {
    transform: translateY(-12px) scale(0.3);
    opacity: 0;
  }
}

@keyframes heartBurst {
  to {
    transform: translate(var(--x), var(--y)) scale(0.5);
    opacity: 0;
  }
}

@keyframes fireworkPop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: translate(var(--fx), var(--fy)) scale(1.2);
    opacity: 0;
  }
}

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

@media (max-width: 700px) {
  .counter-grid {
    grid-template-columns: 1fr;
  }

  .loading-card,
  .hero-box,
  .message-box,
  .gallery-wrap,
  .footer-box,
  .counter-box,
  .gift-box-wrap,
  .final-scene-box,
  .cake-wrap,
  .surprise-popup {
    padding: 28px 18px;
    border-radius: 28px;
  }

  p {
    font-size: 1rem;
  }

  .music-box {
    text-align: center;
  }

  .music-header,
  .player-top,
  .song-time-row,
  .player-left {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .music-title {
    justify-content: center;
  }

  .volume-wrap {
    width: 100%;
    justify-content: center;
  }

  .volume-slider {
    width: 100%;
    max-width: 180px;
  }

  .cake {
    transform: scale(0.92);
  }

  .open-btn,
  .mini-btn,
  .player-btn,
  .surprise-btn,
  .wish-btn {
    width: 100%;
  }
}