/* ============================================
   BIRTHDAY SURPRISE - KOREAN DRAMA STYLE
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --pink-light: #FFF0F5;
  --pink-mid: #FFB6C1;
  --pink-deep: #FF69B4;
  --pink-dark: #E74C6F;
  --gold: #FFD700;
  --gold-dark: #FFAA00;
  --cream: #FFF8F0;
  --text-dark: #4A3728;
  --text-soft: #8B7D6B;
  --purple-soft: #E8D5F5;
  --blue-soft: #D5E8F5;
  --white: #FFFFFF;

  --font-handwriting: 'Gowun Dodum', 'Noto Sans', cursive;
  --font-elegant: 'Gowun Batang', 'Noto Sans', serif;
  --font-playful: 'Jua', 'Gowun Dodum', sans-serif;
  --font-body: 'Noto Sans', 'Gowun Dodum', sans-serif;

  --font-title: clamp(2rem, 6vw, 4rem);
  --font-subtitle: clamp(1.2rem, 3.5vw, 2rem);
  --font-body-size: clamp(1rem, 2.5vw, 1.3rem);
  --font-small: clamp(0.85rem, 2vw, 1rem);
  --font-display: clamp(2.5rem, 8vw, 5rem);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background: #1a1a2e;
}

/* ---- Canvas Particles ---- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ---- Audio Button ---- */
.audio-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.audio-icon {
  width: 22px;
  height: 22px;
}

.audio-btn .audio-off { display: none; }
.audio-btn.muted .audio-on { display: none; }
.audio-btn.muted .audio-off { display: block; }

/* ---- Scene Base ---- */
.scene {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.scene.active {
  opacity: 1;
  visibility: visible;
}

.scene-content {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh; /* fallback */
  position: relative;
  z-index: 1;
}

/* Wishes section needs scroll space, not forced centering */
.wishes-content {
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* ============================================
   SECTION 0: INTRO
   ============================================ */
#intro {
  background: radial-gradient(ellipse at 50% 30%, #1e1e3a 0%, #0d0d1a 100%);
}

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

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
}

.intro-text {
  font-family: var(--font-handwriting);
  font-size: var(--font-subtitle);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.8;
  min-height: 3em;
  position: relative;
}

.intro-text.typing::after {
  content: '|';
  animation: blink-cursor 0.7s step-end infinite;
  color: var(--pink-mid);
  margin-left: 2px;
}

.tap-prompt {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.tap-circle {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 182, 193, 0.5);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
  position: relative;
}

.tap-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--pink-mid);
  border-radius: 50%;
}

.tap-label {
  font-family: var(--font-body);
  font-size: var(--font-small);
  color: rgba(255, 182, 193, 0.7);
  letter-spacing: 2px;
}

/* ============================================
   SECTION 1: ENVELOPE
   ============================================ */
#envelope {
  background: linear-gradient(135deg, #FFF0F5 0%, #FFE4F0 30%, #F5E6FF 70%, #E8F0FF 100%);
}

