:root {
    --green: #173c32;
    --green-light: #2c6650;
    --red: #a63835;
    --gold: #e8bd70;
    --paper: #fff9ec;
    --ink: #28382f;
}
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background:
      radial-gradient(ellipse at 50% 20%, rgba(56,91,103,.58), transparent 52%),
      linear-gradient(160deg, #122c32, #203d3b 55%, #102b2c);
}
.snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.snow i { position: absolute; top: -10px; width: 5px; height: 5px; background: white; border-radius: 50%; opacity: .75; animation: snowfall 15s linear infinite; }
.snow i:nth-child(1){left:8%;animation-duration:13s}.snow i:nth-child(2){left:21%;animation-duration:19s;animation-delay:-4s}
.snow i:nth-child(3){left:39%;animation-duration:16s;animation-delay:-8s}.snow i:nth-child(4){left:57%;animation-duration:21s;animation-delay:-2s}
.snow i:nth-child(5){left:72%;animation-duration:14s;animation-delay:-6s}.snow i:nth-child(6){left:88%;animation-duration:18s}
.snow i:nth-child(7){left:96%;animation-duration:23s;animation-delay:-11s}
@keyframes snowfall { to { transform: translate(35px, 110vh); } }

.site-header { position: relative; z-index: 1; text-align: center; padding: 34px 16px 22px; color: #fff6e7; }
.eyebrow { margin: 0 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font: 700 .72rem Arial,sans-serif; }
h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.8rem); font-style: italic; font-weight: 500; text-shadow: 0 3px 18px #071a19; }
.lead { margin: 10px 0 0; color: #f4e7cf; font-size: clamp(1rem,2vw,1.25rem); }
.layout { position: relative; z-index: 1; width: min(1200px, calc(100% - 32px)); margin: 0 auto 30px; display: grid; grid-template-columns: minmax(290px, .82fr) minmax(420px, 1.18fr); gap: 28px; align-items: start; }
.form-card { position: relative; background: var(--paper); border: 1px solid #e9d7b7; border-radius: 20px; padding: 30px; box-shadow: 0 18px 50px #061b1c88; }
.ribbon { position: absolute; top: -17px; left: calc(50% - 25px); width: 50px; height: 50px; display:grid;place-items:center; background:var(--red);border:3px solid #e8bd70;border-radius:50%;font-size:1.5rem; }
.form-card h2 { margin: 12px 0 10px; text-align: center; color: #8f2928; font-size: 1.8rem; }
.intro { text-align:center; line-height:1.55; margin:0 0 22px; }
label { display:block; font:700 .92rem Arial,sans-serif; color:#32463a; margin:15px 0 8px; }
textarea,input[type=text],select { width:100%; border:1px solid #cbb99e; border-radius:10px; background:#fffdf8; padding:12px 13px; color:#28382f; font: 1rem Arial,sans-serif; }
textarea { min-height:125px; resize:vertical; line-height:1.5; }
textarea:focus,input:focus,select:focus { outline:3px solid #d9b66c66; border-color:#a27b3d; }
.counter { text-align:right; color:#796f5f; font: .78rem Arial,sans-serif; margin-top:5px; }
.checkline { display:flex; gap:10px; align-items:flex-start; font-weight:400; line-height:1.4; }
.checkline input { width:18px;height:18px;accent-color:var(--green);flex:none; }
button { cursor:pointer; }
#submitButton { width:100%; margin-top:17px; padding:15px; border:0; border-radius:999px; color:white; background:linear-gradient(#b3423b,#862522); font:700 1rem Arial,sans-serif; box-shadow:0 5px 13px #6d211d55; }
#submitButton:hover { filter:brightness(1.08); transform:translateY(-1px); }
#submitButton:disabled { opacity:.65; cursor:wait; }
.form-note { text-align:center; color:#786e5d; font: .8rem/1.45 Arial,sans-serif; }
.form-message { display:none; margin-top:12px; padding:12px; border-radius:10px; background:#e7f0e5; color:#244b35; font: .9rem/1.5 Arial,sans-serif; }
.form-message.show { display:block; }
.honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }

.tree-section { color:#fff5e4; text-align:center; }
.tree-heading { display:flex; justify-content:space-between; align-items:end; gap:15px; text-align:left; }
.tree-heading h2 { margin:0; font-size:clamp(1.7rem,3vw,2.5rem); font-weight:500; }
.tree-heading .eyebrow { margin-bottom:7px; }
.wish-count { display:flex; flex-direction:column; align-items:center; min-width:85px; padding:9px 13px; border:1px solid #dcb76b88; border-radius:12px; background:#122e2d99; }
.wish-count strong { color:var(--gold); font-size:1.8rem; line-height:1; }
.wish-count span { font: .7rem Arial,sans-serif; margin-top:5px; }
.tree-instruction { color:#f4e7cf; margin:13px 0 4px; font-style:italic; }
.tree-stage { position:relative; width:min(100%,620px); height:590px; margin:0 auto; overflow:hidden; }
.star { position:absolute; top:12px; left:50%; transform:translateX(-50%); z-index:5; color:#ffe39a; font-size:3.5rem; text-shadow:0 0 12px #ffd76d,0 0 30px #ffc84c; }
.tree { position:absolute; left:50%; transform:translateX(-50%); width:0;height:0; border-left:0 solid transparent;border-right:0 solid transparent; filter:drop-shadow(0 8px 5px #061b1b88); }
.tree-one { top:72px;border-left:95px solid transparent;border-right:95px solid transparent;border-bottom:155px solid #2e7950; }
.tree-two { top:150px;border-left:150px solid transparent;border-right:150px solid transparent;border-bottom:205px solid #236744; }
.tree-three { top:255px;border-left:205px solid transparent;border-right:205px solid transparent;border-bottom:245px solid #1b593d; }
.tree-trunk { position:absolute;top:488px;left:calc(50% - 28px);width:56px;height:72px;background:linear-gradient(90deg,#57351f,#94613a,#51301d);border-radius:3px; }
.tree-garland { position:absolute;left:50%;z-index:2;width:310px;height:100px;border-bottom:3px solid #e8bd70;border-radius:0 0 50% 50%;transform:translateX(-50%) rotate(-7deg);opacity:.8;pointer-events:none; }
.garland-one { top:180px; }.garland-two { top:315px;width:400px;transform:translateX(-50%) rotate(6deg); }
.tree-lights { position:absolute;top:105px;left:50%;transform:translateX(-50%);width:90%;z-index:3;color:#ffe7a1;text-shadow:0 0 8px #ffe7a1;letter-spacing:.35em;line-height:5.4;opacity:.8;pointer-events:none; }
.ornaments { position:absolute;inset:60px 0 45px;z-index:4; }
.empty-tree { position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);width:180px;color:#f7e7c8;font:italic 1rem/1.6 Georgia,serif;text-shadow:0 2px 5px #102b20; }
.wish-card { position:absolute; width:54px;height:43px; padding:0; border:2px solid #e6c98e; border-radius:7px 7px 10px 10px; background:linear-gradient(145deg,#fff7e4,#e9d3a9); color:#9d2d2b; box-shadow:0 3px 9px #061b1c88; font-size:1.35rem; transform:translate(-50%,-50%) rotate(var(--tilt)); transition:transform .18s,box-shadow .18s; }
.wish-card::before { content:"";position:absolute;top:-8px;left:50%;width:12px;height:8px;border:2px solid #d7b76f;border-bottom:0;border-radius:8px 8px 0 0;transform:translateX(-50%); }
.wish-card:hover,.wish-card:focus-visible { z-index:10; transform:translate(-50%,-50%) rotate(0) scale(1.18); box-shadow:0 0 0 4px #f6d27a66,0 7px 16px #061b1caa; outline:none; }
.presents { position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:90%;display:flex;justify-content:space-between;font-size:2.8rem; }
.tree-legend { color:#f1dfc2; font-style:italic; padding:3px 0 15px; }
.tree-legend span { color:#e8bd70; }
.site-footer { position:relative;z-index:1;text-align:center;color:#d5d7c8;padding:10px 16px 28px;font: .8rem Arial,sans-serif; }

.modal { display:none;position:fixed;inset:0;z-index:20;align-items:center;justify-content:center;padding:20px; }
.modal.open { display:flex; }
.modal-backdrop { position:absolute;inset:0;background:#061817cc;backdrop-filter:blur(4px); }
.wish-paper { position:relative;width:min(100%,500px);max-height:85vh;overflow:auto;padding:34px 30px 25px;background:var(--paper);border:5px double #d8b977;border-radius:16px;text-align:center;box-shadow:0 25px 80px #0008; }
.close-modal { position:absolute;right:12px;top:8px;border:0;background:transparent;color:#75302a;font-size:2rem;line-height:1; }
.paper-decoration { color:#b38a42;font-size:1.6rem; }
.paper-kicker { color:#8b6c3a;text-transform:uppercase;letter-spacing:.15em;font:700 .7rem Arial,sans-serif; }
.wish-paper h2 { color:#942d2b;font-size:2rem;margin:8px 0 18px; }
.modal-wish { white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.2rem;line-height:1.65;font-style:italic; }
.paper-meta { display:flex;flex-direction:column;gap:7px;border-top:1px solid #e2d2b5;padding-top:15px;margin-top:20px;color:#75654d;font: .85rem Arial,sans-serif; }
.paper-heart { margin-top:15px;color:#a83b36;font-size:2rem; }

@media(max-width:850px) {
 .layout { grid-template-columns:1fr;max-width:650px; }
 .tree-section { order:2; }
 .form-card { order:1; }
 .tree-stage { height:560px; }
}
@media(max-width:480px) {
 .layout { width:calc(100% - 20px);gap:22px; }
 .form-card { padding:24px 18px; }
 .tree-stage { height:490px; transform-origin:top center; }
 .tree-one { top:70px;border-left-width:72px;border-right-width:72px;border-bottom-width:125px; }
 .tree-two { top:135px;border-left-width:115px;border-right-width:115px;border-bottom-width:170px; }
 .tree-three { top:220px;border-left-width:155px;border-right-width:155px;border-bottom-width:200px; }
 .tree-trunk { top:420px;height:60px; }
 .wish-card { width:46px;height:38px;font-size:1.1rem; }
 .tree-garland { width:240px;top:160px; }
 .garland-two { width:300px;top:275px; }
 .tree-lights { top:95px;line-height:4.5; }
 .presents { font-size:2rem; }
 .tree-heading { align-items:center; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important;transition:none!important; } }
