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

:root {
  --pink: #ff6b9d;
  --gold: #ffd700;
  --red: #c0392b;
  --cream: #fff8f0;
  --dark: #2c1810;
  --purple: #8b5cf6;
  --sky: #87ceeb;
  --grass: #4ade80;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--cream);
  overflow-x: hidden;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">💖</text></svg>') 16 16, auto;
}

/* ==================== UNDER CONSTRUCTION ==================== */
.under-construction {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 30%, #4a2c6e 60%, #1a0a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.under-construction .start-stars { position: absolute; inset: 0; overflow: hidden; }

.uc-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.8rem, 2.5vw, 1.4rem);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 0 #b8860b;
  z-index: 2;
}

.uc-dots {
  display: flex;
  gap: 8px;
  margin-top: 25px;
  z-index: 2;
}

.uc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: ucDotPulse 1.4s ease-in-out infinite;
}

.uc-dot:nth-child(2) { animation-delay: 0.2s; }
.uc-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ucDotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

body.construction-mode > *:not(.under-construction) {
  display: none !important;
}

/* ==================== START SCREEN ==================== */
#start-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 30%, #4a2c6e 60%, #1a0a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s, transform 0.8s;
}

#start-screen.hidden {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.start-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.start-title {
  font-family: 'Press Start 2P', cursive;
  color: var(--gold);
  font-size: clamp(1rem, 3vw, 1.8rem);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 0 #b8860b;
  text-align: center;
  line-height: 2.2;
  z-index: 2;
  animation: titleFloat 3s ease-in-out infinite;
}

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

.start-subtitle {
  font-family: 'Press Start 2P', cursive;
  color: var(--pink);
  font-size: clamp(0.5rem, 1.5vw, 0.75rem);
  margin-top: 20px;
  z-index: 2;
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.start-characters {
  display: flex;
  gap: 30px;
  margin: 40px 0;
  z-index: 2;
}

.start-characters img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
  animation: charBounce 1.5s ease-in-out infinite;
}

.start-characters img:nth-child(2) {
  animation-delay: 0.3s;
}

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

.start-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  color: white;
  background: linear-gradient(180deg, var(--pink), #e0457b);
  border: none;
  padding: 18px 40px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 6px 0 #b8365f, 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.1s;
  animation: btnPulse 2s ease-in-out infinite;
  margin-top: 20px;
}

.start-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #b8365f, 0 6px 15px rgba(0,0,0,0.3);
}

.start-btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #b8365f;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 0 #b8365f, 0 8px 20px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 6px 0 #b8365f, 0 8px 30px rgba(255, 107, 157, 0.5); }
}

.hearts-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-heart {
  position: absolute;
  font-size: 20px;
  animation: floatUp 6s linear infinite;
  opacity: 0.6;
}

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

/* ==================== GAME HUD ==================== */
.game-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(44, 24, 16, 0.95), rgba(44, 24, 16, 0.8));
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gold);
  backdrop-filter: blur(10px);
  font-family: 'Press Start 2P', cursive;
  transform: translateY(-100%);
  transition: transform 0.5s;
}

.game-hud.visible { transform: translateY(0); }

.hud-left { display: flex; align-items: center; gap: 15px; }

.love-meter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.love-meter-label {
  color: var(--pink);
  font-size: 0.5rem;
}

.love-bar {
  width: 120px;
  height: 14px;
  background: #4a2c2c;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.love-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), #ff3366);
  border-radius: 5px;
  width: 0%;
  transition: width 1s ease;
}

.hud-center {
  color: var(--gold);
  font-size: clamp(0.4rem, 1vw, 0.6rem);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hud-right { display: flex; align-items: center; gap: 10px; }

.score-display {
  color: var(--gold);
  font-size: 0.5rem;
}

.nav-pills {
  display: flex;
  gap: 8px;
}

.nav-pill {
  color: #ccc;
  font-size: 0.4rem;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 12px;
  transition: all 0.3s;
}

.nav-pill:hover, .nav-pill.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(180deg, #87ceeb 0%, #b8e6ff 40%, #90EE90 60%, #4ade80 70%, #2d8f4e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.clouds {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  pointer-events: none;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 50px;
  opacity: 0.8;
}

.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud-1 {
  width: 200px;
  height: 50px;
  top: 10%;
  animation: cloudMove 30s linear infinite;
}
.cloud-1::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.cloud-1::after { width: 60px; height: 60px; top: -30px; right: 30px; }

.cloud-2 {
  width: 150px;
  height: 40px;
  top: 20%;
  animation: cloudMove 25s linear infinite;
  animation-delay: -10s;
}
.cloud-2::before { width: 60px; height: 60px; top: -30px; left: 20px; }
.cloud-2::after { width: 50px; height: 50px; top: -25px; right: 20px; }

.cloud-3 {
  width: 180px;
  height: 45px;
  top: 5%;
  animation: cloudMove 35s linear infinite;
  animation-delay: -20s;
}
.cloud-3::before { width: 70px; height: 70px; top: -35px; left: 25px; }
.cloud-3::after { width: 55px; height: 55px; top: -28px; right: 25px; }

@keyframes cloudMove {
  0% { left: -250px; }
  100% { left: 110%; }
}

.sun {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 0 0 120px rgba(255, 215, 0, 0.3);
  animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.6), 0 0 120px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), 0 0 160px rgba(255, 215, 0, 0.4); }
}

