*{box-sizing:border-box}html{background:#02091a;color:#fff6df;font-family:'Segoe UI',Arial,sans-serif}body{margin:0;min-height:100vh;display:grid;place-items:center;padding:25px 20px 30px;overflow-x:hidden;isolation:isolate}body:before{content:'';position:fixed;inset:-30px;background:linear-gradient(#02091abb,#02091aee),url('assets/hero-v2.png') center/cover;filter:blur(24px);z-index:-2}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.7}button:focus-visible{outline:3px solid #fff4c6;outline-offset:5px}h1,h2,p{margin:0}h1:focus,h2:focus{outline:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:700;color:#ffe5a1;font-style:italic;text-shadow:0 2px 3px #361a08,0 0 22px #edbd4744}em{font-style:inherit;color:#ffd56d}.game-wrap{width:min(100%,1200px)}.screen{position:relative;width:100%;aspect-ratio:16/9;min-height:560px;isolation:isolate;overflow:hidden;border:2px solid #cfa65b;border-radius:17px;background:#071b32;box-shadow:0 0 3px #ffe8b7,inset 0 0 18px #ffc55155,0 14px 70px #000b}.backdrop,.shade,#snow{position:absolute;inset:0;pointer-events:none}.backdrop{z-index:-3;background:url('assets/hero-v2.png') center/cover;transition:filter .6s,opacity .6s}.shade{z-index:-2;background:linear-gradient(90deg,#00142f30,transparent 60%)}.screen:after{content:'';position:absolute;inset:7px;border:1px solid #ffe0a94a;border-radius:10px;pointer-events:none;z-index:8}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 6px;color:#a0a9ba;font-size:9px;letter-spacing:.4px}.toolbar strong{font-weight:400;color:#d0c1a0}.tools{display:flex;align-items:center;gap:8px}.tools button{border:1px solid #e8c27d55;border-radius:50%;height:25px;width:25px;background:#051225;color:#eac987;font-size:12px}.tools button[aria-pressed=true]{background:#6d5026;color:#fff}.back{position:absolute;left:24px;top:20px;z-index:10;background:#06162b88;border:1px solid #ddb56977;border-radius:30px;padding:7px 14px;font-size:10px}.back[hidden]{display:none}#stage{position:absolute;inset:0}.intro-copy{position:absolute;top:25%;left:6%;width:40%;text-align:center}.winter-symbol{font-family:Georgia,serif;font-size:38px;color:#ffe09a;display:block;margin-bottom:10px;text-shadow:0 0 20px #ffbf48}.intro-copy h1{font-size:clamp(35px,4vw,57px);line-height:1.04;letter-spacing:-1px}.intro-copy p{font-size:13px;line-height:1.6;margin:20px auto 0;max-width:350px;color:#fff;text-shadow:0 2px 5px #000,0 0 10px #00132d}.gold-button,.mini-gold{background:linear-gradient(180deg,#fff1b3 0%,#ffd976 40%,#eab64b 100%);color:#432709;border:1px solid #ffdf93;border-radius:30px;box-shadow:0 0 13px #ffd05d6b,inset 0 1px 1px #fff9;padding:13px 26px;display:inline-flex;align-items:center;justify-content:center;gap:22px;font-weight:750;font-size:14px;transition:transform .2s,filter .2s;white-space:nowrap}.gold-button:hover:not(:disabled){transform:translateY(-3px);filter:brightness(1.12)}.gold-button b,.mini-gold b{font-size:23px;line-height:15px}.start{position:absolute;left:26%;transform:translateX(-50%);bottom:18%}.start:hover:not(:disabled){transform:translate(-50%,-3px)}.choice-heading{position:absolute;top:17%;left:5%;right:5%;text-align:center}.choice-heading h2{font-size:40px;line-height:1.1}.choice-heading p{font-size:13px;line-height:1.5;margin-top:10px;color:#e5ecf9}.screen[data-phase=choose] .backdrop,.screen[data-phase=playing] .backdrop,.screen[data-phase=opening] .backdrop{filter:blur(3px) brightness(.45);transform:scale(1.02)}.screen[data-phase=choose] .shade,.screen[data-phase=playing] .shade{background:radial-gradient(ellipse,#041c3a50,transparent)}.choices{position:absolute;left:12%;right:12%;bottom:8%;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;align-items:stretch}.choice{position:relative;isolation:isolate;border:1px solid #ffe29a;border-radius:17px;padding:10px 9px 16px;background:linear-gradient(180deg,#07224466,#071426c9);box-shadow:0 0 4px #fff0ba,inset 0 0 20px #ffc96a1a,0 0 12px #e6b65c4d;display:flex;flex-direction:column;align-items:center;transition:.25s}.choice:hover{transform:translateY(-8px);box-shadow:0 0 7px #fff4d1,0 0 25px #ffbd66aa,inset 0 0 30px #ffd57244}.choice .sprite{width:100%;aspect-ratio:1;display:block;min-height:0;filter:drop-shadow(0 12px 10px #0009);transition:transform .3s}.choice:hover .sprite{transform:scale(1.07)}.sprite{background:url('assets/globe-v2.png') var(--position,0%) center/300% 100% no-repeat;display:block}.choice strong{font-size:20px;margin:0 0 12px;font-family:Georgia,serif;color:#ffe8b6;font-weight:600}.mini-gold{font-size:12px;padding:8px 20px;gap:24px;box-shadow:0 0 8px #ffd16a77}.choice-halo{position:absolute;inset:0;z-index:-1;border-radius:16px;background:radial-gradient(ellipse at 50% 45%,#bd425151,transparent 70%)}.c1 .choice-halo{background:radial-gradient(ellipse at 50% 45%,#6692ba44,transparent 70%)}.c2 .choice-halo{background:radial-gradient(ellipse at 50% 45%,#d2a04d44,transparent 70%)}.preparation{position:absolute;top:24%;left:8%;right:8%;text-align:center}.preparation h2{font-size:33px;color:#fff;font-family:'Segoe UI',Arial,sans-serif;letter-spacing:-1px}.preparation p{font-size:13px;margin:14px 0 20px;line-height:1.6;text-shadow:0 2px 5px #000}.magic-symbol{font-family:Georgia,serif;color:#ffdb74;width:90px;height:90px;display:grid;place-items:center;margin:0 auto 25px;border:2px solid #ffd777;border-radius:50%;font-size:66px;background:radial-gradient(circle,#9c631a99,#08203faa);box-shadow:0 0 8px #fff6cf,0 0 30px #ffbd58,inset 0 0 15px #ffc046;animation:pulse 1.5s infinite}.loading{height:10px;width:250px;max-width:85%;border:1px solid #f2c563;border-radius:20px;margin:auto;overflow:hidden;background:#05142a}.loading i{display:block;height:100%;width:100%;transform-origin:left;background:linear-gradient(90deg,#f4c453,#fff4c5);animation:load 1.8s linear}.reveal{position:absolute;inset:14% 10% 5%;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.open-object{width:55%;height:72%;object-fit:contain;filter:drop-shadow(0 0 35px #ffce6955);animation:reveal 2s ease-out}.reveal h2{font-size:36px;margin-top:0;z-index:2}.reveal p{font-size:12px;margin-top:8px;z-index:2}.rays{position:absolute;inset:0;background:repeating-conic-gradient(from 10deg,#ffd05b22 0deg 10deg,transparent 10deg 25deg);mask-image:radial-gradient(ellipse,#000,transparent 65%);animation:spin 22s linear infinite;z-index:-1}.race-title{position:absolute;top:14%;left:5%;right:5%;text-align:center}.race-title h2{font-size:34px}.race-title p{font-size:12px;margin-top:7px}.race-track{position:absolute;top:32%;left:9%;right:9%;bottom:21%;padding:8px;border:1px solid #d2e9ff80;border-radius:13px;background:linear-gradient(100deg,#c0d7e940,#42698f88);box-shadow:0 5px 35px #0007}.lane{height:33.333%;position:relative;border-bottom:1px dashed #dae8f166}.lane:last-child{border:0}.lane.selected{background:linear-gradient(90deg,#e7bd5e44,transparent)}.lane-name{position:absolute;top:4px;left:8px;font-size:10px;color:#c6d7ec}.lane.selected .lane-name{color:#ffdf8c;font-weight:700}.runner{position:absolute;height:110%;width:110px;left:8px;bottom:-5px;z-index:2}.runner .sprite{width:100%;height:100%;aspect-ratio:1}.runner.galloping .sprite{animation:gallop .23s alternate infinite}.runner[data-rank]:after{content:attr(data-rank);background:#ffe099;color:#4d2e08;width:20px;height:20px;border-radius:50%;position:absolute;right:8px;top:3px;display:grid;place-items:center;font-size:11px;font-weight:bold}.finish-line{position:absolute;top:8px;bottom:8px;right:30px;width:15px;background:repeating-conic-gradient(#e9e0ca 0 25%,#17304f 0 50%) 0/16px 16px}.finish-line span{position:absolute;top:-22px;left:-7px;font-size:8px;letter-spacing:1px;color:#ffe1a4}.race-start{position:absolute;bottom:8%;left:50%;transform:translateX(-50%)}.race-start:hover:not(:disabled){transform:translate(-50%,-3px)}.race-status{position:absolute;bottom:3%;left:10%;right:10%;text-align:center;font-size:10px;color:#e2ebfc}.screen[data-phase=ready] .backdrop,.screen[data-phase=racing] .backdrop{background-image:url('assets/hero-v2.png');filter:brightness(.5)}.screen[data-game=deer][data-phase=result] .backdrop{background-image:url('assets/hero-v2.png')}.globe-instruction{position:absolute;top:17%;left:7%;width:35%;text-align:center}.globe-instruction h2{font-size:40px}.globe-instruction p{font-size:13px;line-height:1.7;margin-top:15px}.globe-touch{border:0;padding:0;background:none;position:absolute;width:50%;height:78%;right:4%;top:14%;isolation:isolate;touch-action:pan-y;border-radius:50%}.globe-touch img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 15px #9ddaff33)}.globe-light{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#fff2b7aa,transparent 65%);opacity:var(--power,0);z-index:-1;transition:opacity .3s}.globe-touch.shaking img{animation:shake .35s}.globe-touch.charged img{animation:shine 1.5s}.power{position:absolute;left:9%;bottom:30%;width:31%;text-align:center}.power>span{font-size:15px;color:#ffe4a4}.power-meter{height:9px;border:1px solid #d9b669;border-radius:20px;background:#06172fbb;margin-top:10px;overflow:hidden}.power-meter i{display:block;width:0;height:100%;background:linear-gradient(90deg,#86d8ee,#fff1ab);transition:width .2s;box-shadow:0 0 15px #fff9ce}.result-art{position:absolute;left:5%;top:16%;width:45%;height:78%;isolation:isolate}.result-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 20px #ffc55555);animation:reveal .8s}.result-copy{position:absolute;left:51%;right:6%;top:27%;text-align:center}.result-copy h2{font-size:46px}.result-copy>p{font-size:14px;margin-top:10px;text-shadow:0 2px 5px #000}.reward{border:2px solid #eec87c;border-radius:15px;padding:18px 22px;margin:23px 0;background:linear-gradient(120deg,#49300fd9,#0a1c37d9);box-shadow:0 0 5px #fff0b7,0 0 23px #ffc86688,inset 0 0 18px #efba5733;display:flex;align-items:center;justify-content:center;gap:16px}.reward-icon{font-size:44px;color:#ffe08d;line-height:1;text-shadow:0 0 15px #ffd670}.reward small{display:block;font-size:8px;letter-spacing:2px;color:#ccb584;margin-bottom:5px}.reward strong{font-size:27px;color:white;line-height:1.1;display:block}.result-actions{display:flex;justify-content:center;gap:10px}.result-actions .gold-button{font-size:12px;padding:11px 20px}.outline-button{border:1px solid #ecc16c;border-radius:30px;background:#031226c9;color:#ffe7a5;padding:10px 19px;font-size:11px;white-space:nowrap}.outline-button:hover{background:#263142}.save-state{font-size:9px;display:block;margin-top:13px;color:#fff2ca;min-height:14px}.screen[data-phase=result] .shade{background:linear-gradient(90deg,#03122211,#03122577)}.screen[data-game=deer][data-phase=result] .result-copy{top:30%;left:57%;right:5%}.screen[data-game=deer][data-phase=result] .reward{margin:20px 0}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;top:15%;left:var(--x);width:5px;height:9px;background:#ffe397;animation:confetti 2.8s var(--delay) both}.confetti i:nth-child(3n){background:#cf3045}.confetti i:nth-child(3n+1){background:#f7f7ec}#snow{z-index:7;overflow:hidden}#snow i{position:absolute;left:var(--x);top:-10px;width:var(--size);height:var(--size);border-radius:50%;background:#e2f0ffaa;box-shadow:0 0 6px #fff6;animation:snow var(--time) var(--delay) linear infinite}dialog{border:1px solid #f1ca7b;border-radius:16px;background:linear-gradient(#102c4b,#04152b);color:#fff6df;width:min(90vw,420px);padding:35px;box-shadow:0 0 35px #000a}dialog::backdrop{background:#010815cc;backdrop-filter:blur(8px)}dialog h2{font-size:30px;line-height:1.1;margin-bottom:18px}dialog p{font-size:13px;line-height:1.7;margin-bottom:20px}dialog .note{font-size:10px;color:#b2c3d9}dialog button{width:100%}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
body[data-kind=gift] .game-wrap{width:min(94vw,83vh,780px)}body[data-kind=gift] .screen{aspect-ratio:1;min-height:580px;border:0;box-shadow:0 0 6px #ffe2b7,0 0 40px #090d2a}body[data-kind=gift] .screen:after{inset:12px;border-color:#fff2}body[data-kind=gift] .intro-copy{top:25%;left:10%;width:80%}body[data-kind=gift] .winter-symbol{display:none}body[data-kind=gift] .intro-copy h1{font-family:'Segoe UI',Arial,sans-serif;font-size:clamp(28px,3vw,38px);font-weight:800;letter-spacing:-1px;color:#fff;line-height:1.1}body[data-kind=gift] .intro-copy p{font-size:12px;margin-top:12px}body[data-kind=gift] .start{left:50%;bottom:6%;min-width:230px}body[data-kind=gift] .back{top:auto;bottom:14px;left:20px;font-size:9px;padding:5px 10px}body[data-kind=gift] .choice-heading{top:27%;left:10%;right:10%}body[data-kind=gift] .choice-heading h2{font-family:'Segoe UI',Arial,sans-serif;font-size:35px;font-weight:800;color:white}body[data-kind=gift] .choices{left:9%;right:9%;bottom:10%;gap:16px}body[data-kind=gift] .choice{padding:12px 5px 15px}body[data-kind=gift] .choice strong{display:none}body[data-kind=gift] .choice .sprite{margin:5px 0 10px}body[data-kind=gift] .preparation{top:26%}body[data-kind=gift] .preparation h2{font-size:29px}body[data-kind=gift] .screen[data-phase=preparing] .shade{background:linear-gradient(#05132d33,#04112b55)}body[data-kind=gift] .screen[data-phase=choose] .backdrop{filter:blur(3px) brightness(.38)}body[data-kind=gift] .reveal{inset:24% 4% 8%}body[data-kind=gift] .open-object{width:80%;height:75%}body[data-kind=gift] .reveal h2{font-family:'Segoe UI',Arial,sans-serif;font-size:30px;font-weight:750}body[data-kind=gift] .result-art{left:20%;width:60%;height:40%;top:24%}body[data-kind=gift] .result-copy{top:62%;left:14%;right:14%}body[data-kind=gift] .result-copy h2{font-size:39px}body[data-kind=gift] .result-copy>p{font-size:12px;margin-top:5px}body[data-kind=gift] .reward{padding:12px;margin:13px 0}body[data-kind=gift] .reward strong{font-size:27px}body[data-kind=gift] .screen[data-phase=result] .backdrop{filter:brightness(.32) blur(3px)}body[data-kind=gift] .result-actions .gold-button{font-size:11px;padding:10px 18px}body[data-kind=gift] .outline-button{padding:9px 13px;font-size:10px}
@keyframes pulse{50%{box-shadow:0 0 8px #fff6cf,0 0 50px #ffbd58,inset 0 0 20px #ffc046}}@keyframes load{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes reveal{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes shake{25%,75%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}@keyframes shine{50%{filter:drop-shadow(0 0 40px #ffe8a8);transform:scale(1.07)}}@keyframes gallop{to{transform:translateY(-5px) rotate(2deg)}}@keyframes snow{to{transform:translate(30px,900px);opacity:.1}}@keyframes confetti{from{transform:translateY(-30px) rotate(var(--r));opacity:1}to{transform:translateY(600px) rotate(500deg);opacity:0}}
@media(max-width:900px){.screen{min-height:530px}.intro-copy h1{font-size:42px}.intro-copy p{font-size:12px}.choices{left:8%;right:8%;gap:18px}.choice-heading h2{font-size:35px}.choice strong{font-size:17px}.result-copy h2{font-size:35px}.reward strong{font-size:23px}.result-actions{gap:7px}.result-actions .gold-button{padding:11px 15px;font-size:11px}.outline-button{padding:10px 13px;font-size:10px}.globe-instruction h2{font-size:34px}.globe-instruction p{font-size:12px}}
@media(max-width:600px){body{padding:10px 9px 15px;display:block}.game-wrap{width:100%}.screen{aspect-ratio:auto;height:660px;min-height:0;border-radius:15px}.backdrop{background-position:72% center}.shade{background:linear-gradient(#00152e88,transparent 45%,#01132788)}.back{top:auto;left:17px;bottom:14px;font-size:9px;padding:6px 10px}.intro-copy{top:15%;left:9%;width:82%}.winter-symbol{font-size:29px;margin-bottom:7px}.intro-copy h1{font-size:42px;line-height:1.02}.intro-copy p{font-size:12px;margin-top:13px;max-width:280px}.start{left:50%;bottom:10%;font-size:13px;padding:13px 29px;min-width:200px}.screen:is([data-phase=intro],[data-phase=checking]) .backdrop{background-position:69% center}.screen:is([data-phase=intro],[data-phase=checking]) .shade{background:linear-gradient(#00152eaa,transparent 65%,#01132733)}.choice-heading{top:19%;left:8%;right:8%}.choice-heading h2{font-size:32px;line-height:1.06}.choice-heading p{font-size:11px}.choices{left:5%;right:5%;bottom:18%;gap:8px}.choice{padding:11px 3px 15px;border-radius:13px}.choice .sprite{aspect-ratio:1;transform:scale(1.07);margin-top:15px;margin-bottom:12px}.choice strong{font-size:16px;text-align:center;min-height:37px;margin:5px 0 8px;display:grid;place-items:center}.mini-gold{font-size:10px;padding:8px 14px;gap:16px}.reveal{inset:20% 3% 8%}.open-object{width:95%;height:70%}.reveal h2{font-size:30px}.result-art{top:14%;left:13%;width:74%;height:38%}.result-copy{top:53%;left:8%;right:8%}.result-copy h2{font-size:37px}.result-copy>p{font-size:12px}.reward{padding:14px 16px;margin:16px 0}.reward strong{font-size:25px}.result-actions .gold-button{padding:12px 20px;font-size:11px}.outline-button{font-size:11px}.screen[data-phase=result] .backdrop{filter:brightness(.52)}.screen[data-game=deer][data-phase=result] .result-copy{top:53%;left:8%;right:8%}.screen[data-game=deer][data-phase=result] .backdrop{background-position:30% center;filter:brightness(.8)}.screen[data-game=deer][data-phase=result] .shade{background:linear-gradient(transparent,#03182bba 60%)}.race-title{top:18%;left:5%;right:5%}.race-title h2{font-size:31px}.race-track{top:35%;left:5%;right:5%;bottom:22%}.runner{width:92px;height:100%;bottom:-6px}.lane-name{font-size:9px}.race-start{bottom:12%;font-size:12px}.race-status{bottom:7%;font-size:10px}.globe-instruction{top:17%;left:8%;width:84%}.globe-instruction h2{font-size:35px}.globe-instruction p{font-size:11px;line-height:1.5;margin-top:9px}.globe-touch{right:5%;width:90%;height:48%;top:37%}.power{left:23%;width:54%;bottom:9%}.power>span{font-size:13px}.toolbar{font-size:8px;padding:10px 3px}.tools{gap:6px}.toolbar strong{max-width:200px}body[data-kind=gift] .game-wrap{width:100%}body[data-kind=gift] .screen{min-height:0;height:660px;aspect-ratio:auto}body[data-kind=gift] .backdrop{background-position:center;background-size:100% 100%}body[data-kind=gift] .intro-copy{top:27%;left:10%;width:80%}body[data-kind=gift] .intro-copy h1{font-size:30px;line-height:1.12}body[data-kind=gift] .intro-copy p{font-size:11px}body[data-kind=gift] .start{bottom:7%;min-width:200px}body[data-kind=gift] .choice-heading{top:28%}body[data-kind=gift] .choice-heading h2{font-size:30px}body[data-kind=gift] .choice-heading p{font-size:11px}body[data-kind=gift] .choices{bottom:16%;left:5%;right:5%;gap:9px}body[data-kind=gift] .choice{padding:13px 2px}body[data-kind=gift] .choice .sprite{margin:10px 0 15px;transform:scale(1.08)}body[data-kind=gift] .preparation{top:28%}body[data-kind=gift] .preparation h2{font-size:26px}body[data-kind=gift] .magic-symbol{width:75px;height:75px;font-size:50px}body[data-kind=gift] .result-art{top:24%;left:15%;width:70%;height:34%}body[data-kind=gift] .result-copy{top:58%;left:9%;right:9%}body[data-kind=gift] .result-copy h2{font-size:36px}body[data-kind=gift] .reward{margin:16px 0;padding:15px 12px}body[data-kind=gift] .reward strong{font-size:25px}body[data-kind=gift] .result-actions{gap:8px}body[data-kind=gift] .outline-button{padding:10px 15px}body[data-kind=gift] .reveal{top:25%}body[data-kind=gift] .reveal h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}#snow{display:none}}

/* Constrain grid intrinsic sizing on shorter desktop viewports. */
body{grid-template-columns:minmax(0,1fr)}.game-wrap{min-width:0;max-width:100%}.screen{min-width:0}
@media(min-width:801px){body:not([data-kind=gift]) .screen{min-height:0}}
/* Keep the original square gift composition and image proportions on phones. */
@media(max-width:600px){
body[data-kind=gift] .screen{height:auto;aspect-ratio:1;min-height:0}
body[data-kind=gift] .backdrop{background-size:cover}
body[data-kind=gift] .intro-copy{top:26%;left:8%;width:84%}
body[data-kind=gift] .intro-copy h1{font-size:21px;line-height:1.05;letter-spacing:-.7px}
body[data-kind=gift] .intro-copy p{font-size:9px;margin-top:7px}
body[data-kind=gift] .start{bottom:6%;min-width:165px;padding:9px 19px;font-size:10px}
body[data-kind=gift] .choice-heading{top:27%}
body[data-kind=gift] .choice-heading h2{font-size:24px}
body[data-kind=gift] .choice-heading p{font-size:9px;margin-top:5px}
body[data-kind=gift] .choices{bottom:11%;left:8%;right:8%;gap:9px}
body[data-kind=gift] .choice{padding:7px 2px 10px;border-radius:12px}
body[data-kind=gift] .choice .sprite{margin:4px 0 8px;transform:none}
body[data-kind=gift] .mini-gold{font-size:9px;padding:6px 12px;gap:12px}
body[data-kind=gift] .preparation{top:27%}
body[data-kind=gift] .magic-symbol{width:49px;height:49px;font-size:34px;margin-bottom:12px}
body[data-kind=gift] .preparation h2{font-size:20px}
body[data-kind=gift] .preparation p{font-size:9px;margin:8px 0 12px}
body[data-kind=gift] .loading{height:7px;width:180px}
body[data-kind=gift] .reveal{inset:23% 4% 9%}
body[data-kind=gift] .reveal h2{font-size:23px}
body[data-kind=gift] .reveal p{font-size:9px;margin-top:5px}
body[data-kind=gift] .result-art{top:23%;left:20%;width:60%;height:35%}
body[data-kind=gift] .result-copy{top:58%;left:12%;right:12%}
body[data-kind=gift] .result-copy h2{font-size:27px;line-height:1}
body[data-kind=gift] .result-copy>p{font-size:9px;margin-top:4px}
body[data-kind=gift] .reward{margin:9px 0;padding:8px 10px;border-radius:10px;gap:10px}
body[data-kind=gift] .reward small{font-size:5px;letter-spacing:1px;margin-bottom:3px}
body[data-kind=gift] .reward strong{font-size:19px}
body[data-kind=gift] .reward-icon{font-size:26px}
body[data-kind=gift] .result-actions{gap:8px}
body[data-kind=gift] .result-actions .gold-button{font-size:8px;padding:7px 14px;gap:12px}
body[data-kind=gift] .outline-button{font-size:8px;padding:6px 10px}
body[data-kind=gift] .save-state{font-size:7px;margin-top:4px;min-height:8px}
body[data-kind=gift] .back{bottom:7px;left:10px;font-size:7px;padding:3px 7px}
.screen[data-game=door] .choice .sprite{transform:scale(1.38);margin-bottom:22px}
}
.screen[data-game=globe][data-phase=result] .backdrop,.screen[data-game=door][data-phase=result] .backdrop{background-image:url('assets/winter-scene.png')}

/* Cinematic motion layer. All decorations ignore input. */
.scene-effects{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;border-radius:inherit}.atmosphere{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1;border-radius:inherit;opacity:0;transition:opacity .6s}.screen:is([data-phase=intro],[data-phase=checking]) .atmosphere,.screen[data-phase=preparing] .atmosphere{opacity:1}.atmosphere i{position:absolute;display:block;pointer-events:none}.backdrop{translate:var(--drift-x,0px) var(--drift-y,0px);transition:filter .6s,opacity .6s,translate .5s ease-out}.aurora-veil{inset:-20%;background:conic-gradient(from 190deg at 50% 0%,transparent 0deg,#6bf7da18 22deg,transparent 35deg,#6bbaf515 50deg,transparent 75deg);filter:blur(12px);mix-blend-mode:screen;transform-origin:top;animation:aurora-drift 14s ease-in-out infinite alternate}.scene-bloom{width:30%;height:30%;left:40%;top:47%;border-radius:50%;background:radial-gradient(ellipse,#ffcf6744,transparent 65%);mix-blend-mode:screen;animation:embers 3.7s ease-in-out infinite}.screen[data-game=gift] .scene-bloom{left:32%;top:45%;width:42%;height:38%;background:radial-gradient(ellipse,#ffdc7977,transparent 63%)}.screen[data-game=deer] .scene-bloom{left:1%;top:17%;width:20%;height:32%;background:radial-gradient(ellipse,#ffbd4738,transparent 65%);animation-duration:2.7s}.screen[data-game=globe] .scene-bloom{left:51%;top:20%;width:40%;height:58%;background:radial-gradient(ellipse,#cff5ff18,#fecf691c,transparent 69%)}.glass-sheen{display:none!important}.screen[data-game=globe] .glass-sheen{display:block!important;left:50%;top:3%;width:44%;height:75%;border-radius:50%;overflow:hidden;background:linear-gradient(115deg,transparent 38%,#e7faff26 47%,#fff4 49%,transparent 54%);background-size:280% 100%;animation:glass-sweep 8s ease-in-out infinite;mix-blend-mode:screen;opacity:.65}.door-light{display:none!important}.screen[data-game=door] .door-light{display:block!important;left:74%;top:30%;width:1px;height:47%;background:linear-gradient(transparent,#ffdb90bb,transparent);box-shadow:0 0 9px 2px #ffbf4744;animation:door-breathe 4s ease-in-out infinite}.screen[data-game=door] .scene-bloom{left:53%;top:35%;width:38%;height:55%;background:radial-gradient(ellipse,#ffaf4228,transparent 70%)}
.intro-copy{animation:intro-rise .8s cubic-bezier(.2,.7,.2,1) both}.intro-copy h1{animation:title-light 1.3s ease-out both}.start{animation:button-arrive .9s .2s ease-out both}.gold-button{position:relative;overflow:hidden}.gold-button:after{content:'';position:absolute;inset:-60% -40%;background:linear-gradient(110deg,transparent 40%,#fff9 49%,transparent 58%);transform:translateX(-90%);animation:button-shine 5.5s 1.5s ease-in-out infinite;pointer-events:none}.start,.race-start{position:absolute}.choice{perspective:700px;animation:choice-arrive .55s both}.choice.c1{animation-delay:.09s}.choice.c2{animation-delay:.18s}.choice .sprite{transform-origin:50% 75%}.screen[data-game=gift][data-phase=choose] .choice .sprite{animation:gift-float 3.4s ease-in-out infinite}.screen[data-game=gift][data-phase=choose] .c1 .sprite{animation-delay:-1.2s}.screen[data-game=gift][data-phase=choose] .c2 .sprite{animation-delay:-2.4s}.choice:not(:disabled):hover{transform:translateY(-8px) rotateX(3deg);box-shadow:0 0 7px #fff4d1,0 0 32px #ffbd66bb,inset 0 0 30px #ffd57244}.choice.not-picked{opacity:.35;filter:saturate(.5);transform:scale(.94);transition:.4s}.choice.picked{opacity:1;box-shadow:0 0 8px #fff5cc,0 0 40px #ffd46caa,inset 0 0 40px #ffc54844;transform:translateY(-8px) scale(1.06);z-index:2;animation:picked-pulse .65s ease-out}.screen[data-game=door] .choice.picked .sprite{animation:door-turn .65s ease-in both}.screen[data-phase=selecting] .backdrop{filter:blur(3px) brightness(.45);transform:scale(1.02)}.screen[data-phase=selecting] .shade{background:radial-gradient(ellipse,#041c3a50,transparent)}
.reveal:before{content:'';position:absolute;left:50%;top:15%;width:8%;height:50%;background:#ffe3a777;filter:blur(22px);transform:translateX(-50%);animation:portal-open 1.9s ease-out both;pointer-events:none}.screen[data-game=door] .reveal .open-object{animation:door-unveil 1.6s cubic-bezier(.16,1,.3,1) both}.screen[data-game=gift] .reveal .open-object{animation:gift-unbox 1.4s cubic-bezier(.16,1,.3,1) both}.open-object{z-index:1}.result-copy{animation:result-rise .65s .1s both}.result-art{animation:result-rise .7s both}.reward{position:relative;overflow:hidden;animation:reward-arrive .7s .3s both}.reward:after{content:'';position:absolute;inset:-70% -30%;background:linear-gradient(110deg,transparent 42%,#fff2c84d 50%,transparent 58%);transform:translateX(-100%);animation:reward-sheen 1.2s .7s both;pointer-events:none}.screen[data-celebrate=true]:after{animation:frame-celebrate 1.6s ease-out}.result-actions{animation:result-rise .5s .45s both}.globe-touch:after{content:'';position:absolute;inset:12% 12% 28%;border-radius:50%;border:1px solid #caecff22;box-shadow:0 0 22px #bceaff22;opacity:var(--power,0);transform:rotateX(25deg);pointer-events:none}.globe-touch.charged:after{animation:globe-wave 1.4s ease-out both}.globe-touch img{transition:filter .3s}.screen[data-power='3'] .globe-touch img,.screen[data-power='4'] .globe-touch img{filter:drop-shadow(0 0 22px #ffd76c66)}
.countdown{position:absolute;inset:0;display:grid;place-items:center;background:#02132c44;border-radius:inherit;font-size:72px;font-family:Georgia,serif;font-weight:bold;color:#ffe7a4;text-shadow:0 0 25px #ffd162;z-index:6;pointer-events:none}.screen[data-phase=countdown] .backdrop{background-image:url('assets/hero-v2.png');filter:brightness(.5)}.screen[data-phase=racing] .runner:before{content:'';position:absolute;left:-20px;bottom:7px;width:30px;height:16px;pointer-events:none;box-shadow:-7px 2px 8px #e2f6ffbb,-17px 0px 7px #d1e9ff77,-29px 4px 8px #fff5;background:radial-gradient(ellipse,#e1f5ff99,transparent 70%);border-radius:50%;animation:snow-kick .25s infinite alternate}.runner[data-rank]:before{opacity:0}.runner[data-rank='1']:after{box-shadow:0 0 14px #ffe7a6;animation:medal-pop .45s both}.screen[data-phase=racing] .finish-line{box-shadow:0 0 13px #ffdf6e77}.screen[data-phase=racing] .race-track{box-shadow:0 0 22px #7cccf933,0 5px 35px #0007}.screen[data-paused=true] *,.screen[data-paused=true]:after{animation-play-state:paused!important}
@keyframes aurora-drift{from{transform:translateX(-3%) rotate(-6deg);opacity:.4}to{transform:translateX(4%) rotate(5deg);opacity:1}}@keyframes embers{0%,100%{opacity:.4;transform:scale(.92)}50%{opacity:1;transform:scale(1.08)}}@keyframes glass-sweep{0%,35%{background-position:140% 0;opacity:0}50%{opacity:.65}75%,100%{background-position:-80% 0;opacity:0}}@keyframes door-breathe{0%,100%{opacity:.35}50%{opacity:1}}@keyframes intro-rise{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes title-light{from{text-shadow:0 2px 3px #361a08,0 0 45px #ffecb0bb}to{text-shadow:0 2px 3px #361a08,0 0 22px #edbd4744}}@keyframes button-arrive{from{opacity:0;translate:0 9px}to{opacity:1;translate:0 0}}@keyframes button-shine{0%,68%{transform:translateX(-90%)}95%,100%{transform:translateX(90%)}}@keyframes choice-arrive{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}@keyframes gift-float{50%{translate:0 -5px;rotate:1deg}}@keyframes picked-pulse{0%{filter:brightness(1)}50%{filter:brightness(1.3)}100%{filter:brightness(1)}}@keyframes door-turn{to{transform:perspective(500px) rotateY(-22deg) scale(1.05);filter:drop-shadow(15px 0 20px #ffce6c99)}}@keyframes portal-open{from{width:1%;opacity:0}40%{opacity:.75}to{width:75%;opacity:0}}@keyframes door-unveil{from{opacity:0;clip-path:inset(0 48%);transform:scale(.95)}to{opacity:1;clip-path:inset(0);transform:scale(1)}}@keyframes gift-unbox{from{opacity:0;transform:translateY(25px) scale(.75) rotate(-4deg)}60%{opacity:1;transform:translateY(-4px) scale(1.03) rotate(1deg)}to{opacity:1;transform:translateY(0) scale(1) rotate(0)}}@keyframes result-rise{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes reward-arrive{from{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes reward-sheen{to{transform:translateX(100%)}}@keyframes frame-celebrate{0%{box-shadow:inset 0 0 35px #ffe0a077,0 0 20px #ffd680}100%{box-shadow:none}}@keyframes globe-wave{from{opacity:.8;scale:.9}to{opacity:0;scale:1.35}}@keyframes snow-kick{from{scale:.75;opacity:.6}to{scale:1.2;opacity:1}}@keyframes medal-pop{from{scale:.5}to{scale:1}}
@media(max-width:600px){.countdown{font-size:48px}.screen[data-game=door] .choice.picked .sprite{animation:none}.screen[data-game=globe] .glass-sheen{left:10%;top:30%;width:80%;height:50%}.screen[data-game=door] .door-light{left:62%;top:28%;height:55%}.screen[data-game=gift] .choice.picked{transform:translateY(-4px) scale(1.04)}}
@media(prefers-reduced-motion:reduce){.atmosphere,.scene-effects{display:none!important}.backdrop{translate:0 0!important}.screen *, .screen:before,.screen:after{animation:none!important;transition:none!important}.choice.picked,.choice:hover{transform:none!important}.gold-button:after,.reward:after,.reveal:before,.globe-touch:after,.runner:before{display:none!important}}

/* Crystal controls and a movement-led, three-constellation snow-globe ritual. */
body[data-kind=globe]{--ice:#bcf5ff;--ice-deep:#133e58;--ice-glow:#72d7ff}
body[data-kind=globe] button:focus-visible{outline:2px solid #bcefff;outline-offset:4px}
body[data-kind=globe] .globe-touch.frost-globe:focus-visible{outline:1px solid #a9eaff80;outline-offset:-8px}
body[data-kind=globe] .globe-touch.frost-globe:focus-visible .frost-touch-prompt{color:#fff;text-shadow:0 0 10px #97e4ff,0 2px 4px #02192b}
body[data-kind=globe] .screen{border-color:#8ed9e7;box-shadow:0 0 4px #d4fcff,inset 0 0 25px #bceeff22,0 18px 80px #0009}
body[data-kind=globe] .screen:after{border-color:#cbfbff40}
.frost-eyebrow{font-size:9px;letter-spacing:3px;color:#b9efff;display:block;text-shadow:0 1px 6px #052c47;margin-bottom:16px;font-weight:650}
.frost-intro{top:23%;left:5%;width:42%}
.frost-intro h1,.frost-instructions h2{color:#e9fcff;text-shadow:0 3px 8px #031b36,0 0 28px #78c8ff44}
.frost-intro h1 em{color:#b9edff}.frost-intro p{color:#e6f9ff;font-size:13px;max-width:330px}
.frost-orb-button{width:158px;height:158px;border:1px solid #a8edff99;background:radial-gradient(circle at 35% 22%,#cefbff44,#247f9fbb 44%,#071e39ed 75%);box-shadow:inset 0 0 18px #c0f8ff48,0 0 20px #a2eaff38;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;isolation:isolate;padding:20px 10px;color:#e4fbff;transition:filter .3s,scale .3s;text-align:center}
.frost-orb-button:hover{filter:brightness(1.18);scale:1.045}.frost-orb-button:active{scale:.97}.frost-orb-button strong{font-size:13px;font-weight:650;margin-top:7px;letter-spacing:.2px}.frost-orb-button small{font-size:7px;letter-spacing:2px;color:#bcefff;margin-top:8px}.frost-button-crystal{font-size:38px;line-height:1;color:#edffff;text-shadow:0 0 13px #a8f0ff;animation:frost-crystal-breathe 3s ease-in-out infinite}.frost-button-orbit{position:absolute;inset:-8px;border:1px solid #9de9ff42;border-radius:50%;border-top-color:#e9ffff;border-right-color:#afe9ff83;animation:frost-spin 12s linear infinite;pointer-events:none}.frost-button-orbit:before,.frost-button-orbit:after{content:'';position:absolute;width:5px;height:5px;left:15%;top:12%;border-radius:50%;background:#defbff;box-shadow:0 0 8px 2px #83dfff}.frost-button-orbit:after{left:auto;top:auto;right:10%;bottom:18%;width:3px;height:3px}.frost-start{position:absolute;left:calc(26% - 79px);bottom:7%;animation:intro-rise .8s .15s both}
.frost-instructions{position:absolute;left:7%;top:21%;width:35%;z-index:3;text-align:left}.frost-instructions h2{font-size:38px;line-height:1.1}.frost-instructions>p{font-size:12px;line-height:1.7;margin-top:16px;color:#e6f5ff;min-height:42px}.frost-instructions .frost-eyebrow{margin-bottom:12px}.frost-constellations{list-style:none;margin:25px 0 0;padding:0;display:grid;gap:12px}.frost-constellations li{display:flex;align-items:center;gap:12px;position:relative;color:#8ea5bb;transition:color .4s,translate .4s}.frost-rune{flex:0 0 42px;display:grid;place-items:center;width:42px;height:42px;border:1px solid #739ab75a;background:#071e3299;border-radius:10px;font-size:25px;transition:background .4s,box-shadow .4s,color .4s}.frost-constellations b{display:block;font-size:12px;font-weight:600}.frost-constellations small{display:block;font-size:9px;letter-spacing:.3px;margin-top:4px;opacity:.8}.frost-constellations li>i{width:4px;height:4px;background:#39516d;border-radius:50%;margin-left:auto;box-shadow:0 0 0 4px #8ce7ff08}.frost-constellations .gathering{color:#a0dfff}.frost-constellations .gathering .frost-rune{box-shadow:inset 0 0 15px #80dfff30;border-color:#86dfff99;animation:frost-crystal-breathe 1.4s ease-in-out infinite}.frost-constellations .lit{color:#e8ffff;translate:3px 0}.frost-constellations .lit .frost-rune{color:#d4fcff;border-color:#cafaff;background:radial-gradient(circle at 30% 30%,#98e9ff88,#123c61e6);box-shadow:0 0 19px #89ddff45,inset 0 0 10px #fff4;animation:frost-star-awake .6s ease-out}.frost-constellations .lit>i{background:#dcfcff;box-shadow:0 0 10px 3px #86ddff66}.frost-instructions .frost-input-hint{font-size:10px;min-height:0;margin:22px 0 0;color:#a5c5d8}.frost-counter{display:inline-flex;align-items:baseline;gap:5px;margin-top:12px;color:#8fafc4;font-size:10px;letter-spacing:.6px}.frost-counter span{color:#dcfaff;font-family:Georgia,serif;font-size:24px}.frost-counter.complete{opacity:.4}
.globe-touch.frost-globe{right:2%;top:13%;width:53%;height:78%;border:0;touch-action:none;cursor:grab;outline-offset:0;isolation:isolate;z-index:2}.globe-touch.frost-globe.frost-held{cursor:grabbing}.frost-globe img{rotate:var(--frost-tilt,0deg);transition:rotate .35s cubic-bezier(.15,.7,.3,1),filter .4s;transform-origin:50% 80%;filter:drop-shadow(0 0 20px #7ccfff45);position:relative;z-index:1}.frost-globe.frost-held img{transition:rotate .1s,filter .4s}.frost-globe.frost-stirred img{animation:frost-rock .5s ease-out}.frost-globe:after{border-color:#b9f4ff;box-shadow:0 0 24px #bcfaff40;opacity:calc(.1 + var(--power,0)*.5)}.frost-touch-prompt{position:absolute;left:10%;right:10%;bottom:1%;font-size:8px;letter-spacing:1.8px;display:flex;justify-content:center;align-items:center;gap:10px;color:#d6f8ff;white-space:nowrap;text-shadow:0 2px 4px #000;z-index:3}.frost-touch-prompt i{font-style:normal;font-size:22px;letter-spacing:0;display:inline-block;animation:frost-direction 1.8s ease-in-out infinite}.frost-galaxy{position:absolute;inset:10% 5% 22%;border-radius:50%;pointer-events:none;transform:rotate(-24deg);z-index:0;opacity:calc(.2 + var(--power,0)*.65);transition:opacity .5s}.frost-galaxy i{position:absolute;inset:0;border:1px solid #b6eeff48;border-radius:50%;animation:frost-spin 18s linear infinite;transform:rotateX(30deg)}.frost-galaxy i:after{content:'✦';position:absolute;left:4%;top:28%;font-size:17px;color:#e6ffff;text-shadow:0 0 14px #9ceeff}.frost-galaxy i:nth-child(2){inset:5%;animation-direction:reverse;animation-duration:11s;rotate:35deg}.frost-galaxy i:nth-child(3){inset:10%;animation-duration:8s;rotate:-40deg}.frost-galaxy i:nth-child(2):after{font-size:10px}.frost-galaxy i:nth-child(3):after{font-size:7px}.screen[data-phase=charged] .backdrop{filter:blur(3px) brightness(.4)}.frost-globe.frost-ready{cursor:pointer}.frost-globe.frost-ready img{animation:frost-hover 3s ease-in-out infinite;filter:drop-shadow(0 0 32px #c9f7ff88)}.frost-globe.frost-ready .frost-touch-prompt{bottom:0;color:#fff;background:linear-gradient(90deg,transparent,#124766dc,transparent);padding:12px 5px;letter-spacing:2px}.frost-globe.frost-ready .frost-touch-prompt i{animation:frost-crystal-breathe 1.8s ease-in-out infinite}.frost-awakening{position:absolute;inset:0;pointer-events:none;z-index:4;opacity:0;background:radial-gradient(ellipse at 72% 45%,#d3faff88,transparent 65%)}.screen[data-phase=opening] .frost-awakening{animation:frost-flash 2.2s ease-in-out both}.frost-globe.frost-releasing{opacity:1!important}.frost-globe.frost-releasing .frost-galaxy i{animation-duration:1.4s}.frost-globe.frost-releasing img{animation:frost-disappear .9s ease-in both}.frost-globe.frost-transformed img{animation:frost-materialize 1.2s ease-out both}.screen[data-phase=opening] .frost-instructions{opacity:.55;transition:opacity .7s}
body[data-kind=globe] .result-copy h2{color:#d5f8ff;font-size:42px;text-shadow:0 2px 4px #031a31,0 0 22px #8edfff66}body[data-kind=globe] .reward{border-color:#bcefff;background:linear-gradient(120deg,#19425bdf,#051b32e6);border-radius:4px 23px;box-shadow:0 0 5px #d5fbff,0 0 28px #69ceff45,inset 0 0 16px #9eeeff20}body[data-kind=globe] .reward-icon{color:#d8faff;text-shadow:0 0 12px #87e2ff}body[data-kind=globe] .reward small{color:#add8e6}body[data-kind=globe] .result-actions{flex-wrap:wrap;gap:13px}body[data-kind=globe] .result-actions .scene-save{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #cafbff;font-size:12px;font-weight:650;transition:filter .2s,translate .2s;border-radius:4px 16px;background:linear-gradient(135deg,#e3fbff,#8ed6f0 48%,#3c8cae);box-shadow:0 0 18px #72d9ff33,inset 0 1px 2px #fff9;color:#07354c;gap:10px;padding:12px 24px}body[data-kind=globe] .result-actions .scene-save:after{background:linear-gradient(110deg,transparent 40%,#fff9 49%,transparent 58%)}body[data-kind=globe] .scene-replay{display:inline-flex;align-items:center;justify-content:center;min-height:38px;color:#c8f4ff;border:0;border-bottom:1px solid #9de8ff66;border-radius:0;background:transparent;padding:7px 0;font-size:10px}body[data-kind=globe] .scene-replay:hover{color:white;background:transparent;border-color:#d8fcff}body[data-kind=globe] .save-state{color:#b2f0ff}
@keyframes frost-spin{to{transform:rotate(360deg)}}@keyframes frost-crystal-breathe{50%{filter:brightness(1.3);text-shadow:0 0 24px #a8f0ff}}@keyframes frost-star-awake{0%{scale:.8;filter:brightness(2)}60%{scale:1.12}100%{scale:1;filter:brightness(1)}}@keyframes frost-rock{20%{transform:rotate(-3deg)}55%{transform:rotate(3deg)}80%{transform:rotate(-1deg)}to{transform:rotate(0)}}@keyframes frost-direction{0%,100%{translate:-4px 0}50%{translate:4px 0}}@keyframes frost-hover{50%{translate:0 -6px}}@keyframes frost-flash{0%{opacity:0}37%{opacity:1}75%{opacity:.2}100%{opacity:0}}@keyframes frost-disappear{to{filter:brightness(2.5) drop-shadow(0 0 30px #e7ffff);scale:1.06;opacity:.1}}@keyframes frost-materialize{from{filter:brightness(2);scale:.86;opacity:0}to{filter:brightness(1) drop-shadow(0 0 25px #b7f4ff66);scale:1;opacity:1}}
@media(max-width:900px) and (min-width:601px){.frost-instructions{top:20%;left:6%;width:36%}.frost-instructions h2{font-size:32px}.frost-constellations{margin-top:18px;gap:9px}.frost-orb-button{width:140px;height:140px}.frost-start{left:calc(26% - 70px);bottom:6%}.frost-instructions .frost-input-hint{margin-top:17px}.frost-touch-prompt{font-size:7px;letter-spacing:1px}.frost-intro{top:21%}.frost-intro h1{font-size:40px}}
@media(max-width:600px){.frost-intro{top:16%;left:8%;width:84%}.frost-intro h1{font-size:40px}.frost-intro p{font-size:11px;margin-top:12px}.frost-eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:12px}.frost-orb-button{width:132px;height:132px}.frost-start{left:calc(50% - 66px);bottom:7%}.frost-orb-button strong{font-size:12px}.frost-button-crystal{font-size:31px}.frost-orb-button small{font-size:6px}.frost-instructions{left:6%;top:16%;width:88%;text-align:center}.frost-instructions h2{font-size:29px}.frost-instructions>p{font-size:10px;line-height:1.5;margin-top:8px;min-height:30px}.frost-instructions .frost-eyebrow{font-size:7px;margin-bottom:7px}.frost-constellations{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}.frost-constellations li{flex-direction:column;gap:5px;justify-content:center}.frost-rune{width:34px;height:34px;flex-basis:34px;font-size:22px;border-radius:9px}.frost-constellations b{font-size:9px;white-space:nowrap}.frost-constellations small{font-size:7px;margin-top:3px;letter-spacing:0}.frost-constellations li>i{display:none}.frost-constellations .lit{translate:0 0}.frost-instructions .frost-input-hint{font-size:8px;margin-top:12px}.frost-counter{font-size:9px;margin-top:6px}.frost-counter span{font-size:18px}.globe-touch.frost-globe{right:4%;width:92%;height:43%;top:52%}.frost-touch-prompt{font-size:7px;letter-spacing:1px;bottom:0}.frost-touch-prompt i{font-size:17px}.frost-globe.frost-ready .frost-touch-prompt{padding:8px 2px;font-size:8px;letter-spacing:1px}.frost-awakening{background:radial-gradient(ellipse at 50% 69%,#d3faff88,transparent 65%)}body[data-kind=globe] .result-copy{top:54%}body[data-kind=globe] .result-copy h2{font-size:31px}body[data-kind=globe] .result-copy>p{font-size:11px}body[data-kind=globe] .reward{padding:13px;margin:14px 0}body[data-kind=globe] .result-actions{gap:10px}body[data-kind=globe] .result-actions .scene-save{padding:11px 21px}body[data-kind=globe] .scene-replay{font-size:9px}body[data-kind=globe] .back{z-index:12}}
@media(prefers-reduced-motion:reduce){.frost-button-orbit,.frost-galaxy{animation:none!important}.frost-globe img{rotate:0deg!important}.frost-awakening{display:none}.frost-orb-button:hover{scale:1}.frost-globe.frost-releasing img{opacity:1!important;scale:1!important}}

/* Artwork first: sharp winter environments, controlled gold light, readable controls. */
body{background:#030c1b}
body:before{opacity:.45;filter:blur(45px)}
.screen{border-color:#c99c56!important;box-shadow:0 0 2px #fff1c5,0 18px 65px #0008!important}
.screen:after{inset:8px;border-color:#d6b67666!important;box-shadow:none}
.screen:before{content:'';position:absolute;left:0;right:0;top:0;height:100px;z-index:1;pointer-events:none;background:linear-gradient(#03112588,transparent)}
body[data-kind=gift] .screen:before{display:none}
.screen .backdrop{filter:none;translate:0 0;transform:none}
.screen:not(:is([data-phase=intro],[data-phase=checking])) .backdrop{background-image:url('assets/winter-scene.png')!important;filter:brightness(.83)!important;transform:none!important}
.screen[data-phase=result] .backdrop{filter:brightness(.95)!important}
.screen .shade{background:linear-gradient(90deg,#04132d55,transparent 60%)}
.screen:not(:is([data-phase=intro],[data-phase=checking])) .shade{background:radial-gradient(ellipse at 50% 28%,#020f2fc9 0%,#03142a38 58%,transparent 82%)}
.screen .back{font-size:11px;padding:7px 12px;border-radius:6px;background:#051326bb}
.toolbar{font-size:11px;padding-top:12px}.toolbar strong{color:#c6bda9}.tools>span{font-size:10px}
.screen h1,.screen h2{color:#ffe3a1!important;text-shadow:0 3px 5px #071021,0 0 22px #f2bf4333!important}
.screen h1 em,.screen h2 em{color:#ffd874!important}
.gift-kicker,.deer-eyebrow,.frost-eyebrow,.door-eyebrow,.result-eyebrow,.deer-small,.deer-route,.deer-number,.deer-card-mark,.deer-card small,.deer-prep-stages,.deer-harness,.door-hint,.door-key-pocket{display:none!important}
.screen .intro-copy p,.screen .deer-intro p{font-size:15px;line-height:1.55;color:#fff4dc;text-shadow:0 2px 7px #04112d}
.screen .intro-copy h1,.screen .deer-intro h1{font-size:clamp(36px,4.4vw,55px);line-height:1.08;letter-spacing:-.5px}
.screen .intro-copy,.screen .deer-intro{left:5%;width:43%;top:29%;text-align:center}
body[data-kind=door] .screen:is([data-phase=intro],[data-phase=checking]) .intro-copy{left:3%;width:43%}
body[data-kind=door] .screen:is([data-phase=intro],[data-phase=checking]) .intro-copy h1{font-size:clamp(34px,4vw,51px)}
.screen .deer-intro h1{margin:0}
.screen .deer-intro p{margin-top:18px}
.screen .deer-intro .deer-pennant{margin:24px auto 0;min-width:210px;width:max-content}
.deer-pennant,.gift-tag,.door-invitation,.frost-orb-button{font-size:16px;min-height:49px;transition:filter .2s,translate .2s;animation:none!important;isolation:isolate}
.deer-pennant{background:linear-gradient(#234d3d,#0b271f)!important;border:1px solid #d8b775!important;color:#ffe7ac;clip-path:none;border-radius:5px 18px 5px 18px;padding:13px 25px;box-shadow:inset 0 0 0 3px #142c24,inset 0 0 0 4px #c9a76955,0 6px 20px #0008!important;filter:none!important}
.deer-pennant:focus-visible{outline:2px solid #ffe4a3;outline-offset:4px}
.flag-check{width:19px;height:21px;background:repeating-conic-gradient(#1c3224 0 25%,#edcd85 0 50%) 0 0/8px 8px;border-color:#edcd85}
.gift-tag{background:linear-gradient(100deg,#b62f3e,#740e20)!important;border:1px solid #e6c38b;border-radius:9px;padding:11px 22px;box-shadow:0 4px 0 #380716,0 9px 20px #0007,inset 0 1px 2px #ffbd8777!important;gap:11px}
.gift-tag:before{border:1px solid #f0cb8b55;border-radius:5px;inset:4px}
.gift-tag small,.frost-orb-button small,.door-invitation small{display:none}
.wax-seal{width:30px;height:30px;font-size:20px;border-width:1px;box-shadow:none}
.door-invitation{left:13%;bottom:20%;width:27%;min-width:220px;border-radius:6px 6px 15px 15px;background:linear-gradient(#725127,#322417);border-color:#e1bc7b;padding:11px 20px;box-shadow:inset 0 0 0 3px #3f2b19,inset 0 0 0 4px #ba8f4e55,0 7px 24px #0008}
.door-invitation strong{font:700 16px 'Segoe UI',sans-serif}.door-invitation>i{display:none}.invitation-seal{width:27px;height:27px;font-size:21px;background:none;border:0;box-shadow:none}
.frost-orb-button{height:52px;width:230px;border-radius:28px;flex-direction:row;padding:10px 20px;gap:11px;background:linear-gradient(155deg,#c6e6ee,#6092a9 46%,#214963);border:1px solid #e4efd3;box-shadow:inset 0 1px 5px #fff9,0 3px 0 #173b4a,0 8px 25px #0007;color:#061a2e}
.frost-orb-button strong{font-size:16px;margin:0;font-weight:750}.frost-button-crystal{font-size:24px;color:#eaf8ff;text-shadow:0 1px 2px #002846;animation:none}.frost-button-orbit{display:none}
.frost-start{left:calc(26.5% - 115px);bottom:21%}
/* One clear instruction above each choice, with the art itself as the control. */
.screen .gift-heading h2,.screen .deer-select-title h2,.screen .door-scene-heading h2{font-size:37px;line-height:1.1;margin-top:0}
.screen .gift-heading p,.screen .deer-select-title p,.screen .door-scene-heading p{font-size:14px;line-height:1.5;margin-top:10px;color:#fff0d5}
.screen .deer-select-title,.screen .door-scene-heading{top:17%}
.deer-roster{top:33%;bottom:9%;height:auto;left:13%;right:13%;gap:24px}
.deer-card{border:1px solid #b8a16d88;border-radius:16px;padding:12px 8px;background:linear-gradient(#061c37b3,#071322e6);box-shadow:inset 0 0 25px #c3a05c18;overflow:hidden}
.deer-card-0{background:radial-gradient(ellipse at 50% 35%,#741c394d,transparent 80%),linear-gradient(#061c37a6,#071322e6)}
.deer-card-1{background:radial-gradient(ellipse at 50% 35%,#4c88ad44,transparent 80%),linear-gradient(#061c37a6,#071322e6)}
.deer-card-2{background:radial-gradient(ellipse at 50% 35%,#9f722d44,transparent 80%),linear-gradient(#061c37a6,#071322e6)}
.screen[data-game=deer] .sprite{background-image:url('assets/globe-v2.png');background-size:300% 100%}
.deer-card .sprite{width:96%;height:auto;aspect-ratio:1;min-height:0;flex:0 0 auto;filter:drop-shadow(0 7px 8px #0004);animation:none}
.deer-card strong{font-size:24px;color:#ffe3ab;margin:0 0 8px}
.deer-card-invite{width:80%;font-size:14px;padding:9px 8px;border:1px solid #e5c58188;border-radius:20px;background:linear-gradient(#dfbf75,#b38339);color:#281e0a;gap:0;display:block;font-weight:700}
.deer-card-invite b{display:none}
.deer-card:hover:not(:disabled){border-color:#ffe5a3;box-shadow:0 0 20px #edbd5c55;transform:translateY(-5px)}
.deer-staging-art{left:5%;top:18%;width:48%;height:auto;aspect-ratio:1}
.deer-staging-art>.sprite{aspect-ratio:1;width:100%;height:auto;filter:drop-shadow(0 12px 12px #0005);animation:none}
.deer-staging-copy{left:56%;right:6%;top:26%;text-align:center}
.deer-staging-copy h2{font-size:40px;margin:0;line-height:1.1}
.deer-prep-copy{font-size:15px;line-height:1.6;margin:16px 0 21px;color:#fff0d5}
.deer-harness-action{margin:0 auto;font-size:15px;width:230px;max-width:100%}
.deer-bell-button{background:none;border:0;box-shadow:none;border-radius:0;width:190px;height:185px;margin:-8px auto 0;padding:0;overflow:visible}
.deer-bell-button:hover{box-shadow:none;filter:brightness(1.1);scale:1.02}
.deer-bell{width:110px;height:130px;background:url('assets/hero-v2.png') center/contain no-repeat;scale:1;margin:0;animation:deer-bell-sway 3s ease-in-out infinite}
.deer-bell i,.deer-bell b{display:none}
.deer-bell-button>span:nth-child(2){font-size:15px;font-weight:700;letter-spacing:1px;margin-top:7px;text-shadow:0 2px 4px #000}
.deer-bell-button small{display:none}
.screen[data-game=deer][data-phase=racing] .backdrop,.screen[data-game=deer][data-phase=countdown] .backdrop,.screen[data-game=deer][data-phase=podium] .backdrop,.screen[data-game=deer][data-phase=result] .backdrop{background-image:url('assets/hero-v2.png')!important;filter:brightness(.9)!important}
.deer-live-header{top:17%;align-items:center}.deer-live-header h2{font-size:35px}.deer-live-dot{display:none}
.deer-race-track{background:linear-gradient(#153354a3,#203e59d9);border-color:#d7bd7b66;box-shadow:0 10px 35px #0005}
.deer-race-track .runner{aspect-ratio:1;height:auto;width:100px;bottom:-4px}
.deer-race-status{font-size:13px}.deer-cheer{background:linear-gradient(#234d3d,#0c251e);border-color:#d9bb7e;color:#ffe5ab;border-radius:6px;font-size:14px}
.deer-countdown{background:#061b319c;color:#ffe4a3;text-shadow:0 0 22px #e8bb7366}
/* Three lights are visible on the scene, not a settings checklist. */
.screen .frost-instructions{left:6%;top:29%;width:36%;text-align:center}
.screen .frost-instructions h2{font-size:39px;line-height:1.1}
.screen .frost-instructions>p{font-size:15px;color:#fff0d5;line-height:1.6;margin-top:14px;min-height:46px}
.frost-constellations{display:flex;justify-content:center;gap:20px;margin-top:25px}
.frost-constellations li{display:block}.frost-constellations li>span:nth-child(2),.frost-constellations li>i{display:none}
.frost-rune{width:49px;height:49px;font-size:30px;display:grid;border-radius:50%;border:1px solid #ba986277;background:#071a2d66;color:#b8b2a5}
.frost-constellations .lit .frost-rune{background:radial-gradient(#78949aaa,#112b42);border-color:#f3d49a;box-shadow:0 0 16px #ead0a144;color:#fff1c1}
.frost-constellations .lit{translate:0 0}.screen .frost-instructions .frost-input-hint{display:none}
.frost-counter{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
.globe-touch.frost-globe{top:15%;right:1%;width:55%;height:79%}
.globe-touch.frost-globe img{filter:drop-shadow(0 10px 16px #0004)}
body[data-kind=globe] .globe-touch.frost-globe:focus-visible{outline:none}
body[data-kind=globe] .globe-touch.frost-globe:focus-visible .frost-touch-prompt{outline:1px solid #e8d2a7;outline-offset:4px;border-radius:5px}
.frost-globe:after{display:none}.frost-galaxy{opacity:calc(.05 + var(--power,0)*.25)}
.frost-touch-prompt{font-size:11px;letter-spacing:.5px;bottom:1%;color:#ffe5ae;gap:6px}
.frost-globe.frost-ready .frost-touch-prompt{font-size:13px;letter-spacing:1px;padding:9px 6px;background:linear-gradient(90deg,transparent,#082139dd,transparent)}
/* Actual engraved keys, with the three renders sharing the same light and scale. */
.antique-key{background:url('assets/globe-v2.png') var(--key-position,0%) center/300% 100% no-repeat;width:190px;height:190px;filter:drop-shadow(0 6px 8px #0005);transform-origin:center;flex:0 0 auto}
.antique-key>*{display:none}.key-moon{--key-position:50%}.key-snow{--key-position:100%}
.key-cabinet{top:35%;bottom:14%;left:13%;right:13%;gap:25px}
.key-pick{padding:0;justify-content:center}.key-thread{display:none}.key-pick .antique-key{width:100%;max-width:220px;height:auto;aspect-ratio:1;animation:key-sway 5s ease-in-out infinite alternate}
.key-caption{margin-top:8px}.key-caption strong{font-size:20px;color:#ffe2a3}.key-caption small{display:none}
.door-gallery{top:33%;bottom:8%;left:9%;right:9%;gap:20px}
.door-card .door-portrait{aspect-ratio:1;height:auto;flex:0 0 auto;width:100%;max-height:none}
.door-nameplate{border-radius:7px;padding:10px 20px;min-width:155px;background:linear-gradient(#674623,#2c2118);border-color:#d8b579;box-shadow:inset 0 0 0 3px #5d402355}
.door-nameplate small,.door-nameplate>span{display:none}.door-nameplate strong{font:700 16px 'Segoe UI',sans-serif;color:#fce7bd}
.lock-story{top:32%;left:6%;width:36%}.lock-story h2{font-size:42px;margin:0}.lock-story p{font-size:15px;margin-top:16px}.lock-hint{font-size:13px;color:#f1d8ad;margin-top:18px}
.lock-door{right:5%;top:18%;width:49%;height:auto;bottom:auto;aspect-ratio:1}
.lock-turn{left:43%;top:47%;width:72px;height:72px;background:none;scale:1!important}
.lock-escutcheon{inset:13px;background:radial-gradient(#765029,#241913);border-color:#a5814e;box-shadow:0 0 0 3px #3a2719}
.lock-turn .key-in-lock{width:125px;height:125px;left:-17px;top:-22px;scale:1;transform-origin:50% 50%;rotate:calc(-90deg + var(--turn-preview,0deg))}
.lock-orbit{inset:-5px;opacity:.5}.lock-caption{font-size:11px;letter-spacing:1px;bottom:0}
/* Restrained result hierarchy: art, title, reward and two readable actions. */
.screen .result-copy{top:31%;left:53%;right:6%;text-align:center}
.screen .result-copy h2{font-size:clamp(30px,3.8vw,46px);line-height:1.06;margin:0}
.screen .result-copy>p{font-size:14px;line-height:1.5;margin-top:13px;color:#fff1d2;letter-spacing:0}
.screen .result-art{left:4%;width:47%;top:16%;height:78%}
.screen .result-art img{filter:drop-shadow(0 10px 14px #0004)}
.screen .reward{border:1px solid #e7c47f;border-radius:12px;background:linear-gradient(115deg,#593b19e6,#0b1c33eb);box-shadow:inset 0 0 0 3px #73532a55,0 0 18px #ecc36c44;padding:18px 20px;margin:23px 0;gap:14px;transform:none}
.screen .reward:before{display:none}.screen .reward small{display:none}.screen .reward strong{font-size:27px;line-height:1.2}
.screen .reward-icon{background:none;color:#ffdf8c;border:0;outline:0;border-radius:0;box-shadow:none;font-family:Georgia,serif;font-size:40px;width:auto;height:auto;text-shadow:0 0 10px #ffca4c55;margin:0;display:block}
.screen .result-actions{display:flex;flex-direction:row;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px}
.screen .result-actions .scene-save,.screen .result-actions .scene-replay{min-height:43px;padding:11px 17px;font-family:'Segoe UI',sans-serif;font-size:14px;font-weight:650;line-height:1.2;letter-spacing:0;text-decoration:none;border:1px solid #ddc18a;border-radius:7px;box-shadow:none;margin:0;display:inline-flex;align-items:center;justify-content:center;color:#ffe6b0;background:#082039df}
.screen .result-actions .scene-save{background:linear-gradient(#e9cf90,#c49749);color:#32220d;box-shadow:inset 0 1px 2px #fff9,0 3px 0 #6b461c}
.screen .save-state{font-size:11px;line-height:1.3;margin-top:12px;color:#e9dabd}
.screen[data-game=deer][data-phase=result] .result-copy{top:31%;left:55%;right:5%}
body[data-kind=deer] .screen .reward{background:linear-gradient(130deg,#1e402fee,#091d1deb);border-color:#d7b478;box-shadow:inset 0 0 0 3px #b8984e33,0 0 18px #c7a96b22}
body[data-kind=deer] .screen .reward-icon{background:linear-gradient(#f2dc9f,#ae813b);color:#382915;border:1px solid #f5dc9a;outline-color:#b29659}
body[data-kind=deer] .screen .result-actions .scene-save{background:linear-gradient(#31543b,#142e21);border-color:#d5b679;color:#ffe7aa;box-shadow:inset 0 1px 2px #d8c78944}
body[data-kind=deer] .screen .result-actions .scene-replay{background:#071b28dd;border-color:#bca475;color:#f4d99f}
.screen[data-game=globe] .result-actions .scene-save{background:linear-gradient(#d5e8ed,#91b3c2);border-color:#d9dfc7;border-radius:24px;color:#173141}
.screen[data-game=door] .result-actions .scene-save{background:linear-gradient(#96703b,#56381e);color:#ffe6b3;border-radius:5px}
.screen[data-game=gift] .result-actions .scene-save{background:linear-gradient(#b63d4d,#791425);color:#ffe6be;border-radius:7px}
.screen .confetti{display:none}
/* Gift composition follows its square reference, with a clear area above the bag. */
body[data-kind=gift] .screen:is([data-phase=intro],[data-phase=checking]) .backdrop{background-image:url('assets/hero-v2.png');background-size:cover;background-position:center}
body[data-kind=gift] .screen:is([data-phase=intro],[data-phase=checking]) .shade{background:none}
body[data-kind=gift] .screen .intro-copy{top:26%;left:10%;width:80%}
body[data-kind=gift] .screen .intro-copy h1{font:800 clamp(30px,3.8vw,42px)/1.1 'Segoe UI',sans-serif;color:#fff3d2!important;letter-spacing:-.5px}
body[data-kind=gift] .screen .intro-copy p{font-size:14px;margin:11px auto 0;max-width:310px;line-height:1.45}
.gift-start{bottom:5%;left:50%;min-height:45px;padding:10px 20px}
body[data-kind=gift] .gift-heading{top:27%;left:8%;right:8%}
body[data-kind=gift] .gift-heading h2{font-size:36px}
.gift-shelf{left:8%;right:8%;bottom:15%;gap:12px}
.gift-pick .sprite{animation:none;filter:drop-shadow(0 9px 8px #0005)}
.hanging-tag{clip-path:none;transform:none!important;background:linear-gradient(#77312c,#31151d);border:1px solid #cfad79;border-radius:7px;padding:10px 3px;color:#ffe7b8}
.hanging-tag small{display:none}.hanging-tag strong{font:700 15px 'Segoe UI',sans-serif}
.wrapped-gift{left:30%;width:40%;height:auto;aspect-ratio:1;top:39%}
.wrapped-gift>.sprite{aspect-ratio:1;height:auto}
.ribbon-spark{display:none}.ribbon-tail{height:7px;opacity:calc(.8 - var(--pull)*.6)}
.ribbon-control{bottom:9%;left:20%;right:20%}
.ribbon-control label{font-size:14px}.gift-text-action{font-size:13px}
body[data-kind=gift] .screen .result-art{left:21%;width:58%;top:22%;height:39%}
body[data-kind=gift] .screen .result-copy{top:60%;left:11%;right:11%}
body[data-kind=gift] .screen .result-copy h2{font-size:34px}
body[data-kind=gift] .screen .result-copy>p{font-size:13px;margin-top:8px}
body[data-kind=gift] .screen .reward{padding:14px 16px;margin:15px 0}
body[data-kind=gift] .screen .reward strong{font-size:27px}
body[data-kind=gift] .screen .result-actions .scene-save,body[data-kind=gift] .screen .result-actions .scene-replay{font-size:12px;min-height:38px;padding:10px 13px}
@media(max-width:1000px) and (min-width:601px){.deer-card .sprite{width:86%}.deer-roster{left:10%;right:10%}.deer-card strong{font-size:22px}.deer-card-invite{font-size:12px;padding:8px 4px}.screen .result-copy h2{font-size:36px}.screen .result-actions .scene-save,.screen .result-actions .scene-replay{font-size:12px;padding:11px 13px}.screen .reward{padding:17px 14px}.screen .reward strong{font-size:23px}.deer-staging-art{width:46%;top:20%}.deer-bell-button{height:160px}.deer-bell{height:112px;width:102px}.screen .frost-instructions h2{font-size:34px}.door-card .door-portrait{width:100%}.door-nameplate{min-width:135px}.key-caption strong{font-size:18px}}
@media(max-width:600px){
  body{padding:10px 9px 15px}.screen{height:690px;min-height:0}.toolbar{font-size:10px}.tools>span{font-size:9px}.toolbar strong{max-width:180px}

  .screen .back{bottom:13px;left:15px;top:auto;font-size:11px;padding:6px 11px}
  .screen .intro-copy,.screen .deer-intro{left:9%;width:82%;top:17%;text-align:center}
  .screen .intro-copy h1,.screen .deer-intro h1{font-size:39px;line-height:1.07}
  .screen .intro-copy p,.screen .deer-intro p{font-size:14px;line-height:1.5;margin-top:15px}
  .screen .deer-intro .deer-pennant{margin:260px auto 0;font-size:15px;min-width:205px}
  .frost-start{bottom:9%;left:calc(50% - 115px);width:230px;height:52px}.frost-orb-button strong{font-size:16px}
  .door-invitation{left:20%;right:20%;width:60%;min-width:0;bottom:10%;padding:13px 16px}.door-invitation strong{font-size:16px}
  .screen .deer-select-title,.screen .door-scene-heading{top:17%;left:7%;right:7%}
  .screen .deer-select-title h2,.screen .door-scene-heading h2{font-size:29px}
  .screen .deer-select-title p,.screen .door-scene-heading p{font-size:13px;margin-top:12px}
  .deer-roster{top:37%;bottom:16%;left:4%;right:4%;gap:8px;height:auto}
  .deer-card{padding:28px 3px 15px;border-radius:14px}.deer-card .sprite{width:110%;height:auto;min-height:0;aspect-ratio:1;margin-bottom:15px}
  .deer-card strong{font-size:21px;margin-bottom:15px}.deer-card-invite{font-size:12px;min-height:40px;width:95%;padding:9px 4px;line-height:1.3}
  .deer-staging-art{left:14%;width:72%;top:16%;height:auto;aspect-ratio:1}
  .deer-staging-copy{left:9%;right:9%;top:55%}.deer-staging-copy h2{font-size:29px}.deer-prep-copy{font-size:13px;margin:12px 0 16px}
  .deer-bell-button{height:133px;width:165px;margin:-3px auto 0}.deer-bell{height:102px;width:98px;margin:0;scale:1}.deer-bell-button>span:nth-child(2){font-size:13px;margin-top:0}.deer-harness-action{font-size:14px}
  .deer-live-header{top:17%}.deer-live-header h2{font-size:31px}.deer-race-track{top:30%;bottom:24%}.deer-race-track .runner{width:88px;height:88px;bottom:0}.deer-race-foot{bottom:12%;left:7%;right:7%;gap:10px}.deer-race-status{font-size:12px;max-width:50%}.deer-cheer{font-size:13px;padding:12px}
  .screen .frost-instructions{top:17%;left:8%;width:84%}.screen .frost-instructions h2{font-size:32px}.screen .frost-instructions>p{font-size:13px;line-height:1.55;margin-top:12px;min-height:40px}
  .frost-constellations{display:flex;gap:22px;margin-top:15px}.frost-constellations li{display:block}.frost-rune{width:40px;height:40px;font-size:26px}
  .globe-touch.frost-globe{top:44%;right:4%;width:92%;height:48%}.frost-touch-prompt{font-size:10px;bottom:-1%;letter-spacing:.3px}.frost-globe.frost-ready .frost-touch-prompt{font-size:12px}
  .key-cabinet{top:39%;bottom:18%;left:5%;right:5%;gap:8px}.key-pick .antique-key{scale:1;width:116%;height:auto;aspect-ratio:1;max-width:none;margin:0}.key-caption{margin-top:20px}.key-caption strong{font-size:14px;line-height:1.4;max-width:100px}
  .door-gallery{top:40%;bottom:18%;left:3%;right:3%;gap:8px}.door-card .door-portrait{width:100%;height:auto;aspect-ratio:1;flex:0 0 auto;max-height:none;margin-bottom:14px}.door-nameplate{min-width:0;width:100%;min-height:48px;padding:10px 3px}.door-nameplate strong{font-size:13px;line-height:1.3;white-space:normal}
  .lock-story{top:17%;left:8%;width:84%}.lock-story h2{font-size:31px}.lock-story p{font-size:13px;line-height:1.5;margin-top:12px}.lock-hint{font-size:12px;margin-top:11px}.lock-door{left:9%;width:82%;right:auto;top:43%;height:auto;bottom:auto;aspect-ratio:1}.lock-turn{top:46%;left:41%;width:61px;height:61px}.lock-turn .key-in-lock{width:110px;height:110px;top:-24px;left:-24px}.lock-caption{font-size:10px;bottom:-5px}
  .screen .result-art{top:15%;left:13%;width:74%;height:37%}
  .screen .result-copy,.screen[data-game=deer][data-phase=result] .result-copy{top:54%;left:8%;right:8%}
  .screen .result-copy h2{font-size:32px;line-height:1.05}.screen .result-copy>p{font-size:13px;margin-top:10px}
  .screen .reward{margin:17px 0;padding:17px 12px;gap:10px}.screen .reward strong{font-size:25px}.screen .reward-icon{font-size:34px}
  .screen .result-actions{gap:9px;flex-direction:row;flex-wrap:wrap}.screen .result-actions .scene-save,.screen .result-actions .scene-replay{font-size:12px;min-height:42px;padding:10px 12px}
  .screen .save-state{font-size:10px;margin-top:10px}
  body[data-kind=gift] .screen{height:680px;min-height:680px;max-height:none}

  body[data-kind=gift] .screen .intro-copy{top:26%;left:9%;width:82%}.screen[data-game=gift] .intro-copy h1{font-size:29px!important}.screen[data-game=gift] .intro-copy p{font-size:13px!important;max-width:270px!important;margin-top:11px}
  .gift-start{bottom:5%;min-width:220px;font-size:15px;padding:10px 15px}
  body[data-kind=gift] .gift-heading{top:29%}.screen[data-game=gift] .gift-heading h2{font-size:31px}.screen[data-game=gift] .gift-heading p{font-size:13px}
  .gift-shelf{bottom:22%;left:5%;right:5%;gap:7px}.hanging-tag strong{font-size:13px}.hanging-tag{padding:10px 2px}.gift-pick .sprite{margin-bottom:10px}
  .wrapped-gift{top:42%;left:20%;width:60%;height:auto;aspect-ratio:1}.ribbon-control{left:15%;right:15%;bottom:12%}
  body[data-kind=gift] .screen .result-art{top:23%;left:21%;width:58%;height:34%}
  body[data-kind=gift] .screen .result-copy{top:57%;left:8%;right:8%}.screen[data-game=gift] .result-copy h2{font-size:29px!important}.screen[data-game=gift] .result-copy>p{font-size:13px!important}
  .screen[data-game=gift] .reward{margin:15px 0!important;padding:14px!important}.screen[data-game=gift] .reward strong{font-size:25px!important}
  body[data-kind=gift] .screen .result-actions .scene-save,body[data-kind=gift] .screen .result-actions .scene-replay{min-height:40px;font-size:12px;padding:10px 11px}
}
@media(prefers-reduced-motion:reduce){.screen *{animation:none!important;transition:none!important}}
@media(max-width:600px){body[data-kind=door] .screen:is([data-phase=intro],[data-phase=checking]) .intro-copy{left:7%;width:86%;top:16%}body[data-kind=door] .screen:is([data-phase=intro],[data-phase=checking]) .intro-copy h1{font-size:34px}}
@media(max-width:600px){
  .screen[data-game=deer]:is([data-phase=intro],[data-phase=checking]) .backdrop{background-image:url('assets/winter-scene.png');background-position:center;background-size:cover}
  .screen[data-game=deer]:is([data-phase=intro],[data-phase=checking]) .backdrop:after{content:'';position:absolute;left:3%;top:38%;width:94%;aspect-ratio:1;background:url('assets/globe-v2.png') 0 center/300% 100% no-repeat;filter:drop-shadow(0 12px 12px #0006)}
  .screen[data-game=deer]:is([data-phase=intro],[data-phase=checking]) .shade{background:linear-gradient(#03132d33,transparent 50%)}
  .screen .deer-intro{inset:0;width:100%;height:100%}
  .screen .deer-intro h1{position:absolute;top:16%;left:5%;width:90%;margin:0}
  .screen .deer-intro p{position:absolute;top:30%;left:7%;width:86%;margin:0}
  .screen .deer-intro .deer-pennant{position:absolute;left:50%;translate:-50% 0;bottom:4.5%;margin:0}
  .screen[data-game=globe]:is([data-phase=intro],[data-phase=checking]) .backdrop{background-image:url('assets/winter-scene.png');background-position:center;background-size:cover}
  .screen[data-game=globe]:is([data-phase=intro],[data-phase=checking]) .backdrop:after{content:'';position:absolute;left:5%;top:40%;width:90%;aspect-ratio:1;background:url('assets/globe-v2.png') center/contain no-repeat;filter:drop-shadow(0 10px 14px #0005)}
  .screen[data-game=globe]:is([data-phase=intro],[data-phase=checking]) .shade{background:linear-gradient(#03132d33,transparent 50%)}
  .screen[data-game=globe]:is([data-phase=intro],[data-phase=checking]) .frost-start{bottom:3.5%}
  .screen[data-game=globe]:is([data-phase=intro],[data-phase=checking]) .glass-sheen{left:14%;top:42%;width:72%;height:35%}
}

/* Motion permission is an optional play control; touch always remains available. */
.frost-motion-control{margin-top:23px;text-align:center}
.frost-motion-control[hidden]{display:none}
.frost-motion-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:43px;padding:10px 19px;border:1px solid #bddde0a8;border-radius:25px;background:linear-gradient(135deg,#28485dbb,#0b2137dd);box-shadow:inset 0 1px 1px #f1f9ef33;color:#e1f3ed;font-size:12px;font-weight:600}
.frost-motion-button>span{font-size:21px;line-height:1;color:#e9d6a9}
.frost-motion-button:disabled{opacity:.75;cursor:default}
.frost-motion-status{color:#c5d2d7;font-size:11px;line-height:1.55;margin:10px auto 0;max-width:300px;min-height:34px}
.frost-glass{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;transform-origin:50% 80%;rotate:var(--frost-tilt,0deg);transition:rotate .35s cubic-bezier(.15,.7,.3,1)}
.frost-held .frost-glass{transition:rotate .1s}
.frost-stirred .frost-glass{animation:frost-rock .5s ease-out}
.frost-ready .frost-glass{animation:frost-hover 3s ease-in-out infinite}
.frost-releasing .frost-glass{animation:none;rotate:0deg}
.globe-touch.frost-globe.frost-releasing img{animation:frost-break-away 1.15s ease-in both;rotate:0deg}
.globe-touch.frost-globe.frost-transformed img{animation:frost-materialize 1s ease-out both}
.screen[data-game=globe][data-phase=opening] .frost-awakening{animation:frost-soft-release 2.2s ease-in-out both}
@keyframes frost-break-away{0%,25%{opacity:1;scale:1;filter:drop-shadow(0 10px 16px #0004)}55%{opacity:.72;scale:1.015;filter:brightness(1.2) drop-shadow(0 0 24px #a8eaff55)}100%{opacity:0;scale:1.035}}
@keyframes frost-soft-release{0%,100%{opacity:0}45%{opacity:.35}}
@media(max-width:900px) and (min-width:601px){.frost-motion-control{margin-top:15px}.frost-motion-status{font-size:10px}.frost-motion-button{font-size:11px;padding:9px 12px}}
@media(max-width:600px){
 .screen[data-game=globe]:is([data-phase=playing],[data-phase=charged],[data-phase=claiming],[data-phase=opening]) .frost-instructions{top:14%;left:6%;width:88%}
 .screen .frost-instructions h2{font-size:29px}
 .screen .frost-instructions>p{font-size:12px;min-height:37px;margin-top:9px}
 .frost-constellations{margin-top:11px;gap:20px}
 .frost-rune{width:35px;height:35px;font-size:23px}
 .frost-motion-control{margin-top:12px}
 .frost-motion-button{font-size:11px;min-height:38px;padding:8px 17px}
 .frost-motion-status{font-size:10px;line-height:1.4;margin-top:7px;min-height:28px;max-width:275px}
 .globe-touch.frost-globe{top:50%;height:42%;right:4%;width:92%}
 .frost-touch-prompt{font-size:9px;letter-spacing:.25px;bottom:-2%}
 .frost-globe.frost-ready .frost-touch-prompt{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 .frost-glass{animation:none!important;rotate:0deg!important;transition:none}
 .globe-touch.frost-globe.frost-releasing img,.globe-touch.frost-globe.frost-transformed img{animation:none!important;opacity:1;scale:1;filter:drop-shadow(0 10px 16px #0004)}
 .screen[data-game=globe][data-phase=opening] .frost-awakening{display:none}
}

/* The scene is the viewport. Controls belong to it, never to a footer below it. */
html { width:100%; height:100%; overflow:hidden; background:#03132b; }
#announce.sr-only { top:0; left:0; }
body[data-kind] { margin:0; padding:0; display:block; width:100%; height:100vh; height:100dvh; min-height:0; overflow:hidden; }
body[data-kind]::before { display:none; }
body[data-kind] .game-wrap { position:relative; width:100%; max-width:none; height:100%; margin:0; }
body[data-kind] .screen { width:100%; height:100%; min-height:0; max-height:none; aspect-ratio:auto; border:0; border-radius:0; box-shadow:none!important; }
body[data-kind] .screen::after { display:none; }
body[data-kind] .screen::before { display:block; height:140px; background:linear-gradient(#031021ad,transparent); }
body[data-kind] .toolbar { position:absolute; z-index:12; inset:auto 0 0; min-height:48px; padding:2px max(20px,env(safe-area-inset-right)) max(2px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left)); background:linear-gradient(transparent,#020b1bba); font-size:12px; gap:12px; pointer-events:none; }
body[data-kind] .toolbar strong { max-width:none; color:#e4d8bf; }
body[data-kind] .tools { gap:8px; pointer-events:auto; }
body[data-kind] .tools>span { font-size:12px; color:#bfc9d7; margin-right:8px; }
body[data-kind] .tools button { width:44px; height:44px; font-size:18px; background:#0515299c; border-color:#e8c27d66; }
body[data-kind] .screen .back { top:max(18px,env(safe-area-inset-top)); bottom:auto; left:max(20px,env(safe-area-inset-left)); min-height:44px; font-size:14px; padding:10px 14px; }
body[data-kind] .screen .result-copy { top:50%; transform:translateY(-50%); left:54%; right:6%; }
body[data-kind] .screen .result-copy h2 { font-size:clamp(38px,4.2vw,76px); }
body[data-kind] .screen .result-copy>p { font-size:clamp(16px,1.4vw,21px); line-height:1.5; }
body[data-kind] .screen .result-art { top:12%; bottom:10%; left:3%; width:48%; height:auto; }
body[data-kind] .screen .reward { padding:clamp(18px,2vw,30px); margin:clamp(18px,2.4vh,32px) 0; }
body[data-kind] .screen .reward strong { font-size:clamp(26px,2.4vw,42px); }
body[data-kind] .screen .result-actions .scene-save,body[data-kind] .screen .result-actions .scene-replay { min-height:48px; font-size:16px; padding:12px 20px; }
body[data-kind] .screen .save-state { font-size:12px; line-height:1.4; min-height:18px; }
dialog { max-height:calc(100dvh - 32px); overflow:auto; }
dialog p { font-size:16px; }
dialog .note { font-size:13px; }

@media(max-aspect-ratio:1/1) {
  body[data-kind] .screen .back { top:max(13px,env(safe-area-inset-top)); left:max(10px,env(safe-area-inset-left)); min-width:48px; padding:10px 8px; font-size:13px; }
  body[data-kind] .toolbar { padding-left:max(14px,env(safe-area-inset-left)); padding-right:max(10px,env(safe-area-inset-right)); }
  body[data-kind] .toolbar strong { display:none; }
  body[data-kind] .tools { width:100%; }
  body[data-kind] .tools>span { margin-right:auto; }
  body[data-kind] .screen .result-art { top:calc(78px + env(safe-area-inset-top)); left:10%; width:80%; height:37%; bottom:auto; }
  body[data-kind] .screen .result-copy { top:auto; bottom:calc(62px + env(safe-area-inset-bottom)); transform:none; left:6%; right:6%; }
  body[data-kind] .screen .result-copy h2 { font-size:clamp(30px,6.8vw,48px); }
  body[data-kind] .screen .result-copy>p { font-size:15px; margin-top:10px; }
  body[data-kind] .screen .reward { margin:16px 0; padding:16px 14px; }
  body[data-kind] .screen .reward strong { font-size:clamp(24px,5.8vw,34px); }
  body[data-kind] .screen .result-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  body[data-kind] .screen .result-actions .scene-save,body[data-kind] .screen .result-actions .scene-replay { font-size:14px; padding:12px 10px; min-height:46px; white-space:normal; }
}
@media(max-height:700px) and (max-aspect-ratio:1/1) {
  body[data-kind] .screen .result-art { top:calc(78px + env(safe-area-inset-top)); height:32%; }
  body[data-kind] .screen .result-copy { bottom:calc(56px + env(safe-area-inset-bottom)); }
  body[data-kind] .screen .result-copy h2 { font-size:30px; }
  body[data-kind] .screen .result-copy>p { font-size:14px; margin-top:8px; }
  body[data-kind] .screen .reward { margin:12px 0; padding:13px; }
}
@media(max-height:550px) and (min-aspect-ratio:1/1) {
  body[data-kind] .screen .back { top:8px; }
  body[data-kind] .screen .result-copy { top:51%; }
  body[data-kind] .screen .result-copy h2 { font-size:32px; }
  body[data-kind] .screen .result-copy>p { font-size:14px; margin-top:8px; }
  body[data-kind] .screen .reward { padding:12px; margin:12px 0; }
  body[data-kind] .screen .reward strong { font-size:24px; }
  body[data-kind] .screen .result-actions { gap:7px; }
  body[data-kind] .screen .result-actions .scene-save,body[data-kind] .screen .result-actions .scene-replay { font-size:13px; padding:10px 12px; min-height:44px; }
  body[data-kind] .screen .save-state { margin-top:7px; }
  body[data-kind] .toolbar { min-height:44px; }
  body[data-kind] .toolbar strong { display:none; }
  body[data-kind] .tools { margin-left:auto; }
}
@media(max-height:620px) and (max-aspect-ratio:1/1) {
  body[data-kind] .screen .result-art { top:calc(76px + env(safe-area-inset-top)); height:27%; }
  body[data-kind] .screen .result-copy h2 { font-size:28px; }
  body[data-kind] .screen .result-copy>p { font-size:14px; }
  body[data-kind] .screen .result-actions .scene-save,body[data-kind] .screen .result-actions .scene-replay { font-size:13px; padding:9px 7px; min-height:46px; }
}

/* The globe is composed inside the viewport, rather than a fixed-height card. */
body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .backdrop {
  background-image:url('assets/winter-scene.png');
  background-position:center;
  background-size:cover;
}
body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .backdrop:after {
  content:'';
  position:absolute;
  inset:9% 2% 8% 47%;
  width:auto;
  height:auto;
  aspect-ratio:auto;
  background:url('assets/globe-v2.png') center/contain no-repeat;
  filter:drop-shadow(0 20px 24px #00102055);
}
body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .shade {
  background:linear-gradient(90deg,#03142c66,transparent 65%);
}
body[data-kind=globe] .screen .frost-intro {
  left:5%;
  width:41%;
  top:28%;
}
body[data-kind=globe] .screen .frost-intro h1 {
  font-size:clamp(40px,5.2vw,88px);
  line-height:1.04;
}
body[data-kind=globe] .screen .frost-intro p {
  max-width:36ch;
  font-size:clamp(16px,1.25vw,22px);
  line-height:1.55;
  margin-top:24px;
}
body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .frost-start {
  left:25.5%;
  translate:-50% 0;
  bottom:21%;
  width:clamp(230px,20vw,310px);
  height:clamp(54px,4.5vw,68px);
}
body[data-kind=globe] .frost-orb-button strong {font-size:clamp(16px,1.3vw,21px)}
body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .glass-sheen {display:none!important}
body[data-kind=globe] .screen .frost-instructions {
  top:24%;
  left:5%;
  width:39%;
}
body[data-kind=globe] .screen .frost-instructions h2 {
  font-size:clamp(30px,3.2vw,58px);
  line-height:1.08;
}
body[data-kind=globe] .screen .frost-instructions>p {
  font-size:clamp(16px,1.2vw,21px);
  line-height:1.5;
  min-height:0;
  margin-top:18px;
}
body[data-kind=globe] .frost-constellations {margin-top:22px;gap:20px}
body[data-kind=globe] .frost-rune {width:52px;height:52px;font-size:31px}
body[data-kind=globe] .frost-motion-control {margin-top:22px}
body[data-kind=globe] .frost-motion-button {min-height:46px;font-size:15px;padding:11px 20px}
body[data-kind=globe] .frost-motion-status {
  font-size:14px;
  line-height:1.5;
  max-width:36ch;
  margin-top:10px;
  min-height:42px;
}
body[data-kind=globe] .globe-touch.frost-globe {
  top:11%;
  right:1%;
  width:54%;
  height:calc(89% - 76px - env(safe-area-inset-bottom,0px));
}
/* Image and fracture canvas share exactly the same containing rectangle. */
body[data-kind=globe] .globe-touch.frost-globe img {width:100%;height:100%;object-fit:contain}
body[data-kind=globe] .frost-glass {inset:0;width:100%;height:100%}
body[data-kind=globe] .frost-touch-prompt {
  bottom:-10px;
  left:4%;
  right:4%;
  font-size:13px;
  line-height:1.35;
  letter-spacing:.4px;
  white-space:normal;
}
body[data-kind=globe] .frost-globe.frost-ready .frost-touch-prompt {
  bottom:-10px;
  font-size:15px;
  min-height:44px;
  padding:10px 8px;
}
body[data-kind=globe] .screen .result-art {top:10%;left:3%;width:47%;height:calc(90% - 70px)}
body[data-kind=globe] .screen .result-copy {left:53%;right:5%;top:48%}
body[data-kind=globe] .screen .result-copy h2 {font-size:clamp(34px,4vw,68px)}
body[data-kind=globe] .screen .result-copy>p {font-size:clamp(16px,1.2vw,21px);line-height:1.5}
body[data-kind=globe] .screen .reward strong {font-size:clamp(27px,2.4vw,44px)}
body[data-kind=globe] .screen .result-actions .scene-save,
body[data-kind=globe] .screen .result-actions .scene-replay {min-height:48px;font-size:16px;padding:12px 20px}

/* Portrait: text, object, action. No desktop crop and no empty page below. */
@media(max-aspect-ratio:1/1) {
  body[data-kind=globe] .screen .frost-intro {
    top:calc(86px + env(safe-area-inset-top,0px));
    left:6%;width:88%;
  }
  body[data-kind=globe] .screen .frost-intro h1 {font-size:clamp(36px,9.8vw,64px);line-height:1.04}
  body[data-kind=globe] .screen .frost-intro p {
    font-size:clamp(14px,3.7vw,18px);
    line-height:1.45;
    margin-top:12px;
    max-width:32ch;
  }
  body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .backdrop:after {
    top:calc(clamp(220px,30dvh,330px) + env(safe-area-inset-top,0px));
    bottom:calc(126px + env(safe-area-inset-bottom,0px));
    left:5%;right:5%;width:auto;height:auto;aspect-ratio:auto;
  }
  body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .shade {
    background:linear-gradient(#04132b55,transparent 45%,#04132b10);
  }
  body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .frost-start {
    left:50%;
    bottom:calc(66px + env(safe-area-inset-bottom,0px));
    width:min(76%,310px);
    height:50px;
    min-height:50px;
  }
  body[data-kind=globe] .frost-orb-button strong {font-size:16px}
  body[data-kind=globe] .screen:is([data-phase=playing],[data-phase=charged],[data-phase=claiming],[data-phase=opening]) .frost-instructions {
    top:calc(82px + env(safe-area-inset-top,0px));
    left:5%;width:90%;
    display:grid;
    grid-template-columns:minmax(100px,.8fr) minmax(0,1.35fr);
    column-gap:12px;
    row-gap:9px;
    align-items:center;
  }
  body[data-kind=globe] .screen .frost-instructions h2 {
    grid-column:1/-1;
    font-size:clamp(28px,7.3vw,42px);
    line-height:1.08;
  }
  body[data-kind=globe] .screen .frost-instructions>#frost-guide {
    grid-column:1/-1;
    font-size:14px;
    line-height:1.45;
    min-height:41px;
    margin:0;
  }
  body[data-kind=globe] .frost-constellations {
    grid-column:1;grid-row:3;
    display:flex;gap:8px;
    justify-content:center;
    margin:0;
  }
  body[data-kind=globe] .frost-rune {width:32px;height:32px;flex-basis:32px;font-size:22px}
  body[data-kind=globe] .frost-motion-control:not([hidden]) {display:contents}
  body[data-kind=globe] .frost-motion-control[hidden] {display:none}
  body[data-kind=globe] .frost-motion-button {
    grid-column:2;grid-row:3;
    width:100%;min-height:44px;
    font-size:14px;line-height:1.2;
    padding:7px 10px;gap:5px;
  }
  body[data-kind=globe] .frost-motion-button>span {display:none}
  body[data-kind=globe] .frost-motion-status {
    grid-column:1/-1;grid-row:4;
    font-size:12px;line-height:1.4;
    width:100%;max-width:44ch;
    min-height:34px;margin:0 auto;
  }
  body[data-kind=globe] .globe-touch.frost-globe {
    top:calc(clamp(280px,34dvh,380px) + env(safe-area-inset-top,0px));
    bottom:calc(80px + env(safe-area-inset-bottom,0px));
    left:3%;right:3%;width:94%;height:auto;
  }
  body[data-kind=globe] .frost-touch-prompt {bottom:-12px;font-size:12px;letter-spacing:0}
  body[data-kind=globe] .frost-globe.frost-ready .frost-touch-prompt {bottom:-16px;font-size:14px}
  body[data-kind=globe] .screen .result-art {
    top:calc(82px + env(safe-area-inset-top,0px));
    bottom:calc(340px + env(safe-area-inset-bottom,0px));
    left:5%;width:90%;height:auto;
  }
  body[data-kind=globe] .screen .result-copy {
    top:auto;bottom:calc(66px + env(safe-area-inset-bottom,0px));
    left:5%;right:5%;width:90%;max-width:580px;
    margin-inline:auto;transform:none;
  }
  body[data-kind=globe] .screen .result-copy h2 {font-size:clamp(31px,7.8vw,48px);line-height:1.08}
  body[data-kind=globe] .screen .result-copy>p {font-size:14px;line-height:1.4;margin-top:9px}
  body[data-kind=globe] .screen .reward {padding:14px 12px;margin:15px 0;gap:10px}
  body[data-kind=globe] .screen .reward strong {font-size:28px}
  body[data-kind=globe] .screen .reward-icon {font-size:32px}
  body[data-kind=globe] .screen .result-actions {display:grid;grid-template-columns:1fr 1.4fr;gap:8px}
  body[data-kind=globe] .screen .result-actions .scene-save,
  body[data-kind=globe] .screen .result-actions .scene-replay {font-size:14px;line-height:1.2;min-height:48px;padding:9px 8px;white-space:normal}
  body[data-kind=globe] .screen .save-state {font-size:12px;line-height:1.35;margin-top:10px;min-height:16px}
}

/* Short landscape phones keep the same split composition, with compact spacing. */
@media(min-aspect-ratio:1/1) and (max-height:600px) {
  body[data-kind=globe] .screen .frost-intro {top:24%;left:4%;width:43%}
  body[data-kind=globe] .screen .frost-intro h1 {font-size:clamp(30px,4.6vw,44px)}
  body[data-kind=globe] .screen .frost-intro p {font-size:14px;line-height:1.4;margin-top:12px}
  body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .backdrop:after {inset:9% 1% 60px 48%}
  body[data-kind=globe] .screen:is([data-phase=intro],[data-phase=checking]) .frost-start {bottom:62px;height:44px;min-height:44px;width:220px}
  body[data-kind=globe] .screen .frost-instructions {top:17%;left:4%;width:43%}
  body[data-kind=globe] .screen .frost-instructions h2 {font-size:26px}
  body[data-kind=globe] .screen .frost-instructions>p {font-size:14px;line-height:1.35;margin-top:8px}
  body[data-kind=globe] .frost-constellations {margin-top:10px;gap:14px}
  body[data-kind=globe] .frost-rune {width:32px;height:32px;font-size:22px}
  body[data-kind=globe] .frost-motion-control {margin-top:10px}
  body[data-kind=globe] .frost-motion-button {font-size:14px;min-height:44px;padding:7px 14px}
  body[data-kind=globe] .frost-motion-status {font-size:12px;line-height:1.3;min-height:0;margin-top:6px}
  body[data-kind=globe] .globe-touch.frost-globe {top:12%;right:0;width:53%;height:calc(88% - 78px)}
  body[data-kind=globe] .frost-touch-prompt {font-size:12px}
  body[data-kind=globe] .screen .result-art {top:13%;height:calc(87% - 60px);width:46%}
  body[data-kind=globe] .screen .result-copy {top:48%;left:51%;right:4%}
  body[data-kind=globe] .screen .result-copy h2 {font-size:30px}
  body[data-kind=globe] .screen .result-copy>p {font-size:14px;margin-top:8px}
  body[data-kind=globe] .screen .reward {padding:10px 12px;margin:12px 0}
  body[data-kind=globe] .screen .reward strong {font-size:26px}
  body[data-kind=globe] .screen .result-actions {flex-wrap:nowrap;gap:8px}
  body[data-kind=globe] .screen .result-actions .scene-save,
  body[data-kind=globe] .screen .result-actions .scene-replay {font-size:14px;min-height:44px;padding:8px 10px;white-space:normal}
  body[data-kind=globe] .screen .save-state {font-size:12px;min-height:0;margin-top:8px}
}
