:root {
  --bg: #170d13;
  --bg-soft: #2a141d;
  --panel: rgba(255, 244, 239, 0.075);
  --panel-strong: rgba(255, 244, 239, 0.13);
  --paper: #fff4ef;
  --ink: #fff3ee;
  --muted: rgba(255, 244, 239, 0.68);
  --muted-2: rgba(255, 244, 239, 0.46);
  --accent: #d66f85;
  --accent-2: #a94d61;
  --accent-dark: #6e3040;
  --line: rgba(255, 244, 239, 0.18);
  --line-hot: rgba(214, 111, 133, 0.46);
  --shadow: rgba(0, 0, 0, 0.34);
  --font: "Caveat", cursive;
  --title: 78px;
  --body: 31px;
  --label: 19px;
  --card-value: 54px;
  --card-label: 19px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background:
    radial-gradient(circle at 16% 12%, rgba(214, 111, 133, 0.22), transparent 30rem),
    radial-gradient(circle at 84% 72%, rgba(169, 77, 97, 0.25), transparent 28rem),
    linear-gradient(135deg, #4a2430 0%, var(--bg) 48%, #0f090d 100%);
  color: var(--ink);
  font-family: var(--font);
  margin: 0;
  overflow: hidden;
}

body::before {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 244, 239, 0.08), transparent 7rem),
    radial-gradient(circle at 80% 76%, rgba(214, 111, 133, 0.10), transparent 9rem);
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.90), transparent 92%);
  opacity: 0.9;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

button,
input {
  font: inherit;
}

.locked,
.hidden {
  display: none !important;
}

.lock-screen {
  align-items: center;
  display: flex;
  min-height: 100dvh;
  justify-content: center;
  padding: 28px;
  position: relative;
  z-index: 2;
}

.lock-card {
  background: linear-gradient(180deg, rgba(255, 244, 239, 0.12), rgba(255, 244, 239, 0.055));
  border: 1px solid var(--line-hot);
  border-radius: 28px;
  box-shadow: 0 28px 90px var(--shadow);
  max-width: 680px;
  padding: 58px;
  position: relative;
  width: 100%;
}

.lock-card::before {
  border: 1px solid rgba(255, 244, 239, 0.12);
  border-radius: 20px;
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
}

.scene-label {
  color: var(--accent);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1;
  margin: 0 0 22px;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--ink);
  font-size: var(--title);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 0 28px;
}

h1 {
  font-size: 92px;
  max-width: 760px;
}

h3 {
  color: var(--ink);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.intro,
.footer-note,
.compare-card p,
.gift-note {
  color: var(--muted);
  font-size: var(--body);
  line-height: 1.35;
  margin: 0;
  max-width: 820px;
}

.date-field {
  margin: 30px 0 12px;
  position: relative;
}

.date-field::before {
  align-items: center;
  color: var(--ink);
  content: attr(data-mask);
  display: flex;
  font-size: 46px;
  inset: 0;
  letter-spacing: 0.04em;
  padding: 16px 18px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.lock-card input {
  background: rgba(255, 244, 239, 0.08);
  border: 1px solid var(--line-hot);
  border-radius: 14px;
  caret-color: var(--ink);
  color: transparent;
  display: block;
  font-size: 46px;
  letter-spacing: 0.04em;
  padding: 16px 18px;
  width: 100%;
}

.lock-card input:focus {
  border-color: var(--accent);
  outline: 4px solid rgba(214, 111, 133, 0.16);
}

.lock-error {
  color: var(--accent);
  font-size: 26px;
  min-height: 34px;
}

.primary-button,
.gift-button {
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 34px;
  font-weight: 700;
  justify-content: center;
  margin-top: 16px;
  padding: 15px 34px 18px;
  text-decoration: none;
}

.primary-button:hover,
.gift-button:hover {
  background: #ffdce4;
}

.scroll-app {
  height: 100dvh;
  position: relative;
  z-index: 1;
}

.site-chrome {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(16, 8, 12, 0.62);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 34px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 31px;
  font-weight: 700;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: rgba(214, 111, 133, 0.16);
  border: 1px solid var(--line-hot);
  border-radius: 50%;
  color: var(--accent);
  display: inline-flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.scene-status {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 24px;
  gap: 12px;
  margin-left: auto;
  margin-right: 14px;
}

#scene-index {
  color: var(--accent);
  font-weight: 700;
}

.music-button {
  align-items: center;
  background: rgba(214, 111, 133, 0.14);
  border: 1px solid var(--line-hot);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.music-button.is-muted {
  color: var(--muted-2);
}

.onboarding {
  background: rgba(8, 3, 6, 0.58);
  backdrop-filter: blur(2px);
  inset: 0;
  pointer-events: auto;
  position: fixed;
  z-index: 42;
}

.onboarding-card {
  left: 50%;
  max-width: min(620px, calc(100vw - 36px));
  padding: 0;
  pointer-events: auto;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
}

.onboarding-card p {
  color: var(--paper);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.02;
  margin: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.50);
}

.onboarding-card button {
  background: rgba(255, 244, 239, 0.12);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 25px;
  margin-top: 16px;
  padding: 7px 22px 10px;
}

.onboarding-sound {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(160px, 250px) auto;
  position: absolute;
  right: 28px;
  top: 23px;
}

.onboarding-arrow {
  color: var(--accent);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-10deg);
}

.onboarding-sound-text {
  color: var(--paper);
  font-size: 25px;
  line-height: 1.05;
  max-width: 250px;
  text-align: right;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.48);
}