.hero-content {
  text-align: center;
  z-index: 10;
  position: relative;
}

.hero-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.4rem, 1vw, 0.55rem);
  color: white;
  background: var(--pink);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
  animation: badgeBounce 2s ease-in-out infinite;
}

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

.hero-names {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: var(--dark);
  text-shadow: 0 3px 0 rgba(0,0,0,0.1);
  margin-bottom: 10px;
  line-height: 1.8;
}

.hero-names .amp {
  color: var(--pink);
  display: block;
  font-size: 0.6em;
}

.hero-date {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.5rem, 1.2vw, 0.7rem);
  color: var(--red);
  margin-top: 10px;
}

.hero-characters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  position: relative;
}

.hero-char {
  width: clamp(100px, 18vw, 160px);
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
  transition: transform 0.3s;
  cursor: pointer;
}

.hero-char:hover {
  transform: scale(1.1) translateY(-10px);
}

.hero-char.groom {
  animation: groomIdle 3s ease-in-out infinite;
}

.hero-char.bride {
  animation: brideIdle 3s ease-in-out infinite 0.5s;
}

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

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

.heart-between {
  font-size: 30px;
  animation: heartPop 1.5s ease-in-out infinite;
  align-self: center;
}

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

.ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 30%, #16a34a 100%);
}

.grass-blades {
  position: absolute;
  bottom: 24%;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 5;
}

.flowers {
  position: absolute;
  bottom: 25%;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.flower {
  position: absolute;
  font-size: 20px;
  animation: flowerSway 3s ease-in-out infinite;
}

@keyframes flowerSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  animation: scrollBounce 2s ease-in-out infinite;
  text-align: center;
}

.scroll-hint .arrow {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

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

/* ==================== BONUS STAGE ==================== */
.bonus-stage {
  min-height: 350px;
  background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.bonus-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.bonus-label {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.55rem, 1.5vw, 0.8rem);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  text-align: center;
  line-height: 2;
}

.bonus-characters {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.bonus-characters img {
  width: 75px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
  animation: charBounce 1.5s ease-in-out infinite;
}

.bonus-characters img:last-child {
  animation-delay: 0.4s;
}

.bonus-heart-btn {
  font-size: 55px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.6));
  transition: transform 0.08s;
  animation: heartPop 1.5s ease-in-out infinite;
}

.bonus-heart-btn:active {
  transform: scale(0.8);
  animation: none;
}

.bonus-bar-wrap {
  width: 280px;
}

.bonus-bar-outer {
  width: 100%;
  height: 24px;
  background: #4a2c2c;
  border-radius: 12px;
  border: 3px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
  position: relative;
}

.bonus-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), #ff3366, var(--gold));
  border-radius: 9px;
  transition: width 0.15s ease;
}

.bonus-bar-label {
  text-align: center;
  margin-top: 6px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
}

.smash-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.5rem, 1.2vw, 0.7rem);
  color: white;
  background: linear-gradient(180deg, #ff6b9d, #e0457b);
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 0 #b8365f, 0 0 25px rgba(255, 107, 157, 0.3);
  transition: all 0.08s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.smash-btn:hover {
  box-shadow: 0 5px 0 #b8365f, 0 0 40px rgba(255, 107, 157, 0.5);
}

.smash-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #b8365f;
}

.bonus-msg {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.45rem, 1.1vw, 0.6rem);
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  text-align: center;
  min-height: 1.8em;
  opacity: 0;
  transition: opacity 0.3s;
}

.bonus-msg.show { opacity: 1; }

.bonus-burst {
  position: absolute;
  pointer-events: none;
  font-size: 22px;
  z-index: 20;
  animation: burstOut 0.7s ease-out forwards;
}

@keyframes burstOut {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(0.2); }
}

.bonus-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ==================== OUR STORY SECTION ==================== */
.story-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #1a0a2e, #2d1b4e);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.4rem, 1vw, 0.55rem);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--gold);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.section-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: white;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  line-height: 1.6;
}

.story-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--pink), var(--purple));
  border-radius: 2px;
  transform: translateX(-50%);
}

