/* Seven-chapter visual refresh: one memory, one material world. */

:root {
  --story-cream: #fff9ef;
  --story-ink: #3f2b2c;
  --story-muted: #755e5a;
  --story-rose: #a74d60;
  --story-gold: #c99453;
  --story-pine: #123a31;
  --story-night: #0c2531;
  --story-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --story-hand: "Kaiti SC", "STKaiti", KaiTi, var(--story-display);
}

body {
  background: #ead8c2;
}

.paper-grain {
  opacity: 0.085;
}

/* The entrance reads like an opened keepsake envelope. */

.gate {
  background:
    radial-gradient(circle at 17% 18%, rgba(255, 249, 236, 0.9) 0 12%, transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(142, 83, 78, 0.13), transparent 29%),
    linear-gradient(132deg, #deb99a 0%, #f2ddc5 41%, #e6cbb2 72%, #cfa989 100%);
}

.gate::before {
  top: -17vw;
  left: -13vw;
  width: min(38vw, 440px);
  border-color: rgba(105, 66, 58, 0.1);
  border-radius: 44% 56% 50% 50%;
  box-shadow:
    0 0 0 34px rgba(255, 248, 234, 0.1),
    0 0 0 82px rgba(255, 248, 234, 0.06);
  transform: rotate(18deg);
}

.gate::after {
  right: -12vw;
  bottom: -24vw;
  width: min(45vw, 520px);
  border-color: rgba(51, 84, 72, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 248, 234, 0.07),
    0 0 0 105px rgba(255, 248, 234, 0.04);
}

.gate__glow {
  background: rgba(255, 250, 241, 0.38);
}

.gate__card {
  width: min(100%, 690px);
  padding: 82px 78px 62px;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(133, 89, 72, 0.035) 7.2%, transparent 7.5%),
    linear-gradient(116deg, rgba(255, 255, 255, 0.64), transparent 33% 67%, rgba(209, 169, 132, 0.1)),
    var(--story-cream);
  border: 1px solid rgba(104, 63, 56, 0.22);
  border-radius: 3px;
  box-shadow:
    0 38px 92px rgba(75, 45, 38, 0.2),
    10px 12px 0 rgba(255, 249, 238, 0.34);
  transform: rotate(-0.4deg);
}

.gate__card::before {
  inset: 18px;
  border-color: rgba(104, 63, 56, 0.11);
}

.gate__card::after {
  content: "♥";
  position: absolute;
  top: 26px;
  right: 27px;
  display: grid;
  place-items: center;
  width: 66px;
  height: 78px;
  color: rgba(167, 77, 96, 0.58);
  background:
    radial-gradient(circle at 20% 20%, rgba(167, 77, 96, 0.07) 0 8%, transparent 9%),
    #fffaf1;
  border: 1px dashed rgba(104, 63, 56, 0.3);
  font-family: var(--story-display);
  font-size: 25px;
  transform: rotate(4deg);
}

.gate__seal {
  width: 58px;
  height: 58px;
  margin-top: -111px;
  color: #fff8ed;
  background: #9d4657;
  box-shadow:
    0 0 0 5px var(--story-cream),
    0 0 0 6px rgba(104, 63, 56, 0.18),
    0 10px 22px rgba(92, 50, 49, 0.18);
  transform: rotate(-4deg);
}

.gate__to {
  color: #87505b;
  font-size: 19px;
  letter-spacing: 0.34em;
}

