:root {
  --bg-color: #FCFCFC;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-muted: #98989D;
  
  --accent-soft-pink: #FCE7F0;
  --accent-soft-purple: #F3E8FF;
  --accent-soft-peach: #FFF1E6;
  
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

body.finale-active {
  background-color: #FAFAFC;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: floatAmbient 16s infinite alternate ease-in-out;
}

.glow-top {
  width: 450px;
  height: 450px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--accent-soft-pink) 0%, rgba(252, 231, 240, 0) 70%);
}

.glow-bottom {
  width: 450px;
  height: 450px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-soft-purple) 0%, rgba(243, 232, 255, 0) 70%);
  animation-delay: -8s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
  100% { transform: translate(15px, -15px); }
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 32px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.progress-bar-container {
  width: 120px;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 20%;
  height: 100%;
  background-color: var(--text-primary);
  border-radius: 4px;
  transition: width 300ms ease;
}

.experience-container {
  width: 100%;
  max-width: 680px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 40px 24px;
}

.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  pointer-events: none;
}

.section.active {
  display: flex;
  pointer-events: auto;
}

.section-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.action-wrapper {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #000000;
}

.btn-large {
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 50px;
}

.story-wrapper {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.story-sentence {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.story-sentence.story-highlight {
  color: #7E22CE;
}

.story-sentence.hidden {
  display: none;
}

.story-sentence.visible {
  display: block;
}

.choices-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 24px;
}

.choice-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
}

.choice-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.choice-btn.selected {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.response-container {
  margin-top: 16px;
  min-height: 48px;
}

.response-container.hidden {
  display: none;
}

.response-container.visible {
  display: block;
}

.response-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

.opacity-0 {
  opacity: 0;
  pointer-events: none;
}

.wishes-wrapper {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.wish-sentence {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.8vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.wish-sentence.final-wish-sentence {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 800;
  color: #BE185D;
}

.wish-sentence.hidden {
  display: none;
}

.wish-sentence.visible {
  display: block;
}

.cake-container {
  margin-bottom: 24px;
}

.flame {
  animation: flameFlicker 1s infinite alternate ease-in-out;
  transform-origin: center bottom;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.15) rotate(3deg); }
}

.finale-post.hidden {
  display: none;
}

.finale-post.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finale-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.finale-subtitle {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
}

.eyes-element {
  position: fixed;
  bottom: 28px;
  right: 36px;
  z-index: 100;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  outline: none;
  transition: left 200ms ease, top 200ms ease, transform 200ms ease;
}

.secret-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.secret-modal.active {
  display: flex;
}

.secret-modal-content {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 36px 28px 32px;
  position: relative;
  text-align: center;
}

.secret-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.secret-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
}

.modal-step.hidden {
  display: none;
}

.modal-step.active {
  display: block;
}

.modal-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.secret-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.photo-holder {
  width: 100%;
  height: 270px;
  background: rgba(0, 0, 0, 0.03);
  border: 2px dashed rgba(0, 0, 0, 0.14);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.photo-img.hidden {
  display: none;
}

.photo-placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.photo-placeholder-text small {
  font-size: 0.78rem;
  opacity: 0.8;
}

.secret-text-box {
  background: var(--accent-soft-pink);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: center;
}

.secret-note-content {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #BE185D;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .app-header {
    padding: 24px 20px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .eyes-element {
    bottom: 20px;
    right: 20px;
  }

  .photo-holder {
    height: 220px;
  }
}
