:root {
  --paper: #faf7f2;
  --ink: #403a34;
  --muted: #797269;
  --wine: #702f43;
  --sage: #6c7866;
  --gold: #b29159;
  --line: #e6ded3;
  --font: 'Tajawal', Tahoma, sans-serif;
  --serif: 'Amiri', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a { outline-offset: 5px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
h1, h2, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; right: 20px; padding: 10px 20px; background: white; z-index: 100; }
.skip-link:focus { top: 10px; }
.site-header { height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font: 32px/1 var(--serif); color: var(--wine); display: flex; align-items: center; gap: 9px; }
.brand span { font: 24px/1 Georgia, serif; color: #a27872; }
.header-date { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 10px 23px; border: 1px solid #dcb985; border-radius: 50px; background: linear-gradient(120deg, #702f43, #893f51); color: #fff1d6; font: 600 15px/1.4 'DM Sans', sans-serif; letter-spacing: 2.5px; white-space: nowrap; box-shadow: 0 0 18px #d6aa6533; text-shadow: 0 0 12px #ffd58a50; }
.header-date strong { font-size: 25px; line-height: 1; letter-spacing: 1px; color: #ffe0a5; }
.header-date::before { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid #e7bf7c55; box-shadow: 0 0 20px #e6b56660, 0 0 42px #d5a55b25; pointer-events: none; z-index: -1; animation: date-glow 3.4s ease-in-out infinite; }
.music-button { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; padding: 10px 18px; min-height: 44px; border: 1px solid #dcb985; border-radius: 50px; background: linear-gradient(120deg, #702f43, #893f51); color: #fff1d6; font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 0 16px #d6aa6533; }
.music-button::before { content: ''; position: absolute; inset: -4px; border: 1px solid #e7bf7c55; border-radius: inherit; box-shadow: 0 0 18px #e6b56655; z-index: -1; pointer-events: none; animation: date-glow 3.4s ease-in-out -1.7s infinite; }
.music-icon { font: 26px/1 'DM Sans', sans-serif; color: #ffe0a5; text-shadow: 0 0 8px #ffd58a99, 0 0 18px #edb96070; }
.music-button:hover, .music-button[aria-pressed='true'] { background: linear-gradient(120deg, #84354c, #a05162); box-shadow: 0 0 24px #d6aa6555; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 95px; align-items: center; padding-block: 64px 61px; }
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--sage); font-size: 15px; margin-bottom: 23px; }
.eyebrow-line { width: 28px; height: 1px; background: #a9ad98; }
h1 { color: var(--wine); font: 80px/1.15 var(--serif); letter-spacing: -1.5px; }
h1 > span { color: var(--ink); }
.hero-description { font-size: 18px; line-height: 2; color: #797168; max-width: 435px; margin-top: 27px; }
.countdown-wrap { margin-top: 30px; }
.countdown-note { font-size: 14px; color: #82786b; margin-bottom: 12px; }
.countdown { display: flex; direction: ltr; max-width: 370px; }
.time-unit { flex: 1; text-align: center; min-width: 0; }
.time-unit + .time-unit { border-left: 1px solid #e2d6c9; }
.time-unit > span { display: block; font: 400 41px/1.2 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; color: var(--wine); }
.time-unit small { display: block; font-size: 14px; color: #82786b; margin-top: 5px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button { min-height: 49px; padding: 11px 26px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; font-size: 16px; font-weight: 500; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--wine); color: #fff8ec; }
.primary:hover { background: #592235; }
.primary > span { font: 23px/1 Georgia, serif; color: #e2c0be; }
.text-button { background: transparent; padding: 10px 0; color: #796458; font-size: 15px; }
.text-button > span { color: var(--gold); margin-right: 6px; }
.text-button:hover { color: var(--wine); }
.hero-art { position: relative; padding-top: 17px; }
.duck-button { display: block; width: 100%; padding: 0; background: transparent; border-radius: 24px; }
.duck-button img { width: 100%; height: auto; transition: transform .4s; }
.duck-button:hover img { transform: translateY(-3px); }
.duck-button.acknowledged img { animation: duck-nod .8s ease-in-out; }
.letter-card { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 34px; width: min(620px, 100%); margin: 0 auto 38px; padding: 35px 43px; border: 1px solid #e8d4ca; border-radius: 22px; background: #f4e9e2; box-shadow: 0 5px 0 #e9dcd1; }
.letter-card::before, .letter-card::after { position: absolute; pointer-events: none; color: #c29796; font-family: Georgia, serif; }
.letter-card::before { content: '✧'; top: 9px; right: 19px; font-size: 26px; }
.letter-card::after { content: '♡'; bottom: 30px; right: 22px; font-size: 31px; rotate: 16deg; }
.letter-card-eyebrow { color: #897267; font-size: 14px; margin-bottom: 5px; }
.letter-card-copy h2 { font: 700 23px/1.5 var(--font); color: var(--wine); }
.letter-card-description { color: #8a6c63; font-size: 16px; line-height: 1.8; margin-top: 9px; }
.letter-open { background: #fffaf5; color: var(--wine); border: 1px solid #e4ccc2; box-shadow: 0 3px 0 #dfc5ba; min-height: 46px; margin-top: 20px; padding: 8px 21px; gap: 13px; }
.letter-open:hover { background: #fffdf8; }
.letter-open:active { transform: translateY(2px); box-shadow: 0 1px 0 #dfc5ba; }
.letter-open > span { font: 22px/1 Georgia, serif; color: #ae7782; }
.envelope-art { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; padding-top: 24px; }
.envelope { position: relative; width: 150px; height: 108px; rotate: 10deg; filter: drop-shadow(0 9px 8px #7e504317); transition: rotate .45s ease; }
.envelope-back { position: absolute; inset: 0; background: #d1a3aa; border-radius: 5px; }
.envelope-back::before { content: ''; position: absolute; inset: -38px 0 auto; height: 43px; background: #d1a3aa; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.envelope-paper { position: absolute; width: 126px; height: 102px; left: 12px; bottom: 35px; background: #fffcf7; color: #ae7782; padding: 14px 12px; text-align: center; font-size: 15px; transform: rotate(-5deg); box-shadow: 0 2px 7px #7e50430b; transition: transform .5s cubic-bezier(.2,.75,.3,1); }
.envelope-paper span { white-space: nowrap; }
.envelope-paper i { display: block; height: 1px; background: #e8d6ce; margin: 10px auto 0; width: 76%; }
.envelope-paper i + i { width: 56%; margin-top: 7px; }
.envelope-front { position: absolute; inset: 0; background: #dcb6b9; clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%); border-radius: 4px; }
.envelope-fold { position: absolute; inset: 0; background: #e8c9c7; clip-path: polygon(0 100%, 50% 39%, 100% 100%); border-radius: 4px; }
.envelope-seal { position: absolute; top: 44px; left: 61px; width: 29px; height: 29px; border-radius: 50%; background: #ad7886; color: #fff4eb; font: 24px/29px Georgia, serif; text-align: center; box-shadow: 0 2px 0 #986373; }
.letter-card:hover .envelope, .letter-card:focus-within .envelope { rotate: 6deg; }
.letter-card:hover .envelope-paper, .letter-card:focus-within .envelope-paper { transform: translateY(-15px) rotate(-3deg); }
.small-link { display: inline-block; background: transparent; padding: 5px 0; border-bottom: 1px solid #c7b4a3; color: #806155; font-size: 14px; min-height: 36px; }
footer { padding-block: 28px 32px; text-align: center; color: #85796d; font-size: 15px; }
footer p > span { color: #9c6267; font: 21px/1 Georgia, serif; padding-inline: 4px; }
.footer-wish { margin-top: 4px; font-size: 14px; }
.toast { position: fixed; bottom: 27px; left: 50%; translate: -50% 12px; opacity: 0; width: max-content; max-width: calc(100% - 32px); background: #fffcf7; color: #795647; border: 1px solid #dfcfbd; border-radius: 9px; padding: 13px 23px; box-shadow: 0 8px 30px #372b2710; font-size: 16px; text-align: center; z-index: 25; pointer-events: none; transition: opacity .2s, translate .2s; }
.toast.show { opacity: 1; translate: -50% 0; }
.preview-banner { background: #e8ded0; color: #6f5543; padding: 7px 20px; text-align: center; font-size: 14px; }
.preview-banner a { text-decoration: underline; text-underline-offset: 4px; }
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 15; }
.balloon-field { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 12; }
.balloon { position: absolute; left: var(--left); bottom: -190px; width: var(--size); aspect-ratio: .79; border-radius: 49% 51% 46% 48%; padding: 0; background: radial-gradient(ellipse 7px 13px at 29% 24%,#ffffff75 96%,transparent 100%), var(--balloon-color); animation: balloon-rise var(--flight) ease-in-out both; animation-delay: var(--delay, 0s); transform-origin: 50% 100%; }
.balloon::before { content: ''; position: absolute; width: 9px; height: 8px; top: calc(100% - 1px); left: calc(50% - 4px); background: var(--balloon-color); clip-path: polygon(50% 0,100% 100%,0 100%); }
.balloon::after { content: ''; position: absolute; top: calc(100% + 7px); left: 48%; width: 15px; height: calc(var(--size) * 1.2); border-left: 1px solid #b9a68b80; border-radius: 50%; animation: string-sway 2.1s ease-in-out infinite alternate; transform-origin: top; }
.balloon.popped { opacity: 0; pointer-events: none !important; scale: 1.35; transition: opacity .12s, scale .12s; }
dialog { font-family: var(--font); color: var(--ink); border: 0; padding: 0; }
dialog:focus { outline: none; }
dialog::backdrop { background: #352b2766; backdrop-filter: blur(7px); }
dialog[open] { animation: dialog-in .35s ease-out; }
.dialog-close { position: absolute; top: 16px; left: 17px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: #eee4dc; color: #947266; font: 25px/1 Arial, sans-serif; z-index: 20; }
.dialog-close:hover { background: #e8d8cc; }
.letter-dialog { width: 550px; max-width: calc(100% - 32px); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 20px; padding: 43px 45px 30px; background-color: #fffbf6; background-image: linear-gradient(#dfd2c427 1px, transparent 1px); background-size: 100% 33px; box-shadow: 0 20px 80px #30221e2b; }
.letter-dialog[open] { animation: letter-reveal .4s cubic-bezier(.2,.75,.3,1); }
.dialog-eyebrow { color: #96796d; font-size: 14px; }
.letter-dialog h2 { color: #995c70; font: 42px/1.4 var(--serif); margin: 5px 0 25px; }
.letter-dialog h2 > span { color: #c68c9e; font: 30px/1 Georgia, serif; }
.letter-dialog p { font-size: 18px; line-height: 2; color: #886b78; margin-bottom: 16px; }
.letter-dialog .letter-signature { font-size: 21px; color: #995c70; margin-top: 27px; }
.letter-signature span { color: #967481; font-size: 16px; }
.letter-bottom-duck { display: block; text-align: center; font-size: 32px; margin-top: 16px; }
/* Flat illustrations in a light card; the canvas spans the top layer. */
.party-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; inset: 0; padding: 24px 16px; border-radius: 0; overflow: auto; background: transparent; color: var(--ink); }
.party-dialog[open] { display: flex; }
.party-dialog::backdrop { background: #40363366; backdrop-filter: blur(8px); }
.party-content { position: relative; z-index: 3; flex-shrink: 0; width: min(530px, 100%); margin: auto; display: flex; align-items: center; flex-direction: column; text-align: center; padding: 48px 34px 28px; border: 1px solid #eaded0; border-radius: 28px; background: var(--paper); box-shadow: 0 24px 65px #36292518; }
.party-close { top: 15px; left: 16px; width: 36px; height: 36px; color: #947266; background: #eee4dc; }
.party-close:hover { background: #e8d8cc; }
.party-eyebrow { color: #867364; font-size: 14px; }
.party-content h2 { color: var(--wine); font: 700 28px/1.6 var(--font); margin: 8px 0 6px; }
#party-description { color: #7e7167; font-size: 16px; }
.party-scene { position: relative; width: 100%; height: 240px; flex-shrink: 0; margin-top: 10px; }
.cake { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; width: 184px; height: 130px; isolation: isolate; transform-origin: center bottom; }
.party-dialog[open] .cake { animation: cake-arrive .55s cubic-bezier(.16,1,.3,1) both; }
.cake-body { position: absolute; left: 0; top: 37px; width: 100%; height: 85px; border-radius: 0 0 92px 92px / 0 0 18px 18px; background: #d4b687; box-shadow: inset 0 -12px 0 #c8a673; overflow: hidden; }
.cake-top { position: absolute; top: 20px; width: 100%; height: 35px; border-radius: 50%; z-index: 2; background: #fff1dc; }
.icing-drip { position: absolute; top: 8px; width: 16px; height: 26px; border-radius: 0 0 12px 12px; background: #fff1dc; left: 22px; }
.icing-drip:nth-child(2) { left: 84px; width: 20px; height: 38px; }
.icing-drip:nth-child(3) { left: 147px; height: 21px; }
.cake-heart { position: absolute; bottom: 13px; right: 43px; color: #fff6e8; font: 26px/1 Georgia, serif; }
.cake-plate { position: absolute; bottom: 0; left: -19px; width: 222px; height: 18px; border-radius: 50%; background: #e4d7bf; z-index: -1; }
.candle { position: absolute; width: 12px; height: 51px; top: -22px; left: 86px; z-index: 4; background: repeating-linear-gradient(130deg,#a3717d 0 7px,#e8ccd0 7px 13px); border-radius: 3px 3px 1px 1px; }
.candle::after { content: ''; position: absolute; width: 2px; height: 6px; left: 5px; top: -5px; background: #73523b; }
.flame { position: absolute; bottom: calc(100% + 5px); left: -3px; width: 18px; height: 29px; border-radius: 60% 40% 52% 48%; background: #ffc969; box-shadow: 0 0 12px #ffd7859c, 0 0 28px #f2b64b42; transform-origin: 50% 100%; animation: flame-dance 1.3s ease-in-out infinite alternate; transition: opacity .25s, scale .25s; }
.flame::before { content: ''; position: absolute; bottom: 4px; left: 5px; height: 15px; width: 8px; background: #fff0b3; border-radius: 60% 40% 52% 48%; }
.candle-halo { position: absolute; bottom: calc(100% - 35px); left: 50%; translate: -50% 0; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle,#ffd68147,transparent 68%); animation: halo-pulse 2s ease-in-out infinite alternate; transition: opacity .5s; }
.smoke { position: absolute; width: 5px; height: 35px; bottom: calc(100% + 4px); left: 4px; background: linear-gradient(transparent,#ad9b8270,transparent); filter: blur(2px); border-radius: 50%; opacity: 0; }
.is-blown .flame { opacity: 0; scale: .2; animation: none; }
.is-blown .candle-halo { opacity: 0; animation: none; }
.is-blown .smoke { animation: smoke-rise 1.7s ease-out both; }
.candle-button { position: relative; background: var(--wine); color: #fff8ec; box-shadow: 0 4px 0 #552235; padding-inline: 24px; min-width: 225px; }
.candle-button:hover { background: #63263a; }
.candle-button:active { transform: translateY(3px); box-shadow: 0 1px 0 #552235; }
.wish-result { color: #865a65; font-size: 16px; line-height: 1.8; min-height: 30px; margin-top: 17px; }
.party-dialog .small-link { color: #806155; border-color: #c7b4a3; }
.balloon-hint { color: #89776b; font-size: 14px; margin-top: 20px; }
.party-dialog .balloon-field { position: absolute; overflow: visible; z-index: 2; }
.party-dialog .balloon { pointer-events: auto; animation-name: balloon-hover; bottom: auto; top: var(--top); animation-duration: var(--flight); animation-delay: var(--delay); animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.party-dialog .confetti-canvas { z-index: 5; }
.party-sparkle { position: absolute; font: 29px/1 Georgia, serif; color: #c4ab7d; pointer-events: none; }
.sparkle-left { left: 19%; top: 49%; }
.sparkle-right { right: 22%; top: 14%; font-size: 24px; color: #9ca48a; }
.noscript { text-align: center; background: #efe4d0; padding: 15px; }
@keyframes duck-nod { 50% { transform: scale(1.035) rotate(-1deg); } }
@keyframes date-glow { 0%,100% { opacity: .4; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.025); } }
@keyframes letter-reveal { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cake-arrive { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes flame-dance { 0% { transform: rotate(calc(-5deg + var(--flame-lean, 0deg))) scale(.94,1.04); } 35% { transform: rotate(calc(3deg + var(--flame-lean, 0deg))) scale(1.02,.96); } 70% { transform: rotate(calc(-2deg + var(--flame-lean, 0deg))) scale(.92,1.1); } 100% { transform: rotate(calc(5deg + var(--flame-lean, 0deg))) scale(1.04,.97); } }
@keyframes halo-pulse { from { opacity: .62; scale: .95; } to { opacity: 1; scale: 1.08; } }
@keyframes smoke-rise { 0% { opacity: 0; transform: translateY(0) rotate(0); } 20% { opacity: .65; } 100% { opacity: 0; transform: translate(22px,-75px) rotate(-20deg) scale(1.7); } }
@keyframes string-sway { from { rotate: -12deg; } to { rotate: 15deg; } }
@keyframes balloon-rise { 0% { transform: translate3d(0,0,0) rotate(-9deg); } 25% { transform: translate3d(25px,calc(-25vh - 70px),0) rotate(8deg); } 50% { transform: translate3d(-18px,calc(-50vh - 140px),0) rotate(-7deg); } 75% { transform: translate3d(30px,calc(-75vh - 210px),0) rotate(10deg); } 100% { transform: translate3d(0,calc(-100vh - 300px),0) rotate(-5deg); } }
@keyframes balloon-hover { 0%,100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-12px) rotate(6deg); } }
@media (min-width: 1450px) { .hero { padding-block: 83px; } }
@media (max-width: 1100px) { .wrap { width: calc(100% - 72px); } .hero { gap: 55px; } h1 { font-size: 70px; } .hero-description { font-size: 17px; } .hero-actions { gap: 19px; } }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .site-header { height: 85px; }
  .header-date { font-size: 14px; letter-spacing: 2px; padding: 9px 19px; }
  .hero { grid-template-columns: 1fr; gap: 37px; padding-block: 40px 37px; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; margin-bottom: 19px; }
  h1 { font-size: 67px; }
  .hero-description { max-width: 445px; margin-inline: auto; margin-top: 22px; }
  .countdown-wrap { margin-top: 26px; }
  .countdown { margin-inline: auto; max-width: 340px; }
  .hero-actions { justify-content: center; margin-top: 27px; }
  .hero-art { width: min(365px,calc(100% - 26px)); margin-inline: auto; padding-top: 12px; }
  footer { font-size: 14px; padding-block: 24px; }
}
@media (max-width: 650px) {
  .site-header { display: grid; grid-template-columns: 1fr 1fr; height: auto; padding-block: 18px 22px; gap: 15px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .music-button { grid-column: 2; grid-row: 1; justify-self: end; }
  .header-date { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .letter-card { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 30px 26px; }
  .letter-card-copy h2 { font-size: 22px; }
  .envelope { scale: .8; }
}
@media (max-width: 450px) {
  .wrap { width: calc(100% - 40px); }
  .brand { font-size: 28px; }
  .brand span { font-size: 20px; }
  .header-date { font-size: 14px; letter-spacing: 2px; }
  .site-header { gap: 12px; height: auto; }
  .music-button { gap: 8px; font-size: 13px; padding: 9px 14px; }
  .music-icon { font-size: 24px; }
  .hero { padding-top: 33px; gap: 33px; }
  .eyebrow { font-size: 13px; gap: 10px; }
  h1 { font-size: 59px; }
  .hero-description { font-size: 16px; line-height: 1.95; }
  .countdown { max-width: 310px; }
  .time-unit > span { font-size: 35px; }
  .time-unit small { font-size: 13px; }
  .countdown-note { font-size: 13px; }
  .hero-actions { gap: 20px; }
  .button { padding-inline: 21px; font-size: 15px; gap: 12px; }
  .text-button { font-size: 14px; }
  .hero-art { max-width: 310px; }
  .letter-card { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 28px 20px; margin-bottom: 28px; border-radius: 19px; }
  .letter-card::before { right: 12px; font-size: 21px; }
  .letter-card::after { right: 15px; bottom: 23px; font-size: 24px; }
  .letter-card-copy h2 { font-size: 19px; }
  .letter-card-eyebrow { font-size: 13px; }
  .letter-card-description { font-size: 14px; margin-top: 7px; }
  .letter-open { font-size: 14px; padding: 7px 12px; gap: 8px; min-height: 44px; margin-top: 15px; }
  .envelope { scale: .64; }
  .letter-dialog { padding: 43px 27px 27px; }
  .letter-dialog p { font-size: 17px; }
  .letter-dialog h2 { font-size: 38px; }
  .letter-dialog .letter-signature { font-size: 19px; }
  .letter-signature span { font-size: 14px; }
  .party-dialog { padding: 16px 12px; }
  .party-content { width: 100%; padding: 48px 23px 24px; border-radius: 24px; }
  .party-close { top: 12px; left: 12px; }
  .party-eyebrow { font-size: 13px; }
  .party-content h2 { font-size: 23px; }
  #party-description { font-size: 15px; }
  .party-scene { height: 218px; }
  .cake { scale: .88; transform-origin: center bottom; }
  .wish-result { font-size: 16px; max-width: 290px; }
  .balloon-hint { font-size: 13px; margin-top: 20px; }
  .toast { font-size: 14px; }
}
@media (max-width: 350px) { .hero-actions { gap: 15px; } .hero-actions .button { padding-inline: 18px; } h1 { font-size: 54px; } }
@media (max-height: 650px) and (min-width: 650px) { .party-dialog { padding-block: 16px; } .party-content { padding-top: 38px; padding-bottom: 22px; } .party-scene { height: 210px; } .balloon-hint { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .letter-card:hover .envelope, .letter-card:focus-within .envelope { rotate: 10deg; }
  .letter-card:hover .envelope-paper, .letter-card:focus-within .envelope-paper { transform: rotate(-5deg); }
  .balloon-field, .confetti-canvas { display: none; }
  .flame { transform: none; }
  .candle-halo { opacity: .85; }
  .is-blown .candle-halo { opacity: 0; }
}
.birthday-mode .countdown-note{font-size:18px;color:var(--sage);line-height:1.9}.page-hidden *, .page-hidden *::before, .page-hidden *::after{animation-play-state:paused!important}
.intro-loading, .intro-loading body { overflow: hidden; }
.loading-screen { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 22px; background: var(--paper); color: var(--wine); }
.loading-screen[open] { display: grid; place-items: center; animation: none; }
.loading-screen::backdrop { background: var(--paper); }
.loading-content { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
#loading-title { font-size: 19px; }
.loading-video { display: block; width: auto; height: min(65dvh, 510px); max-width: 100%; object-fit: contain; border-radius: 18px; background: #eee5db; }
.loading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.loading-actions button { min-height: 44px; }
