@charset "UTF-8";

/* 雾光与星信：恢复服务器版铺满视口的柔光，移除局部发白的有限色块。 */
.ambient::before { background: radial-gradient(ellipse at 78% 35%, #e1eee570, transparent 62%); }
.ambient-theme { background: radial-gradient(ellipse at 78% 28%, #bddfd583, transparent 58%), radial-gradient(ellipse at 17% 88%, #ccddec75, transparent 50%); }
.ambient-theme[data-theme='projects'] { background: radial-gradient(ellipse at 76% 27%, #b9dbc89e, transparent 57%), radial-gradient(ellipse at 18% 80%, #e5d8b969, transparent 53%); }
.ambient-theme[data-theme='artworks'] { background: radial-gradient(ellipse at 82% 34%, #c1c5e69c, transparent 57%), radial-gradient(ellipse at 16% 82%, #b9d9ec8c, transparent 52%); }
.ambient-theme[data-theme='future'] { background: radial-gradient(ellipse at 79% 29%, #b2dedc91, transparent 57%), radial-gradient(ellipse at 20% 83%, #bddce98a, transparent 50%); }
.ambient-theme[data-theme='notes'] { background: radial-gradient(ellipse at 74% 30%, #e5e0c980, transparent 57%), radial-gradient(ellipse at 18% 83%, #cedbc582, transparent 52%); }
.ambient-theme[data-theme='letter'] { background: radial-gradient(ellipse at 14% 62%, #6b9fb829, transparent 42%), radial-gradient(ellipse at 86% 17%, #a58bbd25, transparent 38%), radial-gradient(ellipse at 19% 18%, #68709080, transparent 60%), radial-gradient(ellipse at 84% 72%, #76658a90, transparent 61%), linear-gradient(155deg, #354653, #45455d 55%, #5b5268); }
.pearl-field { display: none; animation: none; }
.hero-copy > .pill { display: flex; width: 157px; min-height: 47px; font: 13px/1.8 var(--sans); letter-spacing: .04em; }
.hero-copy > .pill .magnetic-inner { display: grid; grid-template-columns: 18px minmax(0, 1fr) 18px; align-items: center; width: 100%; gap: 6px; padding: 10px 18px; font: inherit; letter-spacing: inherit; }
.hero-copy > .pill .pill-label { grid-column: 2; text-align: center; white-space: nowrap; }
.hero-copy > .pill .arrow { grid-column: 3; justify-self: center; }
.hero-github { margin-top: 10px; }

/* 拾光不是按钮底板：真实操作范围保留，光点才是主角。 */
.collect-light, .collect-light.is-collected, .collect-light:is(:hover, :focus-visible) { min-height: 46px; padding: 4px 6px 4px 0; gap: 7px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; color: #426c58; }
.collect-light::after { content: none; }
.collect-light .light-orb { flex-basis: 30px; width: 30px; height: 30px; background: radial-gradient(circle, #ffffed 5%, #c5e6ba 18%, #73b49785 35%, #9bd2b225 53%, transparent 75%); box-shadow: none; }
.collect-light.is-invited:not(.is-collected) .light-orb { animation: gather-beacon 2.6s ease-in-out infinite; }
.collect-light:is(:hover, :focus-visible) .light-orb { filter: brightness(1.15); scale: 1.16; }
.collect-light:focus-visible { outline: 1px dashed #6e9d83; outline-offset: 4px; border-radius: 8px; }
.collect-light.is-collected .light-orb { opacity: .65; }
.collect-light .light-index { font-size: 10px; color: #5f806c; }
@keyframes gather-beacon { 0%, 100% { opacity: .52; scale: .9; } 48% { opacity: 1; scale: 1.18; } }

.garden-dialog { border: 0; margin: 0; padding: 0; width: 100%; height: 100svh; max-width: none; max-height: none; background: transparent; color: #365e4b; overflow: auto; }
.garden-dialog::backdrop { background: transparent; }
.garden-shade { position: fixed; inset: 0; background: #c8dfd73b; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.garden-reward-stage { position: relative; display: grid; place-items: center; min-height: 100%; padding: 35px 20px; overflow: hidden; isolation: isolate; }
.garden-reward-frame { position: relative; width: min(490px, 100%); }
.garden-branches { position: absolute; z-index: -1; inset: -14% -24%; width: 148%; max-width: none; height: 128%; color: #739c81; overflow: visible; pointer-events: none; }
.garden-branches path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.reward-leaf-unfold, .reward-leaf-sway { transform-origin: 0 0; }
.garden-return-lights { position: absolute; left: 50%; bottom: -6%; pointer-events: none; }
.garden-return-lights i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f8ffe0; box-shadow: 0 0 7px #a4d2a9; opacity: 0; }
.garden-depth { position: absolute; pointer-events: none; width: 270px; height: 140px; border-radius: 4% 96% 5% 95%; background: linear-gradient(135deg, #9bbda54d, #cce1c340); rotate: -28deg; }
.garden-depth--near { left: -60%; bottom: -12%; filter: blur(9px); scale: 1.4; }
.garden-depth--far { right: -55%; top: 2%; width: 200px; height: 95px; rotate: -155deg; opacity: .7; filter: blur(4px); }
.garden-reward-card { width: min(490px, 100%); padding: clamp(29px, 5vw, 52px); border-radius: 34px 34px 110px 34px; border: 1px solid #ffffffed; text-align: center; background: radial-gradient(ellipse at 18% 0, #fffff8e0, transparent 68%), linear-gradient(145deg, #edf6ead9, #e1ece6cf 65%, #e7e5f0c9); box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #71978438, 0 5px 12px #466c5915, 0 28px 90px #416c5a24; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.garden-flower { display: block; font: 48px/1 var(--serif); color: #80a98d; margin-bottom: 21px; }
.reward-eyebrow { font-size: 9px; letter-spacing: .17em; color: #6f8c77; }
.garden-reward-card h2 { font: 29px/1.5 var(--serif); letter-spacing: .08em; margin: 20px -8px 14px; }
.garden-reward-copy { font-size: 13px; line-height: 2; }
.garden-reward-rule { display: block; width: 52px; height: 1px; margin: 26px auto 18px; background: linear-gradient(90deg, transparent, #78a38c, transparent); }
.garden-reward-sign { color: #64846e; font: italic 21px var(--latin); }
.garden-reward-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 27px; }
.reward-close, .reward-reset { min-height: 44px; border: 0; padding: 9px 15px; color: #3c6950; background: transparent; }
.reward-close { border-bottom: 1px solid #88ad924d; font-size: 13px; }
.reward-close span { margin-left: 12px; }
.reward-reset { font-size: 11px; color: #688673; }

/* 星芽拥有独立折纸轮廓，七次点亮与首页的五次种子完全分开。 */
.future-star-invitation { margin-top: 32px; display: flex; align-items: center; gap: 15px; }
.star-bud { position: relative; flex: 0 0 112px; width: 112px; height: 112px; padding: 0; border: 0; border-radius: 50%; background: transparent; touch-action: manipulation; }
.star-orbits { position: absolute; inset: 0; width: 100%; height: 100%; color: #8bb6b3; }
.star-fold { position: absolute; inset: 30px; filter: drop-shadow(0 4px 8px #6d9f9a3d); }
.star-fold svg { display: block; width: 100%; height: 100%; }
.star-bead { fill: #7aafa1; opacity: .18; transition: fill 250ms, opacity 250ms, filter 250ms; }
.star-bead.is-lit { fill: #faffdf; opacity: 1; filter: drop-shadow(0 0 3px #82b1ad); }
.star-bud::after { content: ''; position: absolute; inset: 25%; border-radius: 50%; box-shadow: 0 0 25px #b3d5c980; opacity: .35; animation: gather-beacon 3s ease-in-out infinite; pointer-events: none; }
.star-bud:is(:hover, :focus-visible)::after { opacity: 1; }
.star-bud:focus-visible { outline: 1px dashed #7faaa1; outline-offset: 1px; }
.star-bud.is-unlocked .star-orbits { animation: star-wake 700ms var(--ease) both; }
.star-invitation-copy { font-size: 11px; color: #55796a; line-height: 1.9; }
.star-invitation-copy strong { display: block; font-weight: 400; font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.star-count { font: italic 17px var(--latin); display: inline-block; margin-top: 8px; color: #568a82; letter-spacing: .12em; }
@keyframes star-wake { to { rotate: 36deg; scale: 1.14; opacity: .2; } }

body[data-scene='letter'] { --letter-accent: #b98b9e; color: #f0ebe5; }
body[data-scene='letter'] :is(.site-header, .site-footer, .nav-shell, .intro-replay) { display: none; }
body[data-scene='letter'] .ambient::before { opacity: 0; }
body[data-scene='letter'] .ambient::after { opacity: .12; }
body[data-scene='letter'] .dock-light { opacity: 0; }
body[data-scene='letter'] #ambient-canvas { opacity: 1; }
/* 阅读舞台上下留白对称；短屏由内容自然撑高，不缩成一张海报。 */
.star-room { --letter-accent: #b98b9e; --photo-height: clamp(240px, 56svh, 600px); display: grid; grid-template-rows: auto 1fr auto; gap: 12px; width: 100%; max-width: none; min-height: 100svh; padding: 18px clamp(18px, 3vw, 48px); overflow: clip; perspective: 1200px; }
.star-room-top { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; gap: 12px; }
.letter-return { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #e6e8df; font-size: 12px; letter-spacing: .1em; }
.letter-return:is(:hover, :focus-visible) { color: #fff; }
.star-room-index { font: italic 18px var(--latin); color: #d4d0df; }
.star-room-kicker { position: absolute; top: 31px; left: 50%; translate: -50% 0; margin: 0; font-size: 9px; letter-spacing: .2em; color: #d0d5dc; white-space: nowrap; }
.letter-collage { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; align-items: center; gap: 20px; align-self: stretch; width: min(1300px, 100%); margin: 0 auto; }
.letter-stickers, .letter-categories { position: absolute; inset: 0; pointer-events: none; }
.letter-sticker { --sticker-rotate: -6deg; position: absolute; padding: 18px 12px 16px; border: 1px solid #fff5; color: #6d5360; background: linear-gradient(145deg, #f4e2e6, #e5ced6); box-shadow: 0 2px 4px #1e273524, 0 12px 28px #24253630; transform: rotate(var(--sticker-rotate)); transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); pointer-events: auto; }
.sticker-words { left: 12px; top: calc(50% - 245px); width: 168px; min-height: 126px; border-radius: 4px 21px 5px 18px; }
.sticker-words::after { content: ''; position: absolute; right: 0; top: 0; width: 21px; height: 21px; background: linear-gradient(45deg, transparent 49%, #fff7 50%); border-radius: 0 20px 0 0; }
.sticker-places { --sticker-rotate: 5deg; right: 3px; top: calc(50% - 200px); width: 190px; min-height: 110px; border-radius: 18px 4px 15px 4px; color: #446a70; background: linear-gradient(145deg, #e0edeb, #c2d5da); }
.sticker-photos { --sticker-rotate: 4deg; left: 0; top: calc(50% + 48px); width: 200px; min-height: 218px; padding: 10px 10px 14px; border-radius: 2px 3px 8px 3px; color: #7c7370; background: linear-gradient(145deg, #fffef6, #eae4d8); }
.letter-sticker::before { content: ''; position: absolute; width: 45px; height: 15px; left: calc(50% - 22px); top: -7px; background: #ece5d286; rotate: -5deg; border-left: 1px solid #fff4; border-right: 1px solid #fff4; }
.letter-sticker > svg { display: block; width: 29px; height: 29px; margin: 0 auto 9px; opacity: .8; }
.letter-sticker > span { display: block; font: 13px/1.6 var(--serif); letter-spacing: .05em; }
.letter-sticker small { display: block; margin-top: 6px; font: 11px/1.5 var(--sans); opacity: .78; }
.letter-sticker:is(:hover, :focus-visible), .letter-sticker[aria-selected='true'] { transform: translateY(-4px) rotate(calc(var(--sticker-rotate) * .55)); box-shadow: 0 3px 6px #1e273533, 0 16px 30px #24253640; }
.letter-sticker:focus-visible { outline: 2px solid #eee8d8; outline-offset: 5px; }
.letter-sticker > .photo-sticker-frame { display: grid; place-items: center; width: 100%; height: 143px; margin-bottom: 12px; overflow: hidden; background: linear-gradient(145deg, #d2dce07d, #e8d6dc73); color: #b7a8b5; }
.photo-sticker-frame svg { width: 100%; height: 100%; }
.photo-sticker-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-sticker-frame[data-has-photo='true'] svg { display: none; }
.meeting-ticket { position: absolute; right: 0; top: calc(50% + 85px); width: 190px; min-height: 117px; padding: 17px 14px 14px 22px; color: #755e6e; background: linear-gradient(145deg, #eee4ee, #d9cbdc); border: 1px solid #f6e9f2b8; border-radius: 3px 14px 3px 13px; box-shadow: 0 3px 6px #20253426, 0 15px 28px #2523362b; rotate: -4deg; pointer-events: auto; }
.meeting-ticket::before { content: ''; position: absolute; left: 11px; top: 9px; bottom: 9px; width: 1px; background: repeating-linear-gradient(#a68da282 0 3px, transparent 3px 7px); }
.ticket-kicker { font: 11px/1.6 var(--serif); letter-spacing: .05em; }
.ticket-days { margin: 3px 0; line-height: 1; }
.ticket-days strong { font: 400 42px/1 var(--latin); font-variant-numeric: tabular-nums; }
.ticket-days > span { font-size: 11px; margin-left: 6px; }
.meeting-ticket time { font-size: 10px; letter-spacing: .1em; color: #7c6d80; }
.ticket-mark { position: absolute; right: 13px; bottom: 15px; font-size: 23px; color: #a28eac; }
/* 入境与内容交接各自管理，真实纸张始终留在最终布局中。 */
.star-letter { grid-column: 2; grid-row: 1; position: relative; z-index: 1; width: 100%; max-width: 860px; padding: 16px clamp(22px, 3vw, 42px); border: 1px solid #e7e1d4; color: #4f5155; background: url('/assets/grain.svg'), linear-gradient(125deg, #fffdf4, #f3efe3 72%, #ede7d8); border-radius: 3px 4px 24px 4px; box-shadow: inset -1px -1px 1px #a9a29224, 0 3px 7px #1b25352a, 0 22px 55px #20253738; transform: rotateX(var(--paper-rx, 0deg)) rotateY(var(--paper-ry, 0deg)); transform-origin: left center; transition: transform 450ms var(--ease); transform-style: preserve-3d; }
.star-letter::before { content: ''; position: absolute; inset: 5px -4px -5px 4px; border: 1px solid #d8d1c3; border-radius: inherit; background: #e7e2d5; z-index: -1; transform: translateZ(-2px); box-shadow: 0 2px 4px #1e283019; }
.star-letter::after { content: ''; position: absolute; width: 28px; height: 28px; bottom: 0; right: 0; background: linear-gradient(135deg, #fffefa 48%, #d1c8b47d 51%, #ece6d5 57%, #fffdf300 88%); border-radius: 0 0 22px 0; pointer-events: none; }
.letter-paper-meta { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; line-height: 14px; letter-spacing: .11em; color: #787b74; }
.letter-salutation { margin: 17px 0 12px; font: italic 46px/1 var(--latin); letter-spacing: -.02em; color: #5e615d; }
.letter-category { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 13px/20px var(--serif); letter-spacing: .12em; color: var(--letter-accent); transition: color 400ms; }
.letter-category::before { content: ''; width: 23px; height: 1px; background: currentColor; }
.letter-panels { position: relative; display: grid; min-width: 0; isolation: isolate; }
.letter-content-panel { grid-area: 1 / 1; height: max(calc(var(--photo-height) + 56px), calc(var(--note-sheet-height, 0px) + 56px)); min-width: 0; }
.letter-content-panel[hidden], .note-leaf[hidden], .wish-illustration g[hidden], .photo-controls[hidden], .photo-controls button[hidden] { display: none !important; }
.letter-paper-sign { margin: 12px 0 0; text-align: right; color: #85877b; font: italic 18px/22px var(--latin); }
.letter-room-footnote { display: grid; place-items: center; min-height: 44px; margin: 0; text-align: center; font: italic 18px/1.5 var(--latin); letter-spacing: .04em; color: #d8d4de; }
.note-reader { display: flex; flex-direction: column; gap: 12px; }
.note-stack { display: grid; place-items: center; flex: 1; min-height: 0; perspective: 1000px; }
.note-leaf { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; width: calc(100% - 12px); height: max(87%, var(--note-sheet-height, 0px)); padding: 25px clamp(14px, 3vw, 36px); background: #fffdf54d; border-block: 1px solid #b6ac9428; transform-origin: left center; }
.note-leaf::before { content: ''; position: absolute; z-index: -1; inset: 5px -5px -5px 5px; border-bottom: 1px solid #b6ac9424; rotate: 1deg; }
.note-ornament { color: #b494a0; font: 25px var(--latin); }
.note-leaf p { max-width: 26em; margin: 24px 0; font: 19px/2 var(--serif); letter-spacing: .035em; text-align: center; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; line-break: strict; }
.note-leaf--prose .note-copy { width: 100%; text-align: center; }
.note-sentence { display: block; }
.note-sentence + .note-sentence { margin-top: .55em; }
.note-phrase { display: inline-block; white-space: nowrap; }
/* 颜文字按完整单元排版，空格与组合字符原样保留，不参与中文拆字。 */
.kaomoji { display: inline-block; white-space: pre; font-family: var(--sans); font-size: .96em; line-height: 1.7; letter-spacing: 0; word-spacing: 0; vertical-align: baseline; padding: .08em .03em; overflow: visible; }
.note-measure { position: absolute; top: 0; left: 0; width: 100%; height: 0; visibility: hidden; pointer-events: none; contain: layout style; }
.note-measure > .note-leaf { position: absolute; top: 0; left: 6px; height: auto !important; min-height: 0; opacity: 1 !important; translate: none !important; transform: none !important; animation: none !important; }
.note-measure .note-leaf::before { display: none; }
.note-rule { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, #ad949d80, transparent); }
.note-controls, .photo-controls { display: flex; justify-content: center; align-items: center; flex-shrink: 0; gap: 16px; min-height: 44px; }
.note-controls button, .photo-controls button { min-width: 44px; min-height: 44px; padding: 6px 12px; border: 1px solid #a49d8c44; border-radius: 50%; color: #6a685e; background: transparent; transition: background 200ms; }
.note-controls button:not(:disabled):is(:hover, :focus-visible), .photo-controls button:is(:hover, :focus-visible) { background: #d3dfd333; outline-offset: 3px; }
.note-controls button:disabled { opacity: .3; cursor: default; }
.note-controls > span { min-width: 64px; text-align: center; font: 15px var(--latin); color: #8e7c83; }
.wish-reader { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
.wish-illustration { display: block; width: 100%; max-height: 260px; min-height: 120px; }
.wish-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 13px; }
.wish-options button { min-height: 44px; padding: 6px 8px; color: #657a72; border: 0; border-bottom: 1px solid transparent; background: transparent; font: 13px var(--sans); }
.wish-options button[aria-pressed='true'] { color: #476b62; border-bottom-color: #83a493; }
.wish-copy { min-height: 3.8em; max-width: 26em; margin: 0; font: 15px/1.9 var(--serif); text-align: center; color: #6b7166; }
.photo-reader { display: flex; flex-direction: column; gap: 12px; }
.letter-photo { position: relative; display: grid; place-items: center; margin: 0; flex-shrink: 0; width: 100%; height: var(--photo-height); border: 8px solid #fffdf4; background: linear-gradient(145deg, #d6e3e1a6, #e4d7e399); box-shadow: 0 2px 5px #5b625c16; overflow: hidden; color: #a795ac8c; }
.letter-photo > svg { width: 90%; height: 90%; }
.letter-photo img { position: absolute; width: 100%; height: 100%; object-fit: contain; background: #f2efe8; }
.letter-photo[data-has-photo='true'] > svg { display: none; }
.photo-controls { justify-content: flex-end; gap: 8px; }
.photo-controls [data-photo-preview] { border-radius: 22px; font-size: 12px; }
@media (max-width: 1000px) {
  .star-room { padding: 14px 18px; }
  .star-room-index, .star-room-kicker { display: none; }
  .letter-collage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; max-width: 860px; gap: 16px; }
  .letter-stickers, .letter-categories { position: static; }
  .letter-stickers { grid-row: 1; grid-column: 1; padding: 5px 2px; }
  .letter-categories { display: flex; justify-content: center; align-items: center; gap: 9px; }
  .letter-sticker { position: relative; inset: auto; --sticker-rotate: -2deg; width: auto; min-height: 48px; padding: 8px 12px; }
  .sticker-places { --sticker-rotate: 2deg; margin-top: 4px; }
  .sticker-photos { --sticker-rotate: -1deg; padding: 8px 12px; }
  .letter-sticker > svg, .letter-sticker > .photo-sticker-frame, .letter-sticker small { display: none; }
  .letter-sticker::before { width: 27px; height: 8px; top: -4px; }
  .letter-sticker > span { font-size: 12px; letter-spacing: 0; white-space: nowrap; }
  .star-room-top > .meeting-ticket { position: relative; inset: auto; display: grid; grid-template-columns: 1fr auto; gap: 0 6px; align-items: center; width: 153px; min-height: 44px; padding: 5px 10px 5px 15px; rotate: -1deg; }
  .star-room-top .ticket-kicker { font-size: 10px; grid-column: 1; white-space: nowrap; }
  .star-room-top .ticket-days { grid-column: 2; grid-row: 1 / 3; margin: 0; white-space: nowrap; }
  .star-room-top .ticket-days strong { font-size: 29px; }
  .star-room-top .ticket-days > span { margin-left: 2px; font-size: 10px; }
  .star-room-top .meeting-ticket time { font-size: 9px; letter-spacing: .04em; }
  .star-room-top .ticket-mark { display: none; }
  .star-room-top .meeting-ticket::before { left: 7px; }
  .star-letter { grid-column: 1; grid-row: 2; margin: auto 0; }
  .letter-room-footnote { font-size: 16px; }
}
@media (max-width: 760px) {
  .hero-copy > .pill { width: 145px; min-height: 45px; font-size: 12px; }
  .hero-copy > .pill .magnetic-inner { padding: 9px 14px; }
  .hero-github { margin-top: 10px; }
  .collect-light { min-height: 44px; font-size: 11px; }
  .garden-shade { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  .garden-reward-frame { width: calc(100% - 44px); }
  .garden-branches { inset: -24% -15%; width: 130%; height: 142%; }
  .reward-stem-extra { display: none; }
  .reward-leaf-anchor:is(.leaf-4, .leaf-5) { display: none; }
  .garden-reward-stage { padding: 25px 18px; }
  .garden-reward-card { border-bottom-right-radius: 75px; }
  .garden-reward-card h2 { font-size: 24px; }
  .garden-reward-copy { font-size: 12px; }
  .garden-depth--near { width: 150px; height: 70px; bottom: 2%; }
  .future-star-invitation { grid-column: 1 / -1; margin-top: 10px; max-width: calc(100% - 6px); }
  .star-bud { flex-basis: 100px; width: 100px; height: 100px; }
  .star-fold { inset: 27px; }
  .star-room { padding-inline: 14px; }
  .letter-return { gap: 7px; font-size: 11px; letter-spacing: .03em; }
  .letter-sticker { padding: 8px 7px; }
  .letter-sticker > span { font-size: 11px; }
  .letter-categories { gap: 7px; }
  .star-letter { padding: 21px 18px; transform: none; }
  .letter-paper-meta { font-size: 8px; line-height: 12px; letter-spacing: .04em; }
  .letter-salutation { font-size: 43px; }
  .note-leaf { padding-inline: 12px; }
  .note-leaf p { font-size: 17px; line-height: 2; letter-spacing: .03em; }
  .wish-reader { gap: 15px; }
  .wish-options { gap: 4px; }
  .wish-options button { padding: 5px; font-size: 11px; }
  .wish-copy { font-size: 13px; }
  .photo-controls { justify-content: center; }
  .letter-photo { border-width: 5px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .garden-reward-stage { padding-top: 20px; padding-bottom: 20px; }
  .garden-reward-card { width: 440px; padding: 22px 30px; }
  .garden-flower { display: none; }
  .garden-reward-card h2 { font-size: 23px; margin: 12px 0; }
  .garden-reward-rule { margin: 14px auto; }
  .garden-reward-actions { margin-top: 10px; flex-direction: row; justify-content: center; }
}
@media (min-width: 761px) and (min-height: 501px) and (max-height: 850px) {
  .hero { padding-top: 16px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-heading { margin-block: 8px; }
  .hero-tagline { margin-bottom: 4px; }
  .hero-description { margin-bottom: 2px; line-height: 1.45; }
  .hero-copy > .pill { min-height: 44px; font-size: 12px; }
  .hero-github { margin-top: 8px; }
}

/* 迷你日历保留纸材质，作为信纸的第四个分类入口。 */
.meeting-ticket { padding: 24px 17px 15px; min-height: 143px; text-align: center; border-radius: 5px 5px 13px 5px; background: linear-gradient(#b99bb14a 0 22px, transparent 22px), url('/assets/grain.svg'), linear-gradient(145deg, #fbf6ec, #ede6d9); color: #655b65; box-shadow: 0 3px 0 -1px #d9d0c3, 0 5px 0 -2px #c4b7bd, 0 7px 12px #20253429, 0 20px 35px #25233630; transition: translate 250ms var(--ease), box-shadow 250ms var(--ease); }
.meeting-ticket::before { left: 18%; right: 18%; top: -5px; bottom: auto; width: auto; height: 15px; background: linear-gradient(90deg, #887685 0 3px, transparent 3px calc(100% - 3px), #887685 calc(100% - 3px)); border-radius: 3px; }
.meeting-ticket:is(:hover, :focus-visible) { translate: 0 -3px; box-shadow: 0 3px 0 -1px #d9d0c3, 0 5px 0 -2px #c4b7bd, 0 12px 30px #20253440; }
.meeting-ticket:focus-visible { outline: 2px solid #e5c9dc; outline-offset: 6px; }
.meeting-ticket:active { translate: 0 1px; }
.ticket-days { display: block; margin: 5px 0 7px; }
.ticket-mark { font-size: 15px; }
/* 纪念页直接写在中央信纸上，不叠加另一张卡片或全屏遮罩。 */
.meeting-reader { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px clamp(4px, 2vw, 25px); overflow: hidden; }
.meeting-imprint { position: absolute; top: 12px; right: 3px; font: 400 58px/1 var(--latin); color: #af8ea01f; letter-spacing: -.04em; pointer-events: none; }
.meeting-imprint i { font-size: 20px; font-style: normal; vertical-align: top; }
.meeting-eyebrow { margin: 0 0 16px; color: #a18b92; font-size: 9px; letter-spacing: .17em; }
.meeting-reader h3 { margin: 0 0 15px; font: 27px/1.5 var(--serif); letter-spacing: .1em; color: #756274; }
.meeting-introduction { margin: 0; font: 15px/2 var(--serif); color: #756d70; }
.meeting-reader time { display: block; margin: 22px 0; font-size: 12px; letter-spacing: .12em; color: #9a7f86; }
.meeting-reader time span { padding-inline: 5px; }
.meeting-duration { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(520px, 100%); padding-block: 20px 22px; border-block: 1px solid #aa929526; }
.duration-unit { min-width: 0; }
.duration-unit strong { display: block; font: 400 clamp(29px, 3.5vw, 43px)/1.2 var(--sans); font-variant-numeric: tabular-nums; color: #726073; letter-spacing: -.04em; }
.duration-unit span { display: block; font: 11px var(--sans); color: #998a8c; margin-top: 8px; }
.meeting-afterword { font: 14px/1.9 var(--serif); margin: 22px 0 0; letter-spacing: .08em; }
.meeting-constellation { width: min(230px, 80%); height: 35px; color: #ad8f9d80; margin-top: 12px; flex-shrink: 0; }
.meeting-ticket[aria-selected='true'] { translate: 0 -3px; outline: 1px solid #e4d2df99; outline-offset: 4px; box-shadow: 0 3px 0 -1px #d9d0c3, 0 12px 30px #20253440; }
@media (max-width: 1000px) {
  .star-room-top > .meeting-ticket { padding: 5px 12px; background: url('/assets/grain.svg'), #f2e9de; }
  .star-room-top .meeting-ticket::before { inset: -3px auto auto 6px; width: 2px; height: 10px; background: #968290; }
}
@media (max-width: 520px) {
  .meeting-reader { padding: 8px 0; }
  .meeting-reader h3 { font-size: 23px; margin-bottom: 12px; }
  .meeting-eyebrow { font-size: 8px; margin-bottom: 12px; }
  .meeting-introduction { font-size: 13px; }
  .meeting-reader time { margin: 18px 0; font-size: 10px; letter-spacing: .06em; }
  .meeting-duration { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; padding-block: 15px; }
  .duration-unit strong { font-size: 32px; }
  .meeting-afterword { font-size: 12px; margin-top: 18px; }
  .meeting-imprint { font-size: 42px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .garden-reward-frame { width: min(440px, 100%); }
}

/* 短屏横向保持同一阅读高度，让纪念正文自然下滑可达，装饰按空间降级。 */
@media (max-height: 540px) and (min-width: 521px) {
  .letter-content-panel { min-height: 390px; }
  .meeting-reader { padding-block: 10px; }
  .meeting-eyebrow, .meeting-constellation, .meeting-imprint { display: none; }
  .meeting-reader h3 { font-size: 23px; margin-bottom: 10px; }
  .meeting-introduction { font-size: 13px; line-height: 1.8; }
  .meeting-reader time { margin-block: 16px; }
  .meeting-duration { padding-block: 14px; }
  .duration-unit strong { font-size: 32px; }
  .meeting-afterword { margin-top: 16px; font-size: 13px; }
}

/* 星笺环游：保留原文字与布局，用纸角、一次掠光和按压表达可操作性。 */
.letter-sticker { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), translate 200ms var(--ease); }
.letter-sticker:active { translate: 0 2px; }
.letter-sticker[aria-selected='true'] { outline: 1px solid #f3e6ecb0; outline-offset: 3px; }
.letter-sticker > svg.sticker-ornament, .ticket-ornament { position: absolute; right: 8px; top: 8px; display: block; width: 28px; height: 28px; margin: 0; color: inherit; opacity: .35; pointer-events: none; }
.sticker-photos > svg.sticker-ornament { right: 13px; top: 13px; color: #7e6d86; }
.ticket-ornament { top: 27px; right: 9px; width: 24px; height: 24px; }
.letter-action-glint { position: absolute; inset: -2px; border: 1px solid #fff4eb; border-radius: inherit; box-shadow: 0 0 13px #e5e7f452, inset 0 0 9px #fffaf342; opacity: 0; pointer-events: none; }
.paper-constellation { position: absolute; right: 13px; top: 18px; width: min(230px, 43%); height: 105px; color: var(--letter-accent); opacity: .15; pointer-events: none; transition: color 400ms; }
.sticker-places::after, .sticker-photos::after, .meeting-ticket::after { content: ''; position: absolute; bottom: 2px; right: 2px; width: 11px; height: 11px; background: linear-gradient(135deg, transparent 45%, #fff9 49% 66%, #a794aa30 70%, transparent 76%); pointer-events: none; opacity: .6; transform-origin: bottom right; transition: transform 260ms var(--ease), opacity 260ms; }
:is(.sticker-places, .sticker-photos, .meeting-ticket):is(:hover, :focus-visible)::after { transform: translate(-1px, -2px) rotate(-7deg); opacity: 1; }
@media (max-width: 1000px) {
  .star-room { padding-top: max(14px, env(safe-area-inset-top)); padding-right: max(18px, env(safe-area-inset-right)); padding-bottom: max(18px, env(safe-area-inset-bottom)); padding-left: max(18px, env(safe-area-inset-left)); }
  .letter-sticker > svg.sticker-ornament { width: 18px; height: 18px; right: 2px; top: 1px; opacity: .25; }
  .star-room-top .ticket-ornament { width: 18px; height: 18px; top: 6px; right: 3px; opacity: .2; }
  .paper-constellation { right: 12px; top: 23px; width: 44%; height: 83px; }
}
@media (max-width: 430px) {
  .star-room { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
}