.onboarding-sound-button {
  align-items: center;
  background: rgba(214, 111, 133, 0.20);
  border: 1px solid var(--line-hot);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  font-size: 24px;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.story-scroll {
  height: 100dvh;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
}

.desktop-paging .story-scroll {
  overflow-y: hidden;
  scroll-snap-type: none;
}

.scene {
  align-items: center;
  display: flex;
  min-height: 100dvh;
  padding: 112px 40px 40px;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.scene::after {
  display: none;
}

.scene-shell,
.hero-layout {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(520px, 1.18fr);
  margin: 0 auto;
  max-width: 1280px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.scene-copy,
.hero-copy {
  max-width: 560px;
}

.scene-visual,
.hero-dashboard,
.letter-wrap,
.gift-wrap {
  background:
    linear-gradient(180deg, rgba(255, 244, 239, 0.12), rgba(255, 244, 239, 0.05)),
    rgba(18, 9, 14, 0.30);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 90px var(--shadow);
  overflow: visible;
  padding: 34px;
  position: relative;
}

.hero-dashboard {
  padding: 32px;
}

.hero-scene {
  padding-top: 88px;
}

.hero-layout {
  grid-template-columns: minmax(360px, 0.86fr) minmax(620px, 1.14fr);
  max-width: 1360px;
}

.stats-grid,
.compare-grid,
.birth-grid,
.emoji-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.compare-card,
.word-panel,
.emoji-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
  padding: 24px 28px;
}

.stat-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 148px;
  text-align: center;
}

.stat-card strong {
  color: var(--ink);
  display: block;
  font-size: var(--card-value);
  font-weight: 700;
  line-height: 1;
}

.stat-card span,
.caption {
  color: var(--accent);
  display: block;
  font-size: var(--card-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.15;
  margin-top: 12px;
  text-transform: uppercase;
}

.split-meter {
  margin-top: 24px;
}

.meter-track {
  background: rgba(255, 244, 239, 0.13);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  height: 28px;
  overflow: hidden;
}

.meter-a {
  background: var(--paper);
}

.meter-b {
  background: var(--accent);
}

.meter-labels {
  color: var(--muted);
  display: flex;
  font-size: 25px;
  justify-content: space-between;
  margin-top: 10px;
}

.metric-list,
.story-list,
.travel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.metric-list li {
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 9px;
}

.metric-list strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  white-space: nowrap;
}

.metric-list span {
  color: var(--muted);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.compare-card p,
.footer-note {
  font-size: 27px;
}

.footer-note {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.story-list,
.travel-list {
  display: grid;
  gap: 12px;
  overflow: visible;
  padding-right: 0;
}

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

.story-scene .scene-shell,
.timeline-scene .scene-shell {
  gap: 42px;
  grid-template-columns: minmax(260px, 0.34fr) minmax(760px, 1.66fr);
  max-width: 1520px;
}

.story-scene .scene-copy,
.timeline-scene .scene-copy {
  max-width: 430px;
}

.story-scene .scene-visual,
.timeline-scene .scene-visual {
  padding: 28px;
}

.story-scene .travel-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-scene .story-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-item,
.travel-list li {
  background: rgba(255, 244, 239, 0.055);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 7px;
  padding: 16px 18px;
}

.timeline-scene .story-item {
  padding: 12px 14px;
}

.story-item strong,
.travel-list strong {
  color: var(--ink);
  font-size: 31px;
  line-height: 1;
}

.story-item span,
.travel-list span {
  color: var(--muted);
  font-size: 25px;
  line-height: 1.16;
}

.word-cloud {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  justify-content: center;
  padding: 12px;
}

.word-cloud span {
  background: rgba(255, 244, 239, 0.08);
  border: 1px dashed var(--line-hot);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: var(--size);
  font-weight: 700;
  line-height: 1;
  padding: 9px 18px 12px;
  transform: rotate(var(--rot));
}

.word-cloud.small span {
  font-size: max(25px, calc(var(--size) * 0.68));
}

.word-panel h3 {
  margin-bottom: 4px;
}

.kids-scene .scene-shell {
  grid-template-columns: minmax(300px, 0.62fr) minmax(740px, 1.38fr);
  max-width: 1420px;
}

.kids-scene .scene-visual {
  padding: 26px;
}

.kids-cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kid-card {
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 244, 239, 0.13), transparent 12rem),
    linear-gradient(180deg, rgba(255, 244, 239, 0.10), rgba(255, 244, 239, 0.045));
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
}

.kid-photo-frame {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 244, 239, 0.22);
  border-radius: 20px;
  min-height: 245px;
  overflow: hidden;
  position: relative;
}

