/* ═══════════════════════════════════════════════════════════
   A Little Adventure — Romantic Website Styles
   ═══════════════════════════════════════════════════════════ */

:root {
  --cream: #fdf8f3;
  --paper: #f5ebe0;
  --ink: #2c1810;
  --ink-soft: #5c4a3d;
  --accent: #e8a598;
  --accent-dark: #d4897a;
  --gold: #c9a86c;
  --shadow: rgba(44, 24, 16, 0.08);
  --shadow-strong: rgba(44, 24, 16, 0.15);
}

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

/* Password Lock Screen */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #ffe4ec 0%, #ffd6e0 30%, #ffc8d4 60%, #ffb3c6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.lock-screen.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-content {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(255, 105, 135, 0.25);
  border: 2px solid rgba(255, 182, 193, 0.6);
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.lock-title {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  color: #c45c7a;
  margin-bottom: 0.3rem;
}

.lock-hint {
  font-size: 0.95rem;
  color: #a85a6e;
  margin-bottom: 1rem;
}

.lock-input {
  display: block;
  width: 220px;
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border: 2px solid #ffb3c6;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  background: white;
  color: var(--ink);
}

.lock-input::placeholder {
  color: #d4a5b0;
}

.lock-input:focus {
  outline: none;
  border-color: #e8a598;
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.4);
}

.lock-error {
  font-size: 0.9rem;
  color: #c45c7a;
  margin-bottom: 0.5rem;
}

.lock-error.hidden {
  display: none;
}

.lock-btn {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ffb3c6 0%, #e8a598 100%);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 105, 135, 0.3);
}

.lock-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 105, 135, 0.4);
}

