:root{--paper:#f6f2e9;--ink:#25373a;--muted:#6f7b78;--orange:#ff7b42;--orange-dark:#d45127;--mint:#bce3cb;--line:#dce0d6;--white:#fffefa;--radius:24px;font-family:ui-rounded,"Avenir Next",Avenir,"Trebuchet MS",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,a,input{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.48}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #17796a;outline-offset:4px}button{border:0}button svg,svg.icon{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg use{pointer-events:none}a{color:inherit}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.site-header{max-width:1260px;margin:auto;padding:26px 38px 20px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font-size:9px;font-weight:900;letter-spacing:1.6px;line-height:1.2}.brand strong{font-size:24px;letter-spacing:2.5px;line-height:1.05}.brand-box{position:relative;width:39px;height:39px;background:var(--orange);border:2px solid var(--ink);border-radius:11px;transform:rotate(-10deg);display:block;box-shadow:2px 2px 0 #25373a}.brand-box i{position:absolute;top:0;left:14px;width:8px;height:13px;background:#ffddaa}.brand-box b{font-size:25px;position:absolute;bottom:1px;left:8px;letter-spacing:4px}.header-right{display:flex;align-items:center;gap:22px}.prototype-badge{font-size:9px;font-weight:800;letter-spacing:1.3px;display:flex;align-items:center;gap:7px}.prototype-badge i{width:6px;height:6px;border-radius:50%;background:#f0ac68}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);background:var(--white);border-radius:12px;flex-shrink:0;transition:background .15s,transform .15s}.icon-button:hover{background:#eeeee4}.icon-button:active{transform:scale(.94)}.app-layout{max-width:1190px;margin:17px auto 0;display:grid;grid-template-columns:1fr 402px 1fr;gap:39px;align-items:center;padding:0 24px}.intro-rail{align-self:center;padding-bottom:20px}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:900;display:flex;align-items:center;gap:8px;margin-bottom:22px}.tiny-star{font-size:21px;color:var(--orange)}h1{font-size:61px;line-height:.99;letter-spacing:-3.4px;font-weight:900}h1 span{display:inline-block;color:var(--orange-dark);position:relative;z-index:0}h1 span:after{position:absolute;content:'';height:9px;left:-3px;right:-5px;bottom:-4px;background:#f9d9b6;z-index:-1;transform:rotate(-3deg)}.intro-copy{font-size:14px;line-height:1.7;color:#687572;margin:24px 0}.instruction-stack{display:grid;gap:12px}.instruction-stack>div{display:flex;align-items:center;gap:10px}.instruction-stack span{font-size:9px;width:25px;height:25px;border:1px solid #cfd7cc;border-radius:50%;display:grid;place-items:center;font-weight:800}.instruction-stack p{font-size:11px;color:#6a7773}.instruction-stack strong{color:var(--ink)}.small-note{font-size:13px;font-style:italic;line-height:1.6;color:#78847e;margin:24px 0 0 25px;position:relative;transform:rotate(-3deg)}.note-doodle{position:absolute;font-size:32px;left:-29px;top:-7px;color:#a1aea5}.desktop-progress{margin-top:35px;max-width:218px}.desktop-progress>div:first-child{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;align-items:center}.desktop-progress strong{font-size:12px;letter-spacing:0}.progress-track{height:6px;background:#e1e5d9;border-radius:8px;margin:10px 0 13px;overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:#568e72;transition:width .3s}.text-button{padding:0;border:0;background:none;display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800}.text-button svg{width:15px;height:15px}.game-shell{background:var(--white);border:1px solid #d8ddd2;border-radius:27px;box-shadow:0 18px 50px #29463210,0 4px 0 #d9dfd2;overflow:hidden;min-width:0}.game-heading{display:flex;align-items:center;gap:10px;padding:15px 16px 14px}.game-heading .icon-button{width:32px;height:34px;border:none;background:#f0f2e9}.game-heading>div{flex:1;min-width:0}.game-heading p{font-size:8px;font-weight:900;letter-spacing:1.4px;color:#718378;margin-bottom:5px}.game-heading h2{font-size:14px;letter-spacing:-.35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.level-counter{font-size:20px;letter-spacing:-1px;font-weight:900;line-height:1}.level-counter span{font-size:10px;font-weight:600;letter-spacing:0;color:#8b958c;margin-left:2px}.game-stage{position:relative;aspect-ratio:3/4;width:100%;max-height:480px;background:#edf0de;overflow:hidden}.game-stage canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;outline-offset:-4px}.stage-status{position:absolute;top:14px;left:16px;display:flex;align-items:center;gap:6px;font-size:8px;font-weight:900;letter-spacing:1px;background:#fffef9d9;padding:7px 10px;border-radius:20px;pointer-events:none}.status-dot{width:5px;height:5px;background:#ed8b50;border-radius:50%}.watch-fail{position:absolute;right:12px;top:11px;padding:7px 9px;background:transparent;display:flex;align-items:center;gap:3px;font-size:10px;font-weight:700;color:#687d6d;border-radius:9px}.watch-fail svg{width:13px;height:13px}.watch-fail:hover{background:#fff9}.level-tip{position:absolute;bottom:14px;left:14px;right:14px;background:#fffdf3ed;border:1px solid #e8d8a8;border-radius:13px;padding:11px 13px;font-size:11px;line-height:1.55;color:#675b35;box-shadow:0 3px 12px #51422108;pointer-events:none}.running-pill{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#25373ae8;color:#fff;padding:9px 13px;border-radius:20px;font-size:10px;display:flex;align-items:center;gap:7px}.running-pill span{width:5px;height:5px;background:#ffad7f;border-radius:50%;animation:pulse 1s infinite}.result-preview{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);font-size:26px;white-space:nowrap;font-weight:900;padding:15px 23px;border-radius:18px;background:#fffdf4e8;box-shadow:0 10px 40px #243a3a16;animation:pop .3s both}.game-controls{padding:11px 15px 10px}.adjust-row{display:flex;align-items:center;gap:9px;margin-bottom:10px}.selection-label{flex:1}.selection-label span{font-size:8px;font-weight:900;letter-spacing:.9px;display:block}.selection-label small{font-size:10px;color:#8b9289;display:block;margin-top:3px}.rotation-controls{display:flex;align-items:center;gap:4px}.rotate-button{border:none;background:#f0f2e9;font-size:25px;width:33px;height:32px;border-radius:9px;line-height:1}.rotation-controls output{min-width:29px;font-size:10px;text-align:center;font-variant-numeric:tabular-nums}.reset-button{border:none;background:none;width:28px;height:32px;margin-left:2px}.reset-button svg{width:17px;height:17px}.primary-button{display:flex;align-items:center;justify-content:center;position:relative;gap:8px;min-height:46px;border-radius:13px;background:var(--orange);color:#382c25;font-weight:900;font-size:14px;padding:12px 18px;box-shadow:0 3px 0 #d95f31;transition:transform .15s,box-shadow .15s,background .15s;width:100%}.primary-button:hover{background:#ff8b55}.primary-button:active{transform:translateY(2px);box-shadow:0 1px 0 #d95f31}.primary-button svg{width:17px;height:17px}.primary-button .button-spark{position:absolute;right:17px;font-size:20px;font-weight:400}.help-row{display:grid;grid-template-columns:1fr 1.15fr .9fr;margin-top:13px;gap:5px}.help-row button{background:none;font-size:9px;display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;padding:7px 3px;border-radius:8px}.help-row button:hover{background:#f0f2e9}.help-row svg{width:15px;height:15px;stroke-width:1.7}.help-row button>span{display:grid;place-items:center;font-size:8px;font-weight:800;background:#f0f2e9;width:17px;height:17px;border-radius:6px}.help-row button.is-active{background:#e0f1e6;color:#316c4e}.game-nav{display:grid;grid-template-columns:repeat(4,1fr);padding:8px 9px 9px;border-top:1px solid #eceee5;background:#fcfdf7}.game-nav button{display:flex;align-items:center;justify-content:center;gap:5px;background:transparent;color:#7c897f;font-size:9px;padding:7px 3px;border-radius:9px}.game-nav svg{width:15px;height:15px}.game-nav button.active{background:#e9eee2;color:#344c3d;font-weight:800}.side-rail{padding-top:24px}.postcard{background:#e7ecd9;padding:20px 23px;border:1px solid #d6dfc9;border-radius:9px;transform:rotate(3deg);position:relative;box-shadow:0 7px 0 -3px #d9decf;margin-bottom:27px}.postcard:before{content:'';position:absolute;width:67px;height:21px;background:#f1dec0c9;top:-12px;left:calc(50% - 33px);transform:rotate(-9deg)}.postcard-heading{display:flex;justify-content:space-between;font-size:8px;font-weight:900;letter-spacing:1.3px;color:#7c8a70}.postcard-heading>span:last-child{font-size:18px;line-height:10px}.parcel-sticker{width:90px;height:90px;border-radius:29px;background:#ff955e;border:2px solid #48563c;margin:31px auto 23px;position:relative;box-shadow:4px 5px 0 #ccd6b8;transform:rotate(-14deg)}.parcel-tape{width:15px;height:29px;background:#ffe4ab;position:absolute;top:0;left:35px;clip-path:polygon(0 0,100% 0,100% 100%,50% 79%,0 100%)}.parcel-eye{width:7px;height:9px;background:#3b4936;border-radius:50%;position:absolute;top:44px}.parcel-eye.left{left:25px}.parcel-eye.right{right:25px}.parcel-mouth{position:absolute;width:15px;height:9px;border:2px solid #3b4936;border-top:0;border-radius:0 0 12px 12px;left:35px;top:59px}.parcel-sticker i{position:absolute;right:-24px;top:-8px;font-size:25px;color:#7b8a63;transform:rotate(10deg)}.postcard h3{font-size:24px;letter-spacing:-.8px;line-height:1.1;text-align:center;font-weight:900}.postcard p{font-size:11px;line-height:1.6;color:#718164;text-align:center;margin-top:13px}.postcard-bottom{display:flex;justify-content:space-between;border-top:1px dashed #c6d2b9;margin-top:21px;padding-top:11px;font-size:8px;letter-spacing:1.4px;font-weight:800;color:#829174}.shop-teaser{display:flex;align-items:center;text-align:left;gap:10px;background:transparent;padding:10px 2px;width:100%}.shop-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid #d7ddce;background:#fbfcf5;border-radius:11px}.shop-teaser>span:nth-child(2){flex:1}.shop-teaser strong{font-size:10px;display:block}.shop-teaser small{font-size:8px;display:block;color:#8b9488;margin-top:4px}.shop-teaser>span:last-child{color:#89947e}.prototype-note{font-size:9px;line-height:1.8;color:#8f988c;margin:14px 0 26px;text-align:center}.keyboard-note{font-size:9px;color:#99a191;line-height:2.2;text-align:center}kbd{font-family:inherit;font-size:8px;border:1px solid #d7ddcf;border-radius:4px;padding:2px 4px;margin:0 2px;box-shadow:0 1px 0 #d9decf}.site-footer{max-width:1190px;margin:30px auto 0;padding:0 24px 20px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.1px;color:#9aa294}.site-footer>span:last-child{letter-spacing:0;display:flex;align-items:center;gap:6px}.site-footer i{width:4px;height:4px;border-radius:50%;background:#82a381}.toast{position:fixed;bottom:30px;left:50%;max-width:calc(100% - 32px);width:max-content;transform:translate(-50%,16px);background:#263e35;color:#fff;font-size:12px;line-height:1.5;padding:13px 20px;border-radius:13px;z-index:50;box-shadow:0 6px 25px #203c372b;opacity:0;pointer-events:none;transition:.2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.modal-backdrop{position:fixed;inset:0;background:#1b302e72;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:22px;z-index:30}.modal{width:100%;max-width:440px;max-height:calc(100vh - 44px);max-height:calc(100dvh - 44px);overflow-y:auto;overscroll-behavior:contain;background:var(--white);border:1px solid #eceddf;border-radius:26px;box-shadow:0 24px 100px #152c3c30;padding:25px;animation:pop .2s ease-out}.modal-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.modal-head .eyebrow{font-size:8px;margin:2px 0 7px}.modal-head h2{font-size:27px;letter-spacing:-1px;line-height:1.1}.modal-head .icon-button{width:32px;height:32px;border:none;background:#f0f2e9}.modal-subtitle{font-size:12px;line-height:1.7;color:#77867a;margin:-8px 0 19px}.world-section+.world-section{margin-top:23px}.world-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.world-title strong{font-size:12px}.world-title small{font-size:9px;color:#7a877c}.level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.level-button{height:71px;background:#f1f2e8;border:1px solid #e1e5d5;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:20px;font-weight:900;position:relative}.level-button.current{border:2px solid var(--orange);background:#fff3e7}.level-button.done{background:#e3f0e4;border-color:#c7decc}.level-button small{font-size:9px;letter-spacing:1px;color:#8a9d7a;height:11px}.level-button small svg{width:10px;height:10px;fill:#7b9e6f;stroke:none}.level-button .lock{width:19px;height:19px;opacity:.5}.level-button.skipped{background:#eeedf8}.level-button .level-help{position:absolute;right:6px;top:5px;font-size:8px;color:#6c8870}.shop-note{background:#fff3e1;border:1px solid #f0ddbe;border-radius:12px;padding:11px 13px;margin-bottom:16px;font-size:11px;line-height:1.6;color:#8c7048}.shop-feature{background:#253e35;color:white;border-radius:19px;padding:20px;position:relative;overflow:hidden;margin-bottom:13px}.shop-feature:after{content:'✦';position:absolute;right:15px;top:10px;font-size:50px;color:#bce3cb3b}.shop-feature .tag{font-size:8px;letter-spacing:1.4px;font-weight:800;color:#bce3cb}.shop-feature h3{font-size:23px;letter-spacing:-.7px;margin:8px 0}.shop-feature p{font-size:11px;line-height:1.6;color:#c2d0c5;max-width:260px}.shop-feature button{margin-top:16px;background:#d7edcf;color:#263e35;box-shadow:0 3px 0 #a7c8a4;font-size:12px;min-height:41px}.product-list{display:grid;gap:8px}.product{border:1px solid #e6e8df;border-radius:15px;padding:13px;display:flex;align-items:center;gap:11px}.product-icon{width:39px;height:39px;border-radius:12px;background:#f6ecd6;display:grid;place-items:center;flex-shrink:0}.product-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.product:nth-child(2) .product-icon{background:#e9e4f5}.product:nth-child(3) .product-icon{background:#e2eddc}.product:nth-child(4) .product-icon{background:#dbf0e5}.product-details{flex:1;min-width:0}.product strong{display:block;font-size:12px}.product small{display:block;font-size:10px;line-height:1.4;color:#7e887d;margin-top:4px}.product button{padding:8px 10px;font-size:11px;font-weight:800;background:#f0f3e7;border-radius:9px;min-width:66px;min-height:38px}.fine-print{font-size:10px;line-height:1.7;color:#889182;margin-top:15px}.secondary-button{border:1px solid #dbe1d3;border-radius:12px;min-height:43px;background:#f4f6ed;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:800;padding:11px 16px;width:100%}.button-row{display:flex;gap:10px;margin-top:18px}.button-row>*{flex:1}.result-content{text-align:center;padding:6px 3px 0}.result-emoji{width:100px;height:100px;margin:0 auto 12px;display:grid;place-items:center;border-radius:33px;background:#e1efd9;font-size:45px;transform:rotate(-6deg)}.result-emoji.loss{background:#fff0dc}.result-content h2{font-size:32px;font-weight:900;letter-spacing:-1.3px}.result-content p{font-size:12px;line-height:1.7;color:#7f8b7d;margin:10px 0 21px}.result-stars{display:flex;justify-content:center;gap:9px;margin:15px 0}.result-stars svg{width:27px;height:27px;fill:#efb760;stroke:none}.result-stars svg.empty{fill:#e4e6dc}.result-reward{font-size:11px;color:#527b55;background:#eaf2e3;padding:9px;border-radius:9px;margin:13px 0}.result-content .secondary-button{margin-top:10px}.result-content .text-button{margin-top:20px;font-size:10px;color:#8a947e}.ad-topline{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7e8dc;padding-bottom:13px;font-size:9px;letter-spacing:1px;font-weight:800;color:#8f987f}.ad-card{height:220px;margin:20px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e9eedc;border-radius:18px;position:relative;overflow:hidden}.ad-card .ad-shape{font-size:50px;color:#7d9b68;line-height:1}.ad-card h2{font-size:25px;margin-top:15px;letter-spacing:-.8px}.ad-card p{font-size:11px;color:#7b8b6a;margin-top:7px}.ad-progress{height:4px;border-radius:5px;background:#e0e5d6;overflow:hidden;margin-bottom:18px}.ad-progress i{height:100%;background:#779364;display:block;width:0;transition:width .1s linear}.ad-explanation{text-align:center;font-size:10px;line-height:1.7;color:#8c9781;margin-top:13px}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #edf0e4;font-size:13px}.setting-row small{display:block;color:#85907e;font-size:10px;margin-top:5px;line-height:1.5}.switch{width:42px;height:25px;flex-shrink:0;background:#d4dccb;border-radius:20px;padding:3px;transition:.2s;border:0}.switch:before{content:'';display:block;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 4px #0001;transition:.2s}.switch[aria-checked=true]{background:#658a65}.switch[aria-checked=true]:before{transform:translateX(17px)}.settings-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#eff2e7;border-radius:14px;padding:15px 8px;margin:20px 0;text-align:center}.settings-stats strong{display:block;font-size:22px}.settings-stats small{font-size:8px;color:#819076}.settings-actions{display:grid;gap:9px}.settings-actions .secondary-button{font-size:11px}.danger-text{color:#a25e43}.skin-options{display:flex;gap:8px}.skin-dot{width:30px;height:30px;border:2px solid transparent;border-radius:9px;background:var(--orange)}.skin-dot.mint{background:#a5dcc1}.skin-dot.chosen{outline:2px solid #4a6954;outline-offset:2px}.purchase-confirm{text-align:center}.purchase-confirm h3{font-size:24px;letter-spacing:-.7px;margin:15px 0 9px}.purchase-price{font-size:32px;font-weight:900;margin:15px 0 6px}.purchase-confirm p{color:#7d8b76;font-size:12px;line-height:1.7}.receipt-banner{background:#e9f1e2;border-radius:12px;padding:11px;margin:15px 0;font-size:11px;line-height:1.6}.noscript{margin:50px;text-align:center}.empty-message{font-size:13px;line-height:1.7;color:#7f8b79;text-align:center;padding:15px}.modal::-webkit-scrollbar{width:5px}.modal::-webkit-scrollbar-thumb{background:#d5ddcd;border-radius:8px}@keyframes pop{from{opacity:0;scale:.96}to{opacity:1;scale:1}}@keyframes pulse{50%{opacity:.3}}
@media(min-width:1500px){.app-layout{margin-top:45px;gap:55px;grid-template-columns:1fr 420px 1fr;max-width:1260px}.game-stage{max-height:500px}.site-header{padding-top:34px}.site-footer{margin-top:40px}}
@media(max-width:1050px){.app-layout{grid-template-columns:1fr 390px;gap:45px;max-width:800px}.side-rail{display:none}.site-header{max-width:850px}.site-footer{max-width:800px}.intro-rail h1{font-size:59px}.site-footer>span:first-child{display:none}}
@media(max-width:700px){.site-header{padding:14px 20px 10px}.header-right{gap:9px}.desktop-settings{display:none}.app-layout{display:block;margin:9px auto 0;padding:0 14px;max-width:424px}.intro-rail,.side-rail{display:none}.brand{font-size:7px;gap:8px}.brand strong{font-size:19px}.brand-box{width:31px;height:31px;border-radius:9px}.brand-box i{left:11px;width:6px;height:10px}.brand-box b{font-size:20px;bottom:0;left:6px;letter-spacing:3px}.prototype-badge{font-size:7px;letter-spacing:.8px}.game-shell{border-radius:22px;box-shadow:0 7px 22px #2946320b,0 3px 0 #d9dfd2}.game-heading{padding:12px 13px}.game-heading h2{font-size:13px}.game-heading p{font-size:7px}.game-stage{height:min(52vh,480px);height:min(52dvh,480px);aspect-ratio:auto;max-height:none}.game-controls{padding:9px 12px 8px}.adjust-row{margin-bottom:8px}.primary-button{min-height:44px}.help-row{margin-top:10px}.game-nav{padding:5px 7px 6px}.game-nav button{font-size:9px;padding:8px 3px}.site-footer{display:block;text-align:center;padding:0 12px calc(10px + env(safe-area-inset-bottom));margin-top:12px;font-size:8px}.site-footer>span:last-child{justify-content:center}.modal-backdrop{padding:16px}.modal{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:22px;border-radius:22px}.toast{bottom:calc(25px + env(safe-area-inset-bottom))}.postcard{transform:none}}
@media(max-width:370px){.app-layout{padding:0 9px}.game-heading h2{font-size:12px}.game-heading{gap:7px}.help-row button{font-size:8px}.modal{padding:18px}.level-grid{gap:7px}.stage-status{font-size:7px;left:10px}.watch-fail{font-size:9px;right:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the complete game usable even when a narrow browser has classic scrollbars. */
body{min-width:280px}
.level-tip{position:static;margin:10px 12px 0;pointer-events:auto}
@media(max-width:700px){.game-stage{height:min(52vh,calc(100vh - 365px),480px);height:min(52dvh,calc(100dvh - 365px),480px);min-height:250px}.rotate-button{width:38px;height:38px}.reset-button{width:34px;height:38px}.help-row button,.game-nav button{min-height:38px}.stage-status{max-width:65%}.selection-label{min-width:0}}

/* A long journey, with precise controls that stay out of the way until needed. */
.challenge-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 11px;font-size:9px;min-height:25px}
.difficulty-badge{display:inline-flex;align-items:center;gap:6px;color:#587c58;font-weight:800;white-space:nowrap}
.difficulty-dots{font-size:8px;letter-spacing:1px}
.difficulty-badge[data-difficulty="2"],.world-difficulty[data-difficulty="2"]{color:#927033}
.difficulty-badge[data-difficulty="3"],.world-difficulty[data-difficulty="3"]{color:#b56234}
.difficulty-badge[data-difficulty="4"],.world-difficulty[data-difficulty="4"]{color:#946193}
.difficulty-badge[data-difficulty="5"],.world-difficulty[data-difficulty="5"]{color:#ae4b60}
.mechanic-label{font-size:8px;color:#8a968b;letter-spacing:.7px;text-align:right}
.checkpoint-count{border-radius:20px;background:#fff0c5;padding:4px 8px;font-size:9px;font-weight:800;color:#866326;white-space:nowrap;font-variant-numeric:tabular-nums}
.checkpoint-count.complete{background:#e2efdf;color:#47704a}
.route-note{padding:8px 14px;background:#f3f4ea;border-bottom:1px solid #e7eadd;font-size:10px;line-height:1.55;color:#75816c}
.precision-row{display:flex;justify-content:space-between;align-items:center;margin:-3px 0 9px;gap:8px}
.precision-row .text-button{min-height:28px;font-size:10px;color:#7c8879;border-radius:7px;padding:3px 0}
.precision-row .text-button[aria-expanded="true"]{color:#b5683c}
.precision-row .text-button svg{width:12px;height:12px}
.precision-row .text-button>span{font-size:15px;margin-left:2px}
.precision-panel{background:#f3f4eb;border:1px solid #e5e8dc;padding:8px;border-radius:12px;margin-bottom:11px}
.precision-caption{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#819077;margin:0 2px 7px;gap:8px}
.precision-caption output{font-variant-numeric:tabular-nums;font-size:8px;color:#8f9988}
.precision-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.precision-controls button{height:39px;background:#fffdf7;border:1px solid #e0e6d8;border-radius:8px;font-size:19px;display:flex;align-items:center;justify-content:center;gap:2px}
.precision-controls button:hover{background:#fff0de;border-color:#e9bd95}
.precision-controls button small{font-size:8px;font-weight:800}
.challenge-postcard{border-top:1px dashed #d4dccb;padding:20px 3px 0;margin:9px 0 0}
.challenge-postcard>span{font-size:8px;font-weight:900;color:#ad7954;letter-spacing:1.4px}
.challenge-postcard>strong{display:block;font-size:23px;font-weight:900;line-height:1.15;letter-spacing:-.7px;margin-top:9px}
.challenge-postcard p{font-size:10px;color:#84917a;line-height:1.7;margin:9px 0 13px}
.challenge-postcard .text-button{color:#697b60;font-size:10px}
.journey-progress{display:grid;grid-template-columns:1fr 1fr;border-radius:15px;background:#eff2e7;padding:14px;margin-bottom:20px;text-align:center;gap:10px}
.journey-progress strong{display:block;font-size:25px;font-weight:900;letter-spacing:-1px}
.journey-progress strong span{font-size:11px;font-weight:600;color:#99a58e;letter-spacing:0;margin-left:3px}
.journey-progress small{font-size:8px;letter-spacing:1.3px;color:#839278;font-weight:800}
.journey-world{border:1px solid #e1e6d9;border-radius:15px;margin:9px 0;background:#fffef9;overflow:hidden}
.journey-world summary{display:flex;align-items:center;gap:11px;padding:14px 12px;cursor:pointer;list-style:none;min-height:70px}
.journey-world summary::-webkit-details-marker{display:none}
.journey-world summary:focus-visible{outline:2px solid var(--orange);outline-offset:-3px;border-radius:14px}
.world-number{width:31px;height:34px;display:grid;place-items:center;font-size:13px;font-weight:900;color:var(--world-color);background:#f0f2e9;border-radius:10px;flex-shrink:0}
.world-summary{flex:1;min-width:0}
.world-summary strong{font-size:12px;display:block;line-height:1.35}
.world-summary small{font-size:9px;color:#8a9680;display:block;margin-top:4px}
.world-chevron{font-size:18px;color:#9ba68f;transition:transform .15s}
.journey-world[open] .world-chevron{transform:rotate(180deg)}
.journey-world[open] summary{background:#f7f8ef}
.world-body{padding:12px}
.world-body>p{font-size:11px;line-height:1.6;color:#849079}
.world-difficulty{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:9px;font-weight:800;color:#63835a;margin:10px 0 13px}
.world-difficulty>span{font-size:8px;letter-spacing:1.5px}
.journey-world .level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.journey-world .level-button{height:63px;border-radius:11px;font-size:17px}
.journey-world .level-button:disabled{opacity:.6}
.journey-world .level-button .lock{position:absolute;right:4px;top:4px;width:9px;height:9px;opacity:.7}
.journey-world .level-button small{font-size:7px;letter-spacing:0}
.journey-world .level-button small svg{width:8px;height:8px}
.journey-world .level-help{font-size:6px;top:4px;right:4px}
@media(max-width:700px){.challenge-strip{padding:0 13px 9px}.game-stage{height:min(52dvh,calc(100dvh - 430px),480px)}.precision-open .game-stage{height:min(46dvh,calc(100dvh - 500px),420px)}.precision-row .text-button{min-height:28px}.precision-row{margin-bottom:7px}.game-heading p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-heading h2{font-size:12px}}
@media(max-width:370px){.challenge-strip{font-size:8px}.difficulty-dots{letter-spacing:0}.mechanic-label{font-size:7px}.world-body{padding:10px}.journey-world .level-grid{gap:5px}.journey-world .level-button{height:56px;font-size:15px}.world-summary strong{font-size:11px}.precision-controls{gap:3px}.world-number{width:25px;font-size:11px}.journey-world summary{gap:8px;padding:12px 10px}.checkpoint-count{font-size:8px}}

/* Keep angles and rings physically faithful on both tall and short screens. */
.game-stage{display:flex;align-items:center;justify-content:center;background:var(--world-background,#edf0de)}
.game-stage canvas{width:auto;height:100%;aspect-ratio:3/4;max-width:100%;flex:none}
@media(max-width:700px){.game-stage,.precision-open .game-stage{height:clamp(300px,52vh,480px);height:clamp(300px,52dvh,480px);min-height:300px}}

@media(max-width:700px){.stage-status{top:7px;padding:5px 8px}.watch-fail{top:5px}}

/* A small daily challenge and contextual help, without covering the puzzle. */
.game-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.game-nav button{min-width:0;flex-direction:column;gap:4px;min-height:45px}
.daily-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#e8f2eb;border-top:1px solid #dce8de;padding:9px 14px;color:#456e58;font-size:10px}
.daily-banner>span{font-weight:800}.daily-banner .text-button{font-size:9px;min-height:28px}
.daily-teaser{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:15px 12px;margin-top:13px;background:#e9f0df;border:1px solid #d8e2ce;border-radius:15px}
.daily-teaser>span:nth-child(2){flex:1}.daily-teaser small,.daily-teaser strong,.daily-teaser em{display:block}
.daily-teaser small{font-size:8px;letter-spacing:1px;color:#70895d;font-weight:900}.daily-teaser strong{font-size:12px;margin:5px 0;line-height:1.4}.daily-teaser em{font-size:9px;line-height:1.5;font-style:normal;color:#7c8c6d}
.daily-icon{width:37px;height:39px;display:grid;place-items:center;background:#fffdf3;border-radius:11px;flex-shrink:0}.daily-icon svg{width:23px;height:23px;color:#688353}
.daily-card{background:#eef3e5;border:1px solid #dae5d0;border-radius:18px;padding:18px;margin:18px 0}.daily-card-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.daily-card-heading span{font-size:9px;font-weight:900;letter-spacing:1px;color:#6f875d}.daily-card h3{font-size:22px;letter-spacing:-.5px;margin:12px 0 7px}.daily-card p{font-size:12px;line-height:1.65;color:#718366}.daily-card .daily-date{font-size:10px;letter-spacing:0}.daily-summary{display:flex;gap:8px;margin:16px 0}.daily-summary>div{flex:1;background:#fffdf7;border:1px solid #dce4d4;border-radius:12px;padding:12px 7px;text-align:center}.daily-summary strong{display:block;font-size:19px;color:#536f44}.daily-summary small{display:block;font-size:8px;letter-spacing:.5px;margin-top:4px;color:#839173}.daily-summary .result-stars{margin:0;gap:3px}.daily-summary .result-stars svg{width:18px;height:18px}.daily-reward{font-size:11px!important;font-weight:800;margin:10px 0 0;color:#527444!important}.daily-map-entry{margin:0 0 18px}.daily-result-date{font-size:10px;letter-spacing:1px;color:#76846b;font-weight:800;margin:0 0 12px}.share-button{display:flex;margin:15px auto 2px;align-items:center;justify-content:center;min-height:40px;gap:7px}.share-text{width:100%;min-height:130px;resize:vertical;border:1px solid #d5decc;border-radius:12px;background:#f5f7ed;padding:14px;font:inherit;font-size:13px;line-height:1.7;color:var(--ink);margin:15px 0}.share-status{font-size:11px;color:#6d7e62;min-height:20px;margin:12px 0}.coach-panel{display:flex;align-items:center;gap:10px;margin:10px 12px 0;padding:10px 9px 10px 12px;background:#fff0de;border:1px solid #f1d6b8;border-radius:12px}.coach-panel>span{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;background:#ffe0bd;font-size:10px;font-weight:900;color:#a56439}.coach-panel p{font-size:11px;line-height:1.5;flex:1;color:#805c40}.coach-panel .icon-button{width:30px;height:32px;background:none;border:0}.coach-panel .icon-button svg{width:14px;height:14px}.coach-target{box-shadow:0 0 0 3px #ffd7ad!important}.help-row.daily-help{display:block}.help-row.daily-help #hint-button{margin:auto;min-width:150px}.help-row.daily-help #hint-count{width:auto;padding:0 5px}.native-notice{border:1px solid #e1e6d8;background:#f3f5eb;border-radius:14px;padding:14px;font-size:12px;line-height:1.7;color:#74816b;margin:15px 0}.native-notice strong{color:var(--ink)}
@media(max-width:700px){.game-nav button{min-height:43px;font-size:8px}.game-nav svg{width:16px;height:16px}.coach-panel p{font-size:10px}.daily-banner{padding:6px 12px}.daily-card{padding:15px}.daily-card h3{font-size:21px}}
@media(max-width:700px){.guide-layout .game-stage{height:clamp(280px,42vh,380px);height:clamp(280px,42dvh,380px);min-height:280px}.help-row:not(.daily-help):has(#extra-button[hidden]){grid-template-columns:1fr 1fr}.watch-fail{font-size:8px;max-width:110px}}

/* Language controls stay within thumb reach on a narrow iPhone screen. */
.language-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:13px;background:#eeeee4;flex-shrink:0}
.language-switch button{min-width:42px;min-height:38px;padding:8px 11px;border-radius:9px;background:transparent;font-size:11px;font-weight:900;letter-spacing:.3px}
.language-switch button[aria-pressed="true"]{background:var(--white);color:#315d46;box-shadow:0 1px 4px #243a3a15}
.language-switch button:disabled{opacity:.5}
.language-setting{gap:12px;flex-wrap:wrap}.language-setting .language-switch button{min-width:78px;min-height:44px}
@media(max-width:700px){.site-header{padding-top:max(10px,env(safe-area-inset-top));padding-bottom:6px}.header-right{gap:8px}.header-right .prototype-badge{display:none}.language-switch button{min-width:43px;min-height:40px}.language-setting .language-switch button{min-width:78px}}
@media(max-width:370px){.site-header{padding-left:16px;padding-right:16px}.daily-banner{gap:6px}.daily-banner .text-button{font-size:8px}}