.gate h1 {
  max-width: 10em;
  margin-inline: auto;
  color: #3e292b;
  font-family: var(--story-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.gate__instruction {
  margin-top: 27px;
  color: #755f59;
  font-family: var(--story-hand);
  font-size: 15px;
  letter-spacing: 0.05em;
}

.unlock-form {
  width: min(100%, 455px);
}

.passcode-row {
  gap: 10px;
  padding: 6px;
  background: #efe2d1;
  border-color: rgba(75, 48, 45, 0.13);
}

.passcode-row input {
  background: rgba(255, 251, 244, 0.94);
}

.passcode-row button {
  background: #773b48;
  border-color: #773b48;
}

.gate__footer {
  color: rgba(71, 46, 43, 0.56);
  font-family: var(--story-hand);
  font-size: 14px;
}

/* Shared editorial scaffolding. */

.scene__top {
  color: rgba(56, 39, 40, 0.68);
  letter-spacing: 0.13em;
}

.scene__top p {
  gap: 11px;
}

.scene__top b::before {
  width: 34px;
}

.stage__footer {
  color: rgba(56, 39, 40, 0.53);
}

.scene__top,
.stage__footer {
  pointer-events: none;
}

.scene__top * ,
.stage__footer * {
  pointer-events: auto;
}

.scene__kicker {
  font-family: var(--story-hand);
  letter-spacing: 0.08em;
}

/* Scene titles receive programmatic focus for screen readers, not a visual box. */
.scene h2:focus,
.scene h2:focus-visible {
  outline: none;
}

.scene--meal .scene__top--light,
.scene--cinema .scene__top--light,
.scene--christmas .scene__top--light {
  color: rgba(255, 247, 233, 0.72);
}

.scene--meal .scene__top--light b,
.scene--cinema .scene__top--light b,
.scene--christmas .scene__top--light b {
  color: #e9bd79;
}

.next-button,
.back-button {
  box-shadow: none;
}

/* 01 · The first conversation is a warm letter with a taped chat keepsake. */

.scene--opening {
  color: #432d30;
  background: #e4c3a0;
}

.scene--opening .scene__ambient {
  background-position: center;
  filter: blur(58px) saturate(0.7) sepia(0.1);
  opacity: 0.16;
}

.scene--opening .scene__veil {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 238, 196, 0.84), transparent 28rem),
    linear-gradient(108deg, rgba(255, 249, 238, 0.98) 0 42%, rgba(244, 220, 193, 0.88) 67%, rgba(204, 157, 124, 0.76));
}

.scene--opening .scene__veil::before {
  left: 49%;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 243, 219, 0.74), transparent);
}

.scene--opening .scene__veil::after {
  right: -7%;
  bottom: -40%;
  border-color: rgba(129, 76, 64, 0.08);
  box-shadow:
    0 0 0 54px rgba(167, 77, 96, 0.025),
    0 0 0 112px rgba(255, 248, 237, 0.09);
}

.opening__layout {
  grid-template-columns: minmax(330px, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(54px, 8vw, 128px);
  width: min(1290px, calc(100vw - 10vw));
}

.opening__copy {
  padding-bottom: 12px;
}

.opening__copy h2 {
  color: #382529;
  font-size: clamp(68px, 7.6vw, 116px);
  line-height: 0.96;
}

.opening__copy h2 span {
  color: #934454;
}

.opening__lead {
  padding-left: 21px;
  margin-top: 36px;
  border-left: 1px solid rgba(137, 78, 71, 0.27);
  color: #715856;
}

.chat-keepsake {
  width: min(100%, 655px);
  padding: 16px 16px 53px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.72), transparent 45%),
    #fffaf1;
  box-shadow:
    0 36px 78px rgba(85, 54, 44, 0.25),
    9px 11px 0 rgba(255, 250, 241, 0.3);
  transform: rotate(2.1deg);
}

.chat-keepsake::after {
  content: "10.31";
  position: absolute;
  right: -28px;
  bottom: 30px;
  display: grid;
  place-items: center;
  width: 79px;
  height: 79px;
  color: rgba(134, 70, 76, 0.55);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  transform: rotate(-12deg);
}

.chat-keepsake::before {
  border-color: rgba(63, 43, 44, 0.07);
}

.doodle--glass {
  color: rgba(141, 72, 80, 0.27);
}

.doodle--branch {
  color: rgba(53, 92, 75, 0.28);
}

/* 02 · The first meal is a candlelit menu card. */

.scene--meal {
  color: #fff4e5;
  background: #2c1a1a;
}

.meal__ambient {
  filter: blur(42px) saturate(0.9) brightness(0.48);
  opacity: 0.54;
}

.meal__veil {
  background:
    radial-gradient(circle at 20% 77%, rgba(212, 113, 71, 0.18), transparent 25rem),
    radial-gradient(circle at 74% 17%, rgba(241, 188, 106, 0.22), transparent 29rem),
    linear-gradient(108deg, rgba(37, 20, 20, 0.96) 0 39%, rgba(67, 36, 31, 0.91) 68%, rgba(54, 31, 27, 0.88));
}

.meal__layout {
  grid-template-columns: minmax(440px, 1.08fr) minmax(370px, 0.92fr);
  gap: clamp(50px, 8vw, 126px);
  width: min(1260px, calc(100vw - 10vw));
}

.meal__photos {
  width: min(100%, 590px);
}

.meal-photo {
  left: 3%;
  transform: rotate(-3.8deg);
}

.game-photo {
  right: 1%;
  transform: rotate(5deg);
}