.lock-input.shake {
  animation: lockShake 0.4s ease;
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.lock-hearts {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
  opacity: 0.5;
  letter-spacing: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  background: linear-gradient(165deg, #fdf8f3 0%, #f5ebe0 30%, #fce8e4 70%, #fdf8f3 100%);
  min-height: 100vh;
  color: var(--ink);
  overflow-x: hidden;
  background-attachment: fixed;
}

/* Floating hearts background — many hearts */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hearts-bg .heart {
  position: absolute;
  font-size: 0.9rem;
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
}

.hearts-bg .heart:nth-child(1) { left: 5%; top: 10%; animation-delay: 0s; font-size: 1rem; }
.hearts-bg .heart:nth-child(2) { left: 15%; top: 70%; animation-delay: 1s; font-size: 0.8rem; }
.hearts-bg .heart:nth-child(3) { left: 85%; top: 20%; animation-delay: 2s; font-size: 1.1rem; }
.hearts-bg .heart:nth-child(4) { left: 75%; top: 60%; animation-delay: 0.5s; font-size: 0.7rem; }
.hearts-bg .heart:nth-child(5) { left: 30%; top: 30%; animation-delay: 3s; font-size: 0.9rem; }
.hearts-bg .heart:nth-child(6) { left: 60%; top: 80%; animation-delay: 1.5s; font-size: 0.85rem; }
.hearts-bg .heart:nth-child(7) { left: 90%; top: 45%; animation-delay: 2.5s; font-size: 0.75rem; }
.hearts-bg .heart:nth-child(8) { left: 10%; top: 50%; animation-delay: 0.8s; font-size: 1rem; }
.hearts-bg .heart:nth-child(9) { left: 45%; top: 15%; animation-delay: 2s; font-size: 0.8rem; }
.hearts-bg .heart:nth-child(10) { left: 50%; top: 55%; animation-delay: 1.2s; font-size: 0.9rem; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.06; }
  50% { transform: translate(15px, -25px) scale(1.15); opacity: 0.18; }
}

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.section.locked {
  display: none;
}

.section.locked.unlocked {
  display: flex;
}

/* Paper sheet */
.paper-sheet {
  max-width: 560px;
  width: 100%;
  background: var(--cream);
  padding: 3rem;
  border-radius: 2px;
  box-shadow: 
    0 4px 20px var(--shadow),
    0 1px 3px var(--shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  border: 1px solid rgba(232, 165, 152, 0.2);
}

.paper-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.paper-sheet.wide {
  max-width: 680px;
}

.paper-sheet.dark {
  background: linear-gradient(180deg, #2a1a2e 0%, #1a0f1f 100%);
  color: #f5ebe0;
}

.paper-sheet.dark .section-title { color: #f5ebe0; }

/* Handwritten font */
.handwritten, .section-title.handwritten {
  font-family: "Caveat", cursive;
  font-weight: 600;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ink);
}

/* Opening letter */
.letter-content p {
  font-size: 1.35rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  opacity: 0;
}

.letter-content p.visible {
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

.her-name {
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: var(--accent-dark);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cursor / typing effect line */
.letter-content p.typing::after {
  content: "|";
  animation: blink 0.8s infinite;
}

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

/* Buttons */
.btn-romantic,
a.btn-romantic {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(232, 165, 152, 0.4);
}

.btn-romantic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 165, 152, 0.5);
}

.btn-romantic:active,
a.btn-romantic:active {
  transform: translateY(0);
}

a.btn-romantic {
  text-decoration: none;
  display: inline-block;
}

/* Scavenger hub */
.hub-sheet .hint-text {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-style: italic;
}

.scavenger-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.scavenger-star {
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 8px rgba(201, 168, 108, 0.5));
}

.scavenger-star:hover {
  transform: scale(1.3) rotate(15deg);
  filter: drop-shadow(0 0 16px rgba(201, 168, 108, 0.8));
}

.polaroid-scavenger {
  width: 80px;
  height: 100px;
  background: white;
  padding: 6px;
  box-shadow: 0 4px 15px var(--shadow);
  cursor: pointer;
  transition: transform 0.5s;
  position: relative;
}

.polaroid-scavenger:hover {
  transform: rotate(-5deg) scale(1.05);
}

.polaroid-front, .polaroid-back {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.sticky-note {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
  transform: rotate(-6deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 3px 10px var(--shadow);
  transition: transform 0.3s;
}

.sticky-note:hover {
  transform: rotate(0deg) scale(1.1);
}

.cassette {
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.cassette:hover {
  transform: scale(1.2);
}

.sealed-letter {
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.sealed-letter:hover {
  transform: scale(1.2);
}

.scavenger-mini {
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 0.3rem;
}

.scavenger-mini:hover {
  transform: scale(1.2);
}

.hub-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hub-footer a {
  color: var(--accent-dark);
  text-decoration: none;
  font-style: italic;
}

.hub-footer a:hover {
  text-decoration: underline;
}

.clue-text {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* Honest message */
.honest-content .honest-line {
  font-size: 1.25rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  opacity: 0;
}

.honest-content .honest-line.visible {
  opacity: 1;
  animation: fadeIn 0.6s ease;
}

.honest-line.emphasis {
  font-family: "Caveat", cursive;
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin: 1.5rem 0;
}

.honest-line.final-line {
  margin-top: 1.5rem;
}

.honest-ps {
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 1rem;
  font-size: 1rem;
}

/* What I Was Thinking */
.thinking-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.thinking-card {
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.thinking-card p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.thinking-thought {
  font-style: italic;
  color: var(--accent-dark) !important;
}

/* Things I Wanted To Say */
.wanted-to-say-list p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

/* Mini Puzzle */
.puzzle-hint {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.puzzle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.puzzle-pieces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.puzzle-piece {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Caveat", cursive;
  font-size: 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}

.puzzle-piece:hover {
  transform: scale(1.05);
}

.puzzle-piece.solved {
  opacity: 0.5;
  pointer-events: none;
}

.puzzle-reveal {
  text-align: center;
  padding: 2rem;
  font-size: 1.5rem;
}

/* Connect constellation (heart) */
.connect-constellation {
  position: relative;
  width: 200px;
  height: 180px;
  margin: 0 auto;
}

.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.constellation-svg line {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.5s;
}

.constellation-svg line.drawn {
  opacity: 1;
}

.connect-stars {
  position: absolute;
  inset: 0;
}

.connect-star {
  position: absolute;
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-star:hover,
.connect-star.lit {
  opacity: 1;
  transform: scale(1.3);
}

/* Random thought */
.random-thoughts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.random-note {
  background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
  padding: 1rem 1.5rem;
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  max-width: 200px;
}

.random-note.floating {
  animation: floatNote 4s ease-in-out infinite;
}

.random-note.delay-1 { animation-delay: 0.5s; }
.random-note.delay-2 { animation-delay: 1s; }
.random-note.delay-3 { animation-delay: 1.5s; }

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

/* Digital Postcard */
.postcard-container {
  perspective: 1000px;
}

.postcard-flip {
  width: 280px;
  margin: 0 auto;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  position: relative;
  min-height: 240px;
}

.postcard-flip.flipped {
  transform: rotateY(180deg);
}

.postcard-front,
.postcard-back {
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.postcard-back {
  position: absolute;
  inset: 0;
  background: var(--cream);
  padding: 2rem;
  transform: rotateY(180deg);
}

.postcard-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  display: block;
}

.postcard-front-text {
  padding: 1rem;
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  background: white;
}

.postcard-message {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.postcard-signature {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
}

.polaroid-hint {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Polaroid flip */
.polaroid-flip {
  width: 140px;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.polaroid-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.polaroid-flip.flipped .polaroid-flip-inner {
  transform: rotateY(180deg);
}

.polaroid-flip-front,
.polaroid-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 15px var(--shadow);
}

.polaroid-flip-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-flip-back p {
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

.constellation-connect-hint {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.final-text.emphasis {
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--accent-dark);
}

/* Moment cards */
.moment-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.moment-card {
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.moment-label {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.moment-card p {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* 100 things list */
.things-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 60vh;
  overflow-y: auto;
}

.things-list .thing-item {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0.3rem 0;
  opacity: 0;
  animation: thingAppear 0.6s ease forwards;
}

@keyframes thingAppear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reminder cards */
.reminder-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.reminder-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  text-align: center;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
}

/* Music player */
.music-player {
  text-align: center;
}

.song-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.audio-placeholder {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 2px dashed var(--accent);
}

/* Questions */
.questions-list p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

/* Adventure cards */
.adventure-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.adventure-card {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.2rem;
  text-align: center;
  border-radius: 8px;
  font-size: 1.1rem;
}

/* Constellation */
.constellation-hint {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  opacity: 0.9;
}

.constellation-canvas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.constellation-star {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
}

.constellation-star:hover,
.constellation-star.lit {
  opacity: 1;
  transform: scale(1.2);
}

/* Polaroid grid */
/* Gallery */
.gallery-sheet {
  max-width: 720px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  background: var(--paper);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.polaroid-card {
  width: 160px;
  background: white;
  padding: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}

.polaroid-card:nth-child(2) { transform: rotate(2deg); }
.polaroid-card:nth-child(3) { transform: rotate(-3deg); }

.polaroid-card:hover {
  transform: rotate(0) scale(1.05);
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 8px;
}

.polaroid-caption {
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  text-align: center;
}

/* Hidden star easter egg */
.hidden-star {
  position: fixed;
  font-size: 1rem;
  opacity: 0.3;
  cursor: pointer;
  z-index: 100;
  transition: opacity 0.3s;
}

.hidden-star:hover {
  opacity: 1;
}

/* Compliment machine */
.compliment-btn {
  display: block;
  margin: 0 auto 1.5rem;
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.compliment-btn:hover {
  transform: scale(1.05);
}

.compliment-display {
  text-align: center;
  font-size: 1.2rem;
  min-height: 2rem;
}

/* Movie section */
.movie-text {
  font-size: 1.3rem;
  text-align: center;
  font-style: italic;
  line-height: 1.8;
}

/* Jar */
.jar-container {
  text-align: center;
  padding: 2rem;
}

.jar-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.jar-note {
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s;
}

.jar-note:hover {
  transform: scale(1.2) rotate(5deg);
}

/* Time capsule */
.timecapsule-text {
  font-size: 1.2rem;
  text-align: center;
  font-style: italic;
}

/* Envelopes */
.envelope-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.envelope {
  width: 100px;
  height: 70px;
  background: linear-gradient(135deg, #e8d5c4 0%, #d4b896 100%);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s;
}

.envelope:hover {
  transform: scale(1.1);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35px;
  background: linear-gradient(135deg, #f0e6dc 0%, #e8d5c4 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.envelope-body {
  position: absolute;
  bottom: 0;
  left: 5px;
  right: 5px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--ink-soft);
}

.envelope.opened .envelope-flap {
  transform: rotateX(-120deg);
  transform-origin: top;
  transition: transform 0.5s;
}

.envelope-content {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  text-align: center;
}

.envelope-content.hidden {
  display: none;
}

/* Final page */
.final-sheet {
  text-align: center;
}

.final-text {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.final-text.soft {
  font-style: italic;
  color: var(--ink-soft);
}

.discovery-count {
  margin: 2rem 0 1rem;
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: var(--accent-dark);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
}

/* Discovery badge */
.discovery-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 50;
  opacity: 0.9;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* New sections */
.soft-message {
  font-size: 1.2rem;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 1rem;
}

.wonder-list p, .different-list p, .little-things-list p {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.energy-text, .song-vibe, .curiosity-text, .daydream-text, .glad-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.energy-text.emphasis, .curiosity-text.emphasis, .glad-text.emphasis {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: var(--accent-dark);
}

.cook-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cook-list span {
  background: rgba(255,255,255,0.8);
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  font-size: 1.1rem;
}

.adventure-map-container {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #f5ebe0 0%, #fce8e4 100%);
  border-radius: 8px;
}

.map-pin {
  position: absolute;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

.smiles-list p {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.butterfly-sheet {
  position: relative;
  min-height: 300px;
}

.butterflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.butterfly {
  position: absolute;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.butterfly-message {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1.2rem;
  margin-top: 8rem;
}

.smile-btn {
  display: block;
  margin: 0 auto 1rem;
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.smile-count-display {
  font-family: "Caveat", cursive;
  font-size: 3rem;
  text-align: center;
  color: var(--accent-dark);
}

.smile-caption {
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* Progress bar */
.progress-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232,165,152,0.3);
}

.progress-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.progress-bar-wrap {
  height: 8px;
  background: rgba(232,165,152,0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-count {
  font-size: 0.9rem;
  color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 600px) {
  .paper-sheet {
    padding: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .letter-content p {
    font-size: 1.2rem;
  }
}