.kid-photo-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  width: 100%;
}

.kid-card:nth-child(2) .kid-photo-frame img {
  object-position: 52% 44%;
}

.kid-card-head {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(120px, 0.58fr) minmax(160px, 1fr);
}

.kid-card-head h3 {
  font-size: 56px;
}

.kid-band {
  background: rgba(255, 244, 239, 0.10);
  border: 1px solid rgba(255, 244, 239, 0.16);
  border-radius: 16px;
  height: 92px;
  overflow: hidden;
}

.kid-band img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  width: 100%;
}

.kid-card:nth-child(2) .kid-band img {
  object-position: 56% 52%;
}

.kid-tags {
  align-content: start;
  display: flex;
  gap: 12px;
  min-height: 118px;
}

.kid-tags span {
  font-size: max(27px, calc(var(--size) * 0.58));
  padding: 8px 16px 11px;
}

.heatmap {
  display: grid;
  gap: 5px;
  grid-template-columns: 38px repeat(24, minmax(10px, 1fr));
}

.heat-label {
  color: var(--muted);
  font-size: 21px;
  font-weight: 700;
}

.heat-cell {
  aspect-ratio: 1 / 1;
  background: color-mix(in srgb, rgba(255, 244, 239, 0.13), var(--accent) calc(var(--level) * 72%));
  border: 1px solid rgba(255, 244, 239, 0.08);
  border-radius: 5px;
}

