:root{color-scheme:dark;--night:#141629;--plum:#302337;--cream:#fff2dc;--muted:#d4bfce;--gold:#efbd70;--ink:#503725;--paper:#faf0d8;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}html{min-height:100%;scrollbar-color:#80647d #171729;scrollbar-width:thin}body{margin:0;min-width:320px;background:var(--night);color:var(--cream);font-family:'Nunito',sans-serif;font-size:16px;line-height:1.5}body:before{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(#10142418,#10142435),url('assets/winter.webp') center center/cover no-repeat}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ffcf89;outline-offset:6px}::selection{background:#f0bd76;color:#302337}h1,h2,p{margin:0}h1,h2{text-wrap:balance}h1:focus{outline:none}button{touch-action:manipulation}.shell{min-height:100svh;display:flex;flex-direction:column;align-items:center;padding:18px 24px 16px}.site-header{display:flex;align-items:center;gap:12px;width:min(100%,1000px);font-size:13px;letter-spacing:.07em;color:#e9d9ca}.little-star{color:var(--gold);font-size:22px}.icon-button{margin-left:auto;display:grid;place-items:center;width:40px;height:40px;border:1px solid #e5bb783d;border-radius:50%;color:#f4dfbf;background:#1e20344d}.icon-button svg{width:21px;height:21px}.icon-button[aria-pressed=false]{opacity:.55}#stage{width:100%;display:flex;justify-content:center;align-items:center;flex:1;padding:28px 0}footer{display:flex;align-items:center;gap:9px;color:#e3d4d5;font-size:13px;text-align:center;justify-content:center;padding:8px 0}footer svg{width:18px;height:18px;fill:none;stroke:#e6ad77;stroke-width:1.5}#snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}.card{width:min(100%,540px);padding:26px 38px 22px;background:var(--plum);border:1px solid #d8ae7599;border-radius:28px;text-align:center;position:relative;isolation:isolate;animation:arrive .55s var(--ease) both;overflow:hidden}.card h1{font-size:clamp(27px,3.2vw,37px);line-height:1.16;font-weight:900;letter-spacing:-.025em}.intro h1{font-size:clamp(32px,4vw,44px);max-width:380px;margin:auto}.tiny-label{font-size:12px;letter-spacing:.17em;text-transform:uppercase;font-weight:800;color:#e8c796}.intro .tiny-label{margin-bottom:14px}.intro .subtitle{margin-top:16px;font-size:17px;color:var(--muted)}.art{background-image:url('assets/characters.webp');background-size:200% 200%;background-repeat:no-repeat;aspect-ratio:1;width:100%;max-width:340px;margin:0 auto;mask-image:linear-gradient(transparent,#000 6%,#000 90%,transparent)}.art-letter{background-position:0 0}.art-hug{background-position:100% 0}.art-cozy{background-position:0 100%}.art-contract{background-position:100% 100%}.quiz .art{width:min(100%,280px);margin-top:5px;margin-bottom:-4px}.progress-header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#e4c49d;font-size:13px;font-weight:700}.back{background:none;border:0;color:var(--muted);padding:4px 0;font-size:13px;display:flex;gap:5px;align-items:center}.back svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.5}.progress{display:flex;gap:6px;margin-top:12px}.progress span{flex:1;height:5px;border-radius:4px;background:#6d536b}.progress .filled{background:var(--gold)}.question-subtitle{font-size:16px;margin-top:13px;color:#e4ccd9}.actions{display:grid;gap:10px;margin-top:24px}.button{width:100%;min-height:54px;border-radius:14px;padding:13px 18px;font-weight:800;font-size:18px;line-height:1.35;transition:transform .25s var(--ease),background .2s,opacity .25s;border:1px solid transparent;position:relative}.button:hover{transform:translateY(-2px)}.button:active{transform:translateY(1px)}.button.primary{background:linear-gradient(105deg,#ffd080,#efad52);color:#352218;border-color:#ffe0a0}.button.primary:hover{background:linear-gradient(105deg,#ffdc9f,#f8bd6d)}.button.secondary{background:#614b64;color:#fff0e9;border-color:#937c96}.button.secondary:hover{background:#705873}.text-button{color:#e5c9d5;background:none;border:0;text-underline-offset:5px;text-decoration:underline;padding:12px 8px;font-size:15px}.text-button:hover{color:#ffe2b5}.note{font-family:'Caveat',cursive;font-size:22px;color:#e4c2a0;margin-top:14px}.feedback{min-height:25px;font-size:14px;color:#f2d29a;margin-top:12px}.feedback:not(:empty){animation:arrive .3s ease}.scratch-box{width:min(100%,340px);aspect-ratio:1;position:relative;margin:8px auto 0;overflow:hidden;border-radius:18px}.scratch-box .art{width:100%;max-width:none}.scratch-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;transition:opacity .8s ease}.scratch-canvas.revealed{opacity:0;pointer-events:none}.scratch-hint{margin:3px 0 12px;color:#e7d1df;font-size:16px}.intro .text-button{font-size:13px}.intro-start{animation:arrive .6s var(--ease)}.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}.dodge-zone{position:relative;min-height:65px;display:flex;align-items:center;justify-content:center}.dodge-zone .button{width:auto;max-width:78%;min-width:190px;transition:transform .24s var(--ease)}.shiver{animation:shiver .4s ease}.melted{transform:scale(.06) !important;opacity:0;pointer-events:none}.theme-doodle .actions{gap:15px}.theme-doodle .button{font-family:'Caveat',cursive;font-size:29px;color:#573b32;background:#fff0d5;border:3px solid #cb775a;border-radius:8px 13px 5px 11px;transform:rotate(-1deg);min-height:61px;padding:8px 12px}.theme-doodle .button.secondary{border-color:#83946b;transform:rotate(1deg)}.theme-doodle .button:hover{transform:rotate(0deg) scale(1.025)}.theme-list .question-subtitle{font-family:'Caveat',cursive;font-size:24px;color:#f5d8a8}.theme-ticket:after{content:'';display:block;position:absolute;left:0;right:0;top:71px;border-top:1px dashed #b998734d}.ticket-route{display:flex;align-items:center;gap:14px;justify-content:center;color:#efcea4;font-size:14px;margin-bottom:14px}.ticket-route span:nth-child(2){width:55px;border-top:1px dashed #d4ae76}.theme-ticket .art{width:240px}.contract{background:var(--paper);color:var(--ink);width:min(100%,650px);padding:32px 36px 25px;border:4px double #a5885d;border-radius:22px;overflow:hidden;font-family:'Lora',serif}.department{font-size:12px;letter-spacing:.17em;font-weight:500;line-height:1.5;color:#795c3c;text-align:center;border-bottom:1px solid #b4986d;padding-bottom:15px}.contract-top{display:grid;grid-template-columns:1fr 1fr;align-items:center;margin:12px 0 8px;gap:8px}.contract h1{font-family:'Lora',serif;font-weight:500;text-align:left;font-size:34px;line-height:1.12;letter-spacing:-.035em}.contract .art{width:100%;mask-image:radial-gradient(ellipse at center,#000 48%,transparent 71%);border-radius:50%;mix-blend-mode:multiply}.contract-lead{text-align:left;font-size:17px;line-height:1.6}.contract-list{list-style:none;text-align:left;padding:0;margin:17px 0 22px;font-size:16px;line-height:1.55}.contract-list li{display:flex;gap:12px;margin:11px 0}.check-mark{color:#9c4d37;flex-shrink:0;width:18px;height:21px;margin-top:3px;stroke:currentColor;fill:none;stroke-width:1.8}.signature-row{border-top:1px solid #b4986d;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;font-size:13px}.signature-line{display:inline-block;min-width:110px;border-bottom:1px solid #9f815d;font-family:'Caveat',cursive;font-size:31px;line-height:1.2;height:38px;vertical-align:middle}.signature-line.signed{animation:sign .65s ease both}.contract .actions{margin-top:12px;padding-right:84px}.contract .button{font-size:16px;font-family:'Lora',serif;border-radius:9px}.contract .primary{background:#a47a42;color:#fff7e6;border:1px solid #876030}.contract .primary:hover{background:#906633}.contract .secondary{color:#70502f;background:transparent;border:1px solid #a98a5e}.contract .secondary:hover{background:#f1e0be}.contract:focus-within button:focus-visible{outline-color:#945624}.stamp{position:absolute;right:22px;bottom:76px;width:86px;height:86px;border:3px double #bb5552;color:#ad4542;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;letter-spacing:.08em;line-height:1.5;font-weight:600;transform:rotate(-16deg);opacity:.35}.stamp.approved{opacity:1;animation:stamp .5s var(--ease) both}.contract .note{font-size:20px;color:#795b3d;margin-top:19px}.success .art{max-width:340px}.success h1{font-size:38px}.success .question-subtitle{margin:20px auto 0;max-width:350px}.success .seal-label{display:inline-block;font-size:12px;letter-spacing:.15em;text-transform:uppercase;border-block:1px solid #c99564;padding:8px 5px;margin-top:23px;color:#eac197}.success .actions{margin-top:18px}dialog{color:var(--cream);background:var(--plum);width:min(540px,calc(100% - 32px));max-height:90svh;padding:26px 32px 30px;border:1px solid #ddb47a;border-radius:24px;text-align:center;overflow-y:auto;font-family:'Lora',serif}dialog::backdrop{background:#0c0b1bc7;backdrop-filter:blur(6px)}dialog[open]{animation:arrive .35s var(--ease)}dialog .art{max-width:210px;margin-top:-10px;margin-bottom:-13px}dialog h2{font-size:29px;line-height:1.2}dialog p{font-size:16px;margin-top:15px}dialog .clause{font-size:22px;line-height:1.45}dialog .legal-joke{font-size:14px;font-style:italic;color:#edc77c;margin:18px 0 23px}.ornament{color:var(--gold);margin-top:10px}.close-button{position:absolute;right:12px;top:8px;border:0;background:none;color:#f4dba5;font-size:32px;line-height:1;padding:7px;z-index:1}dialog .button{font-family:'Nunito',sans-serif}.noscript{position:fixed;inset:20%;padding:35px;background:var(--plum);z-index:5}.celebration{position:fixed;top:-25px;left:var(--x);width:9px;height:13px;background:var(--c);z-index:6;pointer-events:none;animation:confetti var(--duration) linear forwards;animation-delay:var(--delay);border-radius:2px}body.modal-open{overflow:hidden}
@keyframes arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes shiver{20%,60%{transform:translateX(-5px) rotate(-1deg)}40%,80%{transform:translateX(5px) rotate(1deg)}}@keyframes sign{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}@keyframes stamp{from{transform:rotate(-16deg) scale(1.65);opacity:0}to{transform:rotate(-16deg) scale(1);opacity:1}}@keyframes confetti{to{transform:translate3d(70px,105vh,0) rotate(680deg)}}
@media(min-width:900px) and (min-height:850px){.card{padding-top:30px;padding-bottom:28px}.quiz .art{width:310px}.quiz h1{font-size:38px}.actions{margin-top:28px}#stage{padding:32px 0}}
@media(max-width:600px){.shell{padding:12px 16px}.site-header{font-size:10px;letter-spacing:.04em;gap:8px}.icon-button{height:34px;width:34px}.little-star{font-size:19px}#stage{padding:20px 0}.card{padding:22px 22px 18px;border-radius:24px}.quiz .art{width:255px}.card h1{font-size:29px}.intro h1{font-size:35px}.button{font-size:17px;min-height:53px}.actions{margin-top:22px}.progress{gap:5px}.progress-header{font-size:12px}.question-subtitle{font-size:15px}footer{font-size:11px;gap:6px}.contract{padding:22px 20px}.contract h1{font-size:27px}.contract-top{gap:2px;margin:15px 0}.department{font-size:10px}.contract-list{font-size:15px}.contract-lead{font-size:16px}.contract .actions{padding-right:0;margin-bottom:65px}.stamp{width:66px;height:66px;right:calc(50% - 33px);bottom:54px;font-size:9px}.signature-row{font-size:11px;gap:8px}.signature-line{min-width:80px;font-size:27px}.contract .note{font-size:18px;line-height:1.2}.success h1{font-size:33px}dialog{padding:22px 24px}dialog h2{font-size:25px}dialog .clause{font-size:20px}dialog .art{max-width:170px}.dodge-zone .button{min-width:160px}}
@media(max-width:360px){.shell{padding-inline:10px}.card{padding-inline:18px}.card h1{font-size:26px}.site-header{font-size:9px}.signature-row{flex-wrap:wrap}.contract h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important;scroll-behavior:auto!important}#snow{display:none}}


.contract .art-contract{background-image:url('assets/contract.webp');background-size:contain;background-position:center;mask-image:none;mix-blend-mode:normal;border-radius:0;}

.theme-doodle .button.secondary:hover{background:#fff0d5;}
.contract .primary{background:#906633;}
.contract .primary:hover{background:#795127;}
.signature-line.signed{display:inline-flex;align-items:center;gap:5px;animation:none;white-space:nowrap}
.signature-name{display:inline-block;animation:sign 1.2s ease both}
.signature-heart{width:27px;height:27px;flex-shrink:0;overflow:visible;transform:rotate(-9deg)}
.signature-heart path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:draw-heart 1.3s 1.25s ease-in-out forwards}
@keyframes draw-heart{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.signature-name,.signature-heart path{animation:none}.signature-heart path{stroke-dashoffset:0}}