.meal__copy {
  padding: clamp(28px, 3.3vw, 46px);
  color: #432b27;
  background:
    linear-gradient(90deg, transparent 0 11px, rgba(147, 81, 52, 0.08) 12px, transparent 13px),
    linear-gradient(135deg, rgba(255, 252, 246, 0.84), transparent 34%),
    rgba(247, 230, 205, 0.96);
  border: 1px solid rgba(96, 56, 43, 0.28);
  box-shadow:
    0 32px 70px rgba(14, 8, 8, 0.35),
    8px 9px 0 rgba(220, 175, 119, 0.12);
  transform: rotate(-0.7deg);
}

.meal__copy::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 16%;
  left: 16%;
  height: 21px;
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(133, 89, 60, 0.08) 12px 13px),
    rgba(225, 195, 159, 0.72);
  transform: rotate(1deg);
}

.meal__copy .scene__kicker--light {
  color: #a45c36;
}

.meal__copy h2 {
  max-width: 8.4em;
  color: #3e2925;
  font-size: clamp(44px, 4.2vw, 60px);
}

.meal__place {
  color: #9e502f;
}

.meal__lead {
  color: #775a4c;
}

.meal__copy .back-button--light {
  color: #765346;
  background: rgba(255, 250, 240, 0.38);
  border-color: rgba(118, 83, 70, 0.32);
}

.meal__copy .back-button--light:hover {
  color: #623f34;
  background: rgba(255, 250, 240, 0.82);
  border-color: rgba(118, 83, 70, 0.58);
}

.meal__copy .next-button {
  color: #fff9f0;
  background: #7c3b38;
  border-color: #7c3b38;
}

.meal__copy .next-button:hover {
  color: #fff9f0;
  background: #4e2726;
  border-color: #4e2726;
}

/* 03 · The first movie becomes a midnight film still. */

.scene--cinema {
  background: #071e2a;
}

.cinema__ambient {
  filter: blur(48px) saturate(0.92) brightness(0.42);
  opacity: 0.62;
}

.cinema__veil {
  background:
    radial-gradient(circle at 83% 17%, rgba(229, 174, 91, 0.22), transparent 25rem),
    linear-gradient(105deg, rgba(5, 20, 29, 0.98) 0 39%, rgba(9, 35, 47, 0.91) 64%, rgba(26, 54, 58, 0.82));
}

.cinema__layout {
  grid-template-columns: minmax(360px, 0.9fr) minmax(470px, 1.1fr);
  gap: clamp(50px, 7.5vw, 118px);
  width: min(1260px, calc(100vw - 10vw));
}

.cinema__copy h2 span {
  color: #e3b76f;
  font-size: 0.6em;
  letter-spacing: 0.02em;
}

.cinema__photos {
  width: min(100%, 585px);
}

.theater-photo {
  right: 1%;
  transform: rotate(2.8deg);
}

.ticket-photo {
  left: 1%;
  transform: rotate(-4.7deg);
}

.cinema__photos::after {
  content: "ONE NIGHT · ONE MOVIE";
  position: absolute;
  right: -3%;
  bottom: 1%;
  color: rgba(255, 240, 213, 0.28);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

/* 04 · Christmas becomes a glowing green room, mirrored in composition. */

.scene--christmas {
  background: #09251e;
}

.christmas__ambient {
  filter: blur(50px) saturate(0.9) brightness(0.38);
  opacity: 0.62;
}

.christmas__veil {
  background:
    radial-gradient(circle at 18% 15%, rgba(245, 199, 104, 0.2), transparent 23rem),
    radial-gradient(circle at 84% 76%, rgba(206, 104, 60, 0.13), transparent 26rem),
    linear-gradient(104deg, rgba(7, 36, 29, 0.95) 0 42%, rgba(13, 50, 39, 0.9) 71%, rgba(67, 55, 34, 0.7));
}

.christmas__layout {
  grid-template-columns: minmax(470px, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(48px, 7.5vw, 122px);
  width: min(1260px, calc(100vw - 10vw));
}

.christmas__photos {
  order: 0;
}

.christmas__copy {
  order: 1;
  padding-left: clamp(22px, 3vw, 42px);
}

.christmas__copy::before {
  content: "04";
  position: absolute;
  top: -0.62em;
  left: -0.14em;
  z-index: -1;
  color: rgba(255, 239, 204, 0.045);
  font-family: Baskerville, "Times New Roman", serif;
  font-size: clamp(150px, 16vw, 236px);
  line-height: 1;
  letter-spacing: -0.08em;
}

.christmas__copy::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 26px;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(232, 190, 104, 0.52), transparent);
}