.heat-cell.hot {
  background: color-mix(in srgb, var(--accent), #ffd2dc calc(var(--level) * 38%));
}

.legend,
.reaction-strip {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 24px;
  gap: 10px;
  margin-top: 22px;
}

.legend i {
  background: var(--accent);
  border-radius: 4px;
  display: block;
  height: 18px;
  opacity: calc(0.15 + var(--i, 1) * 0.16);
  width: 34px;
}

.legend i:nth-of-type(1) { --i: 1; }
.legend i:nth-of-type(2) { --i: 2; }
.legend i:nth-of-type(3) { --i: 3; }
.legend i:nth-of-type(4) { --i: 4; }

.emoji-card {
  min-height: 142px;
  text-align: center;
}

.emoji-card strong {
  display: block;
  font-size: 52px;
  line-height: 1;
}

.emoji-card span {
  color: var(--ink);
  display: block;
  font-size: 42px;
  font-weight: 700;
}

.emoji-card em,
.reaction-strip span {
  color: var(--muted);
  font-size: 26px;
  font-style: normal;
}

.year-chart,
.anniversary-chart {
  align-items: end;
  border-bottom: 2px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  height: min(48dvh, 420px);
}

.year,
.anniversary-bar {
  display: grid;
  grid-template-rows: 1fr auto auto;
  height: 100%;
  min-width: 0;
  text-align: center;
}

.bar,
.anniversary-bar i {
  align-self: end;
  background: rgba(255, 244, 239, 0.75);
  border-radius: 8px 8px 0 0;
  display: block;
}

.bar.highlight,
.anniversary-bar i {
  background: var(--accent);
}

.year span,
.anniversary-bar span {
  color: var(--muted);
  font-size: 24px;
  font-weight: 700;
  margin-top: 8px;
}

.year strong,
.anniversary-bar strong {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.letter-scene,
.gift-scene {
  justify-content: center;
}

.letter-scene.has-love-collage {
  isolation: isolate;
  overflow: hidden;
}

.letter-wrap,
.gift-wrap {
  margin: 0 auto;
  max-width: 920px;
  padding: 56px;
  text-align: center;
}

.letter-scene.has-love-collage::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(23, 13, 19, 0.24), rgba(23, 13, 19, 0.76) 72%),
    linear-gradient(90deg, rgba(23, 13, 19, 0.82) 0%, rgba(23, 13, 19, 0.56) 50%, rgba(23, 13, 19, 0.82) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.letter-scene.has-love-collage::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 35%, rgba(15, 9, 13, 0.58) 72%),
    linear-gradient(180deg, rgba(214, 111, 133, 0.10), rgba(15, 9, 13, 0.50));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.letter-scene.has-love-collage .letter-wrap {
  background:
    linear-gradient(180deg, rgba(255, 244, 239, 0.16), rgba(255, 244, 239, 0.06)),
    rgba(18, 9, 14, 0.50);
  border-color: rgba(255, 244, 239, 0.24);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.letter-content {
  position: relative;
  z-index: 2;
}

.love-collage {
  display: none;
}

.has-love-collage .love-collage {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(3, 1fr);
  inset: -48px;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
  transform: rotate(-2deg) scale(1.08);
  z-index: 0;
}

.love-collage i {
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 244, 239, 0.22);
  border-radius: 18px;
  filter: saturate(0.82) contrast(0.9);
  min-height: 32vh;
  transition: background-image 900ms ease, opacity 900ms ease;
}

.love-collage i:nth-child(1),
.love-collage i:nth-child(8),
.love-collage i:nth-child(17) {
  grid-column: span 2;
}

.love-collage i:nth-child(3),
.love-collage i:nth-child(10),
.love-collage i:nth-child(22) {
  grid-row: span 2;
}

.love-collage i:nth-child(6),
.love-collage i:nth-child(12),
.love-collage i:nth-child(19) {
  transform: rotate(3deg);
}

.letter-text {
  color: var(--ink);
  font-size: 50px;
  line-height: 1.13;
  margin: 0;
}

.gift-note {
  font-size: 30px;
  margin-top: 18px;
}

.rebus-modal {
  align-items: center;
  background: rgba(12, 7, 10, 0.86);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 80;
}

.rebus-modal img {
  background: var(--paper);
  border: 2px solid var(--line-hot);
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  max-height: min(82dvh, 720px);
  max-width: min(94vw, 1120px);
  object-fit: contain;
}

.rebus-close {
  align-items: center;
  background: rgba(255, 244, 239, 0.14);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  font-size: 34px;
  height: 52px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 22px;
  top: 22px;
  width: 52px;
}

[data-reveal],
.stat-card,
.compare-card,
.kid-card,
.word-panel,
.emoji-card,
.story-item,
.travel-list li,
.year,
.anniversary-bar,
.word-cloud span,
.reaction-strip span,
.split-meter {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 58ms);
}

.scene.is-visible [data-reveal],
.scene.is-visible .stat-card,
.scene.is-visible .compare-card,
.scene.is-visible .kid-card,
.scene.is-visible .word-panel,
.scene.is-visible .emoji-card,
.scene.is-visible .story-item,
.scene.is-visible .travel-list li,
.scene.is-visible .year,
.scene.is-visible .anniversary-bar,
.scene.is-visible .word-cloud span,
.scene.is-visible .reaction-strip span,
.scene.is-visible .split-meter {
  opacity: 1;
  transform: translateY(0) rotate(var(--rot, 0deg));
}

