:root {
  --bg: #fff7fb;
  --paper: #fffdf8;
  --ink: #6b4f5f;
  --accent: #ff8fb1;
  --accent-2: #ffcf7d;
  --accent-3: #9ed8d3;
  --shadow: rgba(107, 79, 95, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7fb 0%, #ffeef8 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 143, 177, 0.12) 1px, transparent 1px), radial-gradient(rgba(158, 216, 211, 0.15) 1px, transparent 1px);
  background-size: 22px 22px, 30px 30px;
  background-position: 0 0, 12px 12px;
  opacity: 0.45;
  pointer-events: none;
}

.background-paper {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.3), rgba(255,255,255,0.3) 2px, transparent 2px, transparent 24px), radial-gradient(circle at top left, rgba(255, 207, 125, 0.2), transparent 40%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.page {
  display: none;
  width: min(100%, 900px);
  animation: fadeIn 0.7s ease both;
}

.page.active {
  display: block;
}

.page-card {
  background: var(--paper);
  border: 2px solid rgba(107, 79, 95, 0.25);
  border-radius: 24px;
  box-shadow: 0 10px 30px var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.page-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(107, 79, 95, 0.2);
  border-radius: 18px;
  pointer-events: none;
}

.scrapbook-badge,
.top-decoration,
.flower-cluster {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lock-card,
.date-invite-card,
.album-card,
.dreams-card,
.date-card,
.food-card,
.outfit-card,
.question-card {
  text-align: center;
}

.lock-icon {
  font-size: 3.5rem;
  margin: 8px 0 4px;
  animation: bob 2.2s ease-in-out infinite;
}

h1, h2 {
  font-family: 'Comic Sans MS', 'Bradley Hand', 'Marker Felt', cursive;
  margin: 0 0 10px;
  color: #8f4d6d;
}

.page-copy {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.6;
}

.password-box input {
  width: min(100%, 280px);
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid #f2c8d7;
  background: #fff;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.35rem;
  outline: none;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(58px, 78px));
  gap: 10px;
  justify-content: center;
  margin: 14px 0 8px;
}

.key, .choice-button, .secondary-button, .primary-button, .nav-arrow, .music-toggle, .modal-close {
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.key:hover, .choice-button:hover, .secondary-button:hover, .primary-button:hover, .nav-arrow:hover, .music-toggle:hover, .modal-close:hover {
  transform: translateY(-2px);
}

.key {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(107, 79, 95, 0.12);
  font-size: 1rem;
  color: var(--ink);
}

.key.unlock {
  background: linear-gradient(135deg, var(--accent), #ffb0c9);
  color: white;
}

.key.clear {
  background: #fef3f7;
}

.message, .question-message {
  min-height: 24px;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #b25574;
}

.lock-card.unlocked {
  animation: unlockPulse 0.8s ease forwards;
}

.lock-card.unlocked .lock-icon {
  transform: scale(1.2);
}

.photo-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
}

.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff4f8;
  font-size: 1.2rem;
  color: var(--ink);
}

.photo-frame {
  position: relative;
  background: #fff;
  padding: 14px 14px 42px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(107, 79, 95, 0.12);
  transform: rotate(-1.5deg);
  border: 2px solid #f6e0ea;
  max-width: 480px;
  margin: 0 auto;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.photo-frame::before {
  content: '📷';
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 1.1rem;
}

.photo-frame img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.photo-caption {
  margin-top: 10px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  font-size: 0.95rem;
}

.album-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.album-hint {
  margin: 0;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  font-size: 0.95rem;
  color: #b25574;
}

.dream-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 720px);
  margin: 20px auto 18px;
  padding: 0;
}

.dream-list li {
  position: relative;
  animation: floatIn 0.7s ease both;
}

.dream-list li::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 56px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 207, 125, 0.55);
  box-shadow: 0 2px 4px rgba(107, 79, 95, 0.08);
  transform: translateX(-50%) rotate(-2deg);
  z-index: 2;
}

.dream-list li:nth-child(2) {
  animation-delay: 0.08s;
}

