:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: rgba(17, 23, 32, 0.88);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f8fb;
  --muted: #aeb9c7;
  --rose: #ff7a8a;
  --yellow: #ffd166;
  --mint: #79ead7;
  --green: #a8ef75;
  --shadow: rgba(0, 0, 0, 0.34);
  --font-body: "Avenir Next", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-script: "Brush Script MT", "Segoe Script", "Apple Chancery", cursive;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 52px;
  padding: 0 22px;
  transition: transform 180ms ease, filter 180ms ease, width 260ms ease, min-height 260ms ease, font-size 260ms ease;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

.eyebrow {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.dashboard-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(121, 234, 215, 0.14), transparent 36%),
    linear-gradient(315deg, rgba(255, 122, 138, 0.13), transparent 40%),
    var(--bg);
}

.dashboard-shell {
  width: min(920px, 100%);
}

.dashboard-panel {
  align-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
  display: grid;
  gap: 24px;
  min-height: min(620px, calc(100vh - 48px));
  padding: clamp(24px, 6vw, 64px);
}

.dashboard-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  margin: 0;
}

.empty-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  min-height: 118px;
}

.quiet-line {
  color: var(--muted);
  margin: 0;
}

.birthday-page {
  --trail-bg: #11130f;
  --trail-panel: rgba(22, 31, 25, 0.9);
  --trail-panel-strong: rgba(33, 44, 34, 0.96);
  --trail-line: rgba(245, 239, 227, 0.18);
  --trail-text: #f8f2e8;
  --trail-muted: #c9c0b1;
  --trail-gold: #f4bf63;
  --trail-coral: #ff7b68;
  --trail-mint: #6ad7c5;
  --trail-leaf: #c4e576;
  --trail-earth: #b97842;
  --trail-shadow: rgba(0, 0, 0, 0.38);
  background:
    linear-gradient(135deg, rgba(26, 74, 54, 0.72), rgba(17, 19, 15, 0.94) 44%),
    linear-gradient(315deg, rgba(121, 77, 42, 0.44), transparent 48%),
    var(--trail-bg);
  color: var(--trail-text);
  overflow-x: hidden;
}

.birthday-page input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  color: var(--trail-text);
  font: inherit;
  min-height: 52px;
  padding: 0 16px;
  width: 100%;
}

.birthday-page button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.55;
}

.birthday-shell {
  min-height: 100vh;
}

.passport-stage {
  align-items: center;
  display: grid;
  gap: clamp(18px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 100vh;
  padding: clamp(16px, 4vw, 42px);
}

.passport-visual {
  align-self: stretch;
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--trail-shadow);
  min-height: min(680px, calc(100vh - 84px));
  overflow: hidden;
  position: relative;
}

.passport-visual::before {
  background:
    linear-gradient(180deg, rgba(12, 31, 34, 0.06), rgba(8, 11, 8, 0.32)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 82px);
  content: "";
  inset: 0;
  position: absolute;
}

.passport-sky {
  background: linear-gradient(180deg, #162a33 0%, #1f3a2e 54%, #54402c 100%);
  inset: 0;
  position: absolute;
}

.sky-moon,
.garden-moon,
.camp-moon {
  background: #f8e7a8;
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(248, 231, 168, 0.28);
  display: block;
  position: absolute;
}

.sky-moon {
  height: clamp(72px, 10vw, 132px);
  right: 12%;
  top: 12%;
  width: clamp(72px, 10vw, 132px);
}

.sky-star,
.camp-star {
  background: var(--trail-gold);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(244, 191, 99, 0.42);
  display: block;
  height: 7px;
  position: absolute;
  transform: rotate(45deg);
  width: 7px;
}

.passport-stage:not(.hidden) .sky-star {
  animation: birthday-twinkle 2.8s ease-in-out infinite;
}

.star-a {
  left: 16%;
  top: 18%;
}

.star-b {
  animation-delay: 0.7s;
  left: 44%;
  top: 26%;
}

.star-c {
  animation-delay: 1.2s;
  right: 24%;
  top: 42%;
}

.passport-mountains {
  inset: auto 0 0;
  min-height: 54%;
  position: absolute;
}

.mountain {
  border-left: 34vw solid transparent;
  border-right: 34vw solid transparent;
  border-bottom: 46vh solid rgba(40, 63, 45, 0.96);
  bottom: 0;
  display: block;
  left: 2%;
  position: absolute;
}

.mountain-back {
  border-bottom-color: rgba(54, 78, 58, 0.72);
  left: 25%;
  transform: scale(0.86);
}

.mountain-front {
  filter: drop-shadow(0 -10px 30px rgba(0, 0, 0, 0.18));
}

.passport-road {
  background: linear-gradient(180deg, rgba(244, 191, 99, 0), rgba(244, 191, 99, 0.3));
  bottom: 0;
  clip-path: polygon(45% 0, 55% 0, 72% 100%, 28% 100%);
  height: 45%;
  left: 0;
  position: absolute;
  width: 100%;
}

.passport-card,
.progress-strip,
.map-band,
.birthday-section,
.reward-box {
  background: var(--trail-panel);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--trail-shadow);
}

.passport-card {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 5vw, 52px);
}

.passport-card h1,
.expedition-header h1,
.section-heading h2,
.map-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.passport-card h1 {
  font-size: clamp(2.6rem, 8vw, 5.8rem);
}

.passport-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.passport-details div {
  border-bottom: 1px solid var(--trail-line);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(105px, 0.35fr) minmax(0, 1fr);
  padding: 0 0 10px;
}

.passport-details dt {
  color: var(--trail-muted);
  font-weight: 800;
}

.passport-details dd {
  margin: 0;
}

.passport-message {
  color: var(--trail-muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.45;
  margin: 0;
}

.unlock-form {
  display: grid;
  gap: 10px;
}

.unlock-form label {
  color: var(--trail-gold);
  font-weight: 900;
}

.unlock-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.unlock-row button,
.section-complete-row button,
.arcade-panel button,
.reward-box button {
  background: var(--trail-leaf);
  color: #14200e;
}

.preview-badge {
  background: rgba(106, 215, 197, 0.14);
  border: 1px solid rgba(106, 215, 197, 0.42);
  border-radius: 8px;
  color: #d8fff8;
  font-weight: 900;
  margin: 0;
  padding: 10px 12px;
}

.expedition-stage {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(14px, 3vw, 34px);
  width: min(1180px, 100%);
}

.expedition-header {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.expedition-header h1 {
  font-size: clamp(2.1rem, 6vw, 4.8rem);
}

.expedition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--trail-line);
  color: var(--trail-text);
}

.progress-strip {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px;
}

.progress-strip > div:first-child {
  align-items: center;
  display: flex;
  gap: 10px;
}

#progress-count {
  background: var(--trail-gold);
  border-radius: 8px;
  color: #231807;
  display: inline-grid;
  font-weight: 900;
  min-height: 42px;
  min-width: 72px;
  place-items: center;
}

.reward-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.reward-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  color: var(--trail-muted);
  font-size: 0.9rem;
  font-weight: 800;
  max-width: 230px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.reward-badge.is-earned {
  background: rgba(196, 229, 118, 0.16);
  border-color: rgba(196, 229, 118, 0.42);
  color: #ecffd0;
}

.map-band {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
}

.map-copy {
  display: grid;
  gap: 8px;
}

.map-copy h2,
.section-heading h2 {
  font-size: clamp(1.8rem, 5vw, 3.8rem);
}