@media (max-width: 1060px) {
  :root {
    --title: 62px;
    --body: 28px;
    --card-value: 46px;
  }

  h1 {
    font-size: 72px;
  }

  .scene-shell,
  .hero-layout {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .kids-scene .scene-shell {
    grid-template-columns: 1fr;
    max-width: 900px;
  }

  .scene-copy,
  .hero-copy {
    max-width: 820px;
  }

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

@media (max-width: 720px) {
  :root {
    --title: 50px;
    --body: 25px;
    --label: 16px;
    --card-value: 40px;
    --card-label: 16px;
  }

  .site-chrome {
    height: 64px;
    padding: 0 18px;
  }

  .onboarding-card p {
    font-size: 40px;
  }

  .onboarding-sound {
    gap: 8px;
    grid-template-columns: auto minmax(120px, 190px) auto;
    right: 13px;
    top: 10px;
  }

  .onboarding-arrow {
    font-size: 48px;
  }

  .onboarding-sound-text {
    font-size: 20px;
    max-width: 190px;
  }

  .onboarding-sound-button {
    height: 40px;
    width: 40px;
  }

  .brand {
    font-size: 27px;
  }

  .scene-status {
    font-size: 20px;
    display: none;
  }

  .scene {
    padding: 82px 16px 18px;
  }

  h1 {
    font-size: 58px;
  }

  .scene-visual,
  .hero-dashboard,
  .letter-wrap,
  .gift-wrap,
  .lock-card {
    border-radius: 22px;
    padding: 24px;
  }

  .stats-grid,
  .compare-grid,
  .birth-grid,
  .emoji-grid {
    grid-template-columns: 1fr;
  }

  .kids-cards {
    grid-template-columns: 1fr;
  }

  .kid-card {
    grid-template-areas:
      "photo head"
      "photo tags";
    grid-template-columns: minmax(190px, 0.44fr) minmax(0, 0.56fr);
    padding: 16px;
  }

  .kid-photo-frame {
    align-self: start;
    aspect-ratio: auto;
    grid-area: photo;
    height: 260px;
    min-height: 0;
  }

  .kid-card-head {
    align-self: start;
    grid-area: head;
    grid-template-columns: 1fr;
  }

  .kid-card-head h3 {
    font-size: 46px;
  }

  .kid-band {
    height: 72px;
  }

  .kid-tags {
    grid-area: tags;
    min-height: 0;
  }

  .kid-tags span {
    font-size: 24px;
    padding: 7px 13px 10px;
  }

  .kid-tags span:nth-child(n+7) {
    display: none;
  }

  .stat-card {
    min-height: 118px;
  }

  .heatmap {
    gap: 3px;
    grid-template-columns: 26px repeat(24, minmax(6px, 1fr));
  }

  .heat-label,
  .metric-list span,
  .year strong,
  .anniversary-bar strong {
    font-size: 17px;
  }

  .story-item strong,
  .travel-list strong {
    font-size: 28px;
  }

  .story-item span,
  .travel-list span {
    font-size: 23px;
  }

  .letter-text {
    font-size: 36px;
    line-height: 1.12;
  }

  .has-love-collage .love-collage {
    gap: 6px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    inset: -28px;
    opacity: 0.48;
    transform: rotate(-2deg) scale(1.1);
  }

  .love-collage i {
    border-radius: 14px;
    min-height: 16vh;
  }
}

@media (hover: none), (pointer: coarse) {
  .story-scroll {
    scroll-snap-type: y proximity;
  }
}

@media (max-width: 520px) {
  .kid-card {
    grid-template-areas:
      "photo head"
      "photo tags";
    grid-template-columns: minmax(132px, 0.42fr) minmax(0, 0.58fr);
    gap: 12px;
  }

  .kid-photo-frame {
    aspect-ratio: auto;
    height: 220px;
    max-height: none;
  }

  .kid-tags span {
    font-size: 22px;
  }

  .kid-tags span:nth-child(n+6) {
    display: none;
  }
}

@media (max-width: 370px) {
  .kid-card {
    grid-template-areas:
      "photo"
      "head"
      "tags";
    grid-template-columns: 1fr;
  }

  .kid-photo-frame {
    aspect-ratio: 4 / 3;
    max-height: 210px;
  }

  .kid-tags span:nth-child(n+5) {
    display: none;
  }
}