.envelope-subtitle {
  font-family: var(--font-handwriting);
  font-size: var(--font-subtitle);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.envelope-wrapper {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  perspective: 800px;
}

.envelope-svg {
  width: min(85vw, 300px);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
  transform-style: preserve-3d;
  transition: width 0.3s ease;
}

.envelope-flap-group {
  transform-origin: 50% 23%;
  transform-style: preserve-3d;
}

.envelope-hint {
  font-family: var(--font-handwriting);
  font-size: var(--font-small);
  color: var(--text-soft);
  animation: float 3s ease-in-out infinite;
}

/* Letter content */
.letter-content {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 240, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.letter-content.visible {
  opacity: 1;
  visibility: visible;
}

.letter-paper {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(231, 76, 111, 0.1);
  text-align: center;
  margin: auto 0;
  flex-shrink: 0;
}

.letter-header {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.letter-text {
  font-family: var(--font-elegant);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-dark);
  line-height: 2;
  text-align: left;
  min-height: 120px;
  white-space: pre-line;
}

.letter-text.typing::after {
  content: '|';
  animation: blink-cursor 0.7s step-end infinite;
  color: var(--pink-deep);
  margin-left: 2px;
}

.letter-footer {
  margin-top: 1.5rem;
  text-align: right;
}

.letter-signature {
  font-family: var(--font-handwriting);
  font-size: var(--font-body-size);
  color: var(--pink-dark);
  font-weight: 700;
}

.letter-content .btn-continue {
  margin-top: 1.5rem;
  opacity: 0;
}

/* ============================================
   SECTION 2: WISH CARDS
   ============================================ */
#wishes {
  background: linear-gradient(180deg, #FFF8F0 0%, #FFF0F5 50%, #F5E6FF 100%);
}

.wishes-title {
  font-family: var(--font-playful);
  font-size: var(--font-title);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  text-align: center;
}

.wishes-subtitle {
  font-family: var(--font-handwriting);
  font-size: var(--font-small);
  color: var(--text-soft);
  margin-bottom: 1rem;
  text-align: center;
}

.wishes-progress {
  margin-bottom: 1.25rem;
  text-align: center;
}

.wishes-count {
  font-family: var(--font-handwriting);
  font-size: var(--font-small);
  color: var(--pink-dark);
  background: rgba(255, 182, 193, 0.2);
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

/* ---- Card Grid ---- */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
}

/* ---- Individual Card ---- */
.wish-card {
  aspect-ratio: 1 / 1.1;
  perspective: 600px;
  cursor: pointer;
}

.wish-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
}

.wish-card.flipped .wish-card-inner {
  transform: rotateY(180deg);
}

/* Card faces shared */
.wish-card-front,
.wish-card-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
}

/* ---- Front face ---- */
.wish-card-front {
  background: linear-gradient(135deg, var(--pink-light), var(--purple-soft));
  border: 2px solid rgba(255, 182, 193, 0.4);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.12);
}

.wish-card-front .card-number {
  font-family: var(--font-playful);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--pink-dark);
  line-height: 1;
}

.wish-card-front .card-icon {
  font-size: 1.4rem;
  margin-top: 0.4rem;
}

.wish-card:not(.flipped):hover .wish-card-front {
  border-color: var(--pink-deep);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.25);
}

