/* =====================================================
   AFTER-LETTER SCENES
   ===================================================== */

/* the "next" button under a letter */
#letter-next { text-align: center; }
#letter-next .game-btn { margin-top: 4px; }

/* ---------- A. note + mailbox ---------- */
.note-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.note-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #ffd2a3;
  background: #fff;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.note-tab.on { border-color: var(--seal); background: #fff1e0; }
.note-pad {
  position: relative;
  height: 260px;
  border-radius: 6px;
  background: #fffdf3 repeating-linear-gradient(transparent 0 27px, #f3dcc4 27px 28px);
  box-shadow: 0 6px 16px rgba(90, 45, 12, 0.15);
  border-top: 22px solid #ffb46e;
}
.note-text {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
  background: transparent;
  padding: 4px 14px;
  font: inherit;
  font-size: 1rem;
  line-height: 28px;
  color: var(--ink);
  resize: none;
  outline: none;
}
.note-text.faded { opacity: 0.35; pointer-events: none; }
.note-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.note-colours { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; }
.note-colour { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #ffd2a3; cursor: pointer; }
.note-colour.on { box-shadow: 0 0 0 3px var(--seal); }
.note-clear { border: none; background: none; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

.mail-scene { position: relative; height: 240px; }
.mail-note {
  position: absolute;
  left: 18%; top: 10%;
  font-size: 2.6rem;
  transition: all 1.1s ease-in;
  z-index: 2;
}
.mail-scene.posted .mail-note { left: 58%; top: 34%; transform: scale(0.3) rotate(20deg); opacity: 0; }
.mailbox { position: absolute; left: 50%; bottom: 0; width: 120px; height: 200px; }
.mb-body {
  position: absolute; left: 0; top: 0;
  width: 120px; height: 90px;
  background: #e8590c;
  border-radius: 60px 60px 8px 8px;
  box-shadow: inset -8px -6px 0 rgba(0, 0, 0, 0.12);
}
.mb-slot { position: absolute; left: 25px; top: 38px; width: 70px; height: 8px; background: #5a2d0c; border-radius: 4px; }
.mb-label { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff8ef; font-size: 0.8rem; }
.mb-flag {
  position: absolute; left: 118px; top: 46px;
  width: 8px; height: 40px;
  background: #ffd27a;
  transform-origin: bottom;
  transform: rotate(90deg);
  transition: transform 0.6s ease 1.1s;
}
.mb-flag::after { content: ""; position: absolute; top: 0; left: 8px; width: 22px; height: 14px; background: #ffd27a; }
.mail-scene.posted .mb-flag { transform: rotate(0deg); }
.mb-post { position: absolute; left: 52px; top: 90px; width: 16px; height: 110px; background: #8b5a2b; }

/* ---------- B. 想 rain ---------- */
.rain-box { position: relative; border-radius: 12px; overflow: hidden; }
.rain-canvas { width: 100%; height: auto; aspect-ratio: 320 / 300; display: block; }
.rain-caption {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: rgba(255, 250, 243, 0.9);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
}
.rain-caption:empty { display: none; }
.rain-caption.pop { animation: pop 0.4s ease; }

/* ---------- C. time pause + trip ---------- */
.tp-clock {
  position: relative;
  width: 140px; height: 140px;
  margin: 10px auto 20px;
  border-radius: 50%;
  background: #fffaf3;
  border: 8px solid #e8590c;
  box-shadow: 0 6px 16px rgba(90, 45, 12, 0.2);
}
.tp-hand { position: absolute; left: 50%; bottom: 50%; transform-origin: bottom; border-radius: 4px; background: #5a2d0c; }
.tp-hand.h { width: 6px; height: 34px; margin-left: -3px; animation: spin 40s linear infinite; }
.tp-hand.m { width: 4px; height: 48px; margin-left: -2px; animation: spin 8s linear infinite; }
.tp-hand.s { width: 2px; height: 54px; margin-left: -1px; background: #e8590c; animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tp-clock.stopped .tp-hand { animation-play-state: paused; }
.tp-clock.stopped { animation: shake 0.4s ease; filter: grayscale(0.6); }
.tp-button {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #ff8a5c, #d6402b 70%);
  box-shadow: 0 10px 0 #9e2a1b, 0 14px 24px rgba(90, 45, 12, 0.3);
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.tp-button:active, .tp-button:disabled { transform: translateY(8px); box-shadow: 0 2px 0 #9e2a1b, 0 4px 10px rgba(90, 45, 12, 0.3); }

.trip-view { position: relative; height: 300px; border-radius: 12px; overflow: hidden; background: #fff1e0; }
.trip-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.trip-bg.in { opacity: 1; }
.trip-bg svg { width: 100%; height: 100%; display: block; }
.trip-pin {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 250, 243, 0.92);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: bold;
  color: var(--seal);
  white-space: nowrap;
  z-index: 5;
}
.trip-pin.pop { animation: pop 0.4s ease; }
.trip-couple { position: absolute; bottom: 6%; left: 10%; display: flex; align-items: flex-end; z-index: 4; }
.trip-couple.walk { animation: walkAcross 3.8s ease-in-out; }
@keyframes walkAcross { from { left: -10%; } to { left: 10%; } }
.trip-goose { width: 54px; margin-right: -10px; }
.trip-octo { width: 60px; }
.trip-goose svg, .trip-octo svg { width: 100%; height: auto; display: block; animation: bob 0.5s ease-in-out infinite; }
.trip-octo svg { animation-delay: -0.25s; }
.trip-fall { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.trip-flake { position: absolute; top: -10%; font-size: 1rem; animation: flakeFall 4s linear infinite; }
@keyframes flakeFall { to { top: 105%; transform: translateX(30px) rotate(200deg); } }
.trip-dots { margin-top: 10px; color: var(--seal); letter-spacing: 2px; }

/* ---------- D. shooting star ---------- */
.star-sky {
  position: relative;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #14123a 0%, #2b2460 60%, #4a3b7a 100%);
}
.star-svg { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.star { fill: #fff6d8; transition: transform 2.6s cubic-bezier(0.5, 0, 0.2, 1), opacity 1.5s ease; animation: twinkle 3s ease-in-out infinite; }
.star.aligned { fill: #fff1c9; }
.star.fade { opacity: 0.15; }
.star-sky.formed .star.aligned { animation: twinkle 1.6s ease-in-out infinite; filter: drop-shadow(0 0 2px #fff1c9); }
.star-hill {
  position: absolute;
  left: -10%; right: -10%; bottom: -40px;
  height: 120px;
  background: #24452f;
  border-radius: 50% 50% 0 0;
}
.star-couple { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: flex-end; }
/* both lying on their backs, heads to the left, looking up at the stars */
.star-couple { width: 170px; height: 80px; bottom: 16px; display: block; }
.sc-goose { position: absolute; left: 40px; top: -40px; width: 58px; transform: rotate(-90deg); margin: 0; z-index: 1; }
.sc-octo  { position: absolute; left: 22px; top: 0px; width: 52px; transform: rotate(-90deg); margin: 0; z-index: 2; }
.sc-goose svg, .sc-octo svg { width: 100%; height: auto; display: block; }
.shooting {
  position: absolute;
  left: 100%; top: 12%;
  width: 140px; height: 26px;
  padding: 0;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  opacity: 0;
  z-index: 3;
  transform: rotate(-18deg);
}
/* the sparkly tail */
.shooting::before {
  content: "";
  position: absolute;
  left: 8px; right: 0; top: 11px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #fffbe8, rgba(255, 241, 201, 0.6) 40%, rgba(255, 241, 201, 0));
}
/* the bright glowing head */
.shooting::after {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px 5px rgba(255, 241, 201, 0.9);
}
.shooting.go { animation: shoot 1.9s linear; }
@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(-18deg); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(calc(-1 * var(--dist, 480px)), calc(var(--dist, 480px) * 0.33)) rotate(-18deg); opacity: 0; }
}
.shooting.caught { animation-play-state: paused; opacity: 1; filter: drop-shadow(0 0 10px #fff1c9); }
.wish-form { display: flex; gap: 8px; margin-top: 12px; }
.wish-form .game-btn { margin: 0; }
.star-caption {
  position: absolute;
  right: 14px; bottom: 12px;   /* bottom-right corner */
  text-align: right;
  z-index: 4;
  color: #fff1c9;
  font-size: 1.1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.shooting.gone { opacity: 0 !important; transition: opacity 1s ease; pointer-events: none; }

/* ---------- trip: outfits + Thai massage ---------- */
.trip-goose svg, .trip-octo svg { animation: none !important; }
.trip-goose, .trip-octo { position: relative; }
.bobber { position: relative; animation: bob 0.5s ease-in-out infinite; }
.trip-octo .bobber { animation-delay: -0.25s; }
.acc { position: absolute; transform: translate(-50%, -50%); line-height: 1; pointer-events: none; }
.acc.g-eyes { left: 58%; top: 14%; font-size: 15px; }
.acc.g-neck { left: 57%; top: 30%; font-size: 18px; }
.acc.g-head { left: 50%; top: 5%; font-size: 14px; }
.acc.o-eyes { left: 50%; top: 45%; font-size: 32px; }
.acc.o-neck { left: 50%; top: 70%; font-size: 26px; }
.acc.o-head { left: 72%; top: 10%; font-size: 15px; }
/* Thai massage: goose lying on the mat, octopus rubbing her back */
.trip-couple.massage { animation: none; left: 8%; bottom: 4%; }
.trip-couple.massage .trip-goose { transform: rotate(-90deg) translate(-8px, 22px); }
.trip-couple.massage .trip-goose .bobber { animation: none; }
.trip-couple.massage .trip-octo { margin-left: -6px; }
.trip-couple.massage .trip-octo .bobber { animation: rub 0.7s ease-in-out infinite; }
@keyframes rub { 50% { transform: translate(-4px, 6px) scale(1.04, 0.94); } }

/* ---------- F. self-care checklist ---------- */
.care-list { display: flex; flex-direction: column; gap: 8px; text-align: left; max-width: 340px; margin: 0 auto; }
.care-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 2px solid #ffd2a3;
  border-radius: 14px;
  background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  cursor: pointer; text-align: left;
}
.care-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #ffb46e; flex: none; display: flex; align-items: center; justify-content: center; }
.care-item.on { background: #fff1e0; border-color: var(--seal); }
.care-item.on .care-box { background: var(--seal); border-color: var(--seal); }
.care-item.on .care-box::after { content: "✓"; color: #fff; font-size: 14px; }
.care-done { margin-top: 12px; color: var(--seal); font-weight: bold; animation: pop 0.4s ease; }

/* ---------- G. ready to talk ---------- */
.ready-octo { width: 120px; margin: 6px auto 16px; }
.ready-octo svg { width: 100%; height: auto; display: block; animation: bob 2.4s ease-in-out infinite; }
.ready-octo.happy svg { animation: happy 0.7s ease 2; }
.ready-btn {
  padding: 18px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb46e, #e8590c);
  color: #fff;
  font: inherit; font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(232, 89, 12, 0.35);
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.05); } }

/* ---------- H. bombs ---------- */
.bomb-zone { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }
.bomb-btn {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #ffd2a3, #ff9a3c 70%);
  font-size: 4.5rem;
  cursor: pointer;
  box-shadow: 0 8px 0 #c9542e, 0 12px 24px rgba(90, 45, 12, 0.3);
}
.bomb-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #c9542e; }
.bomb-btn.shake { animation: shake 0.35s ease; }
.bomb-boom { position: absolute; font-size: 3rem; transform: translate(-50%, -50%); animation: powPop 0.7s ease-out forwards; pointer-events: none; }
.bomb-count { font-weight: bold; color: var(--seal); font-size: 1.2rem; }

/* ---------- I. rate deliverweee ---------- */
.rate-box { margin-top: 14px; }
.rate-q { font-style: italic; opacity: 0.8; }
.rate-stars { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.rate-star { border: none; background: none; font-size: 2.2rem; color: #ffd2a3; cursor: pointer; transition: transform 0.15s ease, color 0.15s ease; }
.rate-star.on { color: #ff9a1f; transform: scale(1.12); }
.rate-thanks { margin-top: 6px; color: var(--seal); font-weight: bold; animation: pop 0.4s ease; }

/* walk further into the picture so the goose is fully visible */
.trip-couple { left: 24%; }
.trip-couple.walk { animation: walkIn 3.8s ease-in-out; }
@keyframes walkIn { from { left: 0%; } to { left: 24%; } }
.trip-couple.massage { left: 16%; }
.trip-pin { max-width: 92%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- skiing in Japan ---------- */
.acc.g-feet { left: 46%; top: 97%; font-size: 24px; }
.acc.o-feet { left: 50%; top: 100%; font-size: 26px; }
.trip-couple.ski .bobber { animation: none; }
.trip-couple.ski, .trip-couple.ski.walk { animation: skiDown 3.8s ease-in forwards; }
@keyframes skiDown {
  from { left: 2%;  bottom: 48%; transform: rotate(14deg); }
  to   { left: 58%; bottom: 8%;  transform: rotate(14deg); }
}

/* ---------- J. mini dissertation ---------- */
.diss-stage {
  --glow: 0;
  position: relative;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe7cc, #fff4e6);
}
.diss-sun {
  position: absolute;
  right: 18px; top: 14px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 calc(10px + var(--glow) * 60px) calc(var(--glow) * 30px) rgba(255, 180, 80, 0.75);
  transform: scale(calc(0.7 + var(--glow) * 0.6));
  transition: all 0.6s ease;
}
.diss-octo { position: absolute; left: 50%; bottom: -6px; width: 120px; transform: translateX(-50%); }
.diss-octo svg { width: 100%; height: auto; display: block; }
.diss-octo .acc.o-eyes { font-size: 54px; top: 46%; }
.diss-scroll { position: absolute; left: -18px; bottom: 16px; font-size: 34px; transform: rotate(-15deg); }
.diss-octo.read .bobber { animation: happy 0.5s ease; }
.diss-card {
  margin-top: 14px;
  min-height: 7.5em;
  padding: 16px 18px;
  background: #fffdf5 repeating-linear-gradient(transparent 0 27px, #f6e2cd 27px 28px);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(90, 45, 12, 0.12);
  text-align: left;
  line-height: 28px;
  cursor: pointer;
}
.diss-card.pop { animation: pop 0.35s ease; }
.diss-card.last { color: var(--seal); font-style: italic; }
.diss-count { margin-top: 6px; font-size: 0.85rem; opacity: 0.6; }

/* ---------- K. coco the palm tree ---------- */
.coco-garden { position: relative; border-radius: 12px; overflow: hidden; }
.coco-garden svg { width: 100%; height: auto; display: block; }
.coco-garden .cs { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0.3); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.3, 1.4, 0.5, 1); }
.coco-garden.st0 .s0,
.coco-garden.st1 .s1,
.coco-garden.st2 .s2,
.coco-garden.st3 .s3,
.coco-garden.st4 .s3, .coco-garden.st4 .s4 { opacity: 1; transform: scale(1); }
.coco-drops { position: absolute; inset: 0; pointer-events: none; }
.coco-drop { position: absolute; top: 4%; font-size: 1.1rem; animation: dropFall 0.9s ease-in forwards; }
@keyframes dropFall { to { top: 70%; opacity: 0; } }
.coco-can {
  margin-top: 12px;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: none;
  background: #ffd2a3;
  font-size: 2.4rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(90, 45, 12, 0.2);
}
.coco-can:active { transform: rotate(-25deg) scale(0.95); }
.coco-label { margin-top: 8px; color: var(--seal); font-weight: bold; min-height: 1.4em; }

/* mini dissertation: a little picture for each line, octopus reads from the corner */
.diss-stage { transition: background 0.6s ease; }
.diss-pic {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-left: 40px;
}
.diss-emoji {
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  line-height: 1;
  animation: emojiIn 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both, floaty 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(90, 45, 12, 0.15));
}
@keyframes emojiIn { from { transform: scale(0.2) rotate(-20deg); opacity: 0; } }
.diss-octo { left: 8px; bottom: -4px; width: 68px; transform: none; z-index: 2; }
.diss-octo .acc.o-eyes { font-size: 30px; }
.diss-scroll { font-size: 22px; left: -10px; bottom: 8px; }

/* ---------- L. squish + sorry parade ---------- */
.anger-meter { position: relative; height: 26px; border-radius: 999px; background: #ffe3c4; overflow: hidden; margin: 4px auto 12px; max-width: 340px; }
.anger-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #ff7a3c, #d6402b); border-radius: 999px; transition: width 0.4s ease; }
.anger-text { position: relative; line-height: 26px; font-weight: bold; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.squish-ring { --red: 0; position: relative; height: 280px; border-radius: 12px; background: #fff1e0; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; touch-action: none; }
.squish-face { position: relative; width: 170px; cursor: grab; touch-action: none; transition: none; }
.squish-face svg { width: 100%; height: auto; display: block; pointer-events: none; }
.squish-face.boing { animation: boing 0.6s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes boing { 0% { transform: scale(1.15, 0.85); } 40% { transform: scale(0.92, 1.08); } 70% { transform: scale(1.04, 0.97); } 100% { transform: scale(1, 1); } }
.squish-blush { position: absolute; top: 50%; width: 26px; height: 16px; border-radius: 50%; background: #ff3b30; opacity: calc(var(--red) * 0.8); pointer-events: none; filter: blur(2px); }
.squish-blush.l { left: 10%; }
.squish-blush.r { right: 10%; }
.squish-bubble { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: #fffaf3; padding: 6px 14px; border-radius: 14px; white-space: nowrap; box-shadow: 0 3px 8px rgba(90,45,12,0.15); }
.squish-bubble.pop { animation: pop 0.3s ease; }

.parade-stage { position: relative; height: 250px; border-radius: 12px; background: linear-gradient(180deg, #ffe7cc, #fff4e6); overflow: hidden; }
.parade-octo { position: absolute; left: 50%; bottom: 10px; width: 120px; transform: translateX(-60%); transition: transform 0.4s ease; }
.parade-octo svg { width: 100%; height: auto; display: block; }
.parade-octo.kneel { transform: translateX(-60%) translateY(24px) rotate(-8deg) scale(0.9); }
.parade-octo.happy .bobber { animation: happy 0.7s ease 3; }
.parade-gift { position: absolute; left: 58%; bottom: 60px; font-size: 3.2rem; }
.parade-line { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); max-width: 90%; background: #fffaf3; padding: 6px 14px; border-radius: 14px; text-align: center; box-shadow: 0 3px 8px rgba(90,45,12,0.15); }
.parade-stage.enter .parade-octo, .parade-stage.enter .parade-gift { animation: slideIn 0.5s ease; }
@keyframes slideIn { from { margin-left: 260px; opacity: 0; } to { margin-left: 0; opacity: 1; } }
.parade-stage.leave .parade-octo, .parade-stage.leave .parade-gift { animation: slideOut 0.45s ease forwards; }
@keyframes slideOut { to { margin-left: -300px; opacity: 0; } }
.parade-buttons .game-btn { margin-top: 12px; }

/* ---------- M. tell me + pinky promise ---------- */
.pp-scene { position: relative; height: 340px; border-radius: 12px; background: linear-gradient(180deg, #ffe0c2 0%, #ffd2a3 70%, #e9b98a 70%, #d9a273 100%); overflow: hidden; }
.pp-octo { position: absolute; left: 50%; top: 14%; width: 40%; transform: translateX(-50%); transition: transform 0.6s ease; }
.pp-octo svg { width: 100%; height: auto; display: block; }
.pp-scene.listening .pp-octo { transform: translateX(-50%) translateY(14px) rotate(6deg) scale(1.08); }
.pp-scene.listening .pp-octo .bobber { animation: nod 0.9s ease-in-out infinite; }
@keyframes nod { 50% { transform: translateY(6px) rotate(-3deg); } }
.pp-ear { position: absolute; left: 66%; top: 26%; font-size: 2.6rem; opacity: 0; transform: scale(0.4); transition: all 0.5s ease; }
.pp-scene.listening .pp-ear { opacity: 1; transform: scale(1.1); }
.pp-octo-says { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); max-width: 90%; background: #fffaf3; padding: 5px 12px; border-radius: 14px; text-align: center; font-size: 0.95rem; box-shadow: 0 3px 8px rgba(90,45,12,0.15); z-index: 5; }
.pp-octo-says:empty { display: none; }
.pp-bubble {
  position: absolute; left: 22%; right: 6%; bottom: 14px;
  background: #fff; border-radius: 18px; padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(90,45,12,0.18); z-index: 4;
  transition: all 1s ease;
}
.pp-bubble::after { content: ""; position: absolute; left: -10px; bottom: 16px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.pp-text { width: 100%; height: 72px; border: none; resize: none; outline: none; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; }
.pp-bubble.sent { bottom: 46%; left: 10%; right: 50%; transform: scale(0.8); opacity: 0.9; }
.pp-bubble.sent .pp-text { height: 56px; font-size: 0.85rem; }
.pp-scene.promise .pp-bubble { opacity: 0; }
.pp-hook-left, .pp-hook-right, .pp-spark { position: absolute; font-size: 2.6rem; opacity: 0; transition: all 0.8s ease; z-index: 6; }
.pp-hook-left { left: 18%; bottom: 22%; transform: scaleX(-1); }
.pp-hook-right { right: 18%; bottom: 22%; }
.pp-scene.promise .pp-hook-left, .pp-scene.promise .pp-hook-right { opacity: 1; }
.pp-scene.hooked .pp-hook-left { left: 36%; }
.pp-scene.hooked .pp-hook-right { right: 36%; }
.pp-spark { left: 50%; bottom: 34%; transform: translateX(-50%) scale(0.3); }
.pp-scene.hooked .pp-spark { opacity: 1; transform: translateX(-50%) scale(1.4); transition-delay: 0.7s; }

/* ---- goose + octopus in the 想 desert / sea ---- */
.miss-char {
  position: absolute; width: 17%;
  transform: translate(-50%, -100%);
  pointer-events: none; z-index: 2;
}
.miss-char svg { width: 100%; height: auto; display: block; }
.miss-inner { animation: miss-walk 0.9s ease-in-out infinite; }
.miss-octo .miss-inner { animation-delay: -0.45s; }
@keyframes miss-walk { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.miss-sea .miss-inner { animation: miss-bob 2.2s ease-in-out infinite; }
.miss-sea .miss-octo .miss-inner { animation: miss-swim 1.6s ease-in-out infinite; }
@keyframes miss-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(5px) rotate(2deg); } }
@keyframes miss-swim { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-8px) scaleY(0.92); } }
.miss-together .miss-char { transition: left 0.8s ease, top 0.8s ease, opacity 0.8s; }
.miss-sea:not(.miss-together) .miss-octo { opacity: 0.8; } /* a bit faded = underwater */
.miss-together .miss-inner { animation: miss-hug 0.6s ease-in-out 3; }
@keyframes miss-hug { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.miss-heart {
  position: absolute; left: 50%; top: 22%; z-index: 3;
  transform: translate(-50%, 0) scale(0); opacity: 0;
  font-size: 54px; color: #ff6a3d; text-shadow: 0 2px 10px rgba(255,255,255,0.8);
  transition: transform 0.6s cubic-bezier(.3,1.6,.5,1), opacity 0.4s;
}
.miss-heart.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* ---------- Dinner date (after: hungry) ---------- */
.dd-scene {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto 14px;
  aspect-ratio: 34 / 30; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #ffe2b8 0%, #ffb877 55%, #f08a4b 100%);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.dd-table {
  position: absolute; left: -5%; right: -5%; bottom: 0; height: 38%;
  background: linear-gradient(180deg, #fff6ea 0%, #ffe6c9 100%);
  border-top: 4px solid #ffd2a3; border-radius: 50% 50% 0 0 / 22% 22% 0 0;
}
.dd-char { position: absolute; bottom: 30%; z-index: 2; transition: transform 0.3s; transform-origin: 50% 100%; }
.dd-char svg { width: 100%; height: auto; display: block; }
.dd-goose { left: 3%; width: 24%; }
.dd-octo { right: 3%; width: 30%; }
.dd-char.open { transform: scale(1.08); }
.dd-char.chomp { animation: ddChomp 0.5s ease; }
@keyframes ddChomp { 0%,100% { transform: scale(1); } 30% { transform: scale(1.1, 0.92); } 60% { transform: scale(0.96, 1.05); } }
.dd-scene.full .dd-char { transform: scale(1.12, 1.02); }
.dd-scene.full .dd-octo { animation: ddPat 0.8s ease-in-out 3; }
@keyframes ddPat { 0%,100% { transform: scale(1.12, 1.02); } 50% { transform: scale(1.16, 0.98); } }
.dd-candle { position: absolute; left: 50%; bottom: 44%; transform: translateX(-50%); font-size: 1.6rem; z-index: 1; filter: drop-shadow(0 0 8px rgba(255, 220, 120, 0.9)); }
.dd-plate {
  position: absolute; left: 50%; bottom: 10%; width: 40%; aspect-ratio: 1.6;
  transform: translateX(-50%); z-index: 3;
  background: radial-gradient(ellipse at center, #ffffff 0 58%, #f3e3d0 60% 66%, #ffffff 68%);
  border-radius: 50%; box-shadow: 0 4px 10px rgba(120, 50, 0, 0.18);
}
.dd-bite { position: absolute; transform: translate(-50%, -50%); font-size: 1.25rem; cursor: grab; transition: opacity 0.3s, transform 0.3s; }
.dd-scene.eating .dd-bite:not(.eaten) { animation: ddWiggle 1.6s ease-in-out infinite; }
@keyframes ddWiggle { 0%,100% { transform: translate(-50%, -50%) rotate(-6deg); } 50% { transform: translate(-50%, -55%) rotate(6deg); } }
.dd-bite.lifted { opacity: 0.25; }
.dd-bite.eaten { opacity: 0; transform: translate(-50%, -50%) scale(0.2); pointer-events: none; animation: none !important; }
.dd-bite.sneak { transform: translate(120%, -160%) scale(0.8); transition: transform 0.6s ease; animation: none !important; }
.dd-label { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: 0.75rem; opacity: 0.7; white-space: nowrap; z-index: 3; }
.dd-glass { position: absolute; bottom: 30%; font-size: 1.4rem; z-index: 3; transition: transform 0.5s ease; }
.dd-glass-g { left: 27%; }
.dd-glass-o { right: 31%; transform: scaleX(-1); }
.dd-scene.cheers .dd-glass-g { transform: translate(240%, -90%) rotate(25deg); }
.dd-scene.cheers .dd-glass-o { transform: scaleX(-1) translate(240%, -90%) rotate(25deg); }
.dd-clink { position: absolute; left: 50%; bottom: 52%; transform: translateX(-50%) scale(0); font-size: 1.8rem; z-index: 4; opacity: 0; }
.dd-scene.cheers .dd-clink { animation: ddClink 1s ease 0.4s; }
@keyframes ddClink { 0% { opacity: 0; transform: translateX(-50%) scale(0); } 40% { opacity: 1; transform: translateX(-50%) scale(1.3); } 100% { opacity: 0; transform: translateX(-50%) scale(1); } }
.dd-bubble {
  position: absolute; top: 6%; z-index: 5; max-width: 46%;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 5px 10px;
  font-size: 0.85rem; box-shadow: 0 2px 8px rgba(120, 50, 0, 0.15);
  opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.25s;
}
.dd-bubble.show { opacity: 1; transform: scale(1); }
.dd-bubble-g { left: 4%; }
.dd-bubble-o { right: 4%; }
.dd-fly { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -70%); font-size: 1.5rem; }
.dd-fly-bite { position: relative; z-index: 1; }
.dd-sticks { position: absolute; left: 35%; top: -70%; font-size: 1.6rem; transform: rotate(-20deg); }

/* ---------- Plan our date (after the monthly letter) ---------- */
.dt-scene {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto 10px;
  aspect-ratio: 34 / 30; border-radius: 14px; overflow: hidden;
  transition: background 0.8s ease;
}
.dt-bg-bedroom  { background: linear-gradient(180deg, #fff6e8 0%, #ffe1bd 60%, #f7c999 100%); }
.dt-bg-street   { background: linear-gradient(180deg, #bfe6f5 0%, #ffe9cf 62%, #e8d2b8 62%, #dcc2a5 100%); }
.dt-bg-flowers  { background: linear-gradient(180deg, #ffe8ef 0%, #ffe0c8 60%, #f7cfae 100%); }
.dt-bg-meet     { background: linear-gradient(180deg, #ffd9a8 0%, #ffeccf 58%, #b9dc9a 58%, #9fcb82 100%); }
.dt-bg-restaurant { background: radial-gradient(circle at 50% 35%, #ffe2b8 0%, #ffb877 55%, #f08a4b 100%); }
.dt-bg-spa      { background: linear-gradient(180deg, #fff1e4 0%, #f9d9c0 60%, #e9bfa0 100%); }
.dt-bg-shop     { background: linear-gradient(180deg, #fff4e2 0%, #ffd6a6 100%); }
.dt-bg-theatre  { background: repeating-linear-gradient(90deg, #8e1c2c 0 18px, #a8263a 18px 36px); }
.dt-bg-karaoke  { background: radial-gradient(circle at 50% 20%, #ff9a3c 0%, #b23a7a 45%, #3b1f5e 100%); }
.dt-bg-beach    { background: linear-gradient(180deg, #ffd29c 0%, #ffe8c8 40%, #6cc0dc 40%, #3f9ec4 62%, #f6dcae 62%, #ecc98f 100%); }
.dt-bg-dusk     { background: linear-gradient(180deg, #6b4c8f 0%, #e8708a 45%, #ffb36b 100%); }
.dt-bg-bar      { background: radial-gradient(circle at 50% 30%, #ffb36b 0%, #9a3d5c 55%, #3a1c3d 100%); }
.dt-bg-night    { background: radial-gradient(circle at 70% 20%, #4b4a86 0%, #232650 60%, #15173a 100%); }
.dt-bg-home     { background: linear-gradient(180deg, #232650 0%, #3d3466 70%, #5a4a6e 100%); }

.dt-props { position: absolute; inset: 0; }
.dt-prop { position: absolute; font-size: 1.9rem; opacity: 0.9; }
.dt-prop-0 { left: 6%; bottom: 10%; }
.dt-prop-1 { left: 44%; top: 8%; font-size: 1.5rem; }
.dt-prop-2 { right: 6%; top: 30%; }
.dt-bg-bedroom .dt-prop-0 { font-size: 4rem; left: 30%; bottom: 6%; }

.dt-octo {
  position: absolute; left: 50%; bottom: 8%; width: 40%;
  transform: translateX(-50%); transition: opacity 0.4s;
}
.dt-octo-body svg { width: 100%; height: auto; display: block; }
.dt-octo.bounce .dt-octo-body { animation: dtBounce 0.7s ease; }
.dt-octo.happy .dt-octo-body { animation: dtSway 2.4s ease-in-out infinite; }
.dt-octo.blush .dt-octo-body { animation: dtSway 2.4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 140, 160, 0.8)); }
@keyframes dtBounce { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
@keyframes dtSway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.dt-bouquet {
  position: absolute; width: 46%; left: 50%; bottom: -6%;
  transform: translateX(-50%) scale(0); transform-origin: 50% 100%;
  transition: transform 0.5s cubic-bezier(.3,1.5,.5,1);
}
.dt-octo.with-bouquet .dt-bouquet { transform: translateX(-50%) scale(1); }
.dt-octo.with-hers::after { content: "💐"; position: absolute; right: -8%; bottom: 0; font-size: 1.8rem; }
.dt-clock {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  background: rgba(255, 255, 255, 0.85); border-radius: 999px;
  padding: 3px 10px; font-size: 0.8rem; color: var(--ink);
}
.dt-held {
  position: absolute; right: 8px; top: 8px; z-index: 3; width: 22%;
  background: rgba(255, 255, 255, 0.8); border-radius: 12px; padding: 4px;
  text-align: center; font-size: 1.6rem; line-height: 1.1;
}
.dt-held small { display: block; font-size: 0.6rem; color: var(--ink); word-break: break-word; }
.dt-held-bouquet svg { width: 100%; height: auto; display: block; }
.dt-says {
  position: absolute; left: 50%; top: 14%; z-index: 4; max-width: 80%; width: max-content;
  transform: translateX(-50%) scale(0.7); opacity: 0;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 6px 12px;
  font-size: 0.9rem; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: opacity 0.25s, transform 0.25s;
}
.dt-says.show { opacity: 1; transform: translateX(-50%) scale(1); }
.dt-pop {
  position: absolute; left: 50%; top: 45%; z-index: 5; font-size: 3rem;
  animation: dtPop 2.6s ease forwards; pointer-events: none;
}
@keyframes dtPop { 0% { transform: translate(-50%, 0) scale(0); opacity: 0; } 20% { transform: translate(-50%, -10px) scale(1.2); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -40px) scale(1); opacity: 0; } }
.dt-scene.dt-zzz::after {
  content: "💤"; position: absolute; left: 50%; top: 30%; font-size: 3rem;
  animation: dtPop 1.6s ease forwards;
}
.dt-story { text-align: center; font-style: italic; min-height: 1.4em; margin: 4px 8px 10px; opacity: 0.85; }
.dt-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dt-choices .game-btn { margin: 0; }
.dt-choices .game-btn.dt-off { opacity: 0.4; }
.dt-flower-form { display: flex; gap: 8px; width: 100%; max-width: 340px; }
.dt-flower-input {
  flex: 1; min-width: 0; font: inherit; padding: 10px 14px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 999px; background: #fff;
}
.dt-summary {
  width: 100%; max-width: 340px; background: var(--paper); border-radius: 12px;
  padding: 14px 18px; text-align: left; box-shadow: 0 3px 10px rgba(120, 50, 0, 0.12);
}
.dt-summary h3 { font-family: "Segoe Script", "Bradley Hand", cursive; font-weight: normal; color: var(--seal); text-align: center; margin-bottom: 6px; }
.dt-summary ul { list-style: none; font-size: 0.9rem; line-height: 1.7; }
.dt-summary li::before { content: "♡ "; color: var(--seal); }
/* surprise: tentacles cover her eyes */
.dt-scene.dt-blind::before {
  content: "🙈"; position: absolute; inset: 0; z-index: 6;
  display: flex; align-items: center; justify-content: center; font-size: 3.4rem;
  background:
    radial-gradient(ellipse 34% 60% at 0% 50%, #dc2a20 98%, transparent),
    radial-gradient(ellipse 34% 60% at 100% 50%, #dc2a20 98%, transparent),
    #2b1810;
  animation: dtBlind 0.6s ease;
}
@keyframes dtBlind { from { opacity: 0; } to { opacity: 1; } }
.dt-trip-wheel { width: 100%; max-width: 260px; margin: 0 auto 6px; }
/* starry night + shooting star (date: under the stars) */
.dt-bg-starry { background: linear-gradient(180deg, #0d1030 0%, #1d2350 55%, #3b3a6e 78%, #2a4a3a 78%, #1f3a2c 100%); }
.dt-bg-starry .dt-prop-0 { left: 8%; top: 24%; bottom: auto; font-size: 2.2rem; }
.dt-star {
  position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.7);
  animation: dtTwinkle 2.4s ease-in-out infinite;
}
@keyframes dtTwinkle { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
.dt-shooting {
  position: absolute; left: 8%; top: 8%; width: 110px; height: 3px; z-index: 2;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff6d0 80%, #fff);
  box-shadow: 0 0 10px 2px rgba(255, 240, 180, 0.8);
  transform: rotate(24deg); opacity: 0;
  animation: dtShoot 1.6s ease-out forwards;
}
@keyframes dtShoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(24deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(190px, 85px) rotate(24deg); }
}