.story-level {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  position: relative;
}

.story-level.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-level:nth-child(odd) { flex-direction: row; }
.story-level:nth-child(even) { flex-direction: row-reverse; }

.story-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--dark);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.story-card {
  width: 42%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.2);
  border-color: var(--pink);
}

.story-level:nth-child(odd) .story-card { margin-right: auto; margin-left: 0; }
.story-level:nth-child(even) .story-card { margin-left: auto; margin-right: 0; }

.level-tag {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.45rem;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.story-card h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.55rem, 1.2vw, 0.7rem);
  color: var(--pink);
  margin-bottom: 10px;
  line-height: 1.6;
}

.story-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.story-card .card-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

/* ==================== LOVE THEATER ==================== */
.theater {
  padding: 80px 20px;
  background: linear-gradient(180deg, #fff0f5, #ffe4ec, #ffd6e0);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.theater .section-title { color: var(--dark); }
.theater .section-badge { color: var(--pink); border-color: var(--pink); background: rgba(255, 107, 157, 0.1); }

.theater-stage {
  max-width: 800px;
  margin: 0 auto;
  height: 400px;
  background: linear-gradient(180deg, #87ceeb 0%, #b8e6ff 50%, #90EE90 70%, #4ade80 100%);
  border-radius: 20px;
  border: 4px solid var(--dark);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stage-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, #4ade80, #22c55e);
  border-radius: 0 0 16px 16px;
}

.stage-char {
  position: absolute;
  bottom: 28%;
  width: 90px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
  transition: left 0.8s ease, transform 0.3s ease;
}

#stage-groom { left: 25%; }
#stage-bride { left: 60%; }

.stage-emote {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  font-size: 28px;
  animation: emoteFloat 1.5s ease-out forwards;
}

@keyframes emoteFloat {
  0% { opacity: 1; transform: translateY(0) scale(0.5); }
  50% { transform: translateY(-40px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-80px) scale(0.8); }
}

.theater-caption {
  text-align: center;
  margin-top: 25px;
  min-height: 50px;
}

.caption-text {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.45rem, 1.1vw, 0.65rem);
  color: var(--dark);
  background: rgba(255, 255, 255, 0.7);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid var(--pink);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}

.caption-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.stage-couple-img {
  position: absolute;
  bottom: 28%;
  width: 130px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

/* ==================== EVENTS SECTION ==================== */
.events-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #2d1b4e, #1a0a2e, #0f0520);
  position: relative;
}

.events-section .section-title { color: white; }

.quest-board {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.quest-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: default;
}

.quest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.05));
  opacity: 0;
  transition: opacity 0.4s;
}

.quest-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
}

.quest-card:hover::before { opacity: 1; }

.quest-icon {
  font-size: 50px;
  margin-bottom: 15px;
  display: block;
  animation: questIconBounce 3s ease-in-out infinite;
}

.quest-card:nth-child(2) .quest-icon { animation-delay: 0.5s; }
.quest-card:nth-child(3) .quest-icon { animation-delay: 1s; }

@keyframes questIconBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3deg); }
  75% { transform: translateY(-5px) rotate(3deg); }
}

.quest-tag {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.4rem;
  color: var(--pink);
  background: rgba(255, 107, 157, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.quest-card h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: var(--gold);
  margin-bottom: 8px;
  line-height: 1.5;
}

.quest-date {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: var(--pink);
  margin-bottom: 12px;
}

.quest-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.quest-reward {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,215,0,0.2);
  font-family: 'Press Start 2P', cursive;
  font-size: 0.35rem;
  color: var(--gold);
}

/* ==================== COUPLE SCENE ==================== */
.couple-scene {
  padding: 80px 20px;
  background: linear-gradient(180deg, #fff8f0, #fff0e6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.couple-image-wrapper {
  position: relative;
  display: inline-block;
  margin: 30px auto;
}

.couple-image-wrapper img {
  width: clamp(200px, 40vw, 350px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(255, 107, 157, 0.3));
  animation: coupleFloat 4s ease-in-out infinite;
}

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

.couple-sparkles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: 18px;
  animation: sparkleAnim 3s ease-in-out infinite;
}

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

.couple-quote {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.5rem, 1.2vw, 0.7rem);
  color: var(--pink);
  max-width: 600px;
  margin: 20px auto;
  line-height: 2;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  padding: 40px 20px;
  text-align: center;
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.footer-characters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-characters img {
  width: 60px;
  height: auto;
  animation: footerBounce 2s ease-in-out infinite;
}

.footer-characters img:nth-child(2) { animation-delay: 0.3s; }

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

.footer-text {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.5rem, 1.2vw, 0.65rem);
  color: var(--gold);
  line-height: 2;
}

.footer-subtext {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 10px;
}