.dream-list li:nth-child(3) {
  animation-delay: 0.16s;
}

.dream-list li:nth-child(4) {
  animation-delay: 0.24s;
}

.dream-list li:nth-child(5) {
  animation-delay: 0.32s;
}

.dream-list li:nth-child(6) {
  animation-delay: 0.4s;
}

.dream-list li:nth-child(7) {
  animation-delay: 0.48s;
}

.dream-list li:nth-child(8) {
  animation-delay: 0.56s;
}

.dream-list label::after {
  content: '♡';
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #ff8fb1;
  opacity: 0.62;
}

.dream-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dream-list label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 18px 42px 16px 18px;
  border: 2px solid #efbfd2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef9, #fff5fa);
  box-shadow: 0 10px 22px rgba(107, 79, 95, 0.13);
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dream-list label:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 14px 26px rgba(107, 79, 95, 0.16);
}

.dream-checkbox:focus-visible + label {
  outline: 3px solid rgba(255, 143, 177, 0.42);
  outline-offset: 3px;
}

.dream-checkbox:checked + label {
  border-color: #ff8fb1;
  background: linear-gradient(180deg, #fff8fb, #ffeaf3);
  box-shadow: 0 14px 28px rgba(255, 143, 177, 0.2);
  transform: rotate(-0.4deg);
}

.dream-all {
  grid-column: 1 / -1;
}

.dream-all label {
  justify-content: center;
  min-height: 76px;
  border-color: #ffcf7d;
  background: linear-gradient(135deg, #fff8df, #ffeaf3);
  text-align: center;
}

.dream-all label span {
  width: auto;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
}

.dream-checkbox:checked + label::after {
  content: '✓';
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  right: 12px;
  bottom: 12px;
  background: #ff8fb1;
  color: #fff;
  opacity: 1;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.dream-list label span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff1f7;
  color: #b25574;
  font-size: 0.78rem;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
}

.dream-selection-message {
  min-height: 24px;
  margin: 0 0 12px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #b25574;
}

.dreams-footer,
.date-footer,
.food-footer,
.outfit-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 720px);
  margin: 22px auto 16px;
}

.food-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.food-box {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px 12px;
  border: 2px solid #efbfd2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffef9, #fff5fa);
  box-shadow: 0 10px 22px rgba(107, 79, 95, 0.12);
  cursor: pointer;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.food-box::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 50px;
  height: 16px;
  border-radius: 3px;
  background: rgba(158, 216, 211, 0.55);
  transform: rotate(2deg);
}

.food-box::after {
  content: '♡';
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: #ff8fb1;
  opacity: 0.62;
}

.food-box:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 14px 26px rgba(107, 79, 95, 0.16);
}

.food-radio:focus-visible + .food-box {
  outline: 3px solid rgba(255, 143, 177, 0.42);
  outline-offset: 3px;
}

.food-radio:checked + .food-box {
  border-color: #ff8fb1;
  background: linear-gradient(180deg, #fff8fb, #ffeaf3);
  box-shadow: 0 14px 28px rgba(255, 143, 177, 0.2);
  transform: rotate(-0.4deg);
}

.food-radio:checked + .food-box::after {
  content: '✓';
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  right: 10px;
  bottom: 10px;
  background: #ff8fb1;
  color: #fff;
  opacity: 1;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.food-icon {
  font-size: 2rem;
}

.food-message {
  min-height: 24px;
  margin: 0 0 12px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #b25574;
}

.outfit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 720px);
  margin: 20px auto 16px;
}

.outfit-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 2px dashed rgba(107, 79, 95, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.outfit-group legend {
  padding: 0 8px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #8f4d6d;
}

.outfit-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.outfit-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 14px 42px 14px 16px;
  border: 2px solid #efbfd2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef9, #fff5fa);
  box-shadow: 0 8px 18px rgba(107, 79, 95, 0.1);
  cursor: pointer;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.outfit-box::after {
  content: '♡';
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #ff8fb1;
  opacity: 0.62;
}

.outfit-box:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 12px 24px rgba(107, 79, 95, 0.15);
}