.wish-card:not(.flipped):active .wish-card-front {
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

/* ---- Back face ---- */
.wish-card-back {
  background: white;
  border: 2px solid var(--pink-mid);
  box-shadow: 0 4px 18px rgba(255, 105, 180, 0.15);
  transform: rotateY(180deg);
  text-align: center;
}

.wish-card-back .card-emoji {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.wish-card-back .card-wish-text {
  font-family: var(--font-handwriting);
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  color: var(--text-dark);
  line-height: 1.5;
  word-break: keep-all;
}

/* ---- Next button ---- */
.wishes-next-btn {
  margin-top: 1.25rem;
  opacity: 0;
  pointer-events: none;
}

.wishes-next-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   SECTION 3: POLAROID MEMORIES
   ============================================ */
#polaroid {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
}

.polaroid-content {
  justify-content: flex-start;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
}

.polaroid-title {
  font-family: var(--font-playful);
  font-size: var(--font-title);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.25rem;
  text-align: center;
}

.polaroid-subtitle {
  font-family: var(--font-handwriting);
  font-size: var(--font-small);
  color: rgba(255, 182, 193, 0.7);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---- Slider ---- */
.polaroid-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.polaroid-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ---- Polaroid Card ---- */
.polaroid-card {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.polaroid-frame {
  background: white;
  padding: 0.75rem 0.75rem 2.5rem 0.75rem;
  border-radius: 3px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.4s ease;
  max-width: 280px;
  width: 100%;
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f0e6ff 0%, #ffe6f0 50%, #e6f0ff 100%);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.polaroid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder when no image */
.polaroid-placeholder {
  font-size: 3rem;
  opacity: 0.5;
  user-select: none;
}

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: var(--text-dark);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.polaroid-date {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: 0.3rem;
  letter-spacing: 1px;
}

/* ---- Dots ---- */
.polaroid-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.polaroid-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.polaroid-dot.active {
  background: var(--pink-mid);
  transform: scale(1.3);
}

/* ---- Arrows ---- */
.polaroid-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  backdrop-filter: blur(5px);
}

.polaroid-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.polaroid-prev { left: 0.5rem; }
.polaroid-next { right: 0.5rem; }

/* ---- Next button ---- */
.polaroid-next-btn {
  margin-top: 1.5rem;
  opacity: 0;
  pointer-events: none;
}

.polaroid-next-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   SECTION 4: GIFT BOX
   ============================================ */
#giftbox {
  background: linear-gradient(180deg, #1a1a2e 0%, #2d1b3d 50%, #1a1a2e 100%);
}

.gift-subtitle {
  font-family: var(--font-handwriting);
  font-size: var(--font-subtitle);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.giftbox-wrapper {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.giftbox-svg {
  width: min(75vw, 260px);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(255, 105, 180, 0.2));
  transition: width 0.3s ease;
}

.gift-hint {
  font-family: var(--font-handwriting);
  font-size: var(--font-small);
  color: rgba(255, 182, 193, 0.8);
  animation: float 3s ease-in-out infinite;
}

/* Gift content */
.gift-content {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gift-content.visible {
  opacity: 1;
  visibility: visible;
}

.gift-message-card {
  background: linear-gradient(135deg, #FFF8F0, #FFF0F5);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.2);
  margin: auto 0;
  flex-shrink: 0;
}

.gift-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gift-text {
  font-family: var(--font-handwriting);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-dark);
  line-height: 2;
  min-height: 80px;
  white-space: pre-line;
}

.gift-text.typing::after {
  content: '|';
  animation: blink-cursor 0.7s step-end infinite;
  color: var(--pink-deep);
  margin-left: 2px;
}

.gift-content .btn-continue {
  margin-top: 1.5rem;
  opacity: 0;
}

/* ============================================
   SECTION 4: FINALE
   ============================================ */
#finale {
  background: linear-gradient(180deg, #FFF0F5 0%, #FFE4F0 30%, #FFD6E8 60%, #FFF0F5 100%);
}

.finale-title {
  font-family: var(--font-playful);
  font-size: var(--font-display);
  color: var(--pink-dark);
  text-align: center;
  text-shadow: 0 2px 10px rgba(231, 76, 111, 0.2);
  margin-bottom: 1.5rem;
}

.finale-message-wrapper {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.finale-text {
  font-family: var(--font-handwriting);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-dark);
  line-height: 2;
  min-height: 80px;
  white-space: pre-line;
}

.finale-text.typing::after {
  content: '|';
  animation: blink-cursor 0.7s step-end infinite;
  color: var(--pink-deep);
  margin-left: 2px;
}

.finale-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.btn-replay {
  margin-top: 2rem;
  background: transparent;
  border: 2px solid var(--pink-mid);
  color: var(--pink-dark);
  font-family: var(--font-body);
  font-size: var(--font-small);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.btn-replay:hover {
  background: var(--pink-mid);
  color: white;
}

/* ============================================
   SHARED COMPONENTS
   ============================================ */
.btn-continue {
  background: linear-gradient(135deg, var(--pink-mid), var(--pink-deep));
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.btn-continue:active {
  transform: translateY(0);
}

.section-subtitle {
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Small mobile (≤ 380px, iPhone SE) ---- */
@media (max-width: 380px) {
  .scene-content {
    padding: 1.5rem 1rem;
  }

  .wishes-grid {
    gap: 0.5rem;
  }

  .wish-card-back .card-wish-text {
    font-size: 0.75rem;
  }

  .letter-paper {
    padding: 1.5rem 1rem;
  }

  .gift-message-card {
    padding: 1.5rem 1rem;
  }
}

/* ---- Tablet (768px+) ---- */
@media (min-width: 768px) {
  .scene-content {
    max-width: 600px;
    padding: 3rem 2.5rem;
  }

  /* Envelope bigger */
  .envelope-svg {
    width: 360px;
  }

  /* Letter wider */
  .letter-paper {
    max-width: 500px;
    padding: 3rem 2.5rem;
  }

  .letter-text {
    font-size: 1.3rem;
  }

  /* Wish cards bigger grid */
  .wishes-grid {
    max-width: 440px;
    gap: 1rem;
  }

  .wish-card-front .card-number {
    font-size: 2.5rem;
  }

  .wish-card-front .card-icon {
    font-size: 1.8rem;
  }

  .wish-card-back .card-wish-text {
    font-size: 1.05rem;
  }

  .wish-card-back .card-emoji {
    font-size: 2rem;
  }

  /* Polaroid bigger */
  .polaroid-frame {
    max-width: 360px;
    padding: 1rem 1rem 3rem 1rem;
  }

  .polaroid-caption {
    font-size: 1.15rem;
  }

  .polaroid-arrow {
    display: flex;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }

  /* Gift box bigger */
  .giftbox-svg {
    width: 300px;
  }

  .gift-message-card {
    max-width: 460px;
    padding: 3rem 2.5rem;
  }

  .gift-text {
    font-size: 1.3rem;
  }

  /* Finale */
  .finale-message-wrapper {
    max-width: 500px;
  }

  .finale-text {
    font-size: 1.3rem;
  }

  /* Buttons */
  .btn-continue {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
}

/* ---- Desktop (1024px+) ---- */
@media (min-width: 1024px) {
  .scene-content {
    max-width: 700px;
    padding: 3rem;
  }

  /* Envelope large & centered */
  .envelope-svg {
    width: 400px;
  }

  .envelope-subtitle {
    font-size: 1.8rem;
  }

  /* Letter large */
  .letter-content {
    padding: 3rem;
  }

  .letter-paper {
    max-width: 560px;
    padding: 3.5rem 3rem;
  }

  .letter-text {
    font-size: 1.4rem;
    line-height: 2.2;
  }

  .letter-header {
    font-size: 2.5rem;
  }

  /* Wish cards: bigger grid with more space */
  .wishes-grid {
    max-width: 520px;
    gap: 1.1rem;
  }

  .wish-card-front .card-number {
    font-size: 2.8rem;
  }

  .wish-card-front .card-icon {
    font-size: 2rem;
    margin-top: 0.5rem;
  }

  .wish-card-back .card-wish-text {
    font-size: 1.1rem;
  }

  .wish-card-back .card-emoji {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }

  .wishes-title {
    font-size: 2.8rem;
  }

  /* Polaroid large */
  .polaroid-frame {
    max-width: 420px;
    padding: 1.25rem 1.25rem 3.5rem 1.25rem;
  }

  .polaroid-caption {
    font-size: 1.25rem;
    margin-top: 1rem;
  }

  .polaroid-date {
    font-size: 0.8rem;
  }

  .polaroid-prev { left: 1.5rem; }
  .polaroid-next { right: 1.5rem; }

  /* Gift box large */
  .giftbox-svg {
    width: 340px;
  }

  .gift-subtitle {
    font-size: 1.8rem;
  }

  .gift-content {
    padding: 3rem;
  }

  .gift-message-card {
    max-width: 520px;
    padding: 3.5rem 3rem;
  }

  .gift-text {
    font-size: 1.4rem;
  }

  .gift-emoji {
    font-size: 4rem;
  }

  /* Finale large */
  .finale-title {
    font-size: 4.5rem;
  }

  .finale-message-wrapper {
    max-width: 560px;
  }

  .finale-text {
    font-size: 1.4rem;
  }

  /* Intro */
  .intro-text {
    font-size: 1.8rem;
  }

  /* Hover effects (desktop only) */
  .wish-card:not(.flipped):hover .wish-card-front {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
  }

  .btn-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
  }

  .btn-replay:hover {
    transform: translateY(-2px);
  }
}

/* ---- Large Desktop (1440px+) ---- */
@media (min-width: 1440px) {
  .scene-content {
    max-width: 800px;
  }

  .envelope-svg {
    width: 440px;
  }

  .letter-paper {
    max-width: 620px;
  }

  .wishes-grid {
    max-width: 580px;
    gap: 1.25rem;
  }

  .polaroid-frame {
    max-width: 480px;
  }

  .giftbox-svg {
    width: 380px;
  }

  .gift-message-card {
    max-width: 580px;
  }

  .finale-title {
    font-size: 5rem;
  }

  .finale-message-wrapper {
    max-width: 620px;
  }
}

/* ---- Landscape mobile hint ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .scene-content::before {
    content: '세로 모드로 전환해주세요 📱';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
}