.christmas__photos {
  width: min(100%, 590px);
}

.christmas-tree-photo {
  left: 2%;
  transform: rotate(-3.2deg);
}

.christmas-selfie-photo {
  right: 1%;
  transform: rotate(3.7deg);
}

.mulled-wine-photo {
  right: 10%;
  transform: rotate(-4.2deg);
}

.doodle--lights {
  right: 0;
  width: 72%;
}

/* 05 · Valentine's Day is a bright gift box, not another dark room. */

.scene--valentines {
  color: #472b35;
  background: #f4dfe2;
}

.valentines__ambient {
  filter: blur(58px) saturate(0.95) brightness(1.06);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.valentines__veil {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.85), transparent 22rem),
    radial-gradient(circle at 12% 82%, rgba(164, 200, 211, 0.33), transparent 29rem),
    linear-gradient(112deg, rgba(255, 249, 245, 0.95) 0 40%, rgba(248, 224, 227, 0.94) 68%, rgba(221, 228, 233, 0.91));
}

.valentines__veil::before {
  content: "";
  position: absolute;
  top: 15%;
  right: 7%;
  width: min(40vw, 510px);
  aspect-ratio: 1;
  border: 1px solid rgba(173, 89, 108, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(255, 255, 255, 0.1),
    0 0 0 94px rgba(173, 89, 108, 0.025);
}

.valentines__veil::after {
  top: 30%;
  left: 5%;
  width: min(31vw, 390px);
  height: min(31vw, 390px);
  background:
    radial-gradient(circle at 34% 28%, rgba(173, 89, 108, 0.08), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent);
  border: 1px solid rgba(173, 89, 108, 0.06);
  border-radius: 49% 51% 46% 54%;
  transform: rotate(-14deg);
}

.scene--valentines .scene__top--light {
  color: rgba(75, 46, 57, 0.63);
}

.scene--valentines .scene__top--light b {
  color: #a84f66;
}

.valentines__layout {
  grid-template-columns: minmax(330px, 0.84fr) minmax(500px, 1.16fr);
  gap: clamp(44px, 7vw, 106px);
  width: min(1260px, calc(100vw - 10vw));
}

.valentines__copy h2 {
  color: #472b35;
}

.valentines__copy h2 span {
  color: #b14e69;
}

.valentines__lead {
  color: #72535d;
}

.valentines__copy .scene__kicker {
  color: #a64a63;
}

.valentines__copy .back-button--valentine {
  color: #76505c;
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(155, 78, 98, 0.34);
}

.valentines__copy .back-button--valentine:hover {
  color: #5d3541;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(155, 78, 98, 0.56);
}

.valentines-couple-photo,
.valentines-gifts-photo,
.valentines-hair-photo,
.valentines-closeup-photo {
  box-shadow:
    0 26px 54px rgba(94, 59, 68, 0.2),
    7px 8px 0 rgba(255, 255, 255, 0.28);
}

.valentines-couple-photo {
  transform: rotate(-3deg);
}

.valentines-gifts-photo {
  transform: rotate(4deg);
}

.valentines-hair-photo {
  transform: rotate(-2.5deg);
}

.valentines-closeup-photo {
  transform: rotate(4.2deg);
}

.doodle--valentine-heart {
  color: rgba(180, 83, 108, 0.34);
}

.scene--valentines .stage__footer--light {
  color: rgba(71, 43, 53, 0.56);
}

.scene--valentines .stage__footer--light .scene-number i {
  background-color: rgba(71, 43, 53, 0.2);
}

.scene--valentines .stage__footer--light .scene-number b {
  color: #9e4860;
}

/* 06 · Camping is a sunlit picnic scrapbook spread. */

.scene--camping {
  color: #3f4a31;
  background: #f5e6bc;
}

.camping__ambient {
  filter: blur(54px) saturate(0.82) brightness(1.08);
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.camping__veil {
  background:
    repeating-linear-gradient(45deg, transparent 0 37px, rgba(119, 146, 92, 0.075) 38px 40px),
    repeating-linear-gradient(135deg, transparent 0 37px, rgba(233, 181, 88, 0.07) 38px 40px),
    radial-gradient(circle at 17% 17%, rgba(255, 250, 221, 0.94), transparent 27rem),
    linear-gradient(113deg, #f8ecc9 0 52%, #eadcae 100%);
}

.camping__veil::before {
  content: "";
  position: absolute;
  top: 11%;
  right: 4%;
  width: min(40vw, 500px);
  aspect-ratio: 1;
  background: rgba(255, 250, 226, 0.18);
  border: 1px solid rgba(82, 108, 61, 0.09);
  border-radius: 47% 53% 55% 45%;
  transform: rotate(11deg);
}

.camping__veil::after {
  top: auto;
  bottom: -26%;
  left: -14%;
  width: 79vw;
  height: 45%;
  background: rgba(122, 148, 90, 0.06);
  border: 1px solid rgba(82, 108, 61, 0.08);
  border-radius: 50%;
  box-shadow: 0 -24px 0 rgba(255, 244, 201, 0.18);
}

.scene--camping .scene__top--light {
  color: rgba(65, 76, 52, 0.65);
}

.scene--camping .scene__top--light b {
  color: #6e7f4f;
}

.camping__layout {
  grid-template-columns: minmax(480px, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(48px, 7.5vw, 120px);
  width: min(1260px, calc(100vw - 10vw));
}

.camping__photos {
  order: 0;
  width: min(100%, 590px);
}

.camping__copy {
  order: 1;
  padding: clamp(26px, 3.2vw, 43px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.64), transparent 40%),
    rgba(255, 251, 236, 0.9);
  border: 1px solid rgba(88, 108, 65, 0.2);
  box-shadow:
    0 30px 68px rgba(87, 75, 42, 0.16),
    8px 9px 0 rgba(255, 250, 235, 0.38);
  transform: rotate(0.7deg);
}

.camping__copy::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 14%;
  left: 14%;
  height: 20px;
  background: rgba(230, 193, 100, 0.62);
  transform: rotate(-1.4deg);
}

.camping__copy h2 {
  color: #3f4a31;
}

.camping__copy h2 span {
  color: #80905c;
}

.camping__lead {
  color: #6d6547;
}

.camping__copy .scene__kicker {
  color: #7b6740;
}

.camping__copy .back-button--camping {
  color: #657250;
  background: transparent;
  border-color: rgba(101, 114, 80, 0.36);
}

.camping__copy .back-button--camping:hover {
  color: #47523b;
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(101, 114, 80, 0.58);
}

.camping-riverside-photo img,
.camping-picnic-photo img {
  object-fit: contain;
}

.camping-riverside-photo,
.camping-picnic-photo {
  box-shadow:
    0 24px 52px rgba(87, 75, 42, 0.2),
    6px 7px 0 rgba(255, 250, 235, 0.36);
}

.camping-riverside-photo {
  top: 4%;
  left: 1%;
  transform: rotate(-3deg);
}

.camping-picnic-photo {
  right: 1%;
  transform: rotate(3.8deg);
}

.doodle--camping-sun {
  color: rgba(188, 141, 54, 0.46);
}

.scene--camping .stage__footer--light {
  color: rgba(60, 71, 48, 0.53);
}

.scene--camping .stage__footer--light .scene-number i {
  background-color: rgba(60, 71, 48, 0.18);
}

.scene--camping .stage__footer--light .scene-number b {
  color: #748358;
}

/* 07 · The first trip rests against the sunset silhouette from that day. */

.scene--travel {
  color: #214d58;
  background: #173548;
}

.travel__ambient {
  position: absolute;
  inset: -10%;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(14, 40, 58, 0.16), rgba(241, 167, 82, 0.08)),
    url("assets/photos/web/travel-guangxi-sunset.jpg") center 49% / cover;
  filter: blur(1.2px) saturate(1.04) brightness(0.8);
  opacity: 0.96;
  transform: scale(1.06);
}

.travel__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 62%, rgba(255, 156, 72, 0.12), transparent 27rem),
    radial-gradient(circle at 15% 16%, rgba(255, 247, 220, 0.12), transparent 28rem),
    linear-gradient(98deg, rgba(255, 249, 235, 0.82) 0 27%, rgba(250, 218, 170, 0.32) 50%, rgba(20, 49, 67, 0.04) 100%),
    linear-gradient(180deg, rgba(16, 45, 63, 0.04), rgba(241, 177, 93, 0.1));
}