.map-copy p,
.section-heading p {
  color: var(--trail-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}

.expedition-map {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.map-node {
  align-content: start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--trail-panel-strong);
  border: 1px solid var(--trail-line);
  color: var(--trail-text);
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 14px;
  text-align: left;
}

.map-node strong,
.map-node span,
.map-node em {
  overflow-wrap: anywhere;
}

.map-node strong {
  font-size: 1.08rem;
}

.map-node span:not(.map-node-type) {
  color: var(--trail-muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.map-node em {
  align-self: end;
  color: var(--trail-gold);
  font-style: normal;
  font-weight: 900;
}

.map-node-type {
  color: var(--trail-mint);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-node.is-complete {
  border-color: rgba(196, 229, 118, 0.52);
}

.map-node.is-active {
  outline: 3px solid rgba(244, 191, 99, 0.42);
}

.map-node.is-locked {
  background: rgba(255, 255, 255, 0.05);
}

.section-panel {
  min-height: 320px;
}

.birthday-section {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  padding: clamp(18px, 4vw, 34px);
}

.section-heading {
  display: grid;
  gap: 8px;
}

.welcome-section {
  background:
    linear-gradient(135deg, rgba(244, 191, 99, 0.13), transparent 56%),
    var(--trail-panel);
}

.route-line {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.route-line span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  color: var(--trail-muted);
  font-weight: 900;
  min-height: 72px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.route-line span.is-done {
  background: rgba(196, 229, 118, 0.15);
  color: #efffd5;
}

.backpack-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
}

.pack-items {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pack-item,
.checkpoint,
.food-stall,
.camp-object,
.memory-card,
.wish-star {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  color: var(--trail-text);
}

.pack-item {
  display: grid;
  gap: 6px;
  min-height: 100px;
  padding: 12px;
  text-align: left;
}

.pack-item span,
.camp-object span,
.wish-star span {
  color: var(--trail-muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.pack-item.is-packed {
  background: rgba(106, 215, 197, 0.15);
  border-color: rgba(106, 215, 197, 0.42);
}

.backpack-drop {
  align-content: center;
  background:
    linear-gradient(180deg, rgba(185, 120, 66, 0.22), rgba(51, 38, 26, 0.72)),
    rgba(255, 255, 255, 0.06);
  border: 2px dashed rgba(244, 191, 99, 0.46);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 100%;
  min-width: 0;
  padding: 18px;
  text-align: center;
}

.backpack-drop.is-ready {
  border-style: solid;
  border-color: rgba(196, 229, 118, 0.62);
}

.bag-top {
  background: var(--trail-earth);
  border-radius: 8px 8px 0 0;
  display: block;
  height: 30px;
  justify-self: center;
  width: min(140px, 80%);
}

.packed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.packed-list span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--trail-muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 9px;
}

.trail-path {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkpoint {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 14px;
  text-align: left;
}

.checkpoint span {
  background: var(--trail-gold);
  border-radius: 50%;
  color: #2b1d08;
  display: grid;
  font-weight: 900;
  height: 42px;
  place-items: center;
  width: 42px;
}

.checkpoint em,
.food-stall em {
  color: var(--trail-muted);
  font-style: normal;
  line-height: 1.4;
}

.checkpoint.is-visited,
.food-stall.is-served,
.camp-object.is-found,
.wish-star.is-collected,
.memory-card.is-open {
  background: rgba(196, 229, 118, 0.13);
  border-color: rgba(196, 229, 118, 0.44);
}

.food-street {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.food-stall {
  display: grid;
  gap: 10px;
  min-height: 180px;
  overflow: hidden;
  padding: 0 12px 14px;
  text-align: left;
}

.stall-awning {
  background: repeating-linear-gradient(90deg, var(--trail-coral) 0 18px, var(--trail-gold) 18px 36px);
  display: block;
  height: 34px;
  margin: 0 -12px;
}

.camp-scene,
.moon-garden {
  background:
    linear-gradient(180deg, #17242a 0%, #163327 62%, #493824 100%);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.camp-moon {
  height: 78px;
  right: 14%;
  top: 36px;
  width: 78px;
}

.camp-star-a {
  left: 20%;
  top: 48px;
}

.camp-star-b {
  left: 42%;
  top: 86px;
}

.camp-tent,
.garden-tent {
  border-left: 82px solid transparent;
  border-right: 82px solid transparent;
  border-bottom: 118px solid var(--trail-coral);
  bottom: 42px;
  display: block;
  left: 14%;
  position: absolute;
}

.camp-fire,
.garden-fire {
  background: var(--trail-gold);
  border-radius: 60% 40% 55% 45%;
  bottom: 58px;
  box-shadow: 0 0 34px rgba(244, 191, 99, 0.32);
  display: block;
  height: 58px;
  left: 52%;
  position: absolute;
  transform: rotate(12deg);
  width: 38px;
}

.birthday-section.is-active .camp-fire,
.birthday-section.is-active .garden-fire {
  animation: fire-flicker 1.6s ease-in-out infinite;
}

.camp-hill {
  background: #25381f;
  border-radius: 50% 50% 0 0;
  bottom: -62px;
  display: block;
  height: 150px;
  left: -5%;
  position: absolute;
  width: 110%;
}

.camp-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.camp-object {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 12px;
  text-align: left;
}

.memory-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.memory-card {
  display: grid;
  gap: 12px;
  margin: 0;
  overflow: hidden;
  padding: 10px;
}

.memory-card h3 {
  font-size: 1.02rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.memory-card p {
  color: var(--trail-muted);
  line-height: 1.4;
  margin: 0 0 10px;
}

.memory-card button {
  background: var(--trail-mint);
  color: #08211d;
  min-height: 42px;
  padding: 0 14px;
}

.memory-number {
  color: var(--trail-gold) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.memory-placeholder,
.memory-media img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  display: block;
  width: 100%;
}

.memory-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(106, 215, 197, 0.24), transparent 52%),
    linear-gradient(315deg, rgba(244, 191, 99, 0.2), rgba(255, 255, 255, 0.05));
  display: grid;
  min-height: 150px;
  place-items: center;
}

.memory-placeholder span {
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  height: 46px;
  position: absolute;
  width: 46px;
}

.memory-placeholder strong {
  color: #fff8e6;
  font-size: 2.4rem;
  position: relative;
}

.memory-media img {
  height: auto;
  object-fit: cover;
}

.section-complete-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.section-complete-row span {
  color: var(--trail-muted);
  font-weight: 900;
}

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

.wish-star {
  align-content: center;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 10px;
}

.wish-star strong {
  color: var(--trail-gold);
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.arcade-wrap {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr);
}

.gift-canvas {
  background: #13221c;
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  display: block;
  max-height: 56vh;
  touch-action: none;
  width: 100%;
}

.arcade-panel {
  align-content: start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.completion-panel {
  align-items: center;
  background: rgba(244, 191, 99, 0.13);
  border: 1px solid rgba(244, 191, 99, 0.42);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 14px;
}

.completion-panel span {
  color: #fff2c8;
  font-weight: 900;
}

.bonus-complete {
  background: rgba(106, 215, 197, 0.13);
  border-color: rgba(106, 215, 197, 0.42);
}

.locked-letter {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--trail-line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.locked-letter p {
  color: var(--trail-muted);
  line-height: 1.5;
  margin: 0;
}

.moon-garden {
  min-height: 320px;
}

.garden-moon {
  height: 90px;
  right: 16%;
  top: 34px;
  width: 90px;
}

.garden-tent {
  bottom: 50px;
  left: 16%;
}

.garden-fire {
  bottom: 68px;
  left: 48%;
}

.garden-cake {
  background: #f5efe3;
  border-top: 14px solid var(--trail-coral);
  border-radius: 8px 8px 4px 4px;
  bottom: 66px;
  display: block;
  height: 62px;
  position: absolute;
  right: 18%;
  width: 96px;
}

.birthday-letter-panel {
  box-shadow: none;
  padding: clamp(18px, 4vw, 34px);
}

.typed-letter {
  color: var(--trail-muted);
  font-size: clamp(1.04rem, 2vw, 1.26rem);
  line-height: 1.65;
  min-height: 320px;
  white-space: pre-line;
}

.reward-modal {
  align-items: center;
  background: rgba(3, 5, 4, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 80;
}

.reward-box {
  display: grid;
  gap: 12px;
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

.reward-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
  margin: 0;
}

.reward-box p {
  color: var(--trail-muted);
  line-height: 1.5;
  margin: 0;
}

@keyframes birthday-twinkle {
  0%, 100% { opacity: 0.42; transform: rotate(45deg) scale(0.82); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.16); }
}

@keyframes fire-flicker {
  0%, 100% { transform: rotate(9deg) scale(0.96); }
  50% { transform: rotate(15deg) scale(1.08); }
}

@media (max-width: 1020px) {
  .passport-stage {
    grid-template-columns: 1fr;
  }

  .passport-visual {
    min-height: 420px;
  }

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

  .route-line,
  .trail-path,
  .food-street,
  .camp-actions,
  .memory-grid,
  .star-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arcade-wrap {
    grid-template-columns: 1fr;
  }
}

.apology-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(121, 234, 215, 0.16), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(255, 122, 138, 0.15), transparent 30%),
    linear-gradient(180deg, #0d1018, #090b10 58%, #11100d);
  overflow-x: hidden;
}

.apology-shell {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(16px, 4vw, 36px);
  width: min(1080px, 100%);
}

.letter-panel,
.stage-panel,
.choice-panel,
.accepted-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
}

.letter-panel {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 5vw, 46px);
}

.letter-panel .eyebrow {
  color: #ffd9df;
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 4.8rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 10px;
  text-align: center;
  text-shadow: 0 10px 34px rgba(255, 122, 138, 0.26);
  text-transform: none;
}

.letter-panel h1,
.accepted-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
}

.letter-panel p {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.stage-panel {
  overflow: hidden;
  padding: clamp(10px, 2vw, 20px);
  position: relative;
}

.artwork-panel {
  min-height: auto;
}

.sorry-art {
  display: block;
}

.sorry-art img {
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.boy-svg {
  animation: boy-kneel 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 90%;
}

.girl-svg {
  animation: girl-breathe 4.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 90%;
}

.boy-bow-arm {
  animation: offer-arm 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 15% 50%;
}

.girl-hand {
  animation: girl-hand-soften 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 100% 0;
}

.bouquet {
  animation: bouquet-offer 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 30% 100%;
}

.flower-head {
  animation: flower-pulse 1.8s ease-in-out infinite;
}

.flower-head-2 {
  animation-delay: 0.22s;
}

.speech-bubble {
  animation: speech-float 2.4s ease-in-out infinite;
}

.twinkle {
  animation: twinkle 2.8s ease-in-out infinite;
}

.twinkle-2 {
  animation-delay: 0.55s;
}

.twinkle-3 {
  animation-delay: 1.05s;
}

.heart-pop {
  animation: heart-pop 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.heart-2 {
  animation-delay: 0.45s;
}

.heart-3 {
  animation-delay: 0.9s;
}

.petal-float {
  animation: petal-float 4.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.petal-b {
  animation-delay: 0.7s;
}

.petal-c {
  animation-delay: 1.25s;
}

.comfort-panel {
  background: rgba(17, 23, 32, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(22px, 5vw, 46px);
}

.comfort-copy {
  display: grid;
  gap: 12px;
}

.comfort-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.3rem);
  font-weight: 800;
  line-height: 0.98;
  margin: 0;
}

.comfort-copy p {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.55;
  margin: 0;
  max-width: 840px;
}

.moment-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.moment-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0;
  overflow: hidden;
  padding: 10px;
}

.moment-card img {
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.moment-card figcaption {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
  padding: 0 2px 4px;
}

.comfort-note {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
}

.comfort-note p {
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.55;
  margin: 0;
}

.comfort-note strong {
  color: #fff2bd;
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.02;
  text-shadow: 0 8px 28px rgba(255, 209, 102, 0.18);
}

.choice-panel {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  min-height: 120px;
  padding: 20px;
}

.accept-button {
  background: var(--green);
  color: #11190c;
  width: min(260px, 100%);
}

.angry-button {
  background: var(--rose);
  color: #211014;
}

.angry-floating {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
  position: fixed;
  z-index: 20;
}

.accept-takeover {
  background: transparent;
  border: 0;
  box-shadow: none;
  inset: 0;
  padding: 12px;
  position: fixed;
  z-index: 30;
}

.accept-takeover .accept-button {
  border-radius: 8px;
  height: calc(100vh - 24px);
  width: calc(100vw - 24px) !important;
}

.accepted-page {
  background:
    radial-gradient(circle at 28% 10%, rgba(121, 234, 215, 0.15), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 209, 102, 0.13), transparent 30%),
    var(--bg);
}

.accepted-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(16px, 4vw, 36px);
  place-items: center;
}

.accepted-panel {
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: clamp(22px, 5vw, 52px);
  text-align: center;
  width: min(980px, 100%);
}

.accepted-title {
  display: grid;
  gap: 4px;
  letter-spacing: 0;
}

.accepted-title span:first-child {
  font-size: clamp(2.7rem, 8vw, 6.4rem);
}

.accepted-title span:last-child {
  color: #ffd9df;
  font-size: clamp(2rem, 6vw, 4.8rem);
}

.camping-line {
  color: #ffe7b7;
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 8px;
  text-shadow: 0 8px 28px rgba(255, 209, 102, 0.22);
}

.gift-picture {
  display: block;
  place-self: center;
  width: min(100%, 860px);
}

.gift-picture img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
  display: block;
  max-height: min(64vh, 760px);
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

@keyframes boy-kneel {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(7px) rotate(1deg); }
}

@keyframes girl-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes offer-arm {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  50% { transform: rotate(-3deg) translateX(8px); }
}

@keyframes girl-hand-soften {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  50% { transform: rotate(5deg) translateX(-6px); }
}

@keyframes bouquet-offer {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  50% { transform: translateX(12px) translateY(-5px) rotate(-2deg); }
}

@keyframes flower-pulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes speech-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.32; transform: scale(0.72); }
  50% { opacity: 0.95; transform: scale(1.15); }
}

@keyframes heart-pop {
  0%, 100% { opacity: 0.22; transform: translateY(10px) scale(0.72); }
  50% { opacity: 0.82; transform: translateY(-8px) scale(1.12); }
}

@keyframes petal-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
  50% { transform: translate(18px, -28px) rotate(18deg); opacity: 1; }
}

@media (max-width: 760px) {
  .birthday-page button {
    width: 100%;
  }

  .passport-stage,
  .expedition-stage {
    padding: 12px;
  }

  .passport-card {
    padding: 20px;
  }

  .passport-visual {
    min-height: 300px;
  }

  .passport-details div,
  .unlock-row,
  .progress-strip,
  .backpack-layout {
    grid-template-columns: 1fr;
  }

  .expedition-header {
    align-items: stretch;
    display: grid;
  }

  .expedition-actions {
    justify-content: stretch;
  }

  .reward-badges {
    justify-content: flex-start;
  }

  .reward-badge {
    max-width: none;
    width: 100%;
  }

  .expedition-map,
  .route-line,
  .trail-path,
  .food-street,
  .camp-actions,
  .memory-grid,
  .star-grid,
  .pack-items {
    grid-template-columns: 1fr;
  }

  .map-node,
  .checkpoint,
  .food-stall,
  .camp-object,
  .wish-star {
    min-height: auto;
  }

  .backpack-drop {
    min-height: 260px;
  }

  .camp-scene,
  .moon-garden {
    min-height: 250px;
  }

  .camp-tent,
  .garden-tent {
    border-left-width: 58px;
    border-right-width: 58px;
    border-bottom-width: 86px;
  }

  .gift-canvas {
    max-height: none;
  }

  .section-complete-row,
  .completion-panel {
    align-items: stretch;
    display: grid;
  }

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

  .stage-panel {
    padding: 8px;
  }

  .sorry-art img {
    max-height: 78vh;
    object-fit: contain;
  }

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

  .moment-card {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
  }

  .moment-card img {
    aspect-ratio: 9 / 16;
    max-height: 210px;
  }

  .moment-card figcaption {
    font-size: 1rem;
  }

  .accepted-panel {
    gap: 14px;
  }

  .gift-picture img {
    max-height: 66vh;
  }
}

/* Birthday cinematic redesign */
.birthday-page {
  --night: #080d0b;
  --deep: #102018;
  --forest: #1c3a2b;
  --pine: #2f5f47;
  --paper: #f7ead2;
  --paper-soft: #ead9bb;
  --ink: #2a2117;
  --gold: #f1bb62;
  --amber: #ffcf7b;
  --coral: #f07d63;
  --berry: #7e3649;
  --teal: #80e0cd;
  --cream: #fff7e6;
  --glass: rgba(255, 247, 230, 0.08);
  --glass-strong: rgba(255, 247, 230, 0.14);
  --soft-line: rgba(255, 247, 230, 0.2);
  --deep-shadow: rgba(0, 0, 0, 0.48);
  background:
    radial-gradient(circle at 16% 12%, rgba(128, 224, 205, 0.16), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(241, 187, 98, 0.12), transparent 22%),
    linear-gradient(135deg, #07100d 0%, #0d2018 36%, #201822 72%, #100d0a 100%);
}

.birthday-page::before,
.birthday-page::after {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.birthday-page::before {
  background-image:
    radial-gradient(circle, rgba(255, 247, 230, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(128, 224, 205, 0.48) 0 1px, transparent 1.5px);
  background-position: 0 0, 36px 48px;
  background-size: 112px 112px, 148px 148px;
  inset: 0;
  opacity: 0.45;
}

.birthday-page::after {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(49, 95, 71, 0.32), transparent 46%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
  inset: 0;
}

.birthday-shell,
.passport-stage,
.expedition-stage {
  position: relative;
  z-index: 1;
}

.birthday-page button {
  border-radius: 999px;
  letter-spacing: 0;
  min-height: 48px;
}

.birthday-page button:focus-visible,
.birthday-page input:focus-visible {
  outline: 3px solid rgba(255, 207, 123, 0.74);
  outline-offset: 3px;
}

.passport-stage {
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  min-height: 100svh;
  padding: clamp(18px, 4vw, 56px);
}

.passport-visual {
  background: #0f1d19;
  border: 1px solid rgba(255, 247, 230, 0.2);
  border-radius: 28px;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.5),
    inset 0 0 90px rgba(255, 207, 123, 0.08);
  min-height: min(760px, calc(100svh - 72px));
}

.passport-visual::before {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 228, 168, 0.22), transparent 17%),
    linear-gradient(180deg, rgba(3, 9, 14, 0), rgba(3, 9, 14, 0.48));
  z-index: 5;
}

.passport-visual::after {
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255, 247, 230, 0.06) 43% 46%, transparent 47% 100%),
    radial-gradient(ellipse at 50% 105%, rgba(255, 207, 123, 0.18), transparent 48%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 6;
}

.passport-sky {
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 233, 174, 0.18), transparent 11%),
    linear-gradient(180deg, #07121c 0%, #112a2b 44%, #27472f 68%, #5b4430 100%);
}

.sky-moon {
  background:
    radial-gradient(circle at 34% 28%, #fff9d4 0 10%, transparent 11%),
    radial-gradient(circle at 60% 60%, #efd990 0 9%, transparent 10%),
    #fff0ad;
  box-shadow: 0 0 70px rgba(255, 230, 157, 0.44);
  height: clamp(96px, 13vw, 168px);
  right: 13%;
  top: 12%;
  width: clamp(96px, 13vw, 168px);
}

.sky-star {
  background: #fff0ad;
  box-shadow: 0 0 24px rgba(255, 230, 157, 0.76);
}

.star-d {
  animation-delay: 0.35s;
  left: 66%;
  top: 34%;
}

.star-e {
  animation-delay: 1.55s;
  left: 28%;
  top: 44%;
}

.passport-stage:not(.hidden) .sky-star,
.birthday-section.is-active .camp-star,
.birthday-section.is-active .garden-star,
.birthday-section.is-active .wish-star strong {
  animation: birthday-twinkle 3.4s ease-in-out infinite;
}

.mountain {
  border-left-width: min(38vw, 440px);
  border-right-width: min(38vw, 440px);
  border-bottom-color: rgba(29, 66, 45, 0.98);
  border-bottom-width: min(58vh, 520px);
  left: -4%;
}

.mountain-back {
  border-bottom-color: rgba(48, 88, 62, 0.78);
  left: 22%;
}

.passport-road {
  background:
    linear-gradient(180deg, rgba(255, 207, 123, 0), rgba(255, 207, 123, 0.36)),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(255, 247, 230, 0.25) 30px 35px);
  clip-path: polygon(46% 0, 54% 0, 68% 100%, 32% 100%);
  z-index: 3;
}

.passport-scene-copy {
  bottom: clamp(22px, 5vw, 48px);
  color: var(--cream);
  display: grid;
  gap: 6px;
  left: clamp(20px, 5vw, 58px);
  position: absolute;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.62);
  z-index: 8;
}

.passport-scene-copy span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.passport-scene-copy strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  max-width: 560px;
}