.outfit-radio:focus-visible + .outfit-box {
  outline: 3px solid rgba(255, 143, 177, 0.42);
  outline-offset: 3px;
}

.outfit-radio:checked + .outfit-box {
  border-color: #ff8fb1;
  background: linear-gradient(180deg, #fff8fb, #ffeaf3);
  box-shadow: 0 12px 24px rgba(255, 143, 177, 0.18);
}

.outfit-radio:checked + .outfit-box::after {
  content: '✓';
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  right: 12px;
  bottom: 12px;
  background: #ff8fb1;
  color: #fff;
  opacity: 1;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.outfit-box span {
  font-size: 1.4rem;
}

.outfit-message {
  min-height: 24px;
  margin: 0 0 12px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #b25574;
}

.date-picker-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  align-items: start;
  gap: 16px;
  width: min(100%, 720px);
  margin: 22px auto 16px;
  padding: 18px;
  border: 2px solid #efbfd2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffef9, #fff5fa);
  box-shadow: 0 10px 24px rgba(107, 79, 95, 0.13);
}

.calendar-box {
  display: grid;
  gap: 10px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-header h3 {
  margin: 0;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #8f4d6d;
  font-size: 1.12rem;
}

.calendar-nav {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #fff1f7;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(107, 79, 95, 0.12);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  font-size: 0.72rem;
  color: #b25574;
  font-weight: 700;
}

.calendar-empty,
.calendar-day {
  aspect-ratio: 1;
}

.calendar-day {
  border: 2px solid #f6d8e5;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  border-color: #ff8fb1;
}

.calendar-day.selected {
  border-color: #ff8fb1;
  background: #ffeaf3;
  color: #8f4d6d;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(255, 143, 177, 0.18);
}

.date-field {
  display: grid;
  gap: 8px;
  text-align: left;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #8f4d6d;
}

.date-field span {
  padding-left: 4px;
}

.date-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #f2c8d7;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.date-field input:focus {
  border-color: #ff8fb1;
  box-shadow: 0 0 0 3px rgba(255, 143, 177, 0.18);
}

.date-message {
  min-height: 24px;
  margin: 0 0 12px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #b25574;
}

.secondary-button, .primary-button, .choice-button {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.98rem;
  box-shadow: 0 6px 12px rgba(107, 79, 95, 0.12);
}

.secondary-button {
  background: #fff;
  color: var(--ink);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.choices-wrap {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
  position: relative;
}

.choices-wrap.is-playful {
  min-height: 130px;
}

.choice-button.yes {
  background: linear-gradient(135deg, #ff8fb1, #ff6f9d);
  color: white;
}

#date-yes-button {
  width: 120px;
  transition: width 0.22s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#date-invite-choices.yes-is-bigger #date-yes-button {
  width: 220px;
  padding: 16px 26px;
  font-size: 1.18rem;
}

.choice-button.no {
  background: linear-gradient(135deg, #ffd2a6, #ffb0c9);
  color: var(--ink);
}

.summary-card {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  margin: 16px auto;
  padding: 16px 18px;
  border: 2px dashed rgba(255, 143, 177, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.summary-card h3 {
  margin: 0 0 4px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #8f4d6d;
  font-size: 1.05rem;
}

.summary-card p,
.love-note {
  margin: 0;
  color: #6b4f5f;
  line-height: 1.5;
}

.summary-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 12px 0;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.submit-message {
  min-height: 24px;
  margin: 0;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #b25574;
}

.love-note {
  width: min(100%, 620px);
  margin: 14px auto 4px;
  font-family: 'Comic Sans MS', 'Bradley Hand', cursive;
  color: #b25574;
}

.music-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(107, 79, 95, 0.14);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 26, 0.4);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal.open {
  display: grid;
}

.modal-card {
  background: #fffef9;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  max-width: 560px;
  width: min(100%, 560px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.modal-card img {
  width: 100%;
  border-radius: 16px;
  max-height: 70vh;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
}

.decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.petals, .sparkles, .floating-heart {
  position: absolute;
  pointer-events: none;
  animation: drift linear infinite;
}

.petals {
  font-size: 1rem;
  opacity: 0.75;
}

.sparkles {
  font-size: 0.8rem;
  animation-duration: 10s;
}

.floating-heart {
  font-size: 1.2rem;
  animation-duration: 8s;
}

.unlock-flowers {
  position: absolute;
  width: 132px;
  height: 132px;
  opacity: 0;
  z-index: 3;
  animation: flowerBurst 5.2s cubic-bezier(0.16, 0.84, 0.2, 1) forwards;
  filter: drop-shadow(0 10px 16px rgba(107, 79, 95, 0.22));
}

.unlock-flowers .flower-petal {
  position: absolute;
  width: 44px;
  height: 68px;
  top: 10px;
  left: 44px;
  border-radius: 80% 20% 80% 20%;
  background: linear-gradient(135deg, var(--petal-a), var(--petal-b));
  transform-origin: center bottom;
  box-shadow: inset 0 -8px 16px rgba(255,255,255,0.26);
}

.unlock-flowers .petal-1 { transform: rotate(-60deg) translateY(-8px); }
.unlock-flowers .petal-2 { transform: rotate(-30deg) translateY(-6px); }
.unlock-flowers .petal-3 { transform: rotate(0deg) translateY(-4px); }
.unlock-flowers .petal-4 { transform: rotate(30deg) translateY(-6px); }
.unlock-flowers .petal-5 { transform: rotate(60deg) translateY(-8px); }
.unlock-flowers .petal-6 { transform: rotate(90deg) translateY(-10px); }

.unlock-flowers .flower-core {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 46px;
  left: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff3b0, #ffcf7d 70%);
  box-shadow: 0 0 16px rgba(255, 207, 125, 0.48);
}

.unlock-flowers .flower-stem {
  position: absolute;
  width: 6px;
  height: 86px;
  left: 63px;
  top: 74px;
  background: linear-gradient(180deg, #7bc69f, #3b8c68);
  border-radius: 999px;
}

.unlock-flowers .flower-leaf {
  position: absolute;
  width: 38px;
  height: 52px;
  top: 104px;
  background: linear-gradient(135deg, #8bd0a2, #4fa279);
  border-radius: 100% 0 100% 0;
}

.unlock-flowers .flower-leaf.left { left: 28px; transform: rotate(24deg); }
.unlock-flowers .flower-leaf.right { left: 56px; transform: rotate(-24deg) scaleX(-1); }

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

@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

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

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate3d(20px, 100vh, 0) rotate(360deg); opacity: 0; }
}

@keyframes unlockPulse {
  0% { transform: scale(1); box-shadow: 0 10px 30px var(--shadow); }
  50% { transform: scale(1.02); box-shadow: 0 16px 40px rgba(255, 143, 177, 0.28); }
  100% { transform: scale(1); box-shadow: 0 10px 30px var(--shadow); }
}

@keyframes flowerBurst {
  0% { transform: translate3d(0, 0, 0) scale(0.18) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  35% { transform: translate3d(var(--drift-x, 170px), -16vh, 0) scale(1.02) rotate(120deg); opacity: 1; }
  70% { transform: translate3d(calc(var(--drift-x, 170px) * 1.05), -52vh, 0) scale(1.12) rotate(240deg); opacity: 0.9; }
  100% { transform: translate3d(calc(var(--drift-x, 170px) * 1.25), -120vh, 0) scale(1.28) rotate(420deg); opacity: 0; }
}

@media (max-width: 700px) {
  .page-card {
    padding: 18px;
  }

  .photo-stage {
    grid-template-columns: 1fr;
  }

  .nav-arrow {
    display: none;
  }

  .keypad {
    grid-template-columns: repeat(3, minmax(52px, 68px));
  }

  .album-footer {
    flex-direction: column;
  }

  .dream-list {
    grid-template-columns: 1fr;
  }

  .date-picker-card {
    grid-template-columns: 1fr;
  }

  .food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outfit-columns {
    grid-template-columns: 1fr;
  }
}