.travel__veil::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  left: -12%;
  height: 39%;
  background: rgba(248, 218, 163, 0.1);
  border: 1px solid rgba(255, 229, 188, 0.13);
  border-radius: 50% 50% 45% 45%;
  transform: rotate(-2deg);
}

.scene--travel .scene__top {
  padding: 7px 10px;
  color: rgba(28, 68, 79, 0.82);
  background: rgba(255, 249, 235, 0.46);
  backdrop-filter: blur(7px);
}

.scene--travel .scene__top b {
  color: #a76f3c;
}

.travel__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(500px, 1.2fr);
  align-items: center;
  gap: clamp(44px, 7vw, 116px);
  width: min(1270px, calc(100vw - 10vw));
  height: 100%;
  padding: 82px 0 70px;
  margin: 0 auto;
}

.travel__copy {
  position: relative;
  z-index: 5;
  padding: clamp(29px, 3.4vw, 48px);
  background:
    linear-gradient(90deg, transparent 0 15px, rgba(54, 138, 153, 0.055) 16px, transparent 17px),
    linear-gradient(133deg, rgba(255, 255, 255, 0.8), transparent 38%),
    rgba(255, 251, 239, 0.94);
  border: 1px solid rgba(38, 111, 124, 0.2);
  box-shadow:
    0 32px 68px rgba(42, 97, 104, 0.17),
    8px 9px 0 rgba(255, 250, 236, 0.34);
  transform: rotate(-0.8deg);
}