.passport-card {
  background:
    linear-gradient(90deg, rgba(92, 49, 37, 0.18), transparent 13% 87%, rgba(92, 49, 37, 0.16)),
    linear-gradient(180deg, #fbefd6, #e9d6b3);
  border: 1px solid rgba(83, 54, 26, 0.34);
  border-radius: 24px;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.45),
    inset 24px 0 34px rgba(83, 54, 26, 0.11),
    inset -10px 0 22px rgba(255, 255, 255, 0.24);
  color: var(--ink);
  gap: 18px;
  padding: clamp(24px, 4.5vw, 54px);
  position: relative;
  transform: rotate(-1.2deg);
}

.passport-card::before {
  border: 2px dashed rgba(126, 54, 73, 0.34);
  border-radius: 18px;
  content: "";
  inset: 14px;
  pointer-events: none;
  position: absolute;
}

.passport-stamp {
  align-items: center;
  border: 3px solid rgba(126, 54, 73, 0.58);
  border-radius: 50%;
  color: rgba(126, 54, 73, 0.82);
  display: grid;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  height: 86px;
  justify-items: center;
  letter-spacing: 0.05em;
  line-height: 1;
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  top: clamp(18px, 4vw, 36px);
  transform: rotate(9deg);
  width: 86px;
}

.passport-card .eyebrow,
.expedition-header .eyebrow,
.map-copy .eyebrow,
.section-heading .eyebrow {
  color: var(--gold);
  letter-spacing: 0.14em;
}

.passport-card .eyebrow {
  color: var(--berry);
}

.passport-card h1 {
  color: #21170f;
  font-size: clamp(3rem, 8vw, 6.1rem);
  max-width: 620px;
}

.passport-intro {
  color: #684d35;
  font-size: clamp(1.03rem, 1.8vw, 1.18rem);
  line-height: 1.58;
  margin: 0;
  max-width: 560px;
}

.passport-details {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(83, 54, 26, 0.16);
  border-radius: 16px;
  gap: 0;
  overflow: hidden;
}

.passport-details div {
  border-bottom: 1px solid rgba(83, 54, 26, 0.16);
  padding: 12px 14px;
}

.passport-details div:last-child {
  border-bottom: 0;
}

.passport-details dt {
  color: #76543a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passport-details dd {
  color: #21170f;
  font-weight: 900;
}

.passport-message {
  color: #684d35;
  font-weight: 800;
}

.birthday-page input {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(83, 54, 26, 0.24);
  color: var(--ink);
}

.unlock-form label {
  color: var(--berry);
}

.unlock-row button,
.section-complete-row button,
.arcade-panel button,
.reward-box button,
.memory-card button {
  background: linear-gradient(135deg, #ffe0a1, #f1bb62);
  box-shadow: 0 12px 34px rgba(241, 187, 98, 0.24);
  color: #271805;
}

.unlock-row button:hover,
.ghost-button:hover,
.map-node:hover,
.pack-item:hover,
.checkpoint:hover,
.food-stall:hover,
.camp-object:hover,
.memory-card:hover,
.wish-star:hover {
  filter: none;
  transform: translateY(-4px);
}

.preview-badge {
  background: rgba(128, 224, 205, 0.13);
  border-color: rgba(128, 224, 205, 0.42);
  border-radius: 999px;
  color: #dffff9;
  display: inline-flex;
  width: fit-content;
}

.expedition-stage {
  gap: clamp(18px, 4vw, 34px);
  max-width: 1280px;
  padding: clamp(18px, 4vw, 50px);
}

.expedition-header {
  align-items: center;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 230, 157, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(255, 247, 230, 0.09), rgba(128, 224, 205, 0.045));
  border: 1px solid var(--soft-line);
  border-radius: 30px;
  box-shadow: 0 34px 100px var(--deep-shadow);
  overflow: hidden;
  padding: clamp(22px, 4vw, 46px);
  position: relative;
}

.expedition-header::before {
  background:
    radial-gradient(circle at 88% 28%, #ffe69d 0 46px, transparent 47px),
    linear-gradient(115deg, transparent 0 55%, rgba(255, 247, 230, 0.08) 55% 57%, transparent 57% 100%);
  content: "";
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
}

.expedition-header > * {
  position: relative;
  z-index: 1;
}

.expedition-header h1 {
  font-size: clamp(3.2rem, 7vw, 5.9rem);
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

@media (min-width: 900px) {
  .expedition-header h1 {
    white-space: nowrap;
  }
}

.expedition-lede {
  color: var(--paper-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 680px;
}

.expedition-actions {
  align-self: end;
}

.ghost-button {
  backdrop-filter: blur(14px);
  background: rgba(255, 247, 230, 0.1);
  border-color: rgba(255, 247, 230, 0.28);
  color: var(--cream);
}

.progress-strip {
  background: rgba(8, 13, 11, 0.62);
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  padding: 12px 14px;
}

#progress-count {
  background: linear-gradient(135deg, #ffe8a8, #f1bb62);
  border-radius: 999px;
  color: #251706;
  min-width: 86px;
}

.reward-badges {
  gap: 9px;
}

.reward-badge {
  background: rgba(255, 247, 230, 0.08);
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 999px;
  color: rgba(255, 247, 230, 0.74);
}

.reward-badge.is-earned {
  background: rgba(241, 187, 98, 0.18);
  border-color: rgba(241, 187, 98, 0.58);
  box-shadow: 0 0 28px rgba(241, 187, 98, 0.16);
  color: #ffefc9;
}

.map-band {
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 230, 157, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(14, 32, 34, 0.92), rgba(17, 42, 28, 0.86) 58%, rgba(58, 44, 31, 0.9));
  border: 1px solid var(--soft-line);
  border-radius: 34px;
  box-shadow: 0 36px 110px var(--deep-shadow);
  min-height: 900px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
  position: relative;
}

.map-band::before {
  background:
    radial-gradient(circle, rgba(255, 247, 230, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(128, 224, 205, 0.35) 0 1px, transparent 1.8px);
  background-size: 120px 120px, 180px 180px;
  content: "";
  inset: 0 0 36%;
  opacity: 0.55;
  pointer-events: none;
  position: absolute;
}

.map-band::after {
  background:
    radial-gradient(ellipse at 18% 105%, rgba(47, 95, 71, 0.85), transparent 34%),
    radial-gradient(ellipse at 70% 108%, rgba(83, 86, 49, 0.72), transparent 38%),
    linear-gradient(180deg, transparent, rgba(7, 12, 10, 0.38));
  bottom: 0;
  content: "";
  height: 42%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.map-copy,
.expedition-map,
.map-skyline {
  position: relative;
  z-index: 1;
}

.map-copy h2 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  text-shadow: 0 16px 52px rgba(0, 0, 0, 0.38);
}

.map-copy p {
  color: #eadcc4;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.map-skyline {
  height: 120px;
  margin-top: -12px;
}

.map-moon {
  background: #ffe69d;
  border-radius: 50%;
  box-shadow: 0 0 54px rgba(255, 230, 157, 0.34);
  display: block;
  height: 70px;
  position: absolute;
  right: 11%;
  top: 6px;
  width: 70px;
}

.map-peak {
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 150px solid rgba(47, 95, 71, 0.84);
  bottom: -45px;
  display: block;
  position: absolute;
}

.peak-one {
  left: 4%;
}

.peak-two {
  border-bottom-color: rgba(35, 73, 55, 0.94);
  left: 22%;
  transform: scale(1.15);
}

.peak-three {
  border-bottom-color: rgba(62, 77, 47, 0.82);
  right: 10%;
}

.expedition-map {
  display: block;
  min-height: 660px;
}

.expedition-map::before {
  background-image: url("data:image/svg+xml,%3Csvg width='1100' height='520' viewBox='0 0 1100 520' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M85 102 C230 38 308 182 432 120 C570 50 622 172 742 166 C920 156 996 260 830 318 C694 365 535 282 386 370 C258 445 184 454 96 492' fill='none' stroke='%23f1bb62' stroke-width='8' stroke-linecap='round' stroke-dasharray='3 22' opacity='.82'/%3E%3Cpath d='M85 102 C230 38 308 182 432 120 C570 50 622 172 742 166 C920 156 996 260 830 318 C694 365 535 282 386 370 C258 445 184 454 96 492' fill='none' stroke='%23fff7e6' stroke-width='2' stroke-linecap='round' opacity='.32'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(100%, 1100px) 520px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.map-node {
  align-content: center;
  backdrop-filter: blur(16px);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 247, 230, 0.18), transparent 34%),
    rgba(13, 24, 20, 0.78);
  border: 1px solid rgba(255, 247, 230, 0.24);
  border-radius: 24px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: var(--cream);
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 18px 18px 18px 72px;
  position: absolute;
  text-align: left;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  width: min(246px, 24vw);
  z-index: 4;
}

.map-node:hover {
  border-color: rgba(255, 207, 123, 0.72);
  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.44),
    0 0 40px rgba(241, 187, 98, 0.18);
}

.map-node-backpack { left: 3%; top: 88px; }
.map-node-trek { left: 28%; top: 34px; }
.map-node-food { right: 24%; top: 110px; }
.map-node-camp { right: 4%; top: 270px; }
.map-node-memory { left: 43%; top: 365px; }
.map-node-arcade { left: 18%; top: 442px; }
.map-node-stars { left: 3%; top: 560px; }
.map-node-final { right: 9%; top: 540px; }

.node-orbit {
  border: 1px solid rgba(255, 207, 123, 0.36);
  border-radius: 50%;
  height: 52px;
  left: 14px;
  position: absolute;
  top: 18px;
  width: 52px;
}

.node-dot {
  background: linear-gradient(135deg, #ffe8a8, #f1bb62);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(241, 187, 98, 0.34);
  color: #251706;
  display: grid;
  font-weight: 900;
  height: 38px;
  left: 21px;
  place-items: center;
  position: absolute;
  top: 25px;
  width: 38px;
}

.map-node-type {
  color: var(--teal);
  font-size: 0.7rem;
}

.map-node strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.05;
}

.map-node span:not(.map-node-type):not(.node-dot):not(.node-orbit) {
  color: rgba(255, 247, 230, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
}

.node-status {
  color: var(--amber);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-node.is-complete {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 232, 168, 0.24), transparent 34%),
    rgba(50, 65, 35, 0.84);
  border-color: rgba(255, 207, 123, 0.72);
}

.map-node.is-active {
  outline: 0;
  transform: translateY(-5px) scale(1.02);
}

.map-node.is-locked {
  filter: grayscale(0.16);
  opacity: 0.78;
}

.birthday-section {
  background:
    linear-gradient(135deg, rgba(255, 247, 230, 0.1), rgba(128, 224, 205, 0.04)),
    rgba(8, 13, 11, 0.7);
  border: 1px solid var(--soft-line);
  border-radius: 34px;
  box-shadow: 0 34px 110px var(--deep-shadow);
  overflow: hidden;
  padding: clamp(22px, 5vw, 54px);
  position: relative;
}

.birthday-section::before {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 230, 157, 0.1), transparent 18%),
    linear-gradient(120deg, transparent 0 58%, rgba(255, 247, 230, 0.055) 58% 60%, transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.birthday-section > * {
  position: relative;
  z-index: 1;
}

.birthday-section.is-active {
  animation: section-rise 420ms ease both;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.35);
}

