@font-face {
  font-family: 'Star Serif';
  src: url('assets/fonts/noto-serif-sc-subset.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --cream: #eeeadf;
  --gold: #d7bc87;
  --muted: #9aa8bc;
  --line: rgba(215, 188, 135, .19);
  --serif: 'Star Serif', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  scrollbar-color: #776c55 #0b1220;
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 16px/1.85 var(--sans);
  overflow-x: hidden;
  isolation: isolate;
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #d7bc87; color: #0b1220; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b1220; }
::-webkit-scrollbar-thumb { background: #776c55; border: 2px solid #0b1220; border-radius: 6px; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
button:focus-visible, a:focus-visible, select:focus-visible, audio:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.gold { color: var(--gold); }
.section { width: min(1240px, calc(100% - 112px)); margin-inline: auto; position: relative; }
.section-number { display: none; }

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -2; }
.nebula {
  position: absolute;
  inset: 0 0 auto;
  height: 1150px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 76% 35%, #2e476233, transparent 47%), radial-gradient(ellipse at 15% 20%, #23334820, transparent 50%);
}

/* A quiet masthead keeps the letter, rather than site navigation, in front. */
.site-header {
  height: 112px;
  width: min(1360px, calc(100% - 112px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid #d7bc8715;
  position: relative;
  z-index: 2;
}
.brand { display: inline-flex; align-items: center; gap: 14px; font: 20px/1.5 var(--serif); letter-spacing: .12em; }
.brand-star { display: flex; flex: 0 0 32px; color: var(--gold); }
.brand-star svg { display: block; width: 32px; height: 32px; }
.brand small { display: block; font: 11px/1.7 Georgia, serif; letter-spacing: .14em; color: var(--muted); margin-top: 5px; }
.site-header nav { display: flex; gap: 36px; font-size: 14px; letter-spacing: .05em; color: #b3bfce; }
.site-header nav a { padding-block: 12px; transition: color .2s; }
.site-header nav a:hover { color: var(--gold); }
.sound-button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0 10px 10px; background: none; color: #aab7c8; font-size: 12px; white-space: nowrap; }
.sound-bars { display: flex; align-items: center; gap: 3px; height: 20px; }
.sound-bars i { display: block; width: 2px; height: 6px; background: #9aa8bc; }
.sound-bars i:nth-child(2) { height: 15px; }
.sound-bars i:nth-child(3) { height: 11px; }
.sound-bars i:nth-child(4) { height: 8px; }
.sound-button[aria-pressed=true] { color: var(--gold); }
.sound-button[aria-pressed=true] i { background: var(--gold); }

/* The first spread: a generous line of type and the existing brass astrolabe. */
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 12px;
  align-items: center;
  min-height: min(830px, calc(100svh - 112px));
  padding-block: 88px 138px;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 4.9vw, 72px); line-height: 1.43; letter-spacing: .015em; }
.letter-intro { color: var(--gold); font-size: 14px; letter-spacing: .18em; margin-top: 24px; }
.hero-description { color: #acb8c9; font-size: 16px; line-height: 2.1; margin-top: 23px; }
.recipient { display: flex; align-items: center; gap: 16px; margin: 32px 0 30px; color: #a6b1c2; font: 12px/1.6 Georgia, serif; letter-spacing: .12em; }
.recipient-name { color: var(--cream); font: 20px/1.5 var(--serif); letter-spacing: .12em; }
.recipient-line { width: 42px; height: 1px; background: var(--line); }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  background: var(--gold);
  color: #182130;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .045em;
  transition: background .22s ease, transform .22s ease;
}
.primary-button > span:last-child { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 1; }
.primary-button > span:last-child svg { display: block; width: 20px; height: 20px; }
.primary-button:hover:not(:disabled) { background: #e6cea0; transform: translateY(-2px); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.entry-note { color: var(--muted); font-size: 12px; margin-top: 15px; letter-spacing: .03em; }
.celestial { position: relative; width: 107%; aspect-ratio: 1; margin-left: -5%; align-self: center; }
.astral-chart { display: block; width: 100%; height: 100%; }
.orbital-halo { position: absolute; inset: 22%; background: radial-gradient(circle, #d4b1730a, transparent 70%); border-radius: 50%; }
.breathe { opacity: .72; }
.chart-label { position: absolute; inset: auto 0 -2%; text-align: center; color: #b5a68b; font: 14px/1.8 var(--serif); letter-spacing: .22em; }
.chart-coordinate { position: absolute; top: 7%; right: 5%; color: #94a1b3; font: 11px/1.6 Georgia, serif; letter-spacing: .12em; }
.hero-side-note { position: absolute; right: 0; bottom: 43px; color: #8f9db1; font: 11px/1.5 Georgia, serif; letter-spacing: .12em; }
.scroll-cue { position: absolute; left: 0; bottom: 35px; display: flex; align-items: center; gap: 13px; color: #a0aec1; font-size: 12px; letter-spacing: .05em; }
.scroll-cue span { width: 1px; height: 30px; background: var(--gold); opacity: .7; }
.entered .north-star { filter: drop-shadow(0 0 12px #ffe8ad66); }
.entered .hero .entry-note { color: #d0b98d; }

/* Headings have their own scale; notes sit below their subject. */
main h2 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.65; letter-spacing: .025em; }
.section-caption { color: #a5adbb; font: 11px/1.8 Georgia, serif; letter-spacing: .14em; margin-top: 23px; }
.section-description { color: #a7b4c6; font-size: 16px; line-height: 2; margin-top: 18px; }
.countdown-section { padding-block: 95px 86px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.countdown { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: start; width: min(690px, 100%); gap: 18px; margin: 45px auto 30px; }
.countdown > div { min-width: 0; }
.countdown strong { display: block; color: #e3d7be; font: 400 clamp(48px, 5.8vw, 76px)/1.15 Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.countdown div > span { display: block; color: #a0adc0; font-size: 11px; line-height: 1.6; letter-spacing: .06em; margin-top: 14px; white-space: nowrap; }
.countdown i { color: #b5a282; font: 28px/2.35 Georgia, serif; font-style: normal; }
.date-stamp { color: #b2ad9e; font-size: 12px; line-height: 1.9; letter-spacing: .06em; }
.date-stamp > span { display: inline-flex; align-items: center; vertical-align: middle; margin-inline: 10px; color: var(--gold); }
.date-stamp svg { display: block; width: 11px; height: 11px; }
.countdown-section .section-caption { margin-top: 15px; }
.birthday-date { padding: 40px 0 28px; }
.birthday-date span { display: block; color: var(--gold); font: 14px/1.6 Georgia, serif; letter-spacing: .2em; }
.birthday-date strong { display: block; color: var(--cream); font: 400 clamp(30px, 3.7vw, 48px)/1.65 var(--serif); margin-top: 14px; }
.countdown-section .prepare-button { min-height: 54px; font-size: 14px; margin-top: 28px; }
.countdown-section .arm-hint { color: var(--muted); font-size: 12px; line-height: 1.9; letter-spacing: 0; margin-top: 18px; }

.memory-section { padding-block: 106px 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.section-heading > p { padding-bottom: 5px; color: #b5c0ce; font-size: 16px; line-height: 2; }
.muted { display: block; color: var(--muted); font-size: 13px; margin-top: 18px; }
.memory-map { height: 500px; margin-top: 46px; position: relative; }
.constellation-lines { position: absolute; inset: 0; display: block; width: 100%; height: 100%; fill: #b9a37b; pointer-events: none; }
.constellation-lines path { fill: none; stroke: #baa77f; stroke-width: 1; opacity: .4; stroke-dasharray: 3 6; }
.constellation-lines circle { opacity: .7; }
.map-mobile { display: none; }
.memory-star { position: absolute; display: flex; flex-direction: column; align-items: center; width: 200px; max-width: 100%; background: none; padding: 0; text-align: center; transform: translate(-50%, -22px); }
.memory-one { left: 24.5%; top: 29%; }
.memory-two { left: 50.5%; top: 60%; }
.memory-three { left: 77.5%; top: 23%; }
.star-node { display: grid; place-items: center; width: 44px; height: 44px; color: #ecd4a3; transition: color .25s ease, transform .25s ease; }
.star-node svg { display: block; width: 38px; height: 38px; }
.memory-star:hover .star-node, .memory-star:focus-visible .star-node { color: #fff0cc; transform: scale(1.12); }
.memory-index { color: #b8aa8c; font: 11px/1.5 Georgia, serif; letter-spacing: .13em; margin-top: 15px; }
.memory-star strong { font: 400 23px/1.6 var(--serif); letter-spacing: .05em; margin-top: 6px; }
.memory-hint { font-size: 13px; line-height: 1.8; color: #a3b0c3; margin-top: 5px; }
.memory-star.visited .memory-index { color: #e0c28b; }
.secret-star { position: absolute; left: 6.3%; top: 48.6%; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; color: #b7a785; background: none; }
.secret-star svg { display: block; width: 22px; height: 22px; }
.secret-star:hover { color: #fff0c5; }
.map-caption { color: #a2afc0; font-size: 12px; line-height: 1.9; letter-spacing: .04em; text-align: center; }
.map-caption > span { display: inline-flex; vertical-align: middle; margin-right: 7px; color: var(--gold); }
.map-caption svg { width: 12px; height: 12px; display: block; }

/* The original folded envelope remains the object at the centre of the gift. */
.gift-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-block: 76px 108px; border-bottom: 1px solid var(--line); }
.gift-art { position: relative; width: 100%; height: 380px; display: flex; align-items: center; justify-content: center; }
.gift-orbit { position: absolute; width: 316px; height: 316px; border-radius: 50%; border: 1px solid #d1b57b24; background: radial-gradient(circle, #bba06810, transparent 65%); }
.gift-orbit::after { content: ''; position: absolute; inset: -20px; border: 1px dashed #d1b57b16; border-radius: 50%; }
.envelope { position: relative; width: 270px; height: 172px; border: 1px solid #aa91616b; background: linear-gradient(140deg, #29313d, #171f2b 65%); transform: rotate(-9deg); box-shadow: 0 26px 48px #0005; }
.envelope::before, .envelope::after { content: ''; position: absolute; bottom: 0; width: 158px; height: 1px; background: #aa91614d; transform-origin: bottom left; transform: rotate(-32deg); }
.envelope::after { right: 0; transform-origin: bottom right; transform: rotate(32deg); }
.envelope-line { position: absolute; inset: 0 0 auto; height: 90px; overflow: hidden; }
.envelope-line::before { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid #c4a87465; transform: rotate(45deg); left: 39px; top: -140px; background: linear-gradient(160deg, #34404c, #202936); }
.wax-seal { position: absolute; top: 57px; left: 112px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #c3a16c, #735739); box-shadow: 0 2px 8px #0005, inset 0 0 0 3px #a58355, inset 0 0 0 4px #d8b57a70; color: #f0ce92; z-index: 1; }
.wax-seal svg { display: block; width: 25px; height: 25px; }
.envelope > span { position: absolute; inset: auto 0 18px; text-align: center; color: #c9b89a; font: 11px/1.5 Georgia, serif; letter-spacing: .23em; }
.floating-star { position: absolute; color: #c1a878; }
.floating-star svg { display: block; width: 26px; height: 26px; }
.fs-one { right: 15%; top: 14%; }
.fs-two { bottom: 13%; left: 19%; }
.fs-two svg { width: 16px; height: 16px; }
.gift-copy h2 { font-size: clamp(30px, 3vw, 40px); }
.gift-button { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; min-height: 54px; margin-top: 30px; padding: 13px 21px; background: transparent; border: 1px solid #bba16d80; color: #e0c897; font-size: 14px; line-height: 1.6; transition: background .2s ease; }
.gift-button:hover { background: #cab07916; }
.gift-button > span:last-child { display: flex; margin-left: 8px; flex-shrink: 0; }
.gift-button > span:last-child svg { display: block; width: 20px; height: 20px; }
.gift-button #lockIcon { flex-shrink: 0; width: 15px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.gift-footnote { color: var(--muted); font-size: 12px; margin-top: 16px; }
.gift-copy .section-caption { margin-top: 25px; }
body[data-phase=birthday] .gift-button { background: var(--gold); color: #182130; }

.closing { padding-block: 93px 100px; text-align: center; }
.closing-star { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; padding: 10px; color: var(--gold); background: none; }
.closing-star svg { display: block; width: 30px; height: 30px; }
.closing p { font: 400 32px/1.9 var(--serif); letter-spacing: .08em; }
.closing > span { display: block; color: #a2b0c3; font-size: 14px; margin-top: 24px; }
.closing .text-button { display: block; margin: 24px auto 0; }
footer { width: min(1360px, calc(100% - 112px)); margin-inline: auto; padding-block: 30px 36px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #9ba9bd; font-size: 12px; }
.footer-brand { font-size: 17px; letter-spacing: .09em; color: #d5d0c4; gap: 10px; }
.footer-brand .brand-star { flex-basis: 24px; }
.footer-brand .brand-star svg { width: 24px; height: 24px; }
footer > span:last-child { font: 11px/1.6 Georgia, serif; letter-spacing: .1em; }

.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 0; background: none; color: var(--gold); font-size: 14px; line-height: 1.6; letter-spacing: .03em; }
.text-button:hover { color: #f0d7a4; }
.text-button span { display: inline-flex; margin-left: 15px; }
.text-button span svg { display: block; width: 18px; height: 18px; }
.toast { position: fixed; z-index: 30; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: min(calc(100% - 40px), 480px); width: max-content; padding: 16px 24px; background: #1e2c40; color: #f0dfbd; box-shadow: 0 14px 40px #0006; font-size: 14px; line-height: 1.8; text-align: center; }

/* Letter dialogs have their own type scale, independent of the video stage. */
dialog { color: var(--cream); }
dialog:not(.cinema-dialog) { width: min(calc(100vw - 48px), 600px); max-height: 88svh; margin: auto; padding: 58px 48px 42px; overflow-y: auto; background: #111d2d; border: 1px solid #bca37165; text-align: center; }
dialog:not(.cinema-dialog)::backdrop { background: #040a14e6; }
.close-button { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; color: #c6bda9; font: 28px/1 var(--sans); }
.close-button:hover { color: #fff0cc; }
.story-symbol { display: flex; justify-content: center; color: var(--gold); margin: 6px 0 22px; }
.story-symbol svg { display: block; width: 40px; height: 40px; }
.story-dialog h2 { font-size: 32px; line-height: 1.6; letter-spacing: .03em; }
.story-text { max-width: 36em; margin: 24px auto 0; color: #bec9d8; font-size: 16px; line-height: 2.1; white-space: pre-line; text-wrap: pretty; }
.story-dialog .section-caption { margin-top: 24px; }
.story-dialog .text-button { margin-top: 14px; }
#storyImageWrap { margin: 8px 0 26px; }
#storyImage { display: block; width: 100%; max-height: 40svh; object-fit: contain; }
.birthday-dialog .birthday-symbol { display: flex; justify-content: center; color: var(--gold); margin: 4px 0 21px; }
.birthday-symbol svg { display: block; width: 48px; height: 48px; }
.birthday-preface { color: #b0bdcd; font-size: 14px; margin-bottom: 20px; }
.birthday-inner h2 { font-size: 46px; line-height: 1.55; letter-spacing: .04em; }
.birthday-inner #birthdayMessage { font-size: 16px; line-height: 2.05; color: #bbc6d5; margin-top: 26px; white-space: pre-line; }
.birthday-inner .section-caption { margin-top: 24px; }
.birthday-inner .primary-button { margin-top: 28px; gap: 20px; }
audio { display: block; width: 100%; margin-top: 20px; accent-color: var(--gold); }
.media-hint { font-size: 13px; line-height: 1.8; color: #b0bdce; margin: 12px 0; }
dialog.reveal-dialog { width: min(calc(100vw - 48px), 480px); padding: 56px 35px 34px; background: #151e2b; border-color: #d7bc8780; }
.reveal-dialog h2 { font-size: 30px; line-height: 1.65; letter-spacing: .025em; margin-top: 24px; }
#revealSubtitle { font-size: 15px; line-height: 1.9; color: #bfccda; margin-top: 12px; }
.reveal-dialog .section-caption { margin-top: 19px; font-size: 11px; }
.summon-circle { position: relative; width: 104px; height: 104px; border: 1px solid #c6a46c80; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; }
.summon-circle::before { content: ''; position: absolute; inset: 18px; border: 1px solid #c6a46c55; transform: rotate(45deg); }
.summon-circle span { display: flex; color: #e5c28d; }
.summon-circle svg { display: block; width: 39px; height: 39px; }
.gift-reveal-note { padding-top: 24px; margin-top: 25px; border-top: 1px solid #d7bc8730; }
.gift-reveal-note > span { display: inline-flex; color: var(--gold); }
.gift-reveal-note svg { display: block; width: 22px; height: 22px; }
.gift-reveal-note p { font: 400 20px/1.9 var(--serif); letter-spacing: .04em; margin-top: 10px; }
#keepGift { margin-top: 28px; font-size: 14px; }

.preview-bar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px 24px; background: #17263a; border-bottom: 1px solid #d7bc8755; color: #d5c5a4; font-size: 12px; line-height: 1.6; }
.preview-bar select { min-height: 38px; max-width: 190px; padding: 6px 12px; border: 1px solid #a58d645c; border-radius: 0; background: #101d2e; color: var(--cream); font-size: 13px; }
.preview-bar a { min-height: 38px; display: inline-flex; align-items: center; font-size: 12px; white-space: nowrap; }
.noscript { position: fixed; inset: 0 0 auto; padding: 20px; background: #382f22; color: var(--cream); text-align: center; z-index: 50; }

@media (max-width: 1050px) {
  .section, .site-header, footer { width: calc(100% - 80px); }
  .site-header { gap: 20px; height: 96px; }
  .site-header nav { gap: 24px; }
  .hero { min-height: 700px; gap: 0; padding-block: 72px 112px; }
  .hero h1 { font-size: 50px; }
  .hero-description { font-size: 15px; }
  .celestial { width: 110%; margin-left: -7%; }
  .hero-side-note { display: none; }
  .section-heading { gap: 32px; }
  .section-heading > p { font-size: 15px; }
  .gift-section { gap: 36px; }
  .gift-art { height: 350px; }
  .gift-orbit { width: 280px; height: 280px; }
  footer { flex-wrap: wrap; }
  footer > span:last-child { width: 100%; text-align: center; }
}

@media (max-width: 700px) {
  .section, .site-header, footer { width: calc(100% - 48px); }
  .site-header { height: 90px; gap: 12px; }
  .site-header nav { display: none; }
  .brand { font-size: 18px; gap: 10px; letter-spacing: .1em; }
  .brand-star { flex-basis: 28px; }
  .brand-star svg { width: 28px; height: 28px; }
  .brand small { font-size: 11px; letter-spacing: .09em; margin-top: 4px; }
  .sound-button { font-size: 12px; gap: 7px; padding-left: 0; }
  .sound-bars { gap: 2px; }
  .sound-bars i { width: 1px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; height: auto; padding: 51px 0 86px; }
  .hero h1 { font-size: clamp(39px, 9.8vw, 58px); line-height: 1.43; letter-spacing: .005em; }
  .letter-intro { font-size: 13px; letter-spacing: .13em; margin-top: 20px; }
  .hero-description { font-size: 15px; line-height: 2.05; margin-top: 20px; }
  .recipient { margin: 25px 0; gap: 14px; font-size: 12px; }
  .recipient-name { font-size: 19px; }
  .recipient-line { width: 33px; }
  .primary-button { min-height: 54px; font-size: 14px; padding: 14px 20px; gap: 20px; letter-spacing: .025em; }
  .hero .primary-button { width: min(310px, 100%); }
  .entry-note { font-size: 12px; margin-top: 13px; }
  .celestial { width: min(100%, 390px); margin: 30px 0 8px auto; transform: none; align-self: flex-end; }
  .chart-label { font-size: 12px; letter-spacing: .15em; }
  .chart-coordinate { font-size: 11px; right: 3%; top: 2%; }
  .scroll-cue { bottom: 24px; font-size: 12px; }
  .scroll-cue span { height: 24px; }
  main h2 { font-size: 30px; line-height: 1.65; letter-spacing: .015em; }
  .section-description { font-size: 15px; line-height: 2; margin-top: 17px; }
  .section-caption { font-size: 11px; letter-spacing: .11em; margin-top: 20px; }
  .countdown-section { padding-block: 63px 57px; }
  .countdown-section h2 { max-width: 13em; margin-inline: auto; font-size: 27px; }
  .countdown { gap: 8px; margin-block: 36px 27px; }
  .countdown strong { font-size: clamp(39px, 10.5vw, 60px); }
  .countdown i { font-size: 20px; line-height: 2; }
  .countdown div > span { font-size: 11px; letter-spacing: 0; margin-top: 11px; }
  .date-stamp { font-size: 12px; letter-spacing: 0; }
  .date-stamp > span { margin-inline: 3px; }
  .date-stamp svg { width: 9px; height: 9px; }
  .birthday-date { padding-block: 30px 24px; }
  .birthday-date strong { font-size: 30px; }
  .countdown-section .arm-hint { max-width: 28em; margin-inline: auto; margin-top: 18px; }
  .memory-section { padding-block: 69px 55px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 31px; }
  .section-heading > p { margin-top: 25px; padding: 0; font-size: 15px; line-height: 2; }
  .muted { font-size: 13px; margin-top: 15px; }
  .memory-map { height: 540px; margin: 45px -12px 17px; }
  .map-desktop { display: none; }
  .map-mobile { display: block; }
  .memory-one { left: 30%; top: 8.333333%; }
  .memory-two { left: 70%; top: 41.666667%; }
  .memory-three { left: 33.055556%; top: 75%; }
  .memory-star { width: 170px; }
  .memory-index { margin-top: 12px; font-size: 11px; }
  .memory-star strong { font-size: 23px; margin-top: 4px; }
  .memory-hint { max-width: 170px; font-size: 12px; letter-spacing: 0; margin-top: 5px; }
  .secret-star { left: 7%; top: 47%; }
  .map-caption { font-size: 12px; letter-spacing: 0; }
  .gift-section { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 0 62px; }
  .gift-art { height: 320px; }
  .gift-orbit { width: 282px; height: 282px; }
  .gift-copy { text-align: center; }
  .gift-copy h2 { font-size: 30px; }
  .gift-button { padding-inline: 17px; gap: 11px; font-size: 14px; margin-top: 27px; }
  .gift-button > span:last-child { margin-left: 3px; }
  .gift-footnote { font-size: 12px; }
  .gift-copy .section-caption { font-size: 11px; margin-top: 23px; }
  .closing { padding-block: 65px 69px; }
  .closing-star { margin-bottom: 19px; }
  .closing p { font-size: 26px; line-height: 1.9; letter-spacing: .045em; }
  .closing > span { font-size: 13px; margin-top: 22px; }
  footer { padding-block: 24px 30px; gap: 20px 12px; font-size: 11px; }
  .footer-brand { font-size: 15px; }
  footer > span:last-child { font-size: 11px; letter-spacing: .08em; }
  dialog:not(.cinema-dialog) { padding: 53px 25px 31px; width: calc(100vw - 36px); max-height: 90svh; }
  .story-dialog h2 { font-size: 29px; }
  .story-text { font-size: 15px; line-height: 2.05; margin-top: 21px; }
  .story-symbol { margin-bottom: 20px; }
  .story-symbol svg { width: 36px; height: 36px; }
  .birthday-inner h2 { font-size: 40px; }
  .birthday-inner #birthdayMessage { font-size: 15px; }
  .birthday-inner .primary-button { width: 100%; font-size: 13px; padding-inline: 16px; gap: 12px; }
  .birthday-preface { font-size: 13px; }
  .reveal-dialog h2 { font-size: 27px; }
  .summon-circle { width: 90px; height: 90px; }
  .summon-circle svg { width: 34px; height: 34px; }
  .gift-reveal-note { margin-top: 24px; padding-top: 22px; }
  .gift-reveal-note p { font-size: 19px; }
  #keepGift { width: 100%; font-size: 14px; padding-inline: 17px; }
  .preview-bar { gap: 10px; padding: 7px 12px; font-size: 11px; }
  .preview-bar select { max-width: 139px; padding-inline: 7px; font-size: 12px; }
  .preview-bar a { font-size: 11px; }
}

@media (max-width: 360px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand-star, .brand-star svg { width: 24px; height: 24px; flex-basis: 24px; }
  .brand small { display: none; }
  .sound-button { font-size: 11px; gap: 5px; }
  .hero h1 { font-size: 39px; }
  .hero-description { font-size: 15px; letter-spacing: -.015em; }
  .recipient { gap: 11px; }
  .countdown { gap: 6px; }
  .countdown strong { font-size: 39px; }
  .countdown div > span { font-size: 11px; }
  .date-stamp { font-size: 12px; }
  .countdown-section h2 { font-size: 25px; }
  .memory-star { width: 164px; }
  .memory-hint { max-width: 164px; font-size: 12px; }
  .gift-art { transform: scale(.9); margin-inline: -10px; width: calc(100% + 20px); }
  .gift-copy h2 { font-size: 28px; }
  .gift-button { font-size: 13px; padding-inline: 14px; gap: 9px; }
  .gift-button > span:last-child svg { width: 18px; height: 18px; }
  .closing p { font-size: 24px; }
  footer { justify-content: center; gap: 15px; }
  footer > span { text-align: center; }
  .reveal-dialog h2 { font-size: 25px; }
  .birthday-inner .primary-button { font-size: 12px; padding-inline: 12px; }
  .preview-bar { flex-wrap: wrap; gap: 5px 12px; }
  .preview-bar select { flex: 0 1 132px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
