:root{--ink:#263f41;--muted:#627b7b;--green:#287b68;--paper:#f3f5ee;--line:#dce4da;--lime:#efb965}body{background:radial-gradient(ellipse at 12% 8%,#e4eee0 0,transparent 50%),#f5f5ee;color:#294747}header{height:92px;padding:0 38px;gap:24px}.brand{color:#284e46;font-size:21px}.brand-cube{border-radius:8px 8px 5px 5px;background:#4e9b79;border-color:#306e58;border-bottom-color:#245444;box-shadow:3px 3px 0 #d6dfcd}.brand small{color:#6b8277;letter-spacing:2.6px}nav{gap:5px;height:auto;padding:5px;background:#e7ece2;border:1px solid #dfe5da;border-radius:13px}.nav{height:42px;padding:0 20px;border-radius:9px;font-size:13px;color:#5e7470}.nav.active{background:#fffef8;color:#286b55;box-shadow:0 2px 5px #304b3e12}.nav.active:after{display:none}#book-count{color:#47705d}.outline{background:#fffef9;border-color:#d3ddcf;color:#426b5b;min-height:42px}.outline:hover{background:#e7efe1}.share{font-size:12px}.world-panel{height:520px;border:1px solid #b9d4be;border-radius:23px;box-shadow:0 16px 38px #29584a17,0 2px 0 #ffffff inset;background:#aed4cb}#world{background:radial-gradient(ellipse at 80% 10%,#f5e9b5 0,transparent 44%),linear-gradient(155deg,#659f9e,#aed9c8 70%,#d7e9cb);height:100%;width:100%;margin:0}.world-panel:after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 70px #183f3c0c;pointer-events:none}.world-head{left:32px;top:27px;right:28px}.world-kicker{font:10px ui-monospace,monospace;letter-spacing:3px;color:#eff9da;font-weight:700}.world-head h1{color:#fffced;font-size:33px;letter-spacing:1px;text-shadow:0 3px 16px #315e5733;margin:10px 0 13px}.level{background:#215e533d;border-color:#e7f7da66;color:#fff9db;padding:6px 10px;border-radius:6px;font-size:12px}.weather{background:#fff7da25;border-color:#fff7da70;color:#fffdeb;min-height:44px;min-width:82px;font-size:12px}.world-foot{background:#274f48d9;border-color:#d9edcb44;bottom:24px;padding:13px 15px 19px;left:26px;width:218px;border-radius:12px}.world-foot strong{font-size:13px}.world-foot small{color:#d1dfc7;font-size:10px}.avatar{background:#a1bd84;box-shadow:2px 3px 0 #1f453c;width:36px;height:36px;overflow:hidden}.avatar svg{width:34px;height:34px}.world-progress{left:64px;bottom:10px;right:17px;background:#152e3066}.world-progress span{background:#f4c572}.side{right:24px;bottom:24px;width:242px;gap:10px}.stat-card,.goal-card{background:#fffdf2ee;border-color:#fbffeb9c;box-shadow:0 5px 15px #274c4820;border-radius:12px;padding:14px 16px}.stats strong{color:#385447;font-size:19px}.stats small{display:block;font-size:9px;color:#5b796b}.stats>div{flex-wrap:wrap;column-gap:7px;row-gap:3px}.stats>div small{width:100%}.goal-card .section-label{color:#4a6559;font-size:12px}.goal-card .section-label span{font-size:12px;color:#276c54}.goal-track{background:#dfe7d5;height:6px}.goal-track span{background:linear-gradient(90deg,#79b891,#3f8c6c)}.streak,.streak span{color:#607a6b;font-size:11px}.streak strong{color:#34775c}.world-actions{gap:247px;left:28%;top:43%}.world-actions button{background:#fff5d7;border-color:#fffbed;color:#427364;box-shadow:0 5px 0 #436a5255,0 10px 18px #284f4238;border-radius:12px;min-width:55px;height:56px}.world-actions button:after{background:#fff5d7}.world-actions span{font-size:11px}.world-actions button:hover{background:#ffe5a8}.moon-disc{opacity:0}.world-panel.night #world{background:radial-gradient(ellipse at 80% 10%,#3c697c 0,transparent 48%),linear-gradient(145deg,#1a354a,#426e77 75%,#81999a)}.night .moon-disc{opacity:1}.night .sun-disc{opacity:0}.night .island-scene{filter:brightness(.7) saturate(.85)}.night .world-kicker{color:#d6e8e2}.night .weather{background:#1d354c70}.island-scene{transition:filter .7s}.camp-glow{opacity:.55;animation:camp-pulse 2.7s ease-in-out infinite alternate}.night .camp-glow{opacity:1}.ambient-motes circle{opacity:0;animation:mote-drift 6s infinite ease-in-out}.night .ambient-motes circle{fill:#ffe4a1}.crystal-glint{animation:crystal-light 5s ease-in-out infinite}.explorer-arm{transform-box:fill-box;transform-origin:top center;animation:explorer-wave 9s ease-in-out infinite}.world-explorer{animation:explorer-breathe 4s ease-in-out infinite;transform-box:fill-box;transform-origin:bottom}.view{padding-top:28px}.adventure-head h2{font-size:21px;color:#294d43}.library-button{background:#e6ecdf;color:#496850;padding:10px 14px;font-size:12px;min-height:40px}.library-button span{color:#2c785b}select{background:#fffef8;border-color:#cedbc9;color:#365c4c;font-size:13px;padding:12px}.mode-group{background:#e3eadd;padding:4px}.mode{font-size:12px;min-height:33px;color:#516e5f}.mode.active{color:#286c53;background:#fffdf5}.quest{min-height:105px;border-radius:13px;padding:21px 25px}.primary-quest{background:linear-gradient(120deg,#f4cb80,#eab368);box-shadow:0 5px 0 #c69750;color:#654a29}.primary-quest:hover{background:#f4d399;box-shadow:0 8px 0 #c69750}.quest strong{font-size:23px}.quest-art{color:#806037}.primary-quest b{color:#745c34;font-size:12px}.review-quest{background:linear-gradient(120deg,#ddebd6,#c5ddc1);color:#3d6953;box-shadow:0 5px 0 #a3bf9d}.review-quest:hover{background:#d5e7ce;box-shadow:0 8px 0 #a3bf9d}.review-quest .quest-art{color:#427a61}.review-quest em{color:#52725b;font-size:12px}.quiet{color:#60796e}.physics-card,.scene-card,.building,.word{background:#fffef8;border-color:#dce4d6;box-shadow:0 4px 0 #e2e8da}.physics-card:hover{border-color:#89ab86;box-shadow:0 7px 0 #d7e3cc}.physics-card small,.physics-card-foot,.physics-heading small,.physics-scope{color:#597465}.physics-card strong{color:#365f4e}.physics-icon{box-shadow:3px 3px 0 #324f4110}.physics-card-foot b{color:#28795c}.physics-lab-card{background:#e7efdd;border-color:#d0dec4;color:#365f4e}.physics-lab-card small{color:#52735e}.scene-card strong{color:#335d4c}.scene-card small{color:#627e6b}.scene-card b{color:#2d785b}.scene-card:nth-child(1):before{background:#dfedce}.scene-card:nth-child(2):before{background:#f7e8c5}.scene-card:nth-child(3):before{background:#dde9ed}.scene-icon{color:#548765}.building h3{color:#365c4d}.build-illustration{background:linear-gradient(140deg,#e8efdb,#cfe1cb);color:#42775b}.cost{color:#5e7a65}.building button:disabled{background:#e0e7d9;color:#657961;box-shadow:none}.word strong{color:#305f4b}.word small{color:#58736a;line-height:1.65}.word .status{color:#32735c}.word .status.wrong{color:#966022}.word button{color:#32735c;min-width:40px;min-height:40px}.book-tools>input{background:#fffef9;border-color:#cedbc9;color:#365b49;min-height:44px}.book-tools,.empty{color:#5f7866}.empty{background:#e8eddf}dialog{background:#fffcf3;color:#345449;border-color:#d6e1cf;border-radius:17px;box-shadow:0 22px 90px #132c3d70;max-height:90dvh}dialog::backdrop{background:#203e49a6;backdrop-filter:blur(6px)}.dialog-top{border-color:#e3e8d9;color:#557466;font-size:12px;background:#f5f6e9;position:sticky;top:0;z-index:3}.icon-button{background:#e9eddf;color:#496754;min-width:40px;min-height:40px;font-size:23px}.question h2{color:#284e42}.question .tag,.question-meta{color:#617965;font-size:12px}.question-track{background:#e1e8d6}.question-track span{background:#77a47b}.answer,.physics-answer,.talk-answer{background:#fffef9;border-color:#d9e3d1;color:#345b4a;min-height:52px;font-size:15px}.answer span{color:#6a846e}.answer:hover:enabled,.physics-answer:hover:enabled{background:#edf3e5;border-color:#7eaa82}.answer.correct,.physics-answer.correct,.talk-answer.correct{background:#deeed9;border-color:#75a97f;color:#245e42}.answer.wrong,.physics-answer.wrong,.talk-answer.wrong{background:#fff0dd;border-color:#ce9b60;color:#875122}.solid{background:#397f62;box-shadow:0 3px 0 #23563e;min-height:44px;font-size:14px}.solid:hover:enabled{background:#469271}.speak{background:#eaf0df;color:#3f6d52;border-color:#d4e1c8;min-height:40px;font-size:12px}.spell-form input{background:#fffef9;border-color:#d0ddc8;color:#355c49}.feedback>span,.feedback .example,.help-text,.results p{color:#557365}.feedback strong{color:#28794e}.feedback.is-wrong strong{color:#a46e31}.results .reward{background:#e7efda;color:#416a4c}.results .big{color:#477f5c}.results p{font-size:13px}.physics-question h3{color:#345b4a}.physics-small-icon{background:#e6efdb;color:#47775b}.physics-feedback{color:#4c6d59;font-size:14px}.physics-feedback strong{color:#277b51}.physics-feedback small,.lab-condition,.lab-ticks{color:#5b7563}.lab-goal,.lab-adjust label{color:#3d624c}.lab-adjust output{color:#2d7652}.lab-adjust input{accent-color:#438967;min-height:42px}.lab-reading{background:#edf2e1;color:#3d674c}.npc-message{background:#eaf0df}.npc-message>p{color:#385d4a}.npc-message>span{color:#54836b}.practice-box{border-color:#b8cfab}.useful-lines p{background:#eef2e3;color:#466d55}.library-card{background:#fffef9;border-color:#dce5d1}.book-pick:hover{background:#e8efda;border-color:#8fae80}.library-card small,.library-note{color:#5d755f}.library-note a{color:#2c7556}.help-text h3{color:#3f6b4c}footer{color:#6e836f}footer button{color:#55725c;min-height:44px;font-size:12px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #c58328;outline-offset:4px}summary{cursor:pointer;min-height:32px}#toast{background:#2d5844;color:#fff8e5}
@keyframes explorer-wave{0%,70%,100%{transform:rotate(0)}75%,85%{transform:rotate(-35deg)}80%,90%{transform:rotate(-15deg)}}@keyframes explorer-breathe{50%{transform:translateY(-1px)}}@keyframes camp-pulse{to{opacity:.9}}@keyframes mote-drift{0%,100%{opacity:0;transform:translateY(5px)}40%,65%{opacity:.8}80%{transform:translateY(-14px)}}@keyframes crystal-light{50%{opacity:.55}}
@media(max-width:1050px){header{padding:0 25px;gap:14px}nav{gap:2px}.nav{padding:0 13px}.world-panel{height:475px}.world-actions{left:26%;gap:205px}.quest{padding:18px}.quest strong{font-size:21px}.review-quest em{display:none}}
@media(max-width:700px){body{background:#f3f5ec}header{padding:15px 17px 11px;gap:13px;height:auto;background:#f3f5ec}.brand{font-size:19px}.brand small{font-size:8px}.brand-cube{width:35px;height:36px}.share{font-size:11px;min-height:40px;padding:8px 10px}.share:active{background:#e4ecd9}nav{height:52px;padding:4px;gap:2px;width:100%;border-radius:11px}.nav{font-size:13px;height:42px;min-width:0;flex:1;padding:0 7px}.nav.active{box-shadow:0 2px 4px #314d3e12}#book-count{font-size:10px;margin-left:1px}main{margin:0 14px;padding:0}.world-panel{height:345px;border-radius:17px}.world-head{left:18px;top:19px;right:15px}.world-kicker{font-size:8px;letter-spacing:1.8px}.world-head h1{font-size:25px;margin:7px 0 9px}.level{font-size:10px;padding:5px 7px}.weather{font-size:11px;min-width:70px;min-height:40px;padding:8px 10px}#world{width:165%;height:100%;margin-left:-32.5%}.world-actions{left:17%;top:48%;gap:140px}.world-actions button{min-width:44px;height:46px;font-size:22px;border-radius:10px}.world-actions span{font-size:10px}.world-actions button:after{left:16px}.world-foot{bottom:12px;left:13px;width:174px;padding:9px 10px 15px;border-radius:10px}.world-foot strong{font-size:11px}.world-foot small{font-size:9px}.avatar{width:30px;height:30px}.avatar svg{width:30px;height:30px}.world-progress{left:52px;bottom:8px;right:12px}.side{position:static;display:grid;grid-template-columns:1.05fr 1fr;gap:10px;width:auto;margin:12px 0 0}.stat-card,.goal-card{background:#fffdf6;border:1px solid #dce5d3;box-shadow:0 3px 0 #e4eadb;border-radius:11px;padding:12px 11px}.stats{height:100%;align-items:center;gap:5px}.stats>div{gap:4px;min-width:0;flex:1;justify-content:center}.stats strong{font-size:16px}.stats small{display:block;font-size:10px}.stats .block-icon{width:14px;height:14px;border-width:2px}.stats .diamond{width:11px;height:14px}.goal-card .section-label,.goal-card .section-label span{font-size:11px}.goal-track{height:5px;margin:10px 0 7px}.streak{display:block;font-size:10px}.streak span{display:none}.view{padding:24px 0 0}.adventure-head{gap:8px;margin-bottom:16px}.adventure-head h2{font-size:19px}.library-button{font-size:11px;padding:8px 10px;min-height:39px}.play-row{gap:12px}.controls{flex-direction:column;gap:10px;align-items:stretch}.controls select{width:100%;min-height:44px;flex:auto;font-size:13px;padding:11px 12px}.mode-group{width:100%;align-self:stretch;height:42px}.mode{font-size:12px;min-height:34px;padding:7px 12px}.quest{min-height:84px;padding:15px 17px;gap:10px}.quest strong{font-size:22px}.primary-quest b{font-size:11px}.quest-art{font-size:28px}.primary-quest .quest-art{display:none}.review-quest em{display:none}.quiet{font-size:11px}.physics-card{padding:15px 13px;min-height:133px;border-radius:12px}.physics-card strong{font-size:16px;line-height:1.6;margin-bottom:16px}.physics-card small{font-size:11px}.physics-icon{width:29px;height:33px;font-size:22px;margin-left:4px;float:right}.physics-card-foot{font-size:10px}.physics-card-foot b{font-size:11px}.physics-heading small{font-size:11px}#physics-review{min-height:43px;font-size:12px}.physics-lab-card{min-height:74px;padding:13px 16px}.physics-lab-card strong{font-size:16px}.physics-lab-card small{font-size:11px}.physics-scope{font-size:12px;line-height:1.9}.physics-subhead{font-size:18px}.scene-card{padding:19px}.scene-card small{font-size:11px}.scene-card strong{font-size:20px}.scene-card b{font-size:12px}.word{padding:16px}.word small{font-size:13px}.book-tools>input{width:100%;font-size:14px}.book-tools label{font-size:12px;min-height:40px;display:flex;align-items:center;gap:7px}.book-tools input[type=checkbox]{width:18px;height:18px}.book-tools span{font-size:12px}.building{padding:14px}.building h3{font-size:16px}.cost{font-size:12px}.building button{font-size:13px;min-height:43px}.build-illustration{height:85px}dialog{width:calc(100% - 22px);max-width:540px;max-height:92dvh;border-radius:15px}.dialog-top{padding:10px 15px;min-height:61px;font-size:13px}#game-body,#info-body,#physics-body{padding:20px 17px}.question h2{font-size:34px;overflow-wrap:anywhere}.question .meaning{font-size:24px;line-height:1.5}.question-meta{font-size:12px}.answer,.physics-answer,.talk-answer{font-size:15px;padding:13px;line-height:1.65;min-height:52px}.physics-question h3{font-size:17px;line-height:1.7}.physics-small-icon{padding:7px 8px}.physics-feedback{font-size:14px}.physics-feedback small{font-size:12px}.lab-goal{font-size:16px}.lab-condition,.lab-ticks{font-size:12px}.lab-adjust label{font-size:14px}.lab-adjust output{font-size:18px}.lab-reading{font-size:14px}.solid{font-size:15px;min-height:47px}.speak{font-size:13px;min-height:42px}.feedback>span{font-size:14px;line-height:1.8}.feedback details{font-size:13px}.npc-message>p{font-size:17px}.practice-box{font-size:13px}.npc-message details,.practice-box details{font-size:13px}.library-card{padding:13px 11px;font-size:13px;gap:5px}.library-card small{font-size:11px}.library-note{font-size:12px}.library-grid{gap:9px}footer{padding:19px 2px;align-items:center}footer button{font-size:12px}.results p{font-size:14px;line-height:1.8}}
@media(max-width:360px){.brand{font-size:17px}.share{font-size:10px;padding:8px}.world-actions{left:14%;gap:130px}.physics-card strong{font-size:15px}.physics-icon{float:none;width:30px;height:30px;margin:0 0 10px}.physics-card{min-height:155px}.physics-lab-card>div{display:block}.physics-lab-card small{margin-top:5px}.stats strong{font-size:14px}.library-button{font-size:10px}.library-card{display:block}.library-card small{display:block;margin-top:6px}}
@media(prefers-reduced-motion:reduce){.explorer-arm,.world-explorer,.camp-glow,.ambient-motes circle,.crystal-glint{animation:none!important}.ambient-motes circle{opacity:.5}}

.weather{background:#f2f7dcbf;color:#3b6854;border-color:#fff8dd}.night .weather{color:#edf4db;background:#213c50bf}.world-head h1{margin-top:1px}@media(max-width:700px){.world-panel{height:320px}.nav{height:44px}nav{height:54px}.share,.weather,.library-button,.speak{min-height:44px}.icon-button{min-width:44px;min-height:44px}.mode{min-height:42px}.mode-group{height:50px}.world-head h1{margin-top:1px}}

.build-illustration{height:114px;overflow:hidden}.build-illustration svg{width:100%;height:108px}.scene-icon{width:74px;height:84px;margin:0 0 0 10px}.scene-icon svg{width:100%;height:100%}.scene-card:before{width:145px;height:145px;right:-18px;top:-20px}.portal-shimmer{animation:crystal-light 4s ease-in-out infinite}@media(max-width:700px){.build-illustration{height:105px}.build-illustration svg{height:101px}.choices{grid-template-columns:1fr}.answer{display:flex;align-items:baseline;gap:12px;text-align:left}.answer span{flex:0 0 18px}.scene-icon{width:67px;height:76px;margin:0 0 0 9px}}@media(prefers-reduced-motion:reduce){.portal-shimmer{animation:none}}
@media(max-width:700px){.question-track{margin:10px 0 15px}.question h2{margin:9px 0}.question .speak{margin-bottom:12px}}