.section-heading p {
  color: #eadcc4;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.welcome-section {
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 230, 157, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(29, 66, 45, 0.92), rgba(24, 18, 26, 0.88));
  min-height: 420px;
}

.welcome-constellation {
  height: 130px;
  position: absolute;
  right: 7%;
  top: 9%;
  width: 220px;
}

.welcome-constellation span {
  background: #ffe69d;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 230, 157, 0.6);
  height: 6px;
  position: absolute;
  width: 6px;
}

.welcome-constellation span:nth-child(1) { left: 8%; top: 60%; }
.welcome-constellation span:nth-child(2) { left: 35%; top: 18%; }
.welcome-constellation span:nth-child(3) { left: 65%; top: 48%; }
.welcome-constellation span:nth-child(4) { right: 4%; top: 8%; }

.route-line {
  align-items: stretch;
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.route-line span {
  background: rgba(255, 247, 230, 0.08);
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 999px;
  color: #eadcc4;
  display: grid;
  flex: 1;
  gap: 7px;
  min-height: 94px;
  padding: 15px;
}

.route-line span em {
  color: var(--gold);
  font-style: normal;
  font-size: 0.75rem;
}

.route-line span.is-done {
  background: rgba(241, 187, 98, 0.17);
  border-color: rgba(241, 187, 98, 0.55);
  color: var(--cream);
}

.welcome-note {
  color: #eadcc4;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.backpack-section {
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 207, 123, 0.14), transparent 20%),
    linear-gradient(135deg, rgba(31, 54, 42, 0.94), rgba(65, 45, 30, 0.88));
}

.backpack-layout {
  gap: clamp(18px, 4vw, 38px);
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
}

.pack-items {
  gap: 14px;
}

.pack-item {
  background: rgba(255, 247, 230, 0.09);
  border-color: rgba(255, 247, 230, 0.2);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  min-height: 126px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pack-item strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.pack-item span {
  color: rgba(255, 247, 230, 0.72);
}

.pack-item.is-packed {
  background: rgba(128, 224, 205, 0.16);
  border-color: rgba(128, 224, 205, 0.56);
  box-shadow: 0 18px 54px rgba(128, 224, 205, 0.12);
}

.backpack-drop {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 230, 157, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(101, 61, 37, 0.82), rgba(42, 31, 23, 0.94));
  border: 1px solid rgba(255, 207, 123, 0.42);
  border-radius: 30px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.24), 0 30px 80px rgba(0, 0, 0, 0.32);
  min-height: 430px;
  overflow: hidden;
}

.bag-moon {
  background: rgba(255, 230, 157, 0.82);
  border-radius: 50%;
  display: block;
  height: 54px;
  justify-self: center;
  margin-bottom: 8px;
  width: 54px;
}

.bag-top {
  background: linear-gradient(135deg, #d98e53, #7e3649);
  border-radius: 24px 24px 10px 10px;
  height: 48px;
}

.packed-list span {
  background: rgba(255, 247, 230, 0.12);
  border-radius: 999px;
  color: var(--paper);
}

.trek-section {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 230, 157, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(9, 24, 31, 0.94), rgba(18, 54, 39, 0.9) 58%, rgba(72, 55, 34, 0.88));
}

