:root{font-family:'Noto Sans SC',system-ui,-apple-system,sans-serif;color:#4e493f;background:#eee4d2;font-synthesis:none;--orange:#ed9145;--cream:#fffaf0}*{box-sizing:border-box}body{margin:0;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #329faa;outline-offset:3px}.app{height:100dvh;min-height:470px;max-height:1000px;max-width:470px;margin:0 auto;display:flex;flex-direction:column;background:#f7eedf;padding:max(env(safe-area-inset-top),10px) 14px max(env(safe-area-inset-bottom),8px);overflow:hidden}.top{height:41px;flex:none;display:flex;gap:9px;align-items:center}.icon{position:relative;display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:12px;background:#e9deca;color:#665b46;text-decoration:none;font-size:19px;font-weight:800}.back{font-size:29px;padding-bottom:4px}.brand{flex:1}.brand strong{display:block;font-size:15px;letter-spacing:2px}.brand span{display:block;font-size:7px;letter-spacing:2.2px;font-weight:700;color:#a28c6e;margin-top:1px}.icon i{position:absolute;width:19px;height:2px;transform:rotate(-48deg);background:#8b7056}.icon.on i{display:none}.level-head{display:flex;align-items:center;justify-content:space-between;padding:10px 3px 9px;flex:none}.eyebrow{font-size:9px;color:#9a7b57;font-weight:800;letter-spacing:1.2px}h1{font-size:20px;line-height:1.25;letter-spacing:1px;margin:4px 0 0}.level-pill{padding:9px 10px;border:1px solid #d6c6aa;color:#635841;background:#fff7e7;border-radius:12px;font-weight:900;font-size:15px}.level-pill span{font-size:9px;color:#9b886a;letter-spacing:.2px}.field{position:relative;min-height:0;flex:1;overflow:hidden;border:1px solid #e3d1b2;background:#f4e4cb;border-radius:22px;box-shadow:0 3px 0 #dbcaaf;display:flex;align-items:center;justify-content:center}canvas{display:block;max-width:100%;max-height:100%;touch-action:none;user-select:none;-webkit-user-select:none}.tip{position:absolute;left:50%;top:9px;transform:translateX(-50%);white-space:nowrap;padding:5px 10px;border:1px solid #e2c29455;background:#fff8e8ed;color:#87663e;font-size:10px;font-weight:700;border-radius:20px;box-shadow:0 3px 8px #88633912;pointer-events:none;transition:opacity .2s}.tip span{font-size:12px}.tip.faded{opacity:0}.status-strip{pointer-events:none;position:absolute;left:15px;right:15px;bottom:12px;display:flex;justify-content:space-between;font-size:8px;color:#8b735b}.status-strip span{background:#fff6e7b8;border-radius:7px;padding:3px 7px}footer{flex:none;padding-top:14px}.actions{display:flex;gap:9px;height:49px}.primary{flex:1;border-radius:15px;background:linear-gradient(#f7ae55,#ed8b3e);color:#fff9e9;font-weight:900;font-size:16px;letter-spacing:2px;box-shadow:0 4px 0 #bd652e,0 5px 10px #a9612520;text-shadow:0 1px 1px #b8663330;display:flex;gap:10px;align-items:center;justify-content:center}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #bd652e}.primary:disabled{background:#d9cab0;box-shadow:0 3px 0 #baaa91;color:#fffdf5;cursor:default;text-shadow:none;font-size:14px}.play-icon{font-size:12px}.secondary{width:65px;background:#e9deca;border:1px solid #dfd0b7;border-radius:14px;font-size:10px;font-weight:700;color:#857052;display:flex;gap:1px;flex-direction:column;justify-content:center;align-items:center}.secondary span{font-size:21px;height:23px;line-height:22px}footer p{font-size:8px;text-align:center;color:#a18b6e;margin:11px 0 0;letter-spacing:.25px}.shade{position:fixed;inset:0;background:#3d34246e;backdrop-filter:blur(5px);z-index:10;display:grid;place-items:center;padding:20px;overflow:auto}.hidden{display:none!important}.sheet{max-width:400px;width:100%;max-height:90dvh;overflow:auto;background:#fff8ea;border:1px solid #f5dfb9;border-radius:28px;padding:26px 22px;box-shadow:0 15px 70px #4c37254d;text-align:center}.sheet h2{font-size:24px;margin:5px 0 10px;color:#554c3c}.sheet p{font-size:12px;line-height:1.9;color:#998162}.sheet .big{font-size:44px;line-height:1.5}.sheet .primary{width:100%;height:49px;margin:17px 0 12px}.sheet .quiet{display:inline-block;background:none;padding:10px 13px;color:#958064;font-size:12px}.sheet .small{font-size:10px;color:#ad997c}.star-row{color:#edb13f;font-size:30px;letter-spacing:8px;line-height:1.5}.sheet .chapter-tabs{display:flex;gap:4px;justify-content:center;margin:18px -5px 16px}.chapter-tabs button{flex:1;background:#eadfc9;color:#9d8461;border-radius:10px;padding:8px 2px;font-size:9px}.chapter-tabs .selected{background:#eb984b;color:#fff;font-weight:800}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:15px 0}.level-grid button{position:relative;aspect-ratio:1;border:1px solid #e8d4af;background:#fff4d9;border-radius:13px;font-size:18px;font-weight:800;color:#9f7446}.level-grid button span{display:block;font-size:7px;color:#e5a034;letter-spacing:1px}.level-grid .current{outline:2px solid #ed9850}.level-grid button:disabled{color:#c9bfae;background:#eee8db;border-color:#e4dac7;cursor:default}.help-list{text-align:left;font-size:13px;line-height:1.9;color:#887255;padding-left:20px}.help-list li{margin:10px 0}.total-pill{display:inline-block;background:#f1e5cd;padding:7px 14px;border-radius:12px;font-size:12px;color:#8b6e43}.fail{color:#c47754}@media(min-width:600px){body{display:grid;place-items:center;min-height:100dvh;background:radial-gradient(ellipse at 40% 20%,#f5eddd,#d9cab1)}.app{width:430px;height:min(96dvh,900px);border-radius:29px;box-shadow:0 20px 80px #80684330;padding:14px 17px 13px;border:1px solid #fff8e7}.top{height:44px}}@media(max-height:660px){.app{padding-top:5px}.top{height:32px}.icon{height:29px;width:29px;border-radius:10px}.brand strong{font-size:12px}.brand span{font-size:6px}.level-head{padding:6px 2px}h1{font-size:17px}.eyebrow{font-size:8px}.level-pill{padding:6px 9px}.actions{height:43px}footer{padding-top:10px}footer p{margin-top:8px;font-size:7px}.primary{font-size:14px}.secondary{width:58px}.tip{font-size:8px;top:5px;padding:4px 8px}.status-strip{bottom:5px;font-size:7px}}
/* Revamp: compact toy-worksite controls and bilingual layouts. */
:root{color:#4d473d;background:#e9deca}.app{background:linear-gradient(150deg,#fff7e6,#f1e4cc)}.brand{min-width:0}.brand strong{font-size:14px;letter-spacing:.2px;white-space:nowrap}.brand span{display:block;font-size:7px;letter-spacing:1.3px;color:#a08665;font-weight:800}.top{gap:7px}.icon{background:linear-gradient(#fff7e7,#e5d5b9);box-shadow:inset 0 1px #fff,0 2px 2px #b1967030;border:1px solid #ddcaae}.language select{width:50px;padding:8px 2px;border:1px solid #ddcaae;background:#fff6e6;color:#79654c;border-radius:10px;font-size:10px;font-weight:700}.level-head>div{min-width:0;padding-right:8px}h1{font-size:19px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.level-pill{flex:none}.eyebrow{letter-spacing:.9px;font-size:8px}.field{border:1px solid #d9c197;box-shadow:0 3px 0 #cab28c,0 7px 16px #94714816}.primary{letter-spacing:.2px;font-size:15px;gap:8px;background:linear-gradient(#ffbf69,#f5a340 42%,#e68a31);border:1px solid #ffcb7c;box-shadow:inset 0 1px 1px #ffe8b1,0 4px 0 #ad672e,0 6px 12px #9c672530}.secondary{width:56px;background:linear-gradient(#fff9e9,#e9dac0);box-shadow:inset 0 1px white,0 2px 0 #cdbc9e}.secondary b{font-size:10px}.status-strip{bottom:7px}.tip{max-width:94%;font-size:9px;text-align:center}.sheet h2{font-size:23px}.sheet p{line-height:1.65}.sheet .primary{font-size:15px;letter-spacing:0}.sheet .quiet{font-size:12px}.sheet .language-switch{display:block;margin:10px auto 0;font-size:10px;padding:6px;color:#9b7953;background:none}.chapter-tabs button{font-size:9px;min-height:36px}.storage-status{color:#a55139;font-size:9px;line-height:1.4;margin-top:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}html[lang=en] .brand strong{font-size:12px}html[lang=en] h1{font-size:18px}html[lang=en] .eyebrow{letter-spacing:.5px}html[lang=en] .sheet .chapter-tabs{gap:3px}html[lang=en] .chapter-tabs button{font-size:8px}footer p{line-height:1.4;font-size:8px;min-height:12px}@media(max-width:350px){.app{padding-left:10px;padding-right:10px}.top{gap:5px}.icon{width:29px;height:31px}.language select{width:45px;font-size:9px}.brand strong,html[lang=en] .brand strong{font-size:11px}.brand span{font-size:6px;letter-spacing:1px}h1,html[lang=en] h1{font-size:16px}.primary{font-size:13px}.primary:disabled{font-size:11px}.secondary{width:49px}.tip{font-size:8px}.sheet{padding:21px 16px}.sheet h2{font-size:21px}.sheet .primary{font-size:14px}.actions{gap:7px}.level-pill{padding:7px 8px}}

.secondary .retry-icon{position:relative;display:block;width:19px;height:19px;margin:1px 0 3px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;transform:rotate(-30deg)}.retry-icon:after{content:"";position:absolute;right:-3px;top:-3px;border-left:5px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;transform:rotate(14deg)}
