:root { color-scheme: dark; font-family: "Segoe UI", Arial, sans-serif; color: #f7f8fa; background: #091923; font-synthesis: none; --gold: #f3cd85; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; padding: 32px 20px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 0, #203d52 0, #0b1e2a 65%, #081620 100%); }
.christmas-card { width: min(100%, 960px); background: #102a3b; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 90px #0006; border: 1px solid #ffffff0d; }
.scene { position: relative; aspect-ratio: 16 / 8.5; isolation: isolate; background: #1a344f; overflow: hidden; }
.scene img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .7s; }
.scene::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #102a3b66); pointer-events: none; }
canvas { pointer-events: none; }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-caption { position: absolute; z-index: 1; bottom: 18px; left: 22px; padding: 6px 11px; border: 1px solid #ffffff30; border-radius: 20px; background: #10213180; color: #fff4dd; font-size: .75rem; backdrop-filter: blur(8px); }
.tiny-star { color: var(--gold); margin-right: 5px; }
.lights { position: absolute; z-index: 1; left: 0; right: 0; top: -8px; height: 28px; border-top: 1px solid #413827; display: flex; justify-content: space-around; }
.bulb { width: 5px; height: 10px; margin-top: 7px; border-radius: 50%; background: #ffe0a0; box-shadow: 0 0 12px 3px #ffcb6a99; animation: twinkle 3s ease-in-out infinite alternate; }
.bulb:nth-child(3n) { background: #eeb9a6; animation-delay: -1.7s; }
.bulb:nth-child(2n) { animation-delay: -.8s; }
@keyframes twinkle { to { opacity: .45; box-shadow: 0 0 5px 1px #ffcb6a55; } }
.card-content { padding: 22px 32px 20px; text-align: center; }
.brand { margin: -10px auto 12px; }
.brand-badge { display: block; width: min(100%, 300px); height: auto; margin: auto; }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.65rem); font-weight: 650; line-height: 1.17; letter-spacing: -.025em; margin: 0 0 13px; }
.subtitle { margin: 0 0 23px; color: var(--gold); font-size: 1rem; }
.subtitle span { color: #fa6682; display: inline-block; margin-left: 4px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.time-unit { background: #ffffff0e; border: 1px solid #ffffff36; border-radius: 14px; padding: 13px 6px 11px; }
.time-unit > span:first-child { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.unit-label { display: block; margin-top: 7px; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: #f6dba9; }
.arrival-date { font-size: .9rem; margin: 17px 0 24px; color: #eef4f7; }
.message-area { border-top: 1px solid #ffffff28; padding: 23px 8px 5px; }
h2 { margin: 0 0 12px; font-size: 1.3rem; color: var(--gold); font-weight: 600; line-height: 1.4; }
.message-area p { margin: 0 auto; max-width: 680px; font-size: 1rem; font-style: italic; line-height: 1.6; }
.experience-controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 21px 0; }
button, select { font: inherit; font-size: .8rem; min-height: 36px; color: #dce6eb; border: 1px solid #ffffff26; background: #ffffff06; padding: 8px 12px; border-radius: 20px; cursor: pointer; }
button:hover, select:hover { background: #ffffff12; border-color: #f3cd8570; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
footer { font-size: .78rem; color: #b9c9d3; line-height: 1.6; }
footer span { margin: 0 3px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 10; }
.gallery { padding: 18px 0; }
#gallery-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
figure { margin: 0; } figure img { width: 100%; border-radius: 12px; } figcaption { font-size: .85rem; padding: 8px; }
.notice { text-align: center; max-width: 600px; }
.motion-off .bulb { animation: none; }
@media (max-width: 600px) {
  body { padding: 14px 10px; }
  .christmas-card { border-radius: 18px; }
  .scene { aspect-ratio: 4 / 3; }
  .card-content { padding: 22px 16px 19px; }
  .brand-badge { width: min(100%, 270px); }
  .countdown { gap: 7px; }
  .time-unit { border-radius: 11px; padding: 12px 3px; }
  .unit-label { font-size: .65rem; letter-spacing: .02em; }
  .subtitle { font-size: .9rem; }
  .message-area { padding-inline: 0; }
  h2 { font-size: 1.15rem; }
  .scene-caption { left: 14px; bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