.travel__copy::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 15%;
  width: 102px;
  height: 28px;
  background: rgba(255, 246, 211, 0.76);
  box-shadow: 0 2px 5px rgba(70, 95, 84, 0.08);
  transform: rotate(-3deg);
}

.travel__copy::after {
  content: "GUANGXI";
  position: absolute;
  right: -31px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 46px;
  color: rgba(36, 119, 135, 0.5);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Baskerville, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  transform: rotate(-12deg);
}

.travel__copy .scene__kicker {
  margin-bottom: 14px;
  color: #357889;
}

.travel__copy h2 {
  max-width: 100%;
  margin: 0;
  color: #214d58;
  font-family: var(--story-display);
  font-size: clamp(48px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
  white-space: nowrap;
}

.travel__copy h2 span {
  position: relative;
  display: inline-block;
}

.travel__copy h2 span::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -6px;
  left: 3px;
  height: 5px;
  background: linear-gradient(174deg, transparent 30%, rgba(238, 176, 87, 0.62) 33% 64%, transparent 67%);
}

.travel__place {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 23px 0 2px;
  color: #286f80;
  font-family: var(--story-hand);
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: 0.24em;
}

.travel__place::before {
  content: "";
  width: 37px;
  height: 1px;
  background: currentColor;
}

.travel__lead {
  max-width: 18em;
  margin: 11px 0 0;
  color: #665960;
  font-family: var(--story-hand);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

.travel__copy .scene-actions {
  margin-top: 29px;
}

.travel__copy .back-button--travel {
  color: #346d78;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(52, 109, 120, 0.32);
}

.travel__copy .back-button--travel:hover {
  color: #1f4f59;
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(52, 109, 120, 0.55);
}

.travel__photos {
  position: relative;
  width: min(100%, 615px);
  height: min(74svh, 700px);
  min-height: 450px;
  margin: 0 auto;
}

.travel-photo {
  position: absolute;
  padding: 8px;
  margin: 0;
  background: #fffaf0;
  box-shadow:
    0 28px 58px rgba(36, 89, 96, 0.24),
    7px 8px 0 rgba(255, 250, 237, 0.28);
}

.travel-photo::after {
  content: "";
  position: absolute;
  inset: 13px 13px auto;
  height: calc(100% - 26px);
  border: 1px solid rgba(31, 72, 79, 0.035);
  pointer-events: none;
}

.travel-photo img {
  display: block;
  width: 100%;
  height: 100%;
  background: #dce8e8;
  object-fit: contain;
  object-position: center;
}

.travel-photo--beach-carry {
  top: 4%;
  left: 0;
  z-index: 3;
  width: 44%;
  height: 76%;
  transform: rotate(-2.5deg);
}

.travel-photo--sunset {
  top: 0;
  right: 4%;
  z-index: 2;
  width: 39%;
  height: 62%;
  transform: rotate(2.4deg);
}

.travel-photo--shoulder-carry {
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 44%;
  height: 62%;
  transform: rotate(-1.8deg);
}

.travel-photo--seaside {
  bottom: 1%;
  left: 24%;
  z-index: 5;
  width: 42%;
  height: 56%;
  transform: rotate(3.4deg);
}

.travel-photo--beach-carry::before,
.travel-photo--shoulder-carry::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 43%;
  z-index: 2;
  width: 72px;
  height: 25px;
  background: rgba(250, 229, 173, 0.78);
  transform: translateX(-50%) rotate(2deg);
}

.travel-photo--shoulder-carry::before {
  left: 59%;
  background: rgba(177, 221, 226, 0.8);
}

