@font-face{font-family:Santa Sans;src:local("Avenir Next"),local("Avenir"),local("Segoe UI");font-display:swap}
:root{--cream:#f6f3eb;--paper:#fffcf6;--green:#193c31;--ink:#263d32;--muted:#687066;--gold:#a38b55;--line:#dcded2;--red:#983f36;--ease-out:cubic-bezier(.23,1,.32,1)}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:"Santa Sans",system-ui,sans-serif;font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='1' cy='1' r='.5' fill='%23193c31' opacity='.035'/%3E%3C/svg%3E")}a{color:inherit;text-underline-offset:4px}button,input{font:inherit}button,a,input,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--gold);outline-offset:5px}input{border:1px solid #b8c0b1;background:var(--paper);border-radius:8px;padding:13px 15px;color:var(--ink);width:100%;min-height:50px}input::placeholder{color:#757a70}label{display:block}h1,h2,p{margin:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.1}h2{font-size:34px}p{color:var(--muted)}[hidden]{display:none!important}.wrap{width:min(1120px,calc(100% - 112px));margin-inline:auto}.site-header{height:116px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:20px;letter-spacing:-.8px;font-weight:650}.brand-star{font-size:35px;line-height:1;color:var(--green);font-weight:400}.brand-year{font-size:10px;font-weight:600;letter-spacing:1.3px;border:1px solid #cbd2c3;border-radius:4px;padding:3px 7px;margin-left:2px}.header-note{font-size:13px;color:var(--muted)}.main-grid{display:grid;grid-template-columns:1fr 466px;gap:80px;padding:72px 0 66px;align-items:center}.eyebrow{font-family:"Santa Sans",system-ui,sans-serif;font-size:10px;letter-spacing:2px;font-weight:650;color:var(--muted);line-height:1.7}.tiny-star{color:var(--gold);font-size:19px;vertical-align:-2px;margin-right:5px}.intro h1{font-size:94px;letter-spacing:-5px;line-height:.98;margin:26px 0 23px}.intro h1 em{font-weight:400;color:var(--gold);font-size:102px;letter-spacing:-4px}.intro-copy{font-size:23px;line-height:1.45;color:var(--ink);letter-spacing:-.6px}.intro-detail{font-size:14px;max-width:320px;margin-top:17px;line-height:1.85}.gift-scene{display:block;width:280px;height:auto;margin:12px 0 -6px 7px}.intro-caption{font-size:11px;color:var(--muted)}.intro-caption span{color:var(--gold);font-size:17px;margin-right:7px}.draw-panel{background:var(--paper);border:1px solid #d9ddcf;border-radius:18px;box-shadow:0 8px 40px #193c3105;padding:27px 32px 0;overflow:hidden;min-width:0}.steps{list-style:none;display:flex;justify-content:space-between;padding:0 0 25px;margin:0;border-bottom:1px solid var(--line);gap:12px}.steps li{font-size:10px;color:#797d72;display:flex;align-items:center;gap:7px;white-space:nowrap}.steps li span{font-size:9px;border:1px solid #d8ddcf;border-radius:50%;width:23px;height:23px;display:grid;place-items:center}.steps li.active{color:var(--green);font-weight:650}.steps li.active span{background:var(--green);border-color:var(--green);color:var(--cream)}.panel-heading{padding:29px 0 23px}.panel-heading .eyebrow{font-size:9px;letter-spacing:1.6px}.panel-heading h2{margin:8px 0 9px;font-size:38px;letter-spacing:-1px}.panel-heading>p:last-child{font-size:13px}.name-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0;margin:0 0 22px;padding:0;min-width:0}.name-option{position:relative;display:block;min-width:0;cursor:pointer}.name-option input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;min-height:0}.name-option-content{min-height:52px;display:flex;gap:10px;align-items:center;justify-content:space-between;border:1px solid #dce0d5;border-radius:7px;padding:10px 13px;font-size:13px;transition:background .15s ease,border-color .15s ease}.name-option-name{overflow-wrap:anywhere}.radio-mark{width:15px;height:15px;border:1px solid #b8c1b1;border-radius:50%;flex-shrink:0;display:grid;place-items:center}.radio-mark::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--green);opacity:0}.name-option input:checked+.name-option-content{border-color:var(--green);background:#edf0e6;box-shadow:inset 0 0 0 .5px var(--green)}.name-option input:checked+.name-option-content .radio-mark{border-color:var(--green)}.name-option input:checked+.name-option-content .radio-mark::after{opacity:1}.name-option input:focus-visible+.name-option-content{outline:3px solid var(--gold);outline-offset:3px}.name-option:last-child:nth-child(odd){grid-column:1/-1}.name-option small{display:block;color:var(--muted);font-size:10px;line-height:1.3}.button{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:52px;border-radius:7px;border:1px solid transparent;padding:14px 18px;text-decoration:none;font-size:13px;font-weight:550;transition:background .15s ease,transform .12s var(--ease-out);line-height:1.5}.button:active:not(:disabled){transform:scale(.98)}.primary{background:var(--green);color:#fffdf6;width:100%}.primary>span:last-child{font-size:20px;line-height:1}.secondary{background:transparent;color:var(--green);border-color:#bac4b1}.selection-note{font-size:10px;text-align:center;margin-top:12px;line-height:1.7;min-height:34px}.panel-bottom{margin:13px -32px 0;padding:17px 12px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:10px;background:#f3f3e980}.progress-section{border-top:1px solid var(--line);padding-top:33px;padding-bottom:47px}.progress-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.progress-heading h2{font-size:28px;margin-top:7px;letter-spacing:-.5px}.progress-count{font-size:13px;white-space:nowrap}.progress-count strong{font-size:19px;color:var(--green);font-weight:550;margin-right:3px}progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:4px;border:0;border-radius:10px;overflow:hidden;background:#dfe3d6;color:var(--green)}progress::-webkit-progress-bar{background:#dfe3d6;border-radius:10px}progress::-webkit-progress-value{background:var(--green);border-radius:10px}progress::-moz-progress-bar{background:var(--green);border-radius:10px}.participant-status{list-style:none;margin:23px 0 20px;padding:0;display:grid;grid-template-columns:repeat(7,1fr);gap:15px}.participant-status li{display:flex;align-items:center;gap:9px;font-size:12px;min-width:0}.status-icon{display:grid;place-items:center;width:29px;height:29px;border:1px solid #cdd4c4;border-radius:50%;color:#63705f;font-size:11px;flex-shrink:0}.status-icon.done{background:var(--green);color:var(--cream);border-color:var(--green)}.participant-status .status-name{color:var(--ink);overflow-wrap:anywhere}.participant-status small{display:block;font-size:9px;color:var(--muted);line-height:1.4}.status-footnote,.sync-note{font-size:11px}.sync-note{margin-top:12px;color:var(--red)}.site-footer{border-top:1px solid var(--line);padding-top:23px;padding-bottom:30px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.site-footer a{text-decoration:none;min-height:30px;display:flex;align-items:center;gap:9px}.notice{margin:16px 0;padding:13px 15px;border:1px solid #b9c8ad;border-radius:7px;background:#edf2e8;color:var(--green);font-size:13px}.notice.error{background:#f8ece7;border-color:#dcc1b9;color:#873e33}.loading-copy{font-size:13px;grid-column:1/-1;padding:20px 0}.drawing-view{min-height:431px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px}.drawing-view h2{font-size:35px}.drawing-gift{margin-bottom:22px;animation:unwrap 1s var(--ease-out) infinite alternate}.drawing-view>p:not(.eyebrow){font-size:13px}.text-button{background:transparent;border:0;padding:13px 0;font-size:12px;color:var(--green);text-decoration:underline;text-underline-offset:5px;min-height:44px}.result-view{position:relative;text-align:center;padding:25px 20px 24px;margin:22px -12px 0;border-radius:12px;background:var(--green);color:var(--cream);overflow:hidden;animation:reveal .25s var(--ease-out)}.result-star{display:block;font-size:44px;color:#d9bf86;line-height:1.4}.result-view .eyebrow{color:#d2d9c8;margin:9px 0 10px}.result-view h2{font-family:"Santa Sans",system-ui,sans-serif;font-size:12px;line-height:1.5;color:#d6ddce;outline-offset:4px}.recipient-name{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,5vw,63px);line-height:1.2;color:#f9edcf;margin:12px 0 15px;letter-spacing:-2px;overflow-wrap:anywhere}.result-divider{color:#c9b37f;margin-bottom:12px}.result-message{font-size:12px;color:#d6ddce;line-height:1.8}.saved-note{font-size:9px;color:#c9d3c0;margin:25px 0 16px}.saved-note span{margin-right:5px}.result-button{width:100%;background:#f5f0df;color:var(--green);font-size:11px;min-height:46px}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-12px;width:5px;height:9px;background:#ddc58d;opacity:0;animation:confetti-fall 1s var(--ease-out) forwards}.confetti i:nth-child(3n){background:#eff0d5;border-radius:50%}.confetti i:nth-child(3n+1){background:#bc7259}.skip-link{position:fixed;top:8px;left:8px;z-index:10;background:var(--green);color:white;padding:10px 18px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{padding:24px;background:#f8ece7;color:var(--red);text-align:center}.admin-container{max-width:740px;margin:48px auto 64px}.back-link{display:inline-block;font-size:12px;text-decoration:none;margin-bottom:35px;min-height:30px}.admin-title{font-size:55px;letter-spacing:-2px;margin:11px 0 16px}.admin-intro{font-size:14px;margin-bottom:32px}.admin-paper{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:28px;margin-top:26px}.admin-paper h2{font-size:28px;margin-bottom:12px}.admin-paper p{font-size:12px}.stack-form{display:flex;flex-direction:column;gap:20px}.stack-form label,.add-form label{font-size:12px;font-weight:550;margin-bottom:6px}.stack-form .primary{margin-top:6px}#login-section{max-width:440px}.admin-summary{display:flex;justify-content:space-between;align-items:center;margin:35px 0 20px}.admin-summary h2{font-size:29px;margin-top:6px}.admin-participants{list-style:none;margin:20px 0 0;padding:0}.admin-participants li{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:14px 0}.admin-person{display:flex;align-items:center;gap:12px;min-width:0;overflow-wrap:anywhere}.admin-person small{display:block;font-size:11px;color:var(--muted)}.remove-button{background:transparent;border:0;color:var(--red);font-size:12px;min-height:44px;padding:10px}.add-form{display:flex;align-items:flex-end;gap:12px;margin-top:24px}.add-form>div{flex:1}.reset-section{margin-top:34px;padding-top:27px;border-top:1px solid var(--line);display:flex;align-items:center;gap:24px;justify-content:space-between}.reset-section h2{font-size:24px;margin-bottom:10px}.reset-section p{font-size:12px;max-width:390px}.danger-outline{border-color:#c7a198;background:transparent;color:var(--red);flex-shrink:0;font-size:12px}.danger{background:var(--red);color:white}dialog{border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);width:min(480px,calc(100% - 32px));padding:30px;max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:#10251e99;backdrop-filter:blur(3px)}dialog h2{font-size:29px}dialog p{font-size:13px}.dialog-actions{display:flex;gap:12px}.dialog-actions>*{flex:1;justify-content:center}
@keyframes unwrap{from{transform:rotate(-7deg) translateY(3px)}to{transform:rotate(7deg) translateY(-5px)}}@keyframes reveal{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes confetti-fall{0%{opacity:0;transform:translateY(-10px) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(470px) rotate(240deg)}}
@media(hover:hover) and (pointer:fine){.primary:hover:not(:disabled){background:#28533f}.name-option:hover .name-option-content{border-color:#7f9279;background:#f0f2e8}.secondary:hover:not(:disabled){background:#e9eddf}.site-footer a:hover,.back-link:hover{color:var(--green);text-decoration:underline}.result-button:hover{background:#e7d9b7}.danger-outline:hover{background:#f5e8e2}.danger:hover{background:#7e322b}}
@media(min-width:1400px){.main-grid{padding-top:86px;padding-bottom:80px}.intro h1{font-size:105px}.intro h1 em{font-size:112px}}
@media(max-width:1050px){.wrap{width:calc(100% - 64px)}.main-grid{grid-template-columns:1fr 420px;gap:40px}.intro h1{font-size:78px}.intro h1 em{font-size:88px}.intro .eyebrow{font-size:8px;letter-spacing:1.5px}.participant-status{gap:10px}.participant-status li{gap:6px}.status-icon{width:25px;height:25px}}
@media(max-width:800px){.wrap{width:min(540px,calc(100% - 40px))}.site-header{height:86px}.wordmark{font-size:18px}.brand-star{font-size:30px}.header-note{font-size:10px}.main-grid{grid-template-columns:1fr;gap:30px;padding:35px 0 38px}.intro{position:relative;padding-right:110px}.intro>.eyebrow{font-size:8px;letter-spacing:1.2px;white-space:nowrap}.intro h1{font-size:66px;letter-spacing:-3px;line-height:1.02;margin:18px 0 15px}.intro h1 em{font-size:69px;letter-spacing:-2px}.intro-copy{font-size:17px;line-height:1.55}.intro-detail{font-size:12px;margin-top:13px;max-width:none;width:calc(100% + 110px)}.gift-scene{position:absolute;right:-15px;top:43px;width:160px;margin:0}.intro-caption{display:none}.draw-panel{padding:23px 25px 0}.steps{padding-bottom:20px}.panel-heading{padding:22px 0 20px}.panel-heading h2{font-size:35px}.name-options{gap:9px;margin-bottom:20px}.name-option-content{min-height:52px;padding:11px 13px}.selection-note{min-height:24px}.panel-bottom{margin-inline:-25px;padding:15px 8px;font-size:9px}.progress-section{padding-top:25px;padding-bottom:29px}.progress-heading{align-items:flex-start;gap:10px;margin-bottom:20px}.progress-heading h2{font-size:23px;max-width:190px;line-height:1.2}.progress-heading .eyebrow{font-size:8px;letter-spacing:1.2px}.progress-count{font-size:11px;align-self:flex-end}.progress-count strong{font-size:17px}.participant-status{grid-template-columns:repeat(3,1fr);row-gap:18px;margin-top:23px}.participant-status li{gap:8px}.status-icon{height:29px;width:29px}.participant-status small{font-size:9px}.status-footnote{font-size:10px;line-height:1.8;max-width:280px}.site-footer{font-size:9px;padding-top:18px;padding-bottom:20px}.drawing-view{min-height:425px}.result-view{margin-top:20px;padding-bottom:23px}.recipient-name{font-size:55px}.admin-container{margin-top:30px}.admin-title{font-size:43px}.admin-paper{padding:22px}.reset-section{flex-direction:column;align-items:flex-start}.reset-section .button{width:100%}.add-form{flex-direction:column;align-items:stretch}.admin-summary h2{font-size:25px}}
@media(max-width:370px){.wrap{width:calc(100% - 32px)}.header-note{display:none}.draw-panel{padding:20px 20px 0}.panel-bottom{margin-inline:-20px}.intro h1{font-size:59px}.intro h1 em{font-size:64px}.gift-scene{width:139px;right:-10px;top:55px}.intro>.eyebrow{font-size:7px}.participant-status{grid-template-columns:repeat(2,1fr)}.steps{gap:6px}.steps li{font-size:9px;gap:5px}}
.intro h1 span{white-space:nowrap}
@media(max-width:800px){.intro{padding-right:0}.intro h1{font-size:56px;letter-spacing:-3px}.intro h1 em{font-size:70px}.intro-detail{width:100%}.gift-scene{top:86px;right:-4px;width:143px}.intro-copy{font-size:16px}.intro h1{margin-bottom:15px}}
@media(max-width:370px){.intro h1{font-size:48px}.intro h1 em{font-size:64px}.gift-scene{top:80px;width:126px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.confetti{display:none}.result-view{animation:none}.button:active:not(:disabled){transform:none}}

/* The existing palette and type remain the foundation of the Christmas details. */
:root{--burgundy:#793f46;--gold-light:#ddc58d;--ease-in-out:cubic-bezier(.77,0,.175,1)}
.intro{position:relative}
.intro h1{font-size:72px;letter-spacing:-3.6px}
.intro h1 em{font-size:78px;letter-spacing:-3px;color:#927847}
.intro::after{content:"✧";position:absolute;right:38px;top:62px;color:var(--gold);font-size:26px}
.intro-detail{max-width:310px}
.gift-scene{width:265px;margin-top:18px}
.panel-heading .eyebrow{color:var(--burgundy);letter-spacing:1.9px}
.name-option-content{min-height:56px;height:100%;font-size:14px;transition:background .16s ease,border-color .16s ease,transform .12s var(--ease-out)}
.name-option:last-child{grid-column:auto}
.name-option:last-of-type:nth-of-type(odd){grid-column:1/-1}
.radio-mark{width:20px;height:20px;transition:background .16s ease,border-color .16s ease}
.radio-mark::after{content:"✓";background:none;width:auto;height:auto;line-height:1;color:var(--paper);font-size:12px;transform:scale(.9);transition:opacity .16s var(--ease-out),transform .16s var(--ease-out)}
.name-option input:checked+.name-option-content{background:#e6eddf;border-color:var(--green)}
.name-option input:checked+.name-option-content .radio-mark{background:var(--green)}
.name-option input:checked+.name-option-content .radio-mark::after{transform:scale(1)}
.name-option:active .name-option-content{transform:scale(.98)}
.name-option input:disabled+.name-option-content{cursor:wait}
.name-option small{font-size:11px;margin-top:2px}
.button{font-size:14px}
.selection-note{font-size:11px;min-height:36px}
.draw-feedback{font-size:12px;margin:8px 0 16px;color:var(--green);text-align:center}
.panel-bottom{font-size:11px;min-height:53px;gap:4px}
.panel-bottom .tiny-star{line-height:1;font-size:21px;margin:0 5px 0 0}
.skip-link{top:-100px;transform:none;opacity:0;pointer-events:none}
.skip-link:focus{top:8px;transform:none;opacity:1;pointer-events:auto}

.progress-section{padding-top:35px;padding-bottom:42px;scroll-margin-top:28px}
.progress-heading{margin-bottom:23px}
.progress-heading h2{font-size:33px;max-width:none;letter-spacing:-.8px}
.progress-subtitle{font-size:14px;margin-top:10px}
.progress-count{background:#e9eddf;border:1px solid #dce2d2;border-radius:8px;padding:9px 15px;font-size:13px;color:var(--green)}
.progress-count strong{font-size:21px;letter-spacing:-.5px}
.progress-track{height:6px;border-radius:8px;background:#dde2d4;overflow:hidden}
.progress-fill{display:block;width:100%;height:100%;background:var(--green);transform:scaleX(0);transform-origin:left center;transition:transform .3s var(--ease-out);border-radius:8px}
.participant-status{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0 21px}
.participant-status li{gap:13px;min-height:85px;padding:15px 17px;border:1px solid #dce0d3;border-radius:10px;background:var(--paper)}
.participant-status li.has-drawn{background:#ebf0e5;border-color:#cbd6c2}
.participant-status .status-name{font-size:15px;font-weight:550;line-height:1.4}
.participant-status small{font-size:12px;margin-top:4px;font-weight:400}
.status-icon{width:36px;height:36px;font-size:15px;position:relative;background:#f2f1e8}
.status-icon.waiting::before{content:"";width:14px;height:14px;border:1.5px solid currentColor;border-radius:50%}
.status-icon.waiting::after{content:"";position:absolute;left:17px;top:11px;width:4px;height:7px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;border-bottom-left-radius:1px}
.status-footnote{font-size:12px;max-width:none}
.completion{display:flex;align-items:center;justify-content:center;gap:18px;border:1px solid #ded7c3;border-radius:10px;background:#efecdd;padding:18px 22px;margin:22px 0}
.completion p{color:var(--green);font-family:Georgia,"Times New Roman",serif;font-size:23px;line-height:1.35}
.completion-stars{color:#927847;display:flex;align-items:center;gap:9px;font-size:18px;flex-shrink:0}
.completion-stars>span:nth-child(2){font-size:27px}
.completion.is-celebrating .completion-stars>span{animation:gold-sparkle .85s var(--ease-out) both}
.completion.is-celebrating .completion-stars>span:nth-child(2){animation-delay:80ms}
.completion.is-celebrating .completion-stars>span:nth-child(3){animation-delay:160ms}

/* A single, server-confirmed present opening. Every moving layer is composited. */
.drawing-view{min-height:485px;gap:10px;padding:27px 0 14px}
.drawing-view h2{font-size:33px}
.drawing-view .text-button{margin-top:6px}
.present-scene{position:relative;width:280px;height:250px;flex-shrink:0;margin:5px 0 0;isolation:isolate}
.present-shadow{position:absolute;left:45px;bottom:16px;width:190px;height:14px;border-radius:50%;background:#233c2920}
.present-box{position:absolute;left:61px;bottom:28px;width:158px;height:122px;background:#234d3b;border:1px solid #153729;border-radius:3px 3px 7px 7px;box-shadow:inset -15px 0 #193e2f,inset 0 5px #173d2e;overflow:hidden;z-index:3}
.present-ribbon-front{position:absolute;left:68px;top:0;bottom:0;width:20px;background:#c9ae72;box-shadow:inset -4px 0 #b39861;transform-origin:center top}
.present-band{position:absolute;left:0;right:0;top:48px;height:13px;background:#c9ae72;box-shadow:inset 0 -3px #b39861;transform-origin:left center}
.present-tag{position:absolute;right:20px;top:25px;width:27px;height:38px;display:grid;place-items:center;background:var(--cream);color:var(--burgundy);border-radius:2px;transform:rotate(13deg);font-size:19px;box-shadow:1px 2px 3px #10281c24}
.present-tag::before{content:"";position:absolute;left:12px;top:-16px;width:1px;height:21px;background:#ddc58d;transform:rotate(-20deg)}
.present-lid{position:absolute;left:51px;top:82px;width:178px;height:30px;border:1px solid #224231;border-radius:5px 5px 2px 2px;background:#315d47;box-shadow:inset 0 4px #3f6c51,0 5px 4px #10281c15;z-index:5;transform-origin:center bottom}
.present-lid-ribbon{position:absolute;left:78px;top:-1px;width:20px;bottom:0;background:#d5bc80;box-shadow:inset -4px 0 #c1a466}
.present-bow{position:absolute;left:58px;top:-29px;width:62px;height:35px}
.bow-loop{position:absolute;top:0;width:34px;height:24px;border:5px solid #d5bc80;box-shadow:inset 0 0 0 1px #b99c60;border-radius:60% 65% 12% 60%;transform-origin:right bottom}
.bow-left{left:-2px;transform:rotate(20deg)}
.bow-right{right:-3px;transform:rotate(70deg);transform-origin:left bottom;border-radius:65% 60% 60% 12%}
.bow-knot{position:absolute;left:25px;top:18px;width:15px;height:12px;background:#c7a86b;border-radius:4px;transform:rotate(-8deg);z-index:2}
.bow-tail{position:absolute;top:26px;width:10px;height:28px;background:#d5bc80;transform-origin:top center;border-radius:0 0 2px 2px}
.bow-tail-left{left:24px;transform:rotate(26deg)}
.bow-tail-right{left:34px;transform:rotate(-23deg)}
.present-card{position:absolute;left:79px;bottom:68px;width:122px;height:147px;border-radius:5px;border:1px solid #d4c49f;background:#fffaf0;color:var(--green);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;box-shadow:0 4px 12px #1b392511;transform:translateY(34px) rotate(-4deg) scale(.97);opacity:0;z-index:2}
.present-card::before{content:"";position:absolute;inset:7px;border:1px solid #e3d5b2;border-radius:2px}
.present-card>span:first-child{font-size:29px;color:#a88a4b}
.present-card-greeting{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:25px}
.present-card-rule{height:1px;width:26px;background:#b39a64;margin-top:2px}
.present-star{position:absolute;color:#aa8b4d;font-size:27px;opacity:0}
.present-star-one{left:28px;top:35px}
.present-star-two{right:25px;top:110px;font-size:20px}
.is-opening .bow-left{animation:untie-left .4s var(--ease-out) .1s forwards}
.is-opening .bow-right{animation:untie-right .4s var(--ease-out) .1s forwards}
.is-opening .bow-knot{animation:untie-knot .3s var(--ease-out) .2s forwards}
.is-opening .bow-tail-left{animation:untie-tail-left .4s var(--ease-out) .15s forwards}
.is-opening .bow-tail-right{animation:untie-tail-right .4s var(--ease-out) .15s forwards}
.is-opening .present-ribbon-front{animation:release-ribbon .4s var(--ease-out) .2s forwards}
.is-opening .present-band{animation:release-band .4s var(--ease-out) .2s forwards}
.is-opening .present-lid{animation:lift-lid .6s var(--ease-out) .4s forwards}
.is-opening .present-card{animation:lift-card .65s var(--ease-out) .65s forwards}
.is-opening .present-star{animation:opening-sparkle .7s var(--ease-out) .65s both}
.is-opening .present-star-two{animation-delay:.8s}
.is-opening .present-shadow{animation:soften-shadow 1.3s var(--ease-out) forwards}

.result-view{min-height:457px;padding:25px 22px 22px}
.result-view .eyebrow{font-size:9px;letter-spacing:1.7px;margin:10px 0 18px;color:#d5dec8}
.result-view h2{font-size:16px;line-height:1.6;overflow-wrap:anywhere;color:#e2e7d9}
.result-star{font-size:40px;color:var(--gold-light)}
.recipient-name{font-size:64px;margin:12px 0 15px;color:#f9edcf}
.result-message{font-size:13px}
.saved-note{font-size:12px;color:#d8e0cf;margin:24px 0 18px}
.result-button{font-size:12px;min-height:50px;gap:12px}
.result-view.is-celebrating .recipient-name{animation:name-reveal .22s var(--ease-out) .04s both}
.result-view.is-celebrating .result-star{animation:gold-sparkle .85s var(--ease-out) both}
.confetti i{height:7px;width:4px;background:var(--gold-light);animation:confetti-fall .9s var(--ease-out) forwards}
.confetti i:nth-child(3n+1){background:#b77b77}
.gold-glitter{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.gold-glitter i{position:absolute;display:block;font-style:normal;color:var(--gold-light);font-size:17px;opacity:0;animation:glitter-reveal .8s var(--ease-out) both}
.result-view>h2,.result-view>.recipient-name,.result-view>.result-button{position:relative;z-index:1}

@keyframes untie-left{to{transform:translate(-27px,6px) rotate(-27deg) scaleX(.8);opacity:0}}
@keyframes untie-right{to{transform:translate(27px,6px) rotate(117deg) scaleX(.8);opacity:0}}
@keyframes untie-knot{to{transform:translateY(8px) rotate(15deg);opacity:0}}
@keyframes untie-tail-left{to{transform:translate(-25px,14px) rotate(72deg);opacity:0}}
@keyframes untie-tail-right{to{transform:translate(25px,14px) rotate(-72deg);opacity:0}}
@keyframes release-ribbon{to{transform:translateY(25px) scaleY(.86);opacity:0}}
@keyframes release-band{to{transform:translateX(35px) scaleX(.85);opacity:0}}
@keyframes lift-lid{0%{transform:translateY(0) rotate(0);opacity:1}70%{opacity:1}100%{transform:translate(18px,-89px) rotate(10deg);opacity:0}}
@keyframes lift-card{0%{transform:translateY(34px) rotate(-4deg) scale(.97);opacity:0}30%{opacity:1}100%{transform:translateY(-54px) rotate(-4deg) scale(1);opacity:1}}
@keyframes opening-sparkle{0%{opacity:0;transform:translateY(5px) scale(.9)}45%{opacity:1}100%{opacity:0;transform:translateY(-7px) scale(1)}}
@keyframes soften-shadow{to{transform:scaleX(.88);opacity:.65}}
@keyframes name-reveal{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes gold-sparkle{0%{opacity:.45;transform:rotate(-12deg) scale(.94)}45%{opacity:1;transform:rotate(4deg) scale(1.05)}100%{opacity:1;transform:rotate(0) scale(1)}}
@keyframes glitter-reveal{0%{opacity:0;transform:translateY(8px) scale(.9) rotate(-15deg)}30%{opacity:.9}100%{opacity:0;transform:translateY(-10px) scale(1.1) rotate(15deg)}}

@media(hover:hover) and (pointer:fine){
  .name-option:hover .name-option-content{transform:translateY(-1px)}
  .name-option input:checked+.name-option-content{background:#e6eddf;border-color:var(--green)}
}
@media(min-width:1400px){.intro h1{font-size:80px}.intro h1 em{font-size:86px}.main-grid{padding-top:64px;padding-bottom:56px}}
@media(min-width:801px) and (max-width:1050px){.intro h1{font-size:60px}.intro h1 em{font-size:68px}.intro::after{right:0;top:50px}.participant-status{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){
  .site-header{height:76px}
  .main-grid{gap:23px;padding:23px 0 34px}
  .intro h1{display:flex;align-items:baseline;gap:10px;font-size:40px;letter-spacing:-1.9px;margin:12px 0 10px}
  .intro h1 br{display:none}
  .intro h1 em{font-size:40px;letter-spacing:-1.9px}
  .intro-copy,.gift-scene,.intro-caption{display:none}
  .intro-detail{font-size:13px;max-width:320px;margin-top:0;line-height:1.7}
  .intro::after{content:none}
  .draw-panel{padding:21px 24px 0}
  .panel-heading{padding:19px 0 18px}
  .panel-heading h2{font-size:34px}
  .panel-heading>p:last-child{font-size:13px}
  .name-options{gap:9px;margin-bottom:18px}
  .name-option-content{min-height:54px;padding:11px 14px}
  .panel-bottom{margin-inline:-24px;font-size:10px;padding:14px 8px}
  .selection-note{font-size:10px;min-height:29px}
  .drawing-view{min-height:481px;padding-top:27px}
  .drawing-view h2{font-size:30px}
  .drawing-view>.eyebrow{font-size:8px}
  .present-scene{margin-top:6px}
  .result-view{margin:20px -10px 0;min-height:456px;padding-inline:18px}
  .recipient-name{font-size:57px}
  .progress-section{padding-top:27px;padding-bottom:28px}
  .progress-heading{flex-wrap:wrap;gap:18px;margin-bottom:20px}
  .progress-heading h2{font-size:29px;max-width:none}
  .progress-subtitle{font-size:13px;margin-top:8px}
  .progress-count{padding:7px 12px;font-size:12px;align-self:flex-start}
  .progress-count strong{font-size:19px}
  .participant-status{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
  .participant-status li{gap:10px;padding:13px 11px;min-height:82px}
  .participant-status .status-name{font-size:14px}
  .participant-status small{font-size:11px}
  .status-footnote{font-size:11px;line-height:1.8}
  .completion{align-items:center;gap:12px;padding:17px 15px}
  .completion p{font-size:21px}
  .completion-stars{gap:5px;font-size:13px}
  .completion-stars>span:nth-child(2){font-size:23px}
}
@media(max-width:370px){
  .intro h1,.intro h1 em{font-size:34px;letter-spacing:-1.6px}
  .intro h1{gap:9px}
  .draw-panel{padding-inline:19px}
  .panel-bottom{margin-inline:-19px;font-size:9px}
  .participant-status li{padding:12px 9px;gap:8px}
  .participant-status .status-icon{width:30px;height:30px}
  .participant-status .waiting::after{left:14px;top:8px}
  .participant-status .status-name{font-size:13px}
  .present-scene{transform:scale(.9);margin-inline:-5px}
}
@media(prefers-reduced-motion:reduce){
  .name-option:active .name-option-content,.name-option:hover .name-option-content{transform:none}
  .gold-glitter,.confetti{display:none}
  .result-view.is-celebrating .recipient-name,.completion.is-celebrating .completion-stars>span{opacity:1;transform:none}
}

.brand-star,.result-star,.present-card>span:first-child{font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-style:normal;font-weight:400}
@media(max-width:800px){
  :root{--flow-safe-bottom:env(safe-area-inset-bottom,0px);--flow-gap:clamp(8px,1.5dvh,12px)}
  body{min-height:100dvh}
  .site-header{height:calc(54px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}
  .brand-star{font-size:28px}
  .main-grid{gap:var(--flow-gap);padding-top:var(--flow-gap);padding-bottom:20px}
  .intro>.eyebrow{display:none}
  .intro h1,.intro h1 em{font-size:36px;letter-spacing:-1.7px}
  .intro h1{margin:0 0 6px;line-height:1.1}
  .intro-detail{font-size:13px;line-height:1.5;max-width:345px}
  .draw-panel{padding-top:14px;scroll-margin-top:8px;scroll-margin-bottom:calc(var(--flow-safe-bottom) + 12px)}
  .steps{padding-bottom:12px}
  .panel-heading{padding:13px 0 12px}
  .panel-heading h2{font-size:30px;margin:5px 0 6px}
  .name-options{gap:7px;margin-bottom:12px}
  .name-option-content{min-height:46px;padding:6px 11px;gap:8px;line-height:1.4}
  .name-option small{font-size:10px;line-height:1.2;margin-top:0;white-space:nowrap}
  .radio-mark{width:18px;height:18px}
  #draw-button,.result-button{min-height:48px;padding-block:12px;scroll-margin-bottom:calc(var(--flow-safe-bottom) + 12px)}
  .selection-note{min-height:0;margin-top:8px;line-height:1.5}
  .panel-bottom{min-height:38px;margin-top:10px;padding-block:9px}
  .draw-active .intro h1,.draw-active .intro h1 em{font-size:29px;letter-spacing:-1.2px}
  .draw-active .intro h1{margin:0}
  .draw-active .intro-detail{display:none}
  .drawing-view{min-height:0;gap:8px;padding:16px 0 8px;scroll-margin-bottom:calc(var(--flow-safe-bottom) + 12px)}
  .drawing-view h2{font-size:28px}
  .present-scene{margin:0}
  .drawing-view .text-button{margin-top:0;min-height:44px}
  .result-view{min-height:0;margin-top:12px;padding:16px 18px;scroll-margin-bottom:calc(var(--flow-safe-bottom) + 12px)}
  .result-star{font-size:32px;line-height:1.1}
  .result-view .eyebrow{margin:8px 0 10px}
  .result-view h2{font-size:15px;line-height:1.4}
  .recipient-name{font-size:50px;line-height:1.12;margin:8px 0 10px}
  .result-divider{font-size:13px;line-height:1.3;margin-bottom:8px}
  .result-message{font-size:12px;line-height:1.55}
  .saved-note{font-size:11px;line-height:1.5;margin:14px 0 12px}
  .site-footer{padding-bottom:calc(20px + var(--flow-safe-bottom))}
}
@media(max-width:800px) and (max-height:740px){
  .intro-detail{display:none}
}
@media(max-width:370px){
  .intro h1,.intro h1 em{font-size:32px}
}