.footer-hearts {
  margin-top: 15px;
  font-size: 20px;
  animation: heartPop 1.5s ease-in-out infinite;
}

/* ==================== PARTICLE CANVAS ==================== */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

/* ==================== CLICK HEART EFFECT ==================== */
.click-heart {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 20px;
  animation: clickHeartAnim 1s ease-out forwards;
}

@keyframes clickHeartAnim {
  0% { opacity: 1; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
  100% { opacity: 0; transform: scale(0.5) translateY(-80px) rotate(-15deg); }
}

/* ==================== THEATER CONTROLS ==================== */
.theater-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.theater-ctrl-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: var(--dark);
  background: white;
  border: 2px solid var(--pink);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 0 rgba(255, 107, 157, 0.3);
}

.theater-ctrl-btn:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(255, 107, 157, 0.3);
}

.theater-ctrl-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.theater-ctrl-btn.active {
  background: var(--pink);
  color: white;
}

/* ==================== QUEST ACCEPT BUTTONS ==================== */
.quest-accept-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.45rem;
  color: white;
  background: linear-gradient(180deg, var(--purple), #6d3fc7);
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 4px 0 #4c2a8a, 0 0 15px rgba(139, 92, 246, 0.2);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.quest-accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #4c2a8a, 0 0 25px rgba(139, 92, 246, 0.4);
}

.quest-accept-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #4c2a8a;
}

.quest-accept-btn.accepted {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: 0 4px 0 #15803d, 0 0 15px rgba(34, 197, 94, 0.3);
  cursor: default;
  animation: acceptPop 0.4s ease-out;
}

@keyframes acceptPop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.quest-confetti {
  position: absolute;
  pointer-events: none;
  font-size: 18px;
  animation: confettiFall 1s ease-out forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-80px) rotate(180deg) scale(0.3); }
}

/* ==================== BLESSING BUTTON ==================== */
.blessing-area {
  margin-top: 30px;
}

.blessing-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.45rem, 1vw, 0.6rem);
  color: white;
  background: linear-gradient(180deg, var(--pink), #e0457b);
  border: none;
  padding: 16px 30px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 0 #b8365f, 0 0 20px rgba(255, 107, 157, 0.2);
  transition: all 0.12s;
}

.blessing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #b8365f, 0 0 30px rgba(255, 107, 157, 0.4);
}

.blessing-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #b8365f;
}

.blessing-count {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.4rem;
  color: var(--pink);
  margin-top: 10px;
  opacity: 0.7;
}

.blessing-heart-shower {
  position: absolute;
  pointer-events: none;
  font-size: 24px;
  animation: showerUp 1.2s ease-out forwards;
}

@keyframes showerUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-150px) translateX(var(--sx, 0px)) scale(0.4); }
}

/* ==================== COUNTDOWN ==================== */
.countdown-section {
  padding: 60px 20px;
  background: linear-gradient(180deg, #0f0520, #1a0a2e);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.countdown-block {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 20px 25px;
  min-width: 100px;
  transition: all 0.3s;
}

.countdown-block:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.countdown-number {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  display: block;
}

.countdown-unit {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.4rem;
  color: var(--pink);
  margin-top: 8px;
  display: block;
}

.countdown-msg {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.4rem, 1vw, 0.55rem);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 25px;
  line-height: 2;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .story-timeline::before { left: 20px; }
  .story-level { flex-direction: column !important; padding-left: 50px; }
  .story-node { left: 20px; transform: none; }
  .story-card { width: 100%; }
  .game-hud { padding: 6px 10px; }
  .nav-pills { display: none; }
  .hud-center { display: none; }
  .love-bar { width: 80px; }
  .bonus-stage { min-height: 280px; padding: 30px 15px; }
  .bonus-characters img { width: 55px; }
  .bonus-bar-wrap { width: 220px; }
  .bonus-heart-btn { font-size: 40px; }
  .theater-stage { height: 300px; }
  .theater-controls { gap: 8px; }
  .theater-ctrl-btn { padding: 8px 12px; font-size: 0.45rem; }
  .stage-char { width: 70px; }
  .stage-couple-img { width: 100px; }
  .start-characters img { width: 80px; }
}

@media (max-width: 480px) {
  .hero-characters { gap: 5px; }
  .hero-char { width: 80px; }
  .quest-board { grid-template-columns: 1fr; }
}

/* ==================== ANIMATIONS ON STAGE ==================== */
@keyframes stageRunToCenter {
  0% { left: 25%; }
  100% { left: 42%; }
}

@keyframes stageRunToCenterBride {
  0% { left: 60%; }
  100% { left: 48%; }
}

@keyframes stageBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes stageShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

@keyframes stageSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stage-kiss-effect {
  position: absolute;
  z-index: 20;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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