:root {
  color-scheme: light;
  --rose: #a51a43;
  --rose-deep: #891635;
  --rose-light: #d35376;
  --ink: #452434;
  --muted: #81596b;
  --pink: #f8dce6;
  --cream: #fff4f1;
  --line: #fff9f8;
  --panel: linear-gradient(145deg, #fff8f4ed, #fff4f5bc 48%, #fbe2e9bf);
  --pill: linear-gradient(180deg, #db7b96, #bf496e 67%, #ac365a);
  --serif: "KaiTi", "STKaiti", "Noto Serif CJK SC", "Songti SC", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --content-unit: 1vw;
  --page-gutter: clamp(16px, 2.2vw, 32px);
  --page-width: min(calc(100% - var(--page-gutter) * 2), 1710px);
  font-family: var(--sans);
  color: var(--ink);
  background: #f7dce5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font-size: 15px; background: radial-gradient(ellipse at 48% 63%, #fff0ee 0, #f9e1e8 55%, #edbfd4 100%); }
main { flex: 1; outline: none; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.icon { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: -.18em; }
:is(button, a, input, textarea, select):focus-visible { outline: 2px solid #a42852; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; inset: .5rem auto auto .5rem; padding: .7rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { z-index: 4; position: relative; background: #fff4f6; }
.header-inner, .footer-inner { width: var(--page-width); margin: auto; display: flex; align-items: center; gap: clamp(10px, calc(var(--content-unit) * 1.4), 24px); }
.header-inner { min-height: 62px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; flex: none; gap: 9px; color: var(--rose); font-weight: 750; white-space: nowrap; font-size: clamp(12px, 1.15vw, 16px); }
.brand strong { font-size: 1.24em; }
.brand > .icon { width: 40px; height: 37px; transform: rotate(-13deg); stroke-width: 1.35; }
.brand-heart, .desktop-nav-link { display: none; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(2px, .75vw, 13px); }
.site-nav a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 4px clamp(7px, .75vw, 13px); border-radius: 999px; white-space: nowrap; font-weight: 700; font-size: 14px; transition: background .18s, color .18s; }
.site-nav a:hover { background-color: #fae0e8; color: var(--rose); }
.site-nav a.current { color: #fff; background: var(--rose-deep); }
.header-tools { display: flex; gap: 4px; align-items: center; flex: none; }
.header-link.btn { padding-inline: .7em; min-width: 44px; min-height: 44px; height: auto; border-radius: 999px; color: var(--rose-deep); font-size: 14px; }
.heart-toggle.btn { padding: 0; min-height: 44px; height: 44px; width: 44px; background: transparent; border: 0; box-shadow: none; color: var(--rose); font-size: 18px; border-radius: 50%; }
.heart-toggle[aria-pressed="true"] .icon { fill: #d65376; }
.btn.pill, .pill-select { min-height: 0; height: auto; border: 1px solid #fff9f8; border-radius: 999px; padding: .46em 1.05em; white-space: nowrap; font-weight: 700; gap: .45em; line-height: 1.3; font-size: inherit; }
.pill-rose.btn { color: #fff; background: var(--pill); box-shadow: inset 0 1px 2px #ffffff7d, 0 2px 5px #ac3c6340; }
.pill-light.btn, .pill-select { color: var(--rose-deep); background: linear-gradient(#fff9f7, #f9dce4); box-shadow: inset 0 1px 1px #fff, 0 1px 4px #ad4c651c; }
.pill-clear.btn { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.pill:not(:disabled):hover, .pill-select:hover { filter: saturate(1.13) brightness(1.03); }
.btn.pill:disabled { opacity: .55; }
.birthday-tag.btn { font-size: 13px; padding-inline: 1.2em; }

.birthday-hero { width: var(--page-width); margin: clamp(16px, 2.6vw, 44px) auto clamp(22px, 3vw, 52px); display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: center; gap: clamp(16px, 2.4vw, 38px); }
.hero-home { --hero-ratio: 1448 / 427; --scene-width: 202%; }
.hero-wishes { --hero-ratio: 1448 / 270; --scene-width: 198%; }
.hero-album { --hero-ratio: 1448 / 238; --scene-width: 226%; }
.hero-support { --hero-ratio: 1448 / 312; --scene-width: 182%; }
.hero-art { min-width: 0; overflow: hidden; background: #f4cfdd; border-radius: 16px; }
.hero-scene { position: relative; width: var(--scene-width); margin-left: calc(100% - var(--scene-width)); aspect-ratio: var(--hero-ratio); }
.hero-background { display: block; width: 100%; height: 100%; }
.hero-frame { position: absolute; inset: 0; }
.hero-frame img {
  position: absolute;
  left: var(--photo-left);
  top: var(--photo-top, 0);
  width: var(--photo-width);
  height: var(--photo-height);
  object-fit: cover;
  object-position: var(--photo-focus);
}
.hero-home .hero-frame-main {
  --photo-left: 54.6%;
  --photo-width: 28.4%;
  --photo-height: 86%;
  --photo-focus: 50% 12%;
  clip-path: polygon(54.8% 18%, 56% 14.5%, 58.2% 12.5%, 60.4% 13%, 62.2% 18.5%, 61.7% 10%, 64% 5%, 72.1% 0, 79.4% 0, 82.8% 73.6%, 59.6% 85.2%, 59.3% 79%, 58.4% 75.9%, 57.7% 72%, 57.1% 65.6%, 57.7% 61%, 58.2% 57%, 57.3% 54.1%, 56.4% 54.8%);
}
.hero-album .hero-frame-main {
  --photo-left: 56.98%;
  --photo-top: 0.00%;
  --photo-width: 22.79%;
  --photo-height: 89.08%;
  --photo-focus: 50% 13%;
  clip-path: polygon(57.25% 16.81%, 58.15% 15.55%, 58.22% 21.43%, 58.56% 30.25%, 60.29% 22.27%, 61.95% 7.98%, 63.05% 10.50%, 64.64% 20.59%, 64.23% 11.34%, 65.12% 5.46%, 66.92% 0.00%, 77.49% 0.00%, 79.70% 68.49%, 63.67% 88.24%, 63.60% 77.73%, 63.26% 72.69%, 62.64% 68.07%, 61.88% 68.49%, 62.15% 61.76%, 61.33% 60.50%, 61.26% 56.30%, 60.57% 55.46%, 59.94% 48.74%, 58.98% 47.06%);
}
.hero-album .hero-frame-upper {
  --photo-left: 79.01%;
  --photo-top: 3.36%;
  --photo-width: 8.63%;
  --photo-height: 52.52%;
  --photo-focus: 56% 48%;
  clip-path: polygon(79.14% 10.92%, 86.05% 3.36%, 87.50% 47.48%, 80.46% 55.04%);
}
.hero-album .hero-frame-lower {
  --photo-left: 81.15%;
  --photo-top: 41.60%;
  --photo-width: 8.91%;
  --photo-height: 49.16%;
  --photo-focus: 55% 58%;
  clip-path: polygon(87.71% 41.60%, 89.92% 43.70%, 88.54% 89.92%, 87.78% 87.39%, 87.09% 85.71%, 86.12% 85.29%, 85.22% 84.87%, 84.32% 86.97%, 81.28% 84.03%, 82.18% 56.30%, 87.85% 50.00%);
}
.hero-wishes .hero-frame-main {
  --photo-left: 52.14%;
  --photo-top: 0.00%;
  --photo-width: 25.76%;
  --photo-height: 82.59%;
  --photo-focus: 50% 13%;
  clip-path: polygon(52.28% 12.22%, 55.80% 8.52%, 56.91% 5.93%, 58.36% 0.00%, 74.59% 0.00%, 77.62% 69.26%, 65.75% 81.11%, 64.92% 78.52%, 64.09% 77.78%, 63.12% 76.30%, 62.36% 74.81%, 61.26% 74.81%, 60.50% 76.30%, 59.67% 75.56%, 58.98% 77.41%, 57.94% 78.15%, 56.98% 80.00%, 55.39% 81.48%);
}
.hero-support .hero-frame-main {
  --photo-left: 70.03%;
  --photo-top: 0.00%;
  --photo-width: 21.62%;
  --photo-height: 89.74%;
  --photo-focus: 50% 12%;
  clip-path: polygon(70.23% 17.95%, 71.41% 15.71%, 72.72% 14.74%, 73.90% 15.71%, 74.79% 20.19%, 74.45% 9.29%, 77.69% 5.13%, 85.29% 0.00%, 88.40% 0.00%, 91.16% 67.31%, 90.81% 69.23%, 90.33% 71.47%, 90.06% 77.88%, 72.38% 89.42%);
}
.hero-copy h1 { margin: 0; color: var(--rose-deep); font: 800 clamp(28px, 4.15vw, 64px)/1.15 var(--serif); letter-spacing: -.025em; }
.hero-copy h1 span { display: block; }
.hero-copy p { margin: 15px 0 0; max-width: 34em; color: var(--ink); font-size: clamp(15px, 1.22vw, 18px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: clamp(16px, 2vw, 29px); }
.hero-actions .btn { min-height: 46px; padding-inline: clamp(11px, 1.15vw, 18px); font-size: 15px; border: 0; box-shadow: none; }
.hero-actions .pill-rose { background: var(--rose-deep); }
.hero-actions .pill-light { background: #fff5f6; }

.page-content { width: var(--page-width); margin: 0 auto; padding-bottom: clamp(20px, 2.5vw, 36px); }
.panel { min-width: 0; background: var(--panel); border: 1.5px solid var(--line); border-radius: 17px; box-shadow: 0 3px 10px #a9516d19, inset 0 1px 1px #fff8; overflow: hidden; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .45em .65em; min-height: 45px; padding: 7px 14px; background: linear-gradient(100deg, #fff2f2c4, #f9d5df75 74%, #f7d8e152); color: var(--rose-deep); }
.panel-heading h2, .support-stats h2 { display: flex; align-items: center; gap: 8px; color: var(--rose); font-size: clamp(16px, calc(var(--content-unit) * 1.43), 22px); line-height: 1.25; font-weight: 800; margin: 0; white-space: nowrap; }
.heading-icon { width: 1.48em; height: 1.48em; color: #c84369; stroke-width: 2.1; }
.heading-detail { color: #9a3152; font-size: .93em; }
.heading-end { margin-left: auto; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: .89em; font-weight: 700; color: #9a2c50; white-space: nowrap; }
:is(a,button).text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-note { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }

.home-columns { display: grid; grid-template-columns: .94fr 1.02fr 1.02fr; gap: 14px; }
.home-columns .panel-heading { margin: 3px 9px 0; border-radius: 13px; padding-inline: 12px; }
.countdown-panel { display: flex; flex-direction: column; background: linear-gradient(130deg, #fff4f0, #fbcbd9 63%, #fde4e6); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(5px, var(--content-unit), 15px); padding: 13px 5.6% 4px; }
.countdown-unit { display: grid; place-items: center; padding: 7px 0 8px; border-radius: 12px; background: linear-gradient(#fff9f7, #fbe1e5); border: 1px solid white; box-shadow: 0 3px 5px #c35e7638, inset -3px -3px 7px white; }
.countdown-unit output { font-size: clamp(29px, calc(var(--content-unit) * 3), 46px); font-weight: 850; line-height: 1.14; letter-spacing: -.05em; color: #ab3b49; text-shadow: 0 1px 1px white; font-variant-numeric: tabular-nums; }
.countdown-unit span { font-size: .94em; color: var(--rose-deep); }
.countdown-art { flex: 1; min-height: clamp(95px, calc(var(--content-unit) * 8.35), 135px); display: flex; align-items: center; background: url("./assets/countdown-art.webp") center/cover no-repeat; }
.countdown-art p { width: 73%; margin: 0; min-height: 4.9em; display: flex; align-items: center; gap: .4em; padding-left: 7%; font: italic 700 clamp(14px, calc(var(--content-unit) * 1.43), 23px)/1.3 var(--serif); color: var(--rose-deep); background: radial-gradient(ellipse at 43% 50%, #fff0ed 42%, transparent 73%); }
.countdown-art .icon { color: #d35d73; align-self: center; }
.home-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 6px 14px 13px; }
.home-photos button { padding: 0; aspect-ratio: 1.37; overflow: hidden; border-radius: 10px; border: 1.5px solid white; }
.home-photos img { width: 100%; height: 100%; object-fit: cover; }
.home-photos button:hover img, .photo-open:hover img, .clip:hover img { transform: scale(1.055); }
.home-photos img, .photo-open img, .clip img { transition: transform .3s ease; }
.feature-and-note { display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 1fr); gap: 11px; margin-top: 15px; }
.home-note { object-position: top; }

.wish-card { position: relative; min-width: 0; padding: 8px 9px 9px; background: linear-gradient(145deg,#fff9f7eb,#fdebed); border: 1px solid #fff; border-radius: 13px; box-shadow: 0 2px 3px #98425c13; }
.wish-head { display: flex; align-items: center; gap: 7px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid white; flex: none; object-fit: cover; }
.wish-author { min-width: 0; }
.wish-author h3 { color: var(--rose-deep); font-size: .92em; font-weight: 800; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wish-author h3 span { color: #c85376; }
.wish-author time { color: var(--muted); font-size: .83em; }
.like { display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: var(--rose); white-space: nowrap; padding: 4px; font-size: .89em; line-height: 1; border-radius: 7px; min-height: 26px; }
.like:hover { background: #f5bad056; }
.like[aria-pressed="true"] .icon { fill: #dc5b7e; stroke: #b92c57; }
.wish-head .like { margin-left: auto; align-self: flex-start; }
.wish-card p { position: relative; z-index: 1; margin: 4px 34px 0 4px; white-space: pre-line; overflow-wrap: anywhere; font-size: .92em; line-height: 1.39; }
.wish-ornament { position: absolute; width: 34px; height: 34px; right: 12px; bottom: 10px; color: #d9809e; transform: rotate(13deg); stroke-width: 1.1; }
.wish-card:nth-child(3n) .wish-ornament { color: #d29155; transform: rotate(-11deg); }
.wish-compact { margin: 0 17px; min-height: 68px; padding: 7px 0; box-shadow: none; background: transparent; border: 0; border-bottom: 1px solid #e8b6c36b; border-radius: 0; }
.wish-compact:last-child { border-bottom: 0; }
.wish-compact .avatar { width: 36px; height: 36px; grid-row: span 2; }
.wish-compact .wish-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: start; }
.wish-compact .wish-author { display: flex; align-items: baseline; gap: 8px; }
.wish-compact .wish-author time { white-space: nowrap; font-size: .69em; }
.wish-compact p { margin: -11px 0 0 44px; font-size: .86em; line-height: 1.37; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wish-compact .wish-head .like { padding-top: 3px; }
.home-moments .panel-heading { padding-inline: 17px; }
.clip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-moments .clip-grid { padding: 7px 21px 12px; }
.clip.btn { display: block; min-width: 0; width: 100%; height: auto; padding: 0; overflow: hidden; text-align: left; border: 0; border-radius: 11px; background: transparent; box-shadow: none; color: var(--ink); }
.clip-image { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: 10px; background: #e6b6c8; }
.clip-image img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid white; color: white; background: #8e315565; box-shadow: 0 2px 7px #57244555; transition: background-color .18s; }
.play-icon .icon { fill: currentColor; width: 15px; height: 15px; margin-left: 2px; }
.clip:hover .play-icon { background-color: #b73060bd; }
.clip-label { position: absolute; bottom: 6px; right: 6px; font-size: 12px; font-variant-numeric: tabular-nums; background: #2e162ad9; color: white; border-radius: 5px; padding: 2px 6px; }
.clip strong { display: block; margin-top: 6px; padding-inline: 2px; font-size: 14px; line-height: 1.45; white-space: normal; }
.moments-content { padding-block: clamp(20px, 3vw, 46px); }
.moments-content h1 { margin: 0 0 clamp(14px, 2vw, 28px); color: var(--rose-deep); font: 800 clamp(30px, 4.2vw, 62px)/1.15 var(--serif); }
.moments-grid { gap: clamp(8px, 1.4vw, 22px); }
.moments-grid .clip.btn { padding: clamp(5px, 1vw, 11px); background: #fff4f6; }
.moments-grid .clip strong { padding-block: 1px 4px; font-size: clamp(13px, 1.2vw, 17px); }
.moments-grid .play-icon { width: 44px; height: 44px; }
.moment-dialog.modal-box { width: min(94vw, 920px); }
.moment-dialog.moment-portrait { width: min(94vw, 500px); }
.moment-video { display: block; width: 100%; height: auto; max-height: min(72vh, 700px); background: #21151c; border-radius: 10px; object-fit: contain; }
.moment-error { margin: 10px 0 0; color: var(--rose-deep); }
.moment-error a { text-decoration: underline; }

.wishes-content { padding-bottom: 0; }
.wishes-columns { display: grid; grid-template-columns: 1.96fr 1fr; align-items: start; gap: 14px; }
.wish-wall .panel-heading, .compose .panel-heading, .warm-rank .panel-heading { min-height: 40px; padding-left: 17px; }
.wish-wall .panel-heading { padding-right: 12px; min-height: 50px; }
.wish-controls { display: flex; align-items: center; gap: 3px; font-size: 12px; }
.wish-controls .btn { padding: .48em .95em; }
.pill-select { color: var(--rose-deep); max-width: 100%; }
.wish-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 7px 13px 0; }
.wish-grid .wish-card { min-height: clamp(118px, calc(var(--content-unit) * 9.3), 150px); }
.wish-pagination { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin: 9px 17px 11px; gap: 9px; }
.pagination-buttons { display: flex; gap: 6px; align-items: center; margin: 0 auto; font-size: 11px; }
.page-number { color: white; background: var(--pill); padding: 3px 11px; border-radius: 8px; }
.wishes-side { display: grid; gap: 7px; }
.wish-form { display: grid; gap: 6px; margin: 0 8px 7px; padding: 6px; border: 1px solid white; border-radius: 12px; background: #fff7f6a8; }
.textarea-wrap { position: relative; }
.textarea-wrap .textarea { width: 100%; display: block; min-height: 82px; padding: 6px 12px 18px; resize: vertical; border-color: #edbacb; border-radius: 10px; background: #fceef1; font-size: .9em; color: var(--ink); }
.textarea-wrap output { position: absolute; bottom: 5px; right: 10px; color: var(--muted); font-size: .78em; pointer-events: none; }
.phrase-row { display: flex; align-items: center; gap: 8px; }
.phrase-icon { border: 1px solid #edc2d1; color: var(--rose); border-radius: 50%; padding: 5px; font-size: 17px; }
.phrase-grid { display: grid; flex: 1; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 6px; }
.phrase-grid .btn { font-size: clamp(10px, calc(var(--content-unit) * .8), 13px); padding: 3px 5px; overflow: hidden; text-overflow: ellipsis; }
.wish-signature { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--rose-deep); font-size: 13px; }
.wish-signature .input { width: 100%; min-width: 0; min-height: 36px; height: auto; padding-inline: 10px; border-color: #edbacb; border-radius: 10px; background: #fceef1; color: var(--ink); }
.wish-signature .input:disabled { opacity: .55; }
.anonymous { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .82em; }
.anonymous input { appearance: auto; width: 14px; height: 14px; accent-color: var(--rose); }
.send-wish.btn { width: 100%; font-size: 1.1em; }
.rank-row { display: flex; align-items: center; gap: 5px; margin: 0 9px 5px; background: #fff7f4d4; border-radius: 12px; border: 1px solid #fff; overflow: hidden; padding: 4px 6px; min-height: 65px; }
.rank-number { align-self: flex-start; height: 24px; width: 27px; display: grid; place-items: center; background: linear-gradient(140deg,#fbdb91,#e9a442); color: #761d31; font-weight: 900; margin: 7px 1px; border-radius: 8px 8px 10px 10px; flex: none; }
.rank-2 { background: linear-gradient(140deg,#eedbe8,#bea6bc); }
.rank-3 { background: linear-gradient(140deg,#ffd7bc,#f19879); }
.rank-wish { flex: 1; min-width: 0; }
.rank-wish .wish-card { margin: 0; min-height: 0; padding: 0; }
.rank-wish .avatar { width: 28px; height: 28px; }
.rank-wish .wish-author { display: block; font-size: .89em; }
.rank-wish p { font-size: .81em; margin: 3px 0 0 1px; -webkit-line-clamp: 1; }
.rank-wish .like { padding-inline: 0; }
.rank-photo { width: 28%; flex: none; height: 54px; object-fit: cover; border-radius: 7px; }
.wishes-letter { width: 100%; }

.album-panel { padding-bottom: 10px; }
.album-panel > .panel-heading { padding-inline: 20px 10px; min-height: 49px; }
.album-tools { display: flex; align-items: center; gap: 10px; color: var(--rose); font-size: .94em; }
.search-box.input { border-radius: 999px; min-height: 32px; height: 32px; width: min(calc(var(--content-unit) * 21), 285px); background: #fff8f7da; border-color: #fff; box-shadow: inset 0 1px 2px #bd6d8a55; }
.search-box input { width: 100%; min-width: 0; font-size: 12px; color: var(--ink); }
.search-box input:focus-visible { outline: none; }
.search-box:focus-within { outline: 2px solid var(--rose-light); }
.album-filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 11px; }
.album-categories, .album-view { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.album-categories { gap: clamp(6px, var(--content-unit), 15px); }
.album-categories .btn { max-width: 100%; padding-inline: clamp(10px, 1.6vw, 25px); padding-block: .59em; font-size: .94em; white-space: normal; overflow-wrap: anywhere; }
.album-categories .btn span { font-size: .86em; font-weight: 500; opacity: .88; }
.album-view { flex: none; font-size: .86em; }
.album-layout { display: flex; flex-wrap: wrap; gap: inherit; }
.photo-flow { padding-inline: 11px; min-width: 0; }
.photo-flow-actions { display: flex; justify-content: flex-end; padding-bottom: 7px; }
.photo-flow-actions .btn { font-size: .86em; }
.photo-flow-rows { display: grid; gap: 8px; }
.photo-flow-row { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.photo-flow-strip { display: flex; flex: none; min-width: 100%; justify-content: space-around; gap: 8px; padding-inline: 4px; }
.photo-flow-strip .photo-tile { flex: 0 0 clamp(130px, calc(var(--content-unit) * 19), 246px); }
.photo-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; padding: 0 11px; }
.photo-tile { height: auto; min-width: 0; position: relative; aspect-ratio: 1.33; border: 1.5px solid white; border-radius: 10px; overflow: hidden; background-color: #f4cfdd; }
.photo-square .photo-tile { aspect-ratio: 1; }
.photo-open { display: block; width: 100%; height: 100%; background: transparent; padding: 0; }
.photo-open img { width: 100%; height: 100%; object-fit: cover; }
.photo-open:focus-visible { outline-offset: -4px; }
.tile-footer { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 2px; color: white; background: linear-gradient(transparent,#442231bf); pointer-events: none; }
.tile-footer .like { color: white; pointer-events: auto; }
.tile-footer span > .icon { width: 14px; height: 14px; }
.photo-caption { position: absolute; inset: 0 0 auto; padding: 5px 7px 13px; color: white; background: linear-gradient(#2b1320b8,transparent); opacity: 0; transition: opacity .2s; pointer-events: none; font-size: 12px; }
.photo-tile:is(:hover,:focus-within) .photo-caption { opacity: 1; }
.empty { display: grid; place-items: center; min-height: 150px; padding: 20px; color: var(--muted); text-align: center; grid-column: 1 / -1; margin: 0; }
.wish-empty { white-space: pre-line; line-height: 1.8; }
.wish-wall #wish-results { min-height: 400px; }
.wish-wall .wish-grid > .empty { min-height: 340px; }
.home-wishes #home-wish-results > .empty { min-height: 205px; }
.wish-submit-status { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 3px; }
.gallery-status { margin: -4px 17px 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.album-tools { flex-wrap: wrap; }
.form-feedback { color: var(--rose-deep); font-size: 13px; }
.poster-content { max-width: 1160px; padding-block: 30px; }
.poster-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
.poster-page-heading h1 { font-family: var(--serif); font-size: clamp(26px, calc(var(--content-unit) * 3), 40px); color: var(--rose); font-weight: 800; margin: 0; }
.poster-page-heading p { font-size: 16px; color: var(--muted); margin: 5px 0 0; }
.poster-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.poster-preview { min-width: 0; position: sticky; top: 20px; }
.poster-preview canvas { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 8px 24px #78334b30; }
.poster-preview p { text-align: center; font-size: 13px; color: var(--muted); padding: 10px; margin: 0; }
.poster-editor { padding: 20px; font-size: 15px; }
.poster-editor .dialog-form { gap: 12px; }
.poster-editor .textarea { width: 100%; background: #fff9f6; border-color: #e9b4c4; border-radius: 9px; padding: 8px 10px; color: var(--ink); font-size: 15px; line-height: 1.5; resize: vertical; }
.poster-editor .input { min-height: 40px; font-size: 15px; }
.poster-editor .pill-select { border-radius: 9px; padding: 10px; font-weight: 500; background: #fff9f6; border-color: #e9b4c4; }
.poster-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.poster-color.input { padding: 5px; }
.poster-ai { margin-top: 22px; padding-top: 18px; border-top: 1px solid #dfaabd; }
.poster-ai h2 { font-size: 20px; font-weight: 800; color: var(--rose); margin: 0 0 10px; }
.poster-ai > label { display: block; font-weight: 700; margin-bottom: 5px; color: var(--rose-deep); }
.poster-ai p, .poster-feedback { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0; overflow-wrap: anywhere; }
.poster-ai-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
@media(max-width: 650px) {
  .poster-content { padding-block: 20px; }
  .poster-workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .poster-preview { position: static; max-width: 420px; width: 100%; margin: auto; }
  .poster-editor { padding: 14px; }
  .poster-page-heading { gap: 8px; align-items: start; }
  .poster-page-heading p { font-size: 13px; }
  .poster-page-heading .btn { font-size: 13px; min-height: 44px; }
  .poster-page-heading h1 { font-size: 25px; }
}

.support-content { display: grid; gap: 6px; }
.support-projects .panel-heading { min-height: 40px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 5px 7px; gap: 7px; }
.project-card { border: 1px solid #fff; border-radius: 14px; background: #fff2f0ca; padding: 9px; display: grid; grid-template-columns: .89fr 1.04fr; gap: 10px; align-items: stretch; min-width: 0; }
.project-card > img { width: 100%; height: 100%; min-height: 116px; object-fit: cover; border-radius: 10px; border: 1px solid #fff; }
.project-card > div { display: flex; flex-direction: column; padding: 3px 0; gap: 4px; min-width: 0; }
.project-card h3 { color: var(--rose); font-size: clamp(14px, calc(var(--content-unit) * 1.35), 21px); margin: 0; font-weight: 800; white-space: nowrap; }
.project-card h3 .icon { color: #cf4a74; }
.project-card p { font-size: .92em; line-height: 1.38; margin: 0 0 5px; }
.project-button.btn { align-self: flex-start; margin-top: auto; min-width: 81%; font-size: .95em; padding: .48em .65em; }
.support-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; margin: 0 9px 7px; padding: 7px 10px 9px; list-style: none; text-align: center; border: 1px solid white; border-radius: 13px; background: #fff5f49e; }
.support-steps li { display: flex; position: relative; flex-direction: column; align-items: center; line-height: 1.24; padding-top: 2px; }
.schedule-icon { display: grid; flex: none; width: 49px; height: 49px; place-items: center; border-radius: 50%; margin-bottom: 4px; border: 1px solid #fff; background: linear-gradient(#fde9ec,#f5cfd9); box-shadow: 0 2px 3px #bf688753,inset 0 0 3px #fff; color: #c93765; font-size: 22px; }
button.schedule-icon:hover { background: #f9cad8; }
.support-steps strong { color: var(--rose); font-weight: 850; font-size: 1.08em; }
.support-steps small { color: var(--ink); font-size: .85em; margin-top: 3px; padding-inline: 4px; }
.support-steps [aria-pressed="true"] .icon { fill: currentColor; }
.support-stats { display: grid; grid-template-columns: 1.24fr repeat(3,minmax(0,1fr)); align-items: center; gap: 9px; padding: 3px 10px 3px 18px; color: var(--rose-deep); }
.support-stats h2 { margin: 0 0 3px; }
.support-stats small { font-size: .81em; }
.stat-card { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 62px; padding: 5px; border: 1px solid white; border-radius: 16px; background: #fff4f1b7; }
.stat-card .schedule-icon { margin: 0; }
.stat-card strong { font-size: clamp(17px, calc(var(--content-unit) * 1.86), 28px); line-height: 1.15; display: block; color: var(--rose); }
.stat-card strong small { font-size: .64em; }
.support-end { display: grid; grid-template-columns: 1.28fr 1fr; align-items: center; gap: 7px; min-height: 175px; margin-inline: -1%; background: url("./assets/support-gifts.webp") left bottom / auto 100% no-repeat, radial-gradient(ellipse,#fff1ed,#f6d3df 66%,#eec1d6); }
.support-note { object-fit: contain; }
.join-cta { text-align: center; padding: 13px 4px 13px 25%; }
.join-cta .btn { border: 2px solid #fff7dc; box-shadow: 0 0 20px #fff3c2c7, inset 0 1px 3px #fff; font: 800 clamp(14px, calc(var(--content-unit) * 2.24), 34px)/1.3 var(--serif); padding: .55em 1em; }
.join-cta p { margin: 7px 0 0; font: italic 700 clamp(11px, calc(var(--content-unit) * 1.14), 17px)/1.4 var(--serif); color: #8a2248; }

.site-footer { position: relative; min-height: 51px; display: grid; align-items: center; color: #fff7f5; background: linear-gradient(100deg,#a83d63,#c06a85 42%,#b55675 72%,#a73d62); border-radius: 30% 35% 0 0 / 27% 21% 0 0; border-top: 2px solid #fff3f6; }
.footer-inner { justify-content: space-between; flex-wrap: wrap; padding: 10px 0; }
.footer-inner a { display: inline-flex; align-items: center; font-weight: 700; white-space: nowrap; }
.footer-inner a .icon { transform: rotate(-13deg); width: 29px; height: 26px; margin-right: 4px; }
.footer-date { padding-left: clamp(10px, calc(var(--content-unit) * 2.5), 35px); border-left: 1px solid #fff8; white-space: nowrap; }
.footer-message { font: italic 700 1.13em var(--serif); }
.waveform { display: flex; align-items: center; gap: 3px; }
.waveform i { display: block; height: var(--bar); width: 2px; background: #ffd1df; border-radius: 3px; opacity: .8; }

.modal { color: var(--ink); background: #5022395c; }
.modal-box { background: linear-gradient(145deg,#fff8f4,#fce2ea); border: 1px solid #fff; border-radius: 20px; padding: 16px; width: min(var(--page-width), 500px); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); box-shadow: 0 15px 55px #67314c5b; }
.modal-wide { width: min(var(--page-width), 735px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; gap: 6px; }
.dialog-heading h2 { margin: 0; color: var(--rose); font-size: clamp(17px,2.4vw,25px); font-weight: 800; }
.close-dialog.btn { min-height: 44px; height: 44px; width: 44px; border-radius: 50%; background: #ffedf2; border-color: #fff; color: var(--rose); padding: 0; }
.dialog-copy { display: grid; gap: 11px; }
.dialog-copy :is(p,label) { margin: 0; }
.announcement { display: grid; gap: 12px; font-size: 1rem; line-height: 1.6; }
.announcement-guide { display: grid; gap: 8px; margin-block: 3px; }
.announcement-guide a { color: var(--rose-deep); font-weight: 750; text-decoration: underline; text-underline-offset: .16em; }
.announcement-signature { text-align: right; color: var(--rose-deep); font-weight: 750; }
.announcement-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.music-toggle.btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid #fff;
  border-radius: 50%;
  padding: 0;
  color: var(--rose-deep);
  background: #fff2f6;
  box-shadow: 0 2px 8px #67213330;
}
#music-dock .music-toggle { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 19; }
.music-toggle.btn[aria-pressed="true"] { color: #fff; background: var(--rose-deep); }
.music-toggle[aria-pressed="true"] .icon { animation: music-spin 5s linear infinite; }
@keyframes music-spin { to { transform: rotate(1turn); } }
.dialog-form { display: grid; gap: 10px; }
.dialog-form label { display: grid; gap: 4px; font-weight: 700; color: var(--rose-deep); }
.dialog-form .input, .dialog-copy .input { width: 100%; background: #fff9f6; border: 1px solid #e9b4c4; border-radius: 9px; padding: 6px 10px; color: var(--ink); }
.local-note { font-size: .9em; color: var(--muted); }
.about-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); align-items: center; gap: clamp(16px, 3vw, 28px); }
.about-card img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 5px solid white; border-radius: 10px; }
.about-copy h3 { color: var(--rose); font-size: 1.5rem; font-weight: 800; }
.about-copy p { margin-top: 10px; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.about-copy .about-date { color: var(--rose-deep); font-weight: 650; margin-top: 3px; }
@media (max-width: 580px) {
  .about-card { grid-template-columns: minmax(0, 1fr); }
  .about-card img { width: min(46%, 170px); justify-self: center; }
  .about-copy h3, .about-copy .about-date { text-align: center; }
}
.lightbox-frame { display: grid; place-items: center; position: relative; min-height: 148px; background: #e8b9cd; border-radius: 12px; overflow: hidden; }
.lightbox-frame img { width: auto; height: auto; max-height: min(61vh, 620px); min-height: min(36vh, 250px); object-fit: contain; }
.lightbox-frame button { position: absolute; top: 50%; transform: translateY(-50%); min-height: 39px; width: 39px; padding: 0; border-radius: 50%; background: #ffedf2ef; color: var(--rose); border-color: white; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-footer { display: flex; gap: 13px; align-items: center; justify-content: center; padding: 8px 0 0; color: var(--muted); }
.notice { position: fixed; z-index: 20; bottom: 18px; left: 50%; display: flex; align-items: center; gap: 8px; color: #fff; background: #9d2d55; box-shadow: 0 4px 16px #83244868; border-radius: 999px; padding: 9px 16px; width: max-content; max-width: calc(100% - 25px); opacity: 0; transform: translate(-50%,15px); transition: transform .2s, opacity .2s; pointer-events: none; }
.notice.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1210px) {
  .site-nav { gap: 4px; }
  .home-columns { gap: 8px; }
  .home-columns .panel-heading { padding-inline: 7px; margin-inline: 4px; }
  .wish-compact .wish-author time { display: none; }
  .wishes-columns { grid-template-columns: 1.7fr 1fr; gap: 8px; }
  .wish-wall .heading-detail { display: none; }
  .album-panel > .panel-heading > .heading-detail { font-size: .86em; }
  .album-categories .btn { padding-inline: 1.2em; }
  .project-card { gap: 7px; padding: 6px; grid-template-columns: .75fr 1fr; }
  .project-card > img { min-height: 100px; }
  .waveform { display: none; }
}

@media (max-width: 940px) {
  .header-inner { flex-wrap: wrap; gap: 3px 9px; min-height: auto; padding: 6px 0 8px; }
  .site-nav { order: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 590px; margin: auto; }
  .brand > .icon { width: 31px; height: 29px; }
  .header-tools { gap: 5px; }
  .home-columns { grid-template-columns: 1fr 1fr; }
  .home-album { grid-column: 1 / -1; }
  .home-photos { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .wishes-columns { grid-template-columns: 1fr; }
  .wishes-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .wish-wall .heading-detail { display: inline; }
  .album-panel > .panel-heading > .heading-detail { display: none; }
  .album-categories .btn { font-size: .9em; padding-inline: .65em; }
  .photo-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-card { grid-template-columns: minmax(80px, .63fr) 1fr; }
  .moments-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { gap: 9px; font-size: 12px; }
  .footer-date { padding-left: 0; border: 0; }
}

@media (max-width: 650px) {
  .site-nav { gap: 2px; }
  .site-nav a { padding-inline: 0; font-size: clamp(12px, 3.35vw, 15px); }
  .birthday-tag.btn { display: none; }
  .header-link.btn { padding-inline: .55em; font-size: 13px; }
  .brand { gap: 5px; font-size: 11px; line-height: 1.24; }
  .brand strong { display: block; font-size: 15px; }
  .brand > .icon { width: 27px; height: 26px; }
  .birthday-hero { grid-template-columns: minmax(0, 1fr); margin-top: 24px; gap: 16px; }
  .hero-copy h1 { font-size: clamp(27px, 8.5vw, 46px); }
  .hero-copy p { margin-top: 10px; }
  .hero-actions { margin-top: 14px; gap: 7px; }
  .hero-actions .btn { padding-inline: clamp(8px, 2.6vw, 15px); font-size: clamp(13px, 3.6vw, 15px); }
  .hero-art { border-radius: 13px; }
  .panel-heading { padding-inline: 10px; min-height: 42px; }
  .panel-heading h2, .support-stats h2 { font-size: 17px; white-space: normal; }
  .heading-detail { font-size: 13px; }
  .home-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-album { grid-column: auto; }
  .countdown-grid { padding-top: 8px; padding-bottom: 5px; }
  .countdown-unit output { font-size: 36px; }
  .countdown-art { min-height: 100px; }
  .countdown-art p { font-size: clamp(14px, 4.65vw, 19px); }
  .home-photos { grid-template-columns: repeat(3,minmax(0,1fr)); padding-inline: 8px; }
  .feature-and-note { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  .art-note.home-note { display: none; }
  .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-moments .clip-grid { padding-inline: 8px; }
  .home-moments .panel-heading { padding-inline: 9px; }
  .wishes-columns { display: flex; flex-direction: column; }
  .wishes-columns > * { width: 100%; }
  .wishes-side { display: contents; }
  .compose, .warm-rank { width: 100%; }
  .compose { order: -1; }
  .textarea-wrap .textarea, .poster-editor .textarea, .poster-editor .input, .dialog-form .input { font-size: 16px; }
  .textarea-wrap .textarea { min-height: 112px; }
  .wish-signature .input { min-height: 44px; font-size: 16px; }
  .phrase-grid .btn { min-height: 36px; font-size: 12px; }
  .send-wish.btn { min-height: 44px; }
  .wish-wall #wish-results, .wish-wall .wish-grid > .empty, .home-wishes #home-wish-results > .empty { min-height: 124px; }
  .wish-wall .panel-heading { padding: 8px 10px 5px; }
  .wish-wall .heading-end { width: 100%; margin: 0; }
  .wish-controls { justify-content: flex-start; flex-wrap: wrap; }
  .wish-controls .pill-select { margin-left: auto; }
  .wish-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 4px 6px 0; gap: 5px; }
  .wish-grid .wish-card { padding: 8px; }
  .wish-grid .wish-card p { margin: 4px 2px 0; font-size: 14px; }
  .wish-ornament { opacity: .22; }
  .wish-grid .avatar { width: 25px; height: 25px; }
  .wish-grid .wish-head { gap: 3px; }
  .wish-grid .wish-head .like { font-size: 10px; padding-inline: 1px; }
  .rank-photo { width: 26%; }
  .wishes-letter { display: none; }
  .album-panel > .panel-heading { padding: 7px 8px; }
  .album-panel > .panel-heading > .heading-end { width: 100%; margin: 0; }
  .album-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-size: 13px; }
  .album-tools .btn, .album-view .btn, .album-view .pill-select, .dialog-form .btn { min-height: 44px; }
  .album-tools .btn { padding-inline: 6px; }
  .album-tools [data-action="sync-local"] { grid-column: 1 / -1; }
  .search-box.input { grid-column: 1 / -1; width: 100%; min-height: 44px; padding-inline: 10px; }
  .search-box input { font-size: 16px; }
  .album-filters { padding: 4px 6px 8px; align-items: flex-start; flex-direction: column; gap: 6px; }
  .album-categories, .album-view { gap: 5px; }
  .album-categories .btn { padding: 5px 8px; min-height: 40px; font-size: 13px; }
  .photo-flow { padding-inline: 5px; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 0 7px; }
  .photo-caption { opacity: 1; }
  .project-card { grid-template-columns: 1fr; padding: 4px; }
  .project-card > img { min-height: 0; aspect-ratio: 1.4; }
  .project-card > div { padding: 0 4px 4px; }
  .project-card h3 { font-size: 14px; }
  .project-button.btn { min-height: 44px; padding-inline: 6px; }
  .support-steps { gap: 4px; padding: 4px 5px 8px; }
  .schedule-icon { width: 35px; height: 35px; font-size: 17px; }
  .support-stats { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 6px; gap: 4px; }
  .support-stats > div:first-child { grid-column: 1/-1; }
  .stat-card { min-height: 55px; gap: 3px; padding: 3px 2px; }
  .stat-card .schedule-icon { width: 22px; height: 22px; font-size: 12px; }
  .stat-card > div { font-size: 10px; }
  .stat-card strong { font-size: clamp(12px, 3.65vw,17px); }
  .support-end { display: block; min-height: 0; background-size: auto 55%, cover; }
  .join-cta { padding: 9px 4px 13px; }
  .join-cta .btn { font-size: clamp(16px, 5.38vw, 21px); padding-inline: .8em; max-width: 100%; }
  .join-cta p { font-size: 12px; }
  .support-note { width: 100%; max-width: 475px; margin: auto; }
  .footer-inner { justify-content: center; text-align: center; gap: 4px 9px; padding-inline: 16px 44px; }
  .footer-inner a .icon { width: 21px; height: 21px; }
  .footer-message { width: 100%; }
}

@media (max-width: 480px) {
  .wish-grid { grid-template-columns: minmax(0, 1fr); }
  .wish-grid .wish-card { min-height: 0; }
  .poster-field-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .poster-page-heading { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .music-toggle[aria-pressed="true"] .icon { animation: none; }
}