.doodle--travel-wave {
  right: 4%;
  bottom: 2%;
  width: 45%;
  color: rgba(38, 128, 143, 0.3);
}

.scene--travel .scene-number b {
  color: #f0c27d;
}

.scene--travel .stage__footer {
  color: rgba(255, 248, 232, 0.72);
  text-shadow: 0 1px 8px rgba(11, 31, 45, 0.48);
}

.scene--travel .scene-number i {
  background: rgba(255, 248, 232, 0.28);
}

/* The memory question feels like a small card tucked between chapters. */

.question-layer {
  background: rgba(37, 25, 25, 0.54);
  backdrop-filter: blur(12px) saturate(0.8);
}

.question-card {
  width: min(100%, 540px);
  padding: 52px 48px 44px;
  background:
    linear-gradient(90deg, transparent 0 23px, rgba(159, 91, 89, 0.08) 24px, transparent 25px),
    linear-gradient(122deg, rgba(255, 255, 255, 0.68), transparent 39%),
    #fff9ee;
  border-color: rgba(102, 60, 55, 0.24);
  box-shadow:
    0 38px 90px rgba(26, 16, 16, 0.36),
    10px 11px 0 rgba(255, 250, 239, 0.26);
  transform: rotate(-0.45deg);
}

.question-card::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 38%;
  width: 104px;
  height: 25px;
  background: rgba(230, 207, 168, 0.72);
  transform: rotate(-2deg);
}

.question-card__kicker {
  color: #a2525e;
}

.question-card h2 {
  color: #3d292a;
}

.choice-option {
  background: rgba(237, 221, 199, 0.42);
}

.question-card__submit {
  background: #773b48;
  border-color: #773b48;
}

/* Tablet and phone layouts keep the single-scene rhythm. */

@media (max-width: 900px) {
  .gate__card {
    padding: 74px 54px 52px;
  }

  .opening__layout,
  .meal__layout,
  .cinema__layout,
  .christmas__layout,
  .valentines__layout,
  .camping__layout,
  .travel__layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, auto) minmax(0, auto);
    align-content: center;
    justify-items: center;
    gap: clamp(22px, 3.6vh, 34px);
    width: min(680px, calc(100vw - 42px));
    padding: 70px 0 58px;
  }

  .meal__photos,
  .cinema__photos,
  .christmas__photos,
  .valentines__photos,
  .camping__photos,
  .travel__photos {
    order: 0;
    width: min(100%, 560px);
    height: min(43svh, 390px);
    min-height: 260px;
  }

  .opening__copy,
  .meal__copy,
  .cinema__copy,
  .christmas__copy,
  .valentines__copy,
  .camping__copy,
  .travel__copy {
    order: 1;
    width: 100%;
  }

  .chat-keepsake {
    order: 1;
    height: auto;
    min-height: 0;
  }

  .opening__copy {
    order: 2;
  }

  .chat-keepsake::after {
    right: -13px;
    bottom: 22px;
    width: 61px;
    height: 61px;
    font-size: 11px;
  }

  .opening__copy h2 {
    font-size: clamp(56px, 12vw, 86px);
  }

  .opening__lead {
    margin-top: 22px;
  }

  .meal__copy,
  .camping__copy,
  .travel__copy {
    padding: 24px 27px 27px;
  }

  .meal__copy::before,
  .camping__copy::before,
  .travel__copy::before {
    top: -9px;
    height: 18px;
  }

  .christmas__copy {
    padding-left: 23px;
  }

  .christmas__copy::before {
    font-size: 132px;
  }

  .travel__copy::after {
    right: 23px;
    bottom: 18px;
    width: 73px;
    height: 40px;
  }

  .travel__copy h2 {
    font-size: clamp(44px, 8.4vw, 62px);
  }

  .travel__photos {
    height: min(42svh, 390px);
  }
}

