:root { color-scheme: light; --ink: #643b4c; --accent: #b54e75; --muted: #8d6777; --paper: #fffafb; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100svh; color: var(--ink); background: #fbedf2; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 45%, #fff8fa 0%, #f9e4ed 76%, #f6dce7 100%); }
.ambient { position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(2px); opacity: .56; animation: drift 14s ease-in-out infinite alternate; }
.ambient-one { width: 420px; height: 420px; top: -180px; right: -100px; background: radial-gradient(circle, #f1bbd1, #f1bbd100 70%); }
.ambient-two { width: 520px; height: 520px; bottom: -200px; left: -190px; background: radial-gradient(circle, #efb8ce, #efb8ce00 70%); animation-delay: -7s; }
.ambient-three { width: 170px; height: 170px; top: 25%; left: 9%; background: radial-gradient(circle, #fff, #fff0 70%); animation-delay: -4s; }
.page-shell { max-width: 1440px; padding: 0 56px; margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
.page-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #b9718c24; }
.wordmark { text-decoration: none; color: var(--ink); font-size: 15px; letter-spacing: .12em; display: flex; align-items: center; gap: 12px; }
.wordmark > span { font-size: 28px; color: var(--accent); font-family: Georgia, serif; }
.header-note { font-size: 12px; letter-spacing: .17em; color: var(--muted); display: flex; align-items: center; gap: 16px; }
.tiny-star { font-size: 25px; }
main { flex: 1; display: grid; place-items: center; padding: 68px 0 58px; }
.countdown-view, .celebration-view { width: 100%; text-align: center; animation: reveal .9s ease both; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 15px; font-size: 12px; letter-spacing: .2em; color: var(--accent); line-height: 1.8; }
.eyebrow > span { width: 25px; height: 1px; background: #be719178; flex-shrink: 0; }
h1 { position: relative; width: fit-content; max-width: 100%; margin: 26px auto 18px; font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.5; font-weight: 500; letter-spacing: .055em; text-wrap: balance; }
.accent { color: var(--accent); }
.heading-star { position: absolute; font-family: Georgia, serif; top: -17px; right: -36px; color: #c07594; font-size: 31px; font-weight: 400; }
.intro { margin: 0; font-size: 16px; line-height: 1.9; color: var(--muted); letter-spacing: .075em; }
.date-pill { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 25px; padding: 11px 20px; border: 1px solid #c987a347; border-radius: 100px; background: #fff8fb8c; font-size: 14px; line-height: 1.6; color: #855267; }
.date-pill > span:first-child { font-size: 19px; color: var(--accent); line-height: 1; }
.timezone { font-size: 12px; color: var(--muted); padding-left: 12px; border-left: 1px solid #c987a347; }
.countdown { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: start; max-width: 840px; margin: 52px auto 0; gap: 10px; }
.time-card { position: relative; display: flex; justify-content: center; align-items: center; min-height: 175px; background: linear-gradient(160deg, #ffffffd9, #fff5f9e6); border: 1px solid #fff; border-radius: 22px; box-shadow: 0 15px 40px #9f476510, inset 0 0 0 1px #dca6bd21; }
.time-card::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid #dca6bd24; }
.number { position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 6.9vw, 90px); line-height: 1.15; font-weight: 400; font-variant-numeric: tabular-nums; color: #aa4c6e; letter-spacing: -.035em; padding-right: .035em; }
.separator { color: #c492a7; font-family: Georgia, serif; font-size: 35px; line-height: 175px; }
.unit-label { margin-top: 20px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #815467; }
.unit-label span { font-size: 11px; letter-spacing: .13em; color: #987483; }
.waiting-note { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 46px auto 0; color: #b0768e; }
.waiting-note p { font-size: 15px; letter-spacing: .1em; margin: 0; line-height: 1.8; }
.note-line { height: 1px; width: 46px; background: #c695aa59; }
.reveal-note { color: #967382; font-size: 13px; margin: 15px 0 0; line-height: 1.8; }
footer { display: flex; gap: 16px; justify-content: center; align-items: center; padding: 27px 0; border-top: 1px solid #b9718c24; color: #957080; font-size: 12px; line-height: 1.8; }
footer > span:first-child { font-size: 10px; letter-spacing: .17em; }
footer > span:nth-child(2) { color: var(--accent); font-size: 19px; }
.celebration-mark { font: 70px/1 Georgia, serif; color: var(--accent); margin: 28px 0 6px; }
.celebration-view h1 { margin-top: 12px; }
.letter { width: min(100%, 590px); margin: 32px auto 0; background: #fffafbdb; border: 1px solid #fff; border-radius: 8px; padding: 32px 38px; box-shadow: 0 16px 56px #a4547012; text-align: left; line-height: 1.9; font-size: 16px; position: relative; }
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid #d4a7bb45; pointer-events: none; }
.letter-detail { font: 10px/1.8 Georgia, serif; letter-spacing: .2em; color: var(--muted); }
.letter-greeting { color: var(--accent); margin: 18px 0; }
#letter-content p { margin: 12px 0; color: #795366; }
.letter-signature { display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: var(--accent); margin-top: 22px; font-size: 14px; }
.letter-signature > span:last-child { font: 27px/1 Georgia, serif; }
.celebration-date { border: 0; background: transparent; margin-top: 18px; }
.confetti-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti { position: absolute; top: -30px; width: 7px; height: 12px; opacity: 0; animation: confetti-fall var(--duration) var(--delay) ease-in both; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { text-align: center; color: var(--accent); }
@keyframes drift { to { transform: translate(30px, -25px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate3d(0, -30px, 0) rotate(0); } 10% { opacity: .85; } 85% { opacity: .7; } 100% { opacity: 0; transform: translate3d(var(--sway), 110vh, 0) rotate(var(--rotation)); } }
@media (min-width: 1600px) { main { padding-top: 90px; padding-bottom: 90px; } }
@media (max-width: 800px) { .page-shell { padding: 0 28px; } .countdown { gap: 5px; grid-template-columns: minmax(0,1fr) 15px minmax(0,1fr) 15px minmax(0,1fr) 15px minmax(0,1fr); } .time-card { min-height: 140px; border-radius: 18px; } .separator { line-height: 140px; font-size: 28px; } .unit-label { flex-direction: column; gap: 5px; } }
@media (max-width: 560px) {
  .page-shell { padding: 0 22px; } .page-header { min-height: 78px; } .wordmark { font-size: 13px; gap: 8px; } .header-note { font-size: 10px; letter-spacing: .1em; gap: 7px; } .tiny-star { font-size: 19px; }
  main { padding: 46px 0 40px; } .eyebrow { font-size: 9px; gap: 9px; letter-spacing: .12em; } .eyebrow > span { width: 16px; }
  h1 { font-size: clamp(27px, 7.2vw, 38px); letter-spacing: .02em; margin-top: 22px; } .heading-star { right: -17px; top: -16px; font-size: 21px; }
  .intro { font-size: 14px; letter-spacing: .015em; } .date-pill { gap: 9px; padding: 9px 13px; font-size: 12px; margin-top: 21px; } .timezone { font-size: 11px; padding-left: 9px; }
  .countdown { max-width: 340px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 20px; margin-top: 34px; } .separator { display: none; } .time-card { min-height: 122px; border-radius: 19px; } .number { font-size: 67px; } .unit-label { flex-direction: row; margin-top: 10px; gap: 8px; font-size: 14px; } .unit-label span { font-size: 10px; }
  .waiting-note { gap: 8px; margin-top: 32px; } .waiting-note p { font-size: 13px; letter-spacing: 0; } .note-line { width: 20px; } .reveal-note { font-size: 12px; }
  footer { flex-wrap: wrap; gap: 8px; padding: 21px 0; font-size: 11px; } footer > span:first-child { font-size: 9px; } .letter { padding: 27px 25px; font-size: 15px; } .celebration-mark { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