.trek-skyline {
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 28px;
  height: 280px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 78% 18%, #ffe69d 0 46px, transparent 47px),
    linear-gradient(180deg, #0a1720, #14352b 70%, #523d28);
}

.trek-skyline::after {
  background:
    radial-gradient(ellipse at 22% 100%, rgba(47, 95, 71, 0.92), transparent 34%),
    radial-gradient(ellipse at 64% 105%, rgba(29, 66, 45, 0.96), transparent 42%);
  bottom: 0;
  content: "";
  height: 58%;
  left: 0;
  position: absolute;
  right: 0;
}

.trek-peak {
  border-left: 170px solid transparent;
  border-right: 170px solid transparent;
  border-bottom: 230px solid rgba(47, 95, 71, 0.72);
  bottom: 0;
  display: block;
  position: absolute;
}

.trek-peak-a { left: 8%; }
.trek-peak-b { right: 10%; transform: scale(1.18); }

.trail-path {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.checkpoint {
  background: rgba(255, 247, 230, 0.1);
  border-color: rgba(255, 247, 230, 0.2);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  min-height: 220px;
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.checkpoint span {
  background: linear-gradient(135deg, #ffe8a8, #f1bb62);
  box-shadow: 0 0 26px rgba(241, 187, 98, 0.24);
}

.checkpoint strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.checkpoint em {
  color: rgba(255, 247, 230, 0.72);
}

.checkpoint.is-visited {
  background: rgba(241, 187, 98, 0.15);
  border-color: rgba(241, 187, 98, 0.58);
}

.food-section {
  background:
    radial-gradient(circle at 22% 8%, rgba(240, 125, 99, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(55, 27, 31, 0.94), rgba(80, 55, 30, 0.9));
}

.food-lanterns {
  align-items: center;
  display: flex;
  gap: 10px;
}

.food-lanterns span {
  background: linear-gradient(180deg, #ffdb8a, #f07d63);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(240, 125, 99, 0.28);
  display: block;
  height: 34px;
  width: 22px;
}

.food-lanterns span:nth-child(even) {
  height: 26px;
}

.food-street {
  gap: 18px;
}

.food-stall {
  background:
    linear-gradient(180deg, rgba(255, 247, 230, 0.12), rgba(255, 247, 230, 0.06)),
    rgba(55, 27, 31, 0.72);
  border: 1px solid rgba(255, 207, 123, 0.22);
  border-radius: 26px;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24);
  min-height: 230px;
  padding: 0 18px 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stall-awning {
  background: repeating-linear-gradient(90deg, #f07d63 0 24px, #ffcf7b 24px 48px, #fff0cf 48px 72px);
  border-radius: 24px 24px 12px 12px;
  height: 48px;
  margin: 0 -18px 6px;
}

.food-stall strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.food-stall em {
  color: rgba(255, 247, 230, 0.74);
}

.food-stall.is-served {
  background: rgba(255, 207, 123, 0.14);
  border-color: rgba(255, 207, 123, 0.58);
}

.camp-section {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 230, 157, 0.13), transparent 18%),
    linear-gradient(180deg, rgba(7, 17, 28, 0.95), rgba(14, 42, 38, 0.93) 56%, rgba(64, 44, 30, 0.94));
}

.camp-scene,
.moon-garden {
  border: 1px solid rgba(255, 247, 230, 0.18);
  border-radius: 34px;
  min-height: 430px;
}

.camp-scene {
  background:
    radial-gradient(circle at 30% 22%, rgba(128, 224, 205, 0.08), transparent 20%),
    linear-gradient(180deg, #081520, #102d30 58%, #3b3122);
}

.camp-scene::before,
.moon-garden::before {
  background-image:
    radial-gradient(circle, rgba(255, 247, 230, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(128, 224, 205, 0.42) 0 1px, transparent 1.5px);
  background-position: 0 0, 48px 34px;
  background-size: 118px 118px, 166px 166px;
  content: "";
  inset: 0 0 38%;
  opacity: 0.54;
  position: absolute;
}

.camp-moon {
  height: 112px;
  right: 14%;
  top: 46px;
  width: 112px;
}

.camp-star-c { left: 58%; top: 68px; }
.camp-star-d { left: 12%; top: 126px; }

.camp-tent,
.garden-tent {
  border-left-width: 116px;
  border-right-width: 116px;
  border-bottom-color: #f07d63;
  border-bottom-width: 156px;
  bottom: 58px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.38));
  left: 13%;
  z-index: 2;
}

.camp-fire,
.garden-fire {
  bottom: 84px;
  box-shadow: 0 0 58px rgba(255, 207, 123, 0.42);
  height: 76px;
  left: 52%;
  width: 48px;
  z-index: 3;
}

.camp-hill {
  background:
    radial-gradient(ellipse at 30% 0, #315f47 0 28%, transparent 29%),
    radial-gradient(ellipse at 70% 5%, #244432 0 34%, transparent 35%),
    #1b3526;
  border-radius: 50% 50% 0 0;
  height: 190px;
  z-index: 1;
}

.camp-actions {
  gap: 14px;
}

.camp-object {
  background: rgba(255, 247, 230, 0.1);
  border-color: rgba(255, 247, 230, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
  min-height: 164px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.camp-object strong {
  font-family: var(--font-display);
  font-size: 1.24rem;
}

.camp-object.is-found {
  background: rgba(128, 224, 205, 0.13);
  border-color: rgba(128, 224, 205, 0.5);
}

.memory-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 207, 123, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(53, 37, 29, 0.96), rgba(26, 37, 34, 0.92));
}

.memory-grid {
  align-items: start;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.memory-card {
  background: linear-gradient(180deg, #fff8e9, #e8d5b8);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.34);
  color: var(--ink);
  overflow: visible;
  padding: 12px 12px 18px;
  position: relative;
  transform: rotate(calc((var(--memory-tilt, 0) - 1) * 1deg));
}

.memory-card:nth-child(3n + 1) { --memory-tilt: -1; }
.memory-card:nth-child(3n + 2) { --memory-tilt: 2; }
.memory-card:nth-child(3n + 3) { --memory-tilt: 0; }

.memory-tape {
  background: rgba(255, 247, 230, 0.76);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  display: block;
  height: 24px;
  left: 50%;
  position: absolute;
  top: -12px;
  transform: translateX(-50%) rotate(-2deg);
  width: 86px;
  z-index: 2;
}

.memory-card h3 {
  color: #251706;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.memory-card p {
  color: #6c5237;
}

.memory-number {
  color: #9b5d26 !important;
}

.memory-placeholder,
.memory-media img {
  border-radius: 8px;
}

.memory-placeholder {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 230, 157, 0.8), transparent 16%),
    linear-gradient(145deg, #2a4c48, #233425 60%, #7e5a3b);
  min-height: 180px;
}

.memory-placeholder span {
  border-color: rgba(255, 247, 230, 0.36);
}

.memory-placeholder strong {
  color: rgba(255, 247, 230, 0.9);
}

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

.wish-star {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 230, 157, 0.18), transparent 28%),
    rgba(255, 247, 230, 0.075);
  border-color: rgba(255, 247, 230, 0.16);
  border-radius: 28px;
  min-height: 150px;
}

.wish-star strong {
  color: var(--amber);
}

.wish-star.is-collected {
  background: rgba(255, 230, 157, 0.14);
  border-color: rgba(255, 230, 157, 0.48);
}

.arcade-section {
  background:
    radial-gradient(circle at 74% 14%, rgba(255, 230, 157, 0.15), transparent 20%),
    linear-gradient(135deg, rgba(18, 42, 35, 0.94), rgba(49, 35, 58, 0.86));
}

.gift-canvas {
  border-color: rgba(255, 247, 230, 0.22);
  border-radius: 26px;
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.34);
}

.arcade-panel {
  background: rgba(255, 247, 230, 0.1);
  border-color: rgba(255, 247, 230, 0.18);
  border-radius: 26px;
}

.locked-letter,
.completion-panel,
.reward-box {
  backdrop-filter: blur(16px);
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 207, 123, 0.18), transparent 26%),
    rgba(8, 13, 11, 0.78);
  border: 1px solid rgba(255, 207, 123, 0.32);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.completion-panel {
  padding: 18px 20px;
}

.locked-letter {
  min-height: 210px;
  padding: 28px;
  position: relative;
}

.locked-moon {
  background: #ffe69d;
  border-radius: 50%;
  box-shadow: 0 0 38px rgba(255, 230, 157, 0.34);
  height: 68px;
  position: absolute;
  right: 28px;
  top: 24px;
  width: 68px;
}

.final-section {
  background:
    radial-gradient(circle at 70% 10%, rgba(255, 230, 157, 0.16), transparent 21%),
    linear-gradient(180deg, rgba(8, 15, 24, 0.96), rgba(13, 37, 40, 0.92) 56%, rgba(36, 25, 31, 0.94));
}

.moon-garden {
  background:
    radial-gradient(circle at 35% 22%, rgba(128, 224, 205, 0.1), transparent 22%),
    linear-gradient(180deg, #08131f, #112b31 62%, #49322d);
  min-height: 480px;
}

.garden-moon {
  height: 128px;
  right: 16%;
  top: 50px;
  width: 128px;
}

.garden-star {
  background: #fff0ad;
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(255, 230, 157, 0.66);
  display: block;
  height: 7px;
  position: absolute;
  transform: rotate(45deg);
  width: 7px;
}

.garden-star-a { left: 22%; top: 80px; }
.garden-star-b { left: 52%; top: 130px; animation-delay: 0.8s; }

.garden-cake {
  background: #fff8e9;
  border-top-color: #f07d63;
  border-radius: 16px 16px 8px 8px;
  bottom: 92px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  height: 78px;
  right: 17%;
  width: 120px;
}

.final-soft-line {
  color: #eadcc4;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

.birthday-letter-panel {
  background:
    linear-gradient(90deg, rgba(126, 54, 73, 0.12), transparent 14% 86%, rgba(126, 54, 73, 0.1)),
    linear-gradient(180deg, #fff8e9, #ead8ba);
  border: 1px solid rgba(83, 54, 26, 0.2);
  border-radius: 28px;
  color: var(--ink);
  max-width: 860px;
  margin: 0 auto;
}

.typed-letter {
  color: #4e3a28;
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  line-height: 1.78;
}

.reward-modal {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 207, 123, 0.15), transparent 26%),
    rgba(3, 6, 5, 0.78);
}

.reward-box {
  max-width: 540px;
  padding: 32px;
}

.reward-box h2 {
  color: var(--cream);
}

.reward-box p {
  color: #eadcc4;
}

@keyframes section-rise {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
  .passport-stage {
    grid-template-columns: 1fr;
  }

  .passport-card {
    transform: none;
  }

  .map-band {
    min-height: auto;
  }

  .expedition-map {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .expedition-map::before {
    background-image: none;
    border-left: 2px dashed rgba(241, 187, 98, 0.46);
    bottom: 18px;
    left: 36px;
    right: auto;
    top: 18px;
    width: 0;
  }

  .map-node {
    min-height: 164px;
    padding-left: 72px;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }

  .memory-grid,
  .food-street,
  .camp-actions,
  .trail-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .birthday-page button {
    width: auto;
  }

  .passport-stage,
  .expedition-stage {
    padding: 12px;
  }

  .passport-visual {
    border-radius: 24px;
    min-height: min(48svh, 390px);
  }

  .passport-scene-copy strong {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .passport-card {
    border-radius: 22px;
    padding: 24px 18px;
  }

  .passport-stamp {
    height: 62px;
    width: 62px;
    font-size: 0.92rem;
  }

  .passport-card h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .unlock-row,
  .progress-strip,
  .backpack-layout {
    grid-template-columns: 1fr;
  }

  .unlock-row button,
  .expedition-actions button,
  .section-complete-row button,
  .reward-box button,
  .arcade-panel button,
  .memory-card button {
    width: 100%;
  }

  .expedition-header {
    border-radius: 26px;
    padding: 24px 18px;
  }

  .expedition-header h1 {
    font-size: clamp(3rem, 16vw, 5rem);
    white-space: normal;
  }

  .expedition-actions {
    display: grid;
  }

  .progress-strip {
    border-radius: 24px;
  }

  .reward-badges {
    justify-content: stretch;
  }

  .reward-badge {
    width: 100%;
  }

  .map-band,
  .birthday-section {
    border-radius: 26px;
    padding: 22px 16px;
  }

  .map-skyline {
    height: 86px;
  }

  .map-peak {
    border-left-width: 78px;
    border-right-width: 78px;
    border-bottom-width: 106px;
  }

  .expedition-map,
  .route-line,
  .trail-path,
  .food-street,
  .camp-actions,
  .memory-grid,
  .star-grid,
  .pack-items {
    display: grid;
    grid-template-columns: 1fr;
  }

  .route-line {
    gap: 10px;
  }

  .map-node,
  .pack-item,
  .checkpoint,
  .food-stall,
  .camp-object,
  .wish-star {
    min-height: auto;
    width: 100%;
  }

  .backpack-drop {
    min-height: 320px;
  }

  .trek-skyline,
  .camp-scene,
  .moon-garden {
    min-height: 310px;
  }

  .camp-tent,
  .garden-tent {
    border-left-width: 70px;
    border-right-width: 70px;
    border-bottom-width: 96px;
    left: 8%;
  }

  .camp-fire,
  .garden-fire {
    bottom: 54px;
    left: 58%;
  }

  .garden-cake {
    right: 8%;
    transform: scale(0.82);
  }

  .memory-card {
    transform: none;
  }

  .star-grid {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Expedition scene upgrade */
.expedition-header {
  min-height: min(560px, 72svh);
}

.expedition-header::after {
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(47, 95, 71, 0.72) 43% 100%),
    radial-gradient(ellipse at 72% 100%, rgba(241, 187, 98, 0.24), transparent 34%);
  bottom: 0;
  content: "";
  height: 42%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.progress-strip {
  position: sticky;
  top: 10px;
  z-index: 20;
}

.map-band {
  min-height: max(900px, calc(100svh - 70px));
}

.expedition-map {
  isolation: isolate;
}

.trail-traveller {
  animation: traveller-glide 760ms cubic-bezier(0.22, 0.85, 0.22, 1) both, traveller-breathe 2.4s ease-in-out 760ms infinite;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.38));
  height: 58px;
  left: var(--traveller-to-x);
  pointer-events: none;
  position: absolute;
  top: var(--traveller-to-y);
  width: 44px;
  z-index: 2;
}

.trail-traveller::after {
  background: rgba(255, 230, 157, 0.28);
  border-radius: 50%;
  bottom: -8px;
  content: "";
  height: 12px;
  left: 6px;
  position: absolute;
  width: 38px;
}

.traveller-head,
.traveller-pack,
.traveller-body {
  display: block;
  position: absolute;
}

.traveller-head {
  background: #ffe0a1;
  border-radius: 50%;
  height: 14px;
  left: 16px;
  top: 0;
  width: 14px;
}

.traveller-pack {
  background: #7e3649;
  border: 2px solid rgba(255, 247, 230, 0.68);
  border-radius: 10px;
  height: 25px;
  left: 4px;
  top: 18px;
  width: 20px;
}

.traveller-body {
  background: linear-gradient(180deg, #80e0cd, #f1bb62);
  border-radius: 14px 14px 8px 8px;
  height: 34px;
  left: 18px;
  top: 16px;
  width: 18px;
}

.traveller-body::before,
.traveller-body::after {
  background: #f1bb62;
  border-radius: 999px;
  content: "";
  height: 16px;
  position: absolute;
  top: 28px;
  width: 5px;
}

.traveller-body::before {
  left: 2px;
  transform: rotate(17deg);
}

.traveller-body::after {
  right: 2px;
  transform: rotate(-17deg);
}

.birthday-section:not(.welcome-section) {
  min-height: calc(100svh - 34px);
}

.checkpoint-scene {
  border: 1px solid rgba(255, 247, 230, 0.18);
  border-radius: 34px;
  box-shadow:
    inset 0 0 80px rgba(255, 247, 230, 0.045),
    0 34px 110px rgba(0, 0, 0, 0.26);
  min-height: min(780px, calc(100svh - 120px));
  overflow: hidden;
  position: relative;
}

.scene-copy {
  backdrop-filter: blur(14px);
  background: rgba(8, 13, 11, 0.64);
  border: 1px solid rgba(255, 247, 230, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
  color: #eadcc4;
  display: grid;
  gap: 6px;
  max-width: 420px;
  padding: 16px 18px;
}

.scene-copy span {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.scene-copy strong {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.backpack-game {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 230, 157, 0.16), transparent 20%),
    radial-gradient(circle at 84% 22%, rgba(128, 224, 205, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(9, 28, 31, 0.96), rgba(25, 56, 40, 0.92) 58%, rgba(81, 55, 33, 0.92));
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-areas:
    "copy gear"
    "bag gear";
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(18px, 4vw, 42px);
}

.backpack-game::before {
  background:
    linear-gradient(180deg, transparent 0 56%, rgba(47, 95, 71, 0.76) 57% 100%),
    radial-gradient(ellipse at 24% 100%, rgba(255, 207, 123, 0.2), transparent 32%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.backpack-game .scene-copy {
  grid-area: copy;
  z-index: 2;
}

.backpack-game .backpack-drop {
  align-self: stretch;
  grid-area: bag;
  min-height: 420px;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.backpack-game .gear-cloud {
  align-content: center;
  display: grid;
  gap: 14px;
  grid-area: gear;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  z-index: 2;
}

.bag-body {
  background:
    linear-gradient(135deg, rgba(255, 207, 123, 0.3), transparent 42%),
    linear-gradient(180deg, #c9784c, #6d3b33);
  border-radius: 30px 30px 20px 20px;
  box-shadow: inset 0 -16px 28px rgba(0, 0, 0, 0.22);
  display: block;
  height: 170px;
  justify-self: center;
  margin-top: -4px;
  position: relative;
  width: min(220px, 76%);
}

.bag-body::before {
  background: rgba(255, 247, 230, 0.16);
  border-radius: 999px;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  top: 32px;
  transform: translateX(-50%);
  width: 74px;
}

.bag-strap {
  border: 4px solid rgba(255, 247, 230, 0.2);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  display: block;
  height: 66px;
  position: absolute;
  top: 112px;
  width: 52px;
}

.bag-strap-left {
  left: 21%;
}

.bag-strap-right {
  right: 21%;
}

.trek-game {
  background:
    radial-gradient(circle at 78% 15%, rgba(255, 230, 157, 0.13), transparent 22%),
    linear-gradient(180deg, #071522, #113330 60%, #493523);
  display: grid;
  padding: 0;
}

.trek-game .trek-skyline {
  border: 0;
  border-radius: 0;
  height: auto;
  min-height: 100%;
}

.trek-game .trek-skyline::before {
  background-image:
    radial-gradient(circle, rgba(255, 247, 230, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(128, 224, 205, 0.42) 0 1px, transparent 1.5px);
  background-position: 0 0, 44px 62px;
  background-size: 120px 120px, 176px 176px;
  content: "";
  inset: 0 0 52%;
  opacity: 0.48;
  position: absolute;
}

.trek-peak-c {
  border-bottom-color: rgba(87, 73, 46, 0.66);
  left: 34%;
  transform: scale(0.86);
}

.trek-path-glow {
  background:
    linear-gradient(104deg, transparent 0 10%, rgba(255, 207, 123, 0.12) 11% 16%, transparent 17% 100%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 207, 123, 0.2), transparent 45%);
  bottom: 0;
  content: "";
  height: 62%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 3;
}

.trek-traveller {
  background: linear-gradient(180deg, #80e0cd, #f1bb62);
  border-radius: 18px 18px 10px 10px;
  bottom: var(--trek-bottom);
  box-shadow: 0 0 34px rgba(255, 207, 123, 0.24);
  display: block;
  height: 44px;
  left: var(--trek-left);
  position: absolute;
  transition: left 420ms ease, bottom 420ms ease;
  width: 24px;
  z-index: 5;
}

.trek-traveller::before {
  background: #ffe0a1;
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: -16px;
  width: 18px;
}

.trek-game .scene-copy {
  left: clamp(18px, 4vw, 42px);
  position: absolute;
  top: clamp(18px, 4vw, 42px);
  z-index: 6;
}

.trek-game .trail-path {
  bottom: clamp(18px, 4vw, 42px);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: clamp(18px, 4vw, 42px);
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  z-index: 6;
}

.trek-game .checkpoint {
  backdrop-filter: blur(16px);
  background: rgba(8, 13, 11, 0.58);
  min-height: 190px;
}

.trek-game .checkpoint.is-next {
  border-color: rgba(255, 207, 123, 0.78);
  box-shadow: 0 22px 70px rgba(241, 187, 98, 0.17);
}

.food-game {
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 207, 123, 0.18), transparent 18%),
    radial-gradient(circle at 86% 12%, rgba(240, 125, 99, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(47, 22, 27, 0.96), rgba(96, 58, 29, 0.93) 62%, rgba(34, 24, 16, 0.96));
  display: grid;
  gap: 22px;
  padding: clamp(18px, 4vw, 42px);
}

.food-game::after {
  background:
    linear-gradient(90deg, rgba(255, 207, 123, 0.16), transparent 18% 82%, rgba(255, 207, 123, 0.16)),
    repeating-linear-gradient(90deg, rgba(255, 247, 230, 0.12) 0 34px, transparent 34px 72px);
  bottom: 0;
  content: "";
  height: 22%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.food-game .scene-copy,
.food-game .food-lanterns,
.food-game .food-street,
.food-ticket {
  position: relative;
  z-index: 2;
}

.food-game .food-lanterns {
  justify-content: center;
}

.food-game .food-lanterns span {
  animation: lantern-sway 3.6s ease-in-out infinite;
  transform-origin: 50% -12px;
}

.food-game .food-lanterns span:nth-child(2n) {
  animation-delay: 0.8s;
}

.food-game .food-street {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.food-game .food-stall {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 247, 230, 0.16), rgba(255, 247, 230, 0.06)),
    rgba(65, 27, 29, 0.78);
  border-radius: 26px;
  min-height: 360px;
  overflow: hidden;
  padding-bottom: 24px;
}

.food-game .food-stall strong,
.food-game .food-stall em {
  display: block;
}

.stall-counter {
  background:
    linear-gradient(180deg, rgba(255, 247, 230, 0.34), rgba(255, 207, 123, 0.18)),
    #5f3227;
  border-radius: 14px;
  display: block;
  height: 62px;
  margin: 8px 0 8px;
}

.food-ticket {
  align-self: end;
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, #fff8e9, #e7cfa9);
  border: 1px dashed rgba(126, 54, 73, 0.42);
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  justify-self: end;
  min-width: 210px;
  padding: 16px;
  transform: rotate(2deg);
}

.food-ticket span {
  color: #7e3649;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.food-ticket strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.interactive-camp {
  min-height: min(820px, calc(100svh - 120px));
  padding: clamp(18px, 4vw, 42px);
}

.interactive-camp::before,
.interactive-camp::after {
  pointer-events: none;
}

.interactive-camp .scene-copy {
  left: clamp(18px, 4vw, 42px);
  position: absolute;
  top: clamp(18px, 4vw, 42px);
  z-index: 7;
}

.interactive-camp .camp-moon,
.interactive-camp .camp-star,
.interactive-camp .camp-tent,
.interactive-camp .camp-fire,
.interactive-camp .camp-hill {
  pointer-events: none;
}

.interactive-camp .camp-object {
  backdrop-filter: blur(14px);
  background: rgba(8, 13, 11, 0.58);
  border: 1px solid rgba(255, 247, 230, 0.2);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: var(--cream);
  min-height: 118px;
  padding: 16px;
  position: absolute;
  text-align: left;
  width: min(270px, 28%);
  z-index: 8;
}

.interactive-camp .camp-object::before {
  background: rgba(255, 230, 157, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 230, 157, 0.38);
  content: "";
  height: 12px;
  left: 16px;
  position: absolute;
  top: -6px;
  width: 12px;
}

.camp-object-tent { bottom: 82px; left: 7%; }
.camp-object-bonfire { bottom: 94px; left: 39%; }
.camp-object-moon { right: 8%; top: 94px; }
.camp-object-stars { left: 48%; top: 74px; }
.camp-object-backpack { bottom: 82px; right: 7%; }

.memory-trail-scene {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 207, 123, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(66, 44, 30, 0.96), rgba(16, 34, 33, 0.94));
  display: grid;
  gap: 30px;
  padding: clamp(18px, 4vw, 42px);
}

.memory-trail-scene .scene-copy,
.memory-trail-scene .memory-grid {
  position: relative;
  z-index: 2;
}

.memory-string {
  background:
    linear-gradient(100deg, transparent 0 6%, rgba(255, 247, 230, 0.34) 7% 93%, transparent 94% 100%);
  height: 2px;
  left: 5%;
  position: absolute;
  right: 5%;
  top: 180px;
  transform: rotate(-1deg);
  z-index: 1;
}

.memory-trail-scene .memory-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.memory-trail-scene .memory-card {
  min-height: 390px;
}

.memory-trail-scene .memory-card:hover {
  transform: translateY(-8px) rotate(0deg);
}

.memory-trail-scene .memory-placeholder,
.memory-trail-scene .memory-media img {
  min-height: 210px;
}

@keyframes traveller-glide {
  0% {
    left: var(--traveller-from-x);
    top: var(--traveller-from-y);
    transform: translateY(4px) scale(0.92);
  }
  100% {
    left: var(--traveller-to-x);
    top: var(--traveller-to-y);
    transform: translateY(0) scale(1);
  }
}

@keyframes traveller-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes lantern-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

@media (max-width: 1020px) {
  .expedition-header {
    min-height: auto;
  }

  .map-band {
    min-height: auto;
  }

  .trail-traveller {
    left: 28px !important;
    top: var(--traveller-mobile-y) !important;
  }

  .checkpoint-scene {
    min-height: auto;
  }

  .backpack-game {
    grid-template-areas:
      "copy"
      "bag"
      "gear";
    grid-template-columns: 1fr;
  }

  .trek-game {
    min-height: 760px;
  }

  .trek-game .trail-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .food-game .food-stall {
    min-height: 270px;
  }

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

@media (max-width: 760px) {
  .progress-strip {
    position: relative;
    top: auto;
  }

  .trail-traveller {
    height: 48px;
    width: 38px;
  }

  .traveller-pack {
    height: 22px;
    width: 18px;
  }

  .traveller-body {
    height: 29px;
    width: 16px;
  }

  .birthday-section:not(.welcome-section) {
    min-height: auto;
  }

  .checkpoint-scene {
    border-radius: 24px;
  }

  .scene-copy {
    max-width: none;
    width: 100%;
  }

  .backpack-game,
  .food-game,
  .memory-trail-scene {
    padding: 16px;
  }

  .backpack-game .gear-cloud {
    grid-template-columns: 1fr;
  }

  .backpack-game .backpack-drop {
    min-height: 360px;
  }

  .bag-body {
    height: 138px;
  }

  .trek-game {
    display: block;
    min-height: 920px;
    padding: 16px;
  }

  .trek-game .scene-copy,
  .trek-game .trail-path {
    left: auto;
    position: relative;
    right: auto;
    top: auto;
    z-index: 6;
  }

  .trek-game .trek-skyline {
    border-radius: 24px;
    min-height: 330px;
  }

  .trek-game .trail-path {
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .trek-traveller {
    bottom: var(--trek-bottom);
    left: var(--trek-left);
  }

  .food-game .food-street,
  .memory-trail-scene .memory-grid {
    grid-template-columns: 1fr;
  }

  .food-game .food-stall {
    min-height: 240px;
  }

  .food-ticket {
    justify-self: stretch;
    transform: none;
  }

  .interactive-camp {
    display: grid;
    gap: 12px;
    min-height: auto;
    padding: 320px 16px 16px;
  }

  .interactive-camp .scene-copy {
    left: 16px;
    right: 16px;
    top: 16px;
    width: auto;
  }

  .interactive-camp .camp-object {
    min-height: auto;
    position: relative;
    inset: auto;
    width: 100%;
  }

  .interactive-camp .camp-moon {
    height: 86px;
    right: 10%;
    top: 142px;
    width: 86px;
  }

  .interactive-camp .camp-tent {
    bottom: auto;
    left: 8%;
    top: 214px;
  }

  .interactive-camp .camp-fire {
    bottom: auto;
    left: 60%;
    top: 242px;
  }

  .interactive-camp .camp-hill {
    bottom: auto;
    top: 230px;
  }

  .memory-string {
    display: none;
  }

  .memory-trail-scene .memory-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trail-traveller,
  .food-game .food-lanterns span,
  .trek-traveller {
    animation: none !important;
    transition: none !important;
  }
}

/* Full-screen scene game rebuild */
.scene-game-page {
  background: #05070b;
  color: #fff8e8;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.scene-game-page::before,
.scene-game-page::after {
  display: none;
}

.scene-game-page button {
  border-radius: 999px;
  min-height: 44px;
}

.scene-app,
.scene-shell,
.scene-lock {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.scene-shell {
  background: #05070b;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
}

.route-hud {
  align-items: center;
  background: rgba(5, 7, 11, 0.82);
  border-bottom: 1px solid rgba(255, 248, 232, 0.16);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 0.22fr) minmax(0, 1fr) minmax(118px, 0.16fr);
  padding: 10px 14px;
  position: relative;
  z-index: 30;
}

.route-brand {
  display: grid;
  gap: 2px;
}

.scene-kicker {
  color: #ffd175;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-brand strong {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2vw, 1.55rem);
  line-height: 1;
}

.route-map {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.route-map::-webkit-scrollbar {
  display: none;
}

.route-stop {
  align-items: center;
  background: rgba(255, 248, 232, 0.08);
  border: 1px solid rgba(255, 248, 232, 0.15);
  color: rgba(255, 248, 232, 0.72);
  display: grid;
  flex: 0 0 76px;
  gap: 2px;
  justify-items: center;
  min-height: 52px;
  padding: 5px 8px;
}

.route-stop span {
  background: rgba(255, 209, 117, 0.16);
  border-radius: 999px;
  color: #ffd175;
  font-size: 0.68rem;
  font-weight: 900;
  min-width: 28px;
  padding: 3px 5px;
}

.route-stop strong {
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.route-stop.is-current {
  background: rgba(255, 209, 117, 0.18);
  border-color: rgba(255, 209, 117, 0.8);
  box-shadow: 0 0 28px rgba(255, 209, 117, 0.16);
  color: #fff8e8;
}

.route-stop.is-complete span {
  background: #88e6cf;
  color: #06100e;
}

.route-stop:disabled {
  opacity: 0.34;
}

.route-progress {
  display: grid;
  gap: 6px;
}

.route-progress span {
  color: #ffd175;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  justify-self: end;
}

.route-progress i {
  background: rgba(255, 248, 232, 0.14);
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.route-progress i::before {
  background: linear-gradient(90deg, #88e6cf, #ffd175, #f47c62);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--progress, 0%);
}

.scene-stage {
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.game-scene {
  background: #08131f;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
  animation: scene-in 360ms ease both;
}

.game-scene::before {
  background-image:
    radial-gradient(circle, rgba(255, 248, 232, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(136, 230, 207, 0.38) 0 1px, transparent 1.5px);
  background-position: 0 0, 42px 62px;
  background-size: 124px 124px, 182px 182px;
  content: "";
  inset: 0 0 42%;
  opacity: 0.42;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.game-scene > * {
  position: relative;
  z-index: 2;
}

.scene-caption {
  bottom: clamp(18px, 4vw, 44px);
  left: clamp(18px, 5vw, 70px);
  max-width: min(520px, 58vw);
  position: absolute;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
  z-index: 10;
}

.scene-caption h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 10px;
}

.scene-caption p {
  color: #f1e4ca;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.45;
  margin: 0;
}

.story-console {
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.94), rgba(15, 18, 25, 0.9)),
    rgba(5, 7, 11, 0.95);
  border-top: 1px solid rgba(255, 248, 232, 0.15);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.24fr);
  padding: 12px 14px;
  position: relative;
  z-index: 35;
}

.speaker-line {
  background: rgba(255, 248, 232, 0.08);
  border: 1px solid rgba(255, 248, 232, 0.14);
  border-radius: 18px;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px 14px;
}

.speaker-line span {
  color: #88e6cf;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.speaker-line p {
  color: #fff8e8;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.4;
  margin: 0;
}

.objective-text {
  align-self: stretch;
  background: rgba(136, 230, 207, 0.08);
  border: 1px solid rgba(136, 230, 207, 0.18);
  border-radius: 18px;
  color: #d8fff6;
  font-weight: 850;
  line-height: 1.35;
  padding: 12px;
}

.choice-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.choice-dock button,
.permit-form button,
.episode-card button,
.food-options button {
  background: linear-gradient(135deg, #ffe3a4, #ffc461);
  color: #201305;
}

.choice-dock .ghost-action {
  background: rgba(255, 248, 232, 0.1);
  border: 1px solid rgba(255, 248, 232, 0.18);
  color: #fff8e8;
}

.inventory-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}

.inventory-dock span {
  background: rgba(255, 248, 232, 0.07);
  border: 1px solid rgba(255, 248, 232, 0.12);
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 9px;
}

.inventory-dock span.is-on {
  background: rgba(136, 230, 207, 0.18);
  border-color: rgba(136, 230, 207, 0.5);
  color: #d8fff6;
}

.scene-reset {
  background: rgba(255, 248, 232, 0.1);
  border: 1px solid rgba(255, 248, 232, 0.2);
  bottom: 12px;
  color: #fff8e8;
  position: fixed;
  right: 12px;
  z-index: 60;
}

.moon {
  background:
    radial-gradient(circle at 32% 28%, #fffbd3 0 10%, transparent 11%),
    radial-gradient(circle at 66% 58%, #e8d286 0 9%, transparent 10%),
    #ffe79c;
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(255, 231, 156, 0.42);
}

.giant-moon {
  height: min(34vw, 280px);
  position: absolute;
  right: 8%;
  top: 9%;
  width: min(34vw, 280px);
}

.mountain-layer {
  bottom: 0;
  clip-path: polygon(0 72%, 16% 38%, 30% 70%, 42% 28%, 58% 74%, 74% 34%, 100% 72%, 100% 100%, 0 100%);
  left: 0;
  position: absolute;
  right: 0;
}

.mountain-layer.far {
  background: rgba(39, 70, 70, 0.82);
  height: 56%;
}

.mountain-layer.near {
  background: rgba(19, 49, 37, 0.94);
  height: 42%;
}

.opening-scene {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 231, 156, 0.14), transparent 18%),
    linear-gradient(180deg, #06111d 0%, #0b2330 54%, #183a2b 100%);
}

.episode-card {
  background: rgba(5, 7, 11, 0.54);
  border: 1px solid rgba(255, 248, 232, 0.16);
  border-radius: 28px;
  bottom: clamp(84px, 15vh, 150px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  left: clamp(18px, 6vw, 84px);
  padding: clamp(20px, 4vw, 42px);
  position: absolute;
  width: min(560px, calc(100vw - 36px));
  z-index: 10;
}

.episode-card span {
  color: #ffd175;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.episode-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.9;
  margin: 12px 0;
}

.episode-card p {
  color: #f1e4ca;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 0 0 20px;
}

.speed-lines,
.wind-lines {
  background:
    repeating-linear-gradient(110deg, transparent 0 36px, rgba(255, 248, 232, 0.08) 36px 40px, transparent 40px 90px);
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
}

.travellers {
  height: 170px;
  position: absolute;
  width: 230px;
  z-index: 12;
}

.traveller {
  bottom: 0;
  height: 132px;
  position: absolute;
  width: 58px;
}

.traveller span {
  background: #ffe0a5;
  border-radius: 50%;
  display: block;
  height: 28px;
  left: 15px;
  position: absolute;
  top: 0;
  width: 28px;
}

.traveller i {
  background: linear-gradient(180deg, #88e6cf, #f1bb62);
  border-radius: 26px 26px 12px 12px;
  display: block;
  height: 70px;
  left: 11px;
  position: absolute;
  top: 31px;
  width: 36px;
}

.traveller b {
  background: rgba(255, 209, 117, 0.35);
  border-radius: 50%;
  bottom: 0;
  display: block;
  height: 12px;
  left: 3px;
  position: absolute;
  width: 54px;
}

.traveller i::before,
.traveller i::after {
  background: #ffd175;
  border-radius: 999px;
  content: "";
  height: 34px;
  position: absolute;
  top: 60px;
  width: 8px;
}

.traveller i::before {
  left: 7px;
  transform: rotate(12deg);
}

.traveller i::after {
  right: 7px;
  transform: rotate(-12deg);
}

.traveller.boy {
  left: 8px;
}

.traveller.boy::after {
  background: #77374a;
  border: 2px solid rgba(255, 248, 232, 0.7);
  border-radius: 12px;
  content: "";
  height: 42px;
  left: -8px;
  position: absolute;
  top: 42px;
  width: 24px;
}

.traveller.girl {
  left: 72px;
}

.traveller.girl span::after {
  background: #2d1b22;
  border-radius: 50% 50% 42% 42%;
  content: "";
  height: 34px;
  left: -5px;
  position: absolute;
  top: -3px;
  width: 38px;
  z-index: -1;
}

.traveller.girl i {
  background: linear-gradient(180deg, #ffcf7b, #f47c62);
}

.travellers-opening { bottom: 9%; right: 22%; }
.travellers-gate { bottom: 16%; left: 22%; }
.travellers-trail { bottom: 16%; left: calc(12% + var(--walk-step) * 16%); transition: left 280ms ease; }
.travellers-backpack { bottom: 12%; right: 9%; }
.travellers-forest { bottom: 13%; left: calc(18% + var(--forest-offset, 0px)); }
.travellers-waterfall { bottom: 12%; left: 14%; }
.travellers-food { bottom: 9%; right: 8%; }
.travellers-camp { bottom: 18%; left: 18%; }
.travellers-climb { bottom: calc(10% + var(--climb-step) * 4%); left: calc(16% + var(--climb-step) * 9%); transition: left 300ms ease, bottom 300ms ease; }
.travellers-sunrise { bottom: 13%; left: 50%; transform: translateX(-50%); }
.travellers-garden { bottom: 10%; left: 12%; }

.travellers.is-emotional .boy {
  transform: translateX(12px) rotate(4deg);
}

.travellers.is-emotional .girl {
  transform: translateX(6px);
}

.travellers-sunrise.is-emotional .boy::before {
  background: linear-gradient(90deg, rgba(255, 248, 232, 0.65), transparent);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 42px;
  position: absolute;
  top: 18px;
  transform: rotate(7deg);
  width: 48px;
}

.gate-scene {
  background: linear-gradient(180deg, #06111e, #112b34 58%, #4b3926);
}

.gate-moon {
  height: min(28vw, 220px);
  position: absolute;
  right: 11%;
  top: 9%;
  width: min(28vw, 220px);
}

.moon-gate {
  bottom: 8%;
  height: min(64vh, 520px);
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: min(560px, 64vw);
}

.moon-gate span {
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.18), rgba(255, 209, 117, 0.1));
  border: 2px solid rgba(255, 209, 117, 0.36);
  box-shadow: 0 0 60px rgba(255, 209, 117, 0.1);
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  transition: transform 600ms ease;
  width: 50%;
}

.moon-gate span:first-child {
  border-radius: 999px 0 0 999px;
  left: 0;
}

.moon-gate span:last-child {
  border-radius: 0 999px 999px 0;
  right: 0;
}

.gate-scene.is-open .moon-gate span:first-child {
  transform: translateX(-34%);
}

.gate-scene.is-open .moon-gate span:last-child {
  transform: translateX(34%);
}

.permit-paper {
  background: linear-gradient(180deg, #fff8e8, #e4cda7);
  border: 1px solid rgba(78, 48, 24, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  color: #281a0b;
  display: grid;
  gap: 8px;
  left: 10%;
  min-height: 190px;
  padding: 22px;
  position: absolute;
  top: 18%;
  transform: rotate(-4deg);
  width: min(320px, 76vw);
  z-index: 14;
}

.permit-paper span {
  color: #7e3649;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.permit-paper strong {
  font-family: var(--font-display);
  font-size: 3rem;
}

.permit-paper em {
  border: 2px dashed rgba(126, 54, 73, 0.5);
  border-radius: 999px;
  color: #7e3649;
  font-style: normal;
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.permit-paper.is-stamped em {
  background: rgba(126, 54, 73, 0.14);
  transform: rotate(5deg);
}

.trail-scene {
  background: linear-gradient(180deg, #04101a, #0d2c32 58%, #163725 100%);
}

.trail-road {
  background:
    linear-gradient(95deg, transparent 0 16%, rgba(255, 209, 117, 0.12) 17% 22%, transparent 23% 100%),
    radial-gradient(ellipse at 50% 100%, rgba(136, 230, 207, 0.18), transparent 45%);
  bottom: 0;
  clip-path: polygon(24% 100%, 44% 100%, 60% 0, 48% 0);
  height: 100%;
  left: 0;
  position: absolute;
  width: 100%;
}

.trail-marker {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  position: absolute;
  z-index: 14;
}

.trail-marker span {
  background: #ffd175;
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(255, 209, 117, 0.7);
  display: block;
  height: 26px;
  width: 26px;
}

.trail-marker:disabled span {
  opacity: 0.22;
}

.trail-marker.is-cleared span {
  background: #88e6cf;
}

.marker-1 { bottom: 22%; left: 24%; }
.marker-2 { bottom: 38%; left: 39%; }
.marker-3 { bottom: 53%; left: 56%; }
.marker-4 { bottom: 69%; left: 72%; }

.backpack-scene {
  background: linear-gradient(180deg, #092131, #214735 62%, #6a4528);
}

.basecamp-table {
  background: rgba(255, 209, 117, 0.18);
  bottom: 0;
  height: 24%;
  left: 0;
  position: absolute;
  right: 0;
}

.backpack-visual {
  bottom: 16%;
  display: grid;
  justify-items: center;
  left: 12%;
  position: absolute;
  width: min(260px, 34vw);
  z-index: 14;
}

.bag-lid {
  background: linear-gradient(135deg, #f47c62, #7e3649);
  border-radius: 30px 30px 10px 10px;
  display: block;
  height: 72px;
  width: 74%;
}

.backpack-visual .bag-body {
  background: linear-gradient(180deg, #c97748, #5f3029);
  border-radius: 28px;
  display: block;
  height: 190px;
  margin-top: -16px;
  width: 100%;
}

.backpack-visual strong {
  color: #fff8e8;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-top: -116px;
}

.pack-zone {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: absolute;
  right: 5%;
  top: 10%;
  width: min(620px, 54vw);
  z-index: 14;
}

.gear-sticker {
  background: rgba(255, 248, 232, 0.1);
  border: 1px solid rgba(255, 248, 232, 0.2);
  color: #fff8e8;
  display: grid;
  gap: 5px;
  min-height: 106px;
  padding: 12px;
  text-align: left;
}

.gear-sticker strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.gear-sticker span {
  color: rgba(255, 248, 232, 0.68);
  font-size: 0.82rem;
  line-height: 1.25;
}

.gear-sticker.is-packed {
  background: rgba(136, 230, 207, 0.18);
  border-color: rgba(136, 230, 207, 0.6);
  transform: scale(0.96);
}

.gear-sticker.is-decoy {
  border-style: dashed;
}

.forest-scene {
  background: linear-gradient(180deg, #041319, #0d2d26 68%, #352719);
}

.forest-depth {
  background:
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(20, 55, 37, 0.72) 80px 128px, transparent 128px 188px),
    radial-gradient(ellipse at 50% 100%, rgba(255, 209, 117, 0.14), transparent 42%);
  inset: 0;
  position: absolute;
}

.fireflies {
  background-image:
    radial-gradient(circle, #ffd175 0 3px, transparent 4px),
    radial-gradient(circle, #88e6cf 0 2px, transparent 3px);
  background-position: 12% 34%, 76% 44%;
  background-size: 180px 140px, 220px 170px;
  inset: 0;
  opacity: 0.62;
  position: absolute;
}

.branch-map {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 50%;
  position: absolute;
  top: 18%;
  transform: translateX(-50%);
  width: min(680px, 80vw);
  z-index: 14;
}

.branch-map button {
  background: rgba(5, 7, 11, 0.58);
  border: 1px solid rgba(255, 209, 117, 0.34);
  color: #fff8e8;
  min-height: 130px;
}

.branch-map span {
  color: #ffd175;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.compass-card {
  background: rgba(5, 7, 11, 0.68);
  border: 1px solid rgba(136, 230, 207, 0.26);
  border-radius: 24px;
  bottom: 15%;
  color: #fff8e8;
  display: grid;
  gap: 8px;
  padding: 18px;
  position: absolute;
  right: 7%;
  width: min(370px, 38vw);
  z-index: 15;
}

.compass-card span,
.compass-card i {
  color: #88e6cf;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waterfall-scene {
  background: linear-gradient(180deg, #061622, #133b48 64%, #173324);
}

.waterfall {
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(180, 242, 255, 0.75) 40% 52%, transparent 55% 100%),
    radial-gradient(ellipse at 47% 88%, rgba(136, 230, 207, 0.32), transparent 28%);
  filter: blur(0.2px);
  inset: 0;
  opacity: 0.9;
  position: absolute;
}

.moon-reflection {
  background: rgba(255, 231, 156, 0.18);
  border-radius: 50%;
  bottom: 12%;
  height: 180px;
  left: 46%;
  position: absolute;
  transform: skewX(-18deg);
  width: 320px;
}

.mist-panel {
  inset: 10% 8% 18%;
  position: absolute;
  z-index: 16;
}

.mist-patch {
  background: rgba(238, 252, 255, 0.24);
  border: 1px solid rgba(238, 252, 255, 0.38);
  color: #fff8e8;
  min-height: 120px;
  position: absolute;
  width: min(270px, 30vw);
}

.mist-patch.is-cleared {
  background: rgba(136, 230, 207, 0.18);
  border-color: rgba(136, 230, 207, 0.58);
}

.mist-1 { left: 8%; top: 8%; }
.mist-2 { right: 14%; top: 12%; }
.mist-3 { left: 34%; top: 34%; }
.mist-4 { left: 12%; bottom: 10%; }
.mist-5 { right: 9%; bottom: 12%; }

.food-stop-scene {
  background: linear-gradient(180deg, #2a151a, #613923 66%, #2b1c12);
}

.stall-lights {
  background:
    repeating-linear-gradient(90deg, #ffd175 0 34px, #f47c62 34px 68px, #fff1cf 68px 102px);
  border-radius: 0 0 32px 32px;
  height: 76px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 10%;
}

.plate-builder {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 0.55fr);
  left: 8%;
  position: absolute;
  right: 8%;
  top: 24%;
  z-index: 14;
}

.birthday-plate {
  align-items: center;
  background: radial-gradient(circle at 50% 45%, #fff8e8 0 48%, #d7b47d 49% 62%, transparent 63%);
  border-radius: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  min-height: 380px;
  padding: 90px;
}

.plate-food {
  background: #f47c62;
  border-radius: 999px;
  color: #281a0b;
  font-size: 0.8rem;
  font-weight: 900;
  min-width: 74px;
  padding: 18px 12px;
  text-align: center;
}

.food-chai { background: #c97748; }
.food-cake { background: #fff1cf; }
.food-chocolate { background: #7e3649; color: #fff8e8; }
.food-noodles { background: #ffd175; }

.food-options {
  align-content: center;
  display: grid;
  gap: 10px;
}

.food-options button.is-selected {
  background: #88e6cf;
}

.campfire-scene {
  background: linear-gradient(180deg, #04101b, #0b2a32 58%, #49301f);
}

.camp-sky {
  background-image:
    radial-gradient(circle, rgba(255, 248, 232, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 209, 117, 0.75) 0 2px, transparent 3px);
  background-position: 0 0, 58px 36px;
  background-size: 120px 120px, 172px 172px;
  inset: 0 0 45%;
  opacity: calc(0.18 + var(--fire-opacity, 0.4));
  position: absolute;
}

.tent-shape {
  border-bottom: 180px solid #f47c62;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  bottom: 12%;
  left: 10%;
  position: absolute;
}

.campfire {
  background: transparent;
  border: 0;
  bottom: 18%;
  color: #fff8e8;
  display: grid;
  gap: 8px;
  justify-items: center;
  left: 50%;
  padding: 0;
  position: absolute;
  transform: translateX(-50%);
  z-index: 15;
}

.campfire span {
  background: #ffd175;
  border-radius: 55% 45% 58% 42%;
  box-shadow: 0 0 calc(26px + var(--fire-opacity, 0.5) * 80px) rgba(255, 209, 117, 0.56);
  display: block;
  height: calc(48px + var(--fire-opacity, 0.5) * 70px);
  transform: rotate(12deg);
  width: calc(34px + var(--fire-opacity, 0.5) * 50px);
}

.fire-0 { --fire-opacity: 0; }
.fire-1 { --fire-opacity: 0.35; }
.fire-2 { --fire-opacity: 0.68; }
.fire-3 { --fire-opacity: 1; }

.memory-ring {
  inset: 12% 8% 20%;
  pointer-events: none;
  position: absolute;
  z-index: 16;
}

.memory-object {
  background: rgba(5, 7, 11, 0.62);
  border: 1px solid rgba(255, 248, 232, 0.2);
  color: #fff8e8;
  min-width: 120px;
  pointer-events: auto;
  position: absolute;
}

.memory-object.is-open {
  background: rgba(136, 230, 207, 0.18);
  border-color: rgba(136, 230, 207, 0.58);
}

.memory-camera { left: 14%; top: 8%; }
.memory-flower { right: 18%; top: 10%; }
.memory-cup { left: 8%; bottom: 18%; }
.memory-map { right: 8%; bottom: 18%; }
.memory-blanket { left: 50%; top: 4%; transform: translateX(-50%); }

.climb-scene {
  background:
    linear-gradient(180deg, rgba(5, 15, 30, calc(1 - var(--dawn-progress))) 0%, rgba(255, 147, 89, var(--dawn-progress)) 100%),
    #0a1422;
}

.climb-gradient {
  background: radial-gradient(circle at 82% 18%, rgba(255, 209, 117, calc(0.12 + var(--dawn-progress) * 0.55)), transparent 24%);
  inset: 0;
  position: absolute;
}

.ridge-line {
  background: #17251e;
  bottom: 0;
  clip-path: polygon(0 100%, 0 78%, 20% 62%, 38% 70%, 58% 42%, 78% 62%, 100% 38%, 100% 100%);
  height: 62%;
  left: 0;
  position: absolute;
  right: 0;
}

.handholds {
  inset: 10% 8% 18%;
  position: absolute;
  z-index: 16;
}

.climb-stone {
  background: #ffd175;
  color: #241605;
  height: 58px;
  min-height: 0;
  padding: 0;
  position: absolute;
  width: 58px;
}

.climb-stone.is-stepped {
  background: #88e6cf;
}

.climb-stone:disabled {
  opacity: 0.28;
}

.stone-1 { bottom: 12%; left: 12%; }
.stone-2 { bottom: 28%; left: 28%; }
.stone-3 { bottom: 43%; left: 46%; }
.stone-4 { bottom: 58%; left: 63%; }
.stone-5 { bottom: 74%; left: 80%; }

.heartbeat {
  border: 2px solid rgba(255, 209, 117, 0.28);
  border-radius: 50%;
  height: 130px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
}

.sunrise-scene {
  background: linear-gradient(180deg, #ffd78b 0%, #f47c62 46%, #5d3b35 100%);
}

.sunrise-glow {
  background: radial-gradient(circle at 50% 26%, #fff4c7 0 120px, rgba(255, 244, 199, 0.36) 121px 300px, transparent 301px);
  inset: 0;
  position: absolute;
}

.summit-edge {
  background: #1c2a22;
  bottom: 0;
  clip-path: polygon(0 100%, 0 72%, 22% 58%, 54% 66%, 100% 48%, 100% 100%);
  height: 44%;
  left: 0;
  position: absolute;
  right: 0;
}

.sunrise-dialogue {
  background: rgba(5, 7, 11, 0.42);
  border: 1px solid rgba(255, 248, 232, 0.18);
  border-radius: 24px;
  color: #fff8e8;
  padding: 18px;
  position: absolute;
  right: 7%;
  top: 14%;
  width: min(430px, 44vw);
  z-index: 16;
}

.sunrise-dialogue p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.4;
  margin: 0 0 12px;
}

.sunrise-dialogue p:last-child {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.sunrise-dialogue p:last-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sunrise-dialogue span {
  color: #ffd175;
  font-weight: 900;
}

.garden-scene {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 231, 156, 0.2), transparent 18%),
    linear-gradient(180deg, #06111e, #102f31 58%, #342638);
}

.garden-magic {
  background-image:
    radial-gradient(circle, rgba(136, 230, 207, 0.82) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(255, 209, 117, 0.7) 0 3px, transparent 4px);
  background-position: 12% 42%, 76% 28%;
  background-size: 160px 160px, 210px 210px;
  inset: 0;
  opacity: 0.52;
  position: absolute;
}

.letter-flower {
  background: radial-gradient(circle, #fff8e8 0 36%, #ffd175 37% 70%, transparent 71%);
  border: 0;
  bottom: 14%;
  color: #281a0b;
  display: grid;
  height: 180px;
  left: 48%;
  place-items: center;
  position: absolute;
  width: 180px;
  z-index: 15;
}

.garden-scene.is-open .letter-flower {
  opacity: 0.2;
  pointer-events: none;
  transform: scale(0.78);
  z-index: 12;
}

.garden-scene.is-open .letter-flower strong {
  display: none;
}

.ending-letter {
  background: rgba(255, 248, 232, 0.92);
  border: 1px solid rgba(78, 48, 24, 0.28);
  border-radius: 28px;
  color: #281a0b;
  padding: clamp(20px, 4vw, 42px);
  position: absolute;
  right: 7%;
  top: 10%;
  width: min(560px, 46vw);
  z-index: 16;
}

.ending-letter h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  margin: 0 0 16px;
}

.ending-letter p {
  color: #513820;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.55;
}

.scene-lock {
  background: linear-gradient(180deg, #06111e, #102f31 58%, #463522);
  color: #fff8e8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
}

.lock-sky {
  overflow: hidden;
  position: relative;
}

.lock-moon {
  background: #ffe79c;
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(255, 231, 156, 0.42);
  height: 160px;
  position: absolute;
  right: 16%;
  top: 14%;
  width: 160px;
}

.lock-peak {
  border-left: 260px solid transparent;
  border-right: 260px solid transparent;
  border-bottom: 420px solid rgba(39, 70, 70, 0.86);
  bottom: 0;
  position: absolute;
}

.lock-peak-a { left: 8%; }
.lock-peak-b { right: 10%; transform: scale(1.16); }

.lock-gate {
  border: 2px solid rgba(255, 209, 117, 0.42);
  border-radius: 999px 999px 0 0;
  bottom: 12%;
  height: 360px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 240px;
}

.lock-copy {
  align-content: center;
  background: rgba(5, 7, 11, 0.58);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 52px);
}

.lock-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
  margin: 0;
}

.lock-copy p {
  color: #f1e4ca;
  line-height: 1.5;
  margin: 0;
}

.permit-form {
  display: grid;
  gap: 10px;
}

.permit-form label {
  color: #ffd175;
  font-weight: 900;
}

.permit-form div {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.permit-form input {
  background: rgba(255, 248, 232, 0.12);
  border: 1px solid rgba(255, 248, 232, 0.18);
  border-radius: 999px;
  color: #fff8e8;
  min-height: 48px;
  padding: 0 16px;
}

@keyframes scene-in {
  from { filter: brightness(0.82); }
  to { filter: brightness(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .travellers-trail,
  .travellers-climb {
    animation: traveller-step 1.4s ease-in-out infinite;
  }

  .fireflies,
  .garden-magic {
    animation: slow-pan 12s linear infinite;
  }

  .campfire span {
    animation: fire-flicker 1.4s ease-in-out infinite;
  }
}

@keyframes traveller-step {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 8px; }
}

@keyframes slow-pan {
  to { background-position: 260px 140px, 320px 180px; }
}

@media (max-width: 820px) {
  .route-hud {
    grid-template-columns: 1fr auto;
    padding: 8px;
  }

  .route-brand {
    min-width: 0;
  }

  .route-map {
    grid-column: 1 / -1;
    order: 3;
  }

  .route-progress {
    min-width: 82px;
  }

  .route-stop {
    flex-basis: 62px;
    min-height: 48px;
  }

  .story-console {
    gap: 8px;
    grid-template-columns: 1fr;
    max-height: 34svh;
    overflow-y: auto;
    padding: 10px;
  }

  .objective-text {
    font-size: 0.88rem;
  }

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

  .choice-dock button {
    width: 100%;
  }

  .scene-caption {
    bottom: 5%;
    left: 16px;
    max-width: calc(100vw - 32px);
  }

  .scene-caption h1 {
    font-size: clamp(1.8rem, 10vw, 3.2rem);
  }

  .episode-card {
    bottom: auto;
    left: 14px;
    padding: 18px;
    top: 18px;
    width: calc(100vw - 28px);
  }

  .episode-card h1 {
    font-size: clamp(2.35rem, 14vw, 4.2rem);
  }

  .giant-moon,
  .gate-moon {
    height: 130px;
    width: 130px;
  }

  .travellers {
    transform: scale(0.72);
    transform-origin: bottom left;
  }

  .travellers-opening { bottom: 2%; right: 7%; transform: scale(0.62); }
  .travellers-gate { bottom: 18%; left: 38%; }
  .travellers-trail { bottom: 20%; left: calc(8% + var(--walk-step) * 13%); }
  .travellers-backpack { bottom: 22%; right: 3%; }
  .travellers-forest { bottom: 12%; left: 12%; }
  .travellers-waterfall { bottom: 12%; left: 6%; }
  .travellers-food { bottom: 11%; right: 2%; }
  .travellers-camp { bottom: 20%; left: 8%; }
  .travellers-climb { bottom: calc(16% + var(--climb-step) * 4%); left: calc(6% + var(--climb-step) * 11%); }
  .travellers-sunrise { bottom: 14%; left: 38%; transform: scale(0.72); }
  .travellers-garden { bottom: 12%; left: 4%; }

  .moon-gate {
    width: 76vw;
  }

  .permit-paper {
    left: 18px;
    top: 10%;
    width: calc(100vw - 36px);
  }

  .pack-zone {
    bottom: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 12px;
    right: 12px;
    top: auto;
    width: auto;
  }

  .gear-sticker {
    min-height: 74px;
    padding: 9px;
  }

  .gear-sticker span {
    display: none;
  }

  .backpack-visual {
    left: 8%;
    top: 18%;
    width: 170px;
  }

  .branch-map {
    grid-template-columns: 1fr;
    left: 16px;
    top: 13%;
    transform: none;
    width: min(210px, 48vw);
  }

  .branch-map button {
    min-height: 70px;
  }

  .compass-card {
    bottom: 11%;
    left: 16px;
    right: auto;
    width: calc(100vw - 32px);
  }

  .mist-panel {
    inset: 12% 5% 20%;
  }

  .mist-patch {
    min-height: 86px;
    width: 44vw;
  }

  .plate-builder {
    gap: 10px;
    grid-template-columns: 1fr;
    left: 12px;
    right: 12px;
    top: 16%;
  }

  .birthday-plate {
    min-height: 210px;
    padding: 54px;
  }

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

  .tent-shape {
    border-bottom-width: 120px;
    border-left-width: 88px;
    border-right-width: 88px;
    left: 4%;
  }

  .memory-ring {
    inset: 10% 4% 20%;
  }

  .memory-object {
    min-width: 98px;
  }

  .memory-camera { left: 2%; top: 10%; }
  .memory-flower { right: 2%; top: 10%; }
  .memory-cup { left: 2%; bottom: 26%; }
  .memory-map { right: 2%; bottom: 26%; }

  .sunrise-dialogue {
    left: 16px;
    right: 16px;
    top: 9%;
    width: auto;
  }

  .ending-letter {
    left: 16px;
    right: 16px;
    top: 8%;
    width: auto;
  }

  .letter-flower {
    bottom: 18%;
    height: 130px;
    left: auto;
    right: 10%;
    width: 130px;
  }

  .scene-lock {
    grid-template-columns: 1fr;
  }

  .lock-sky {
    min-height: 42svh;
  }

  .permit-form div {
    grid-template-columns: 1fr;
  }

  .scene-reset {
    bottom: auto;
    min-height: 34px;
    padding: 0 12px;
    right: 10px;
    top: 128px;
  }
}

@media (max-width: 460px) {
  .route-stop strong {
    display: none;
  }

  .route-stop {
    flex-basis: 46px;
    min-height: 42px;
  }

  .speaker-line {
    min-height: 68px;
  }

  .speaker-line p {
    font-size: 0.96rem;
  }

  .choice-dock {
    grid-template-columns: 1fr;
  }

  .pack-zone {
    grid-template-columns: 1fr 1fr;
  }

  .gear-sticker strong {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-scene,
  .travellers-trail,
  .travellers-climb,
  .fireflies,
  .garden-magic,
  .campfire span {
    animation: none !important;
    transition: none !important;
  }
}