@media (max-width: 680px) {
  .gate {
    padding: 74px 15px 38px;
  }

  .gate__card {
    padding: 60px 27px 45px;
  }

  .gate__card::after {
    top: 15px;
    right: 15px;
    width: 47px;
    height: 58px;
    font-size: 18px;
  }

  .gate__seal {
    margin-top: -91px;
  }

  .gate h1 {
    max-width: 9.5em;
    font-size: clamp(28px, 8.3vw, 35px);
    line-height: 1.34;
  }

  .gate__instruction {
    margin-top: 20px;
    font-size: 14px;
  }

  .scene__top {
    right: 19px;
    left: 19px;
  }

  .scene__top p > span {
    display: none;
  }

  .opening__layout,
  .meal__layout,
  .cinema__layout,
  .christmas__layout,
  .valentines__layout,
  .camping__layout,
  .travel__layout {
    gap: clamp(14px, 2.3vh, 23px);
    width: calc(100vw - 38px);
    padding: 58px 0 48px;
  }

  .meal__photos,
  .cinema__photos,
  .christmas__photos,
  .valentines__photos,
  .camping__photos,
  .travel__photos {
    height: min(39svh, 325px);
    min-height: 218px;
  }

  .chat-keepsake {
    width: calc(100% - 8px);
    height: auto;
    min-height: 0;
    padding: 9px 9px 38px;
  }

  .chat-keepsake::after {
    right: -7px;
    bottom: 13px;
    width: 47px;
    height: 47px;
    font-size: 8px;
  }

  .opening__copy h2 {
    font-size: clamp(46px, 13.8vw, 62px);
  }

  .opening__lead {
    padding-left: 14px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.68;
  }

  .meal__copy,
  .camping__copy,
  .travel__copy {
    padding: 20px 21px 23px;
  }

  .meal__copy h2,
  .cinema__copy h2,
  .christmas__copy h2,
  .valentines__copy h2,
  .camping__copy h2 {
    font-size: clamp(36px, 10.7vw, 49px);
    line-height: 1.12;
  }

  .meal__lead,
  .cinema__lead,
  .christmas__lead,
  .valentines__lead,
  .camping__lead {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.62;
  }

  .meal__copy .scene-actions,
  .cinema__copy .scene-actions,
  .christmas__copy .scene-actions,
  .valentines__copy .scene-actions,
  .camping__copy .scene-actions,
  .travel__copy .scene-actions {
    margin-top: 15px;
  }

  .christmas__copy {
    padding-left: 15px;
  }

  .christmas__copy::before {
    font-size: 96px;
  }

  .christmas__copy::after {
    top: 4px;
    bottom: 18px;
  }

  .cinema__photos::after {
    display: none;
  }

  .valentines__veil::before {
    width: 63vw;
  }

  .travel__copy::after {
    display: none;
  }

  .travel__copy h2 {
    font-size: clamp(42px, 12vw, 56px);
    white-space: normal;
  }

  .travel__place {
    margin-top: 14px;
    font-size: 24px;
  }

  .travel__lead {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.55;
  }

  .travel__copy .scene-actions {
    margin-top: 12px;
  }

  .travel__photos {
    height: min(38svh, 315px);
    min-height: 208px;
  }

  .travel-photo {
    padding: 5px;
  }

  .travel-photo--beach-carry {
    top: 2%;
    left: 1%;
    width: 49%;
    height: 70%;
  }

  .travel-photo--sunset {
    top: 0;
    right: 2%;
    width: 42%;
    height: 56%;
  }

  .travel-photo--shoulder-carry {
    right: 1%;
    width: 48%;
    height: 58%;
  }

  .travel-photo--seaside {
    bottom: 0;
    left: 17%;
    width: 45%;
    height: 52%;
  }

  .travel-photo--beach-carry::before,
  .travel-photo--shoulder-carry::before {
    top: -7px;
    width: 47px;
    height: 17px;
  }

  .doodle--travel-wave {
    display: none;
  }

  .question-card {
    padding: 41px 24px 31px;
  }

  .question-card::after {
    top: -9px;
    left: 34%;
    width: 78px;
    height: 19px;
  }
}

@media (max-height: 650px) and (max-width: 900px) {
  .opening__layout,
  .meal__layout,
  .cinema__layout,
  .christmas__layout,
  .valentines__layout,
  .camping__layout,
  .travel__layout {
    gap: 10px;
    padding: 51px 0 37px;
  }

  .meal__photos,
  .cinema__photos,
  .christmas__photos,
  .valentines__photos,
  .camping__photos,
  .travel__photos {
    height: 198px;
    min-height: 198px;
  }

  .chat-keepsake {
    height: auto;
    min-height: 0;
  }

  .meal__copy,
  .camping__copy {
    padding: 15px 18px 17px;
  }

  .meal__lead,
  .cinema__lead,
  .christmas__lead,
  .valentines__lead,
  .camping__lead {
    margin-top: 6px;
    line-height: 1.45;
  }

  .travel__copy {
    padding: 17px 19px 18px;
  }

  .travel__place {
    margin-top: 8px;
    font-size: 22px;
  }

  .travel__lead {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
  }

  .travel__copy .scene-actions {
    margin-top: 8px;
  }
}
