@import url('./assets/fonts.css');
:root{--ink:#25463e;--muted:#66786f;--teal:#167267;--teal-dark:#0c5149;--gold:#ffcf55;--cream:#fffaf0;--paper:#fffdf7;--border:#e5e9da;--purple:#7953bd;--shadow:0 7px 0 #dfe4d4,0 12px 24px #2646320a;--radius:24px;font-family:'Nunito',system-ui,sans-serif;color:var(--ink);font-size:16px;background:#f3f6ed;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}button:disabled{cursor:default;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1759b8;outline-offset:5px}button:active:not(:disabled){transform:translateY(2px)}button,input,select,textarea{touch-action:manipulation}h1,h2,h3,p{margin:0}h1,h2,h3,.display,.brand{font-family:'Fredoka','Nunito',system-ui,sans-serif;font-weight:500;line-height:1.13}h1{font-size:clamp(2rem,4vw,3rem)}h2{font-size:1.7rem}h3{font-size:1.2rem}p{line-height:1.6}svg.icon{width:23px;height:23px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.icon.sm{width:18px;height:18px}.icon.lg{width:32px;height:32px}button .icon+span{margin-left:8px}.skip-link{position:fixed;left:16px;top:-80px;z-index:200;background:white;padding:14px}.skip-link:focus{top:16px}
.shell{max-width:1680px;margin:auto;display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:var(--paper);padding:33px 22px 22px;display:flex;flex-direction:column;border-right:1px solid var(--border);z-index:10}.brand{display:flex;align-items:center;gap:10px;font-size:1.65rem;letter-spacing:-.5px}.brand-icon{background:var(--teal);color:#ffda77;border-radius:16px;width:45px;height:45px;display:grid;place-items:center;box-shadow:0 3px 0 var(--teal-dark)}.brand small{display:block;font:800 .61rem 'Nunito',sans-serif;letter-spacing:2px;margin-top:7px;color:#72877a}.sidebar-nav{display:grid;gap:9px;margin-top:48px}.nav-btn{display:flex;align-items:center;padding:15px 16px;gap:13px;text-align:left;background:none;color:#6a7b70;border-radius:15px;font-weight:800;font-size:.95rem;min-height:52px}.nav-btn:hover{background:#eef4e7}.nav-btn.active{background:#e4f1df;color:#315e36;box-shadow:inset 4px 0 #73a956}.nav-btn.active .icon{stroke-width:2.5}.side-companion{margin-top:auto;background:#edf5e5;border-radius:23px;padding:10px 15px 20px;text-align:center;border:1px solid #dfeace}.side-companion img{height:115px;width:125px;object-fit:contain;filter:drop-shadow(0 5px 2px #33553012);margin-top:-24px}.side-companion p{font-size:.83rem;color:#66735c;margin-top:7px;line-height:1.5}.sidebar-footer{display:flex;justify-content:center;gap:8px;font-size:.78rem;color:#7c8579;padding-top:24px}.main-wrap{min-width:0}.topbar{height:98px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;gap:16px}.greeting{font-size:.87rem;color:var(--muted)}.greeting strong{display:block;font-size:1.16rem;color:var(--ink);font-weight:900;margin-top:2px}.header-actions{display:flex;align-items:center;gap:14px}.star-wallet{display:flex;align-items:center;gap:8px;border:1px solid #ecdca8;border-radius:30px;background:#fff7dd;padding:9px 16px;font-weight:900;font-size:1.08rem}.star-wallet .icon{fill:#f5bd36;stroke:#bb8829}.icon-btn{width:46px;height:46px;border-radius:50%;border:1px solid var(--border);background:#fffdf8;display:inline-grid;place-items:center}.avatar{background:#dceee7;border:3px solid white;box-shadow:0 0 0 1px #cfdcd0;width:45px;height:45px;border-radius:50%;display:grid;place-items:center;font-size:24px}.main{padding:0 42px 36px;outline:none}.eyebrow{text-transform:uppercase;letter-spacing:2.1px;font-weight:900;font-size:.71rem;color:#7a866e}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:8px 0 26px}.page-heading h1{margin:6px 0 8px}.page-heading p{color:var(--muted);font-size:.97rem}.link-btn{background:none;color:var(--teal);font-weight:900;min-height:44px;display:inline-flex;align-items:center;gap:7px;padding:8px 2px}.home-title{margin:5px 0 23px}.home-title h1{font-size:2.2rem;margin-bottom:7px}.home-title p{color:#73806b;font-size:.95rem}.hero-scene{position:relative;min-height:388px;border-radius:29px;overflow:hidden;background:#538559 url('./assets/forest.png') center 54%/cover;box-shadow:0 5px 0 #d3ddbc}.hero-scene:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#183f28aa 0%,#224b2830 53%,transparent 75%)}.hero-copy{position:relative;max-width:53%;padding:34px;color:white;z-index:1}.chapter-tag{display:inline-flex;align-items:center;gap:8px;font-size:.7rem;font-weight:900;letter-spacing:1.5px;text-transform:uppercase;background:#fffbebed;color:#426243;border-radius:30px;padding:8px 13px}.hero-copy h2{font-size:clamp(2.4rem,4vw,3.6rem);text-shadow:0 3px 1px #17381b35;margin:16px 0 13px;line-height:1.05}.hero-copy p{font-size:1rem;max-width:310px;color:#f5ffdf;font-weight:700;text-shadow:0 1px 3px #174219}.btn{border-radius:16px;background:var(--teal);box-shadow:0 5px 0 var(--teal-dark);color:#fff;min-height:51px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:900;padding:13px 23px;text-decoration:none;transition:transform .15s,filter .15s}.btn:hover{filter:brightness(1.07)}.btn.gold{background:var(--gold);color:#5b4723;box-shadow:0 5px 0 #cca23e}.btn.light{background:white;border:1px solid #dce4d4;color:var(--ink);box-shadow:0 4px 0 #dce4d4}.btn.purple{background:var(--purple);box-shadow:0 5px 0 #573789}.btn.small{padding:10px 17px;font-size:.85rem;min-height:44px;border-radius:13px}.hero-copy .btn{margin-top:24px;min-width:224px}.hero-progress{position:absolute;right:20px;bottom:21px;border-radius:17px;background:#fffdf4f2;backdrop-filter:blur(10px);display:flex;gap:12px;align-items:center;padding:13px 17px;box-shadow:0 4px 14px #193b2820}.hero-progress .icon{color:#629449}.hero-progress strong{font-size:.85rem;display:block}.hero-progress small{font-size:.73rem;color:#76816f}.dots{display:flex;gap:4px;margin-top:6px}.dots i{width:17px;height:5px;background:#dce3d4;border-radius:5px}.dots i.done{background:#83af5e}.section-title{display:flex;justify-content:space-between;align-items:center;margin:31px 0 16px}.section-title h2{font-size:1.5rem}.section-title small{font-size:.8rem;color:#7a8572}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.activity-card{position:relative;min-height:120px;border-radius:21px;background:#fffdf7;border:1px solid #e5e9d8;box-shadow:0 4px 0 #e0e5d6;padding:20px 18px;display:flex;align-items:center;gap:15px;text-align:left;transition:transform .18s}.activity-card:hover{transform:translateY(-3px)}.activity-card h3{font-size:1.2rem}.activity-card p{font-size:.79rem;color:#718069;line-height:1.4;margin-top:6px}.activity-icon{width:60px;height:65px;border-radius:18px;display:grid;place-items:center;flex-shrink:0;background:#e6efd4;color:#6b9441}.activity-icon .icon{width:33px;height:33px;stroke-width:1.8}.activity-card:nth-child(2) .activity-icon{background:#f2eafa;color:#9363b1}.activity-card:nth-child(3) .activity-icon{background:#ffefd3;color:#c48c32}.bottom-strip{margin-top:25px;padding:17px 21px;display:flex;align-items:center;gap:14px;background:#eaf1e1;border:1px solid #dee8d0;border-radius:18px}.bottom-strip .icon{color:#79924b}.bottom-strip p{font-size:.86rem}.bottom-strip strong{font-weight:900}.bottom-strip .link-btn{margin-left:auto;white-space:nowrap;font-size:.83rem}.mobile-nav{display:none}
.map-panel{position:relative;min-height:540px;background:#9dd8d1 url('./assets/world.png') center/cover;border:7px solid #fffdf5;border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.map-node{position:absolute;transform:translate(-50%,-50%);text-align:center;background:none;z-index:2;max-width:160px;padding:0}.map-node:active:not(:disabled){transform:translate(-50%,-48%)}.map-node .node-pin{width:59px;height:59px;margin:auto;border-radius:50%;background:#fff4bb;border:5px solid white;box-shadow:0 4px 0 #af833c,0 7px 17px #183b4940;display:grid;place-items:center;color:#9d7731}.map-node.current .node-pin{background:var(--gold);animation:bob 3s ease-in-out infinite}.map-node.locked .node-pin{background:#e4e8e6;color:#697a78;box-shadow:0 4px 0 #92a4a2}.map-node .node-label{display:block;font-weight:900;background:#fffdf3;padding:8px 12px;border-radius:12px;margin-top:8px;font-size:.82rem;box-shadow:0 3px 0 #d8dcc8;line-height:1.25}.map-legend{position:absolute;bottom:14px;left:14px;background:#fffdf3ef;border-radius:15px;padding:11px 17px;font-size:.76rem;max-width:75%}.region-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.region-list button{background:#fffdf7;border:1px solid var(--border);padding:16px;border-radius:17px;text-align:left;display:flex;align-items:center;gap:13px}.region-list strong{display:block}.region-list small{color:var(--muted);display:block;margin-top:5px}.region-hero{height:210px;border-radius:25px;background:url('./assets/forest.png') center 45%/cover;position:relative;overflow:hidden;color:white;display:flex;align-items:end;padding:24px;margin-bottom:27px}.region-hero:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#173e37c9,transparent)}.region-hero>div{position:relative}.region-hero h2{font-size:2rem}.region-hero p{margin-top:6px;font-size:.92rem}.quest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.quest-card{position:relative;background:#fffdf7;border:1px solid var(--border);border-radius:22px;box-shadow:0 4px 0 #dfe5d5;padding:22px;text-align:left;min-height:180px}.quest-card.current{border:2px solid #8da957;background:#fafff0}.quest-number{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-family:'Fredoka',sans-serif;font-size:1.3rem;background:#e9efde;color:#748653;margin-bottom:17px}.quest-card.current .quest-number{background:var(--gold);color:#72531c}.quest-card h3{font-size:1.15rem;line-height:1.3}.quest-card p{font-size:.8rem;color:var(--muted);margin-top:8px}.quest-card .quest-state{position:absolute;right:20px;top:22px;color:#8a9a73;font-size:.77rem;font-weight:900}.quest-card.locked{box-shadow:none;background:#edf0e9}.back-row{margin-bottom:14px}.game-header{display:flex;align-items:center;gap:15px;margin:8px 0 23px}.game-header h1{font-size:1.5rem;margin-top:4px}.game-header .steps{margin-left:auto;display:flex;gap:7px}.step-dot{width:29px;height:9px;background:#dce3d4;border-radius:10px}.step-dot.done{background:#78a45f}.step-dot.current{background:#ecc65f}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:25px}.game-scene{position:relative;min-height:510px;border-radius:26px;background:url('./assets/forest.png') center/cover;overflow:hidden;border:6px solid #fffdf7;box-shadow:var(--shadow)}.scene-top{position:absolute;left:17px;right:17px;top:17px;padding:12px 17px;border-radius:17px;background:#fffdf2ed;font-weight:900;font-size:.97rem;display:flex;gap:12px;align-items:center}.scene-hotspot{position:absolute;min-height:56px;background:#fff9dc;border:3px solid white;box-shadow:0 5px 0 #b9974d,0 8px 18px #183b3440;border-radius:18px;display:flex;align-items:center;gap:8px;padding:12px 15px;font-weight:900;font-size:.87rem;animation:glow 3s ease-in-out infinite}.scene-hotspot.found{background:#d9f3cf;box-shadow:0 5px 0 #86a569}.scene-hotspot[data-index="0"]{left:9%;top:40%}.scene-hotspot[data-index="1"]{left:47%;top:58%;animation-delay:.6s}.scene-hotspot[data-index="2"]{right:9%;top:27%;animation-delay:1.2s}.scene-bottom{position:absolute;bottom:18px;left:17px;right:17px;background:#fffdf4f2;border-radius:17px;padding:15px;text-align:center;font-size:.88rem;box-shadow:0 4px 10px #123f3320}.companion-panel{background:#fffdf7;border:1px solid var(--border);border-radius:25px;padding:22px;text-align:center;align-self:start;box-shadow:0 4px 0 #e0e5d5}.companion-panel img{height:170px;width:100%;object-fit:contain;margin-top:-7px}.companion-panel p{font-size:.94rem;color:#65715c;margin:13px 0 18px}.companion-panel .btn{width:100%}.companion-panel h3{font-size:1.4rem}.companion-name{display:inline-flex;background:#e9f2e0;border-radius:20px;padding:6px 12px;font-size:.72rem;font-weight:900;color:#69864e;margin:5px 0 12px}.quest-bag{border-top:1px dashed #dbe3d2;margin-top:23px;padding-top:18px;text-align:left}.quest-bag h4{font-size:.76rem;text-transform:uppercase;letter-spacing:1.5px;margin:0 0 12px;color:#7c896b}.inventory-item{display:flex;align-items:center;gap:9px;font-size:.86rem;margin-top:9px}.inventory-item .icon{color:#8da75f}.game-panel{border:1px solid #e0e5d8;border-radius:26px;background:#fffdf9;box-shadow:0 5px 0 #dfe5d5;padding:30px;min-height:430px}.puzzle-label{display:flex;gap:8px;align-items:center;color:#8e7241;font-weight:900;font-size:.76rem;letter-spacing:1px;text-transform:uppercase;margin-bottom:14px}.puzzle-prompt{font-size:1.7rem;line-height:1.25;margin:0 0 22px}.passage{font-size:1.12rem;line-height:1.8;background:#f0f4e8;border:1px solid #e0e7d3;padding:21px;border-radius:18px;margin:17px 0 24px;white-space:pre-line}.choices{display:grid;gap:12px}.choice{background:white;border:2px solid #e0e4d7;box-shadow:0 3px 0 #e0e4d7;border-radius:15px;min-height:57px;padding:14px 17px;text-align:left;font-size:1.08rem;font-weight:800;display:flex;align-items:center;gap:12px}.choice:hover{background:#f7fbea;border-color:#c2d2a3}.choice.selected{background:#eaf4d9;border-color:#88a84e;box-shadow:0 3px 0 #88a84e}.choice-letter{background:#f0f2e9;border-radius:8px;min-width:28px;height:28px;display:grid;place-items:center;font-size:.77rem;color:#879078}.choice.selected .choice-letter{background:#88a84e;color:white}.answer-slots{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;min-height:83px;align-items:center;padding:15px 0;border-bottom:2px dashed #dfe5d3;margin:12px 0 24px}.tile{background:#fff3c8;border:2px solid #ebd18a;box-shadow:0 4px 0 #d9b65f;min-width:53px;min-height:59px;border-radius:13px;font-size:1.55rem;font-weight:900;padding:10px 14px}.tile.word{font-size:1rem;min-height:47px;padding:9px 13px}.tile.placeholder{background:#eef1e8;box-shadow:inset 0 -3px #dbe1d0;border:2px dashed #d4dcc6}.tile.used{visibility:hidden}.tile-bank{display:flex;justify-content:center;gap:11px;flex-wrap:wrap;min-height:74px}.puzzle-actions{display:flex;align-items:center;gap:14px;margin-top:28px;flex-wrap:wrap}.puzzle-actions .btn{margin-left:auto;min-width:170px}.feedback{padding:16px 18px;border-radius:15px;background:#fff1d3;color:#6f5227;margin-top:22px;font-weight:800;font-size:.97rem;line-height:1.55}.feedback.success{background:#e6f3d9;color:#3e632d}.feedback.hint{background:#eee8f8;color:#685081}.help-row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e7ebdf;margin-top:24px;padding-top:14px}.help-row button{font-size:.84rem}.result{position:relative;text-align:center;max-width:730px;margin:10px auto;background:#fffdf7;border:1px solid #e2e6d5;border-radius:30px;padding:34px;box-shadow:0 7px 0 #dce4cb;overflow:hidden}.result-scene{height:200px;background:url('./assets/forest.png') center 55%/cover;border-radius:20px;margin-bottom:28px;display:grid;place-items:center;position:relative}.result-medal{height:100px;width:100px;background:#ffdf73;border:7px solid #fff7c4;border-radius:50%;box-shadow:0 6px 0 #be9341;display:grid;place-items:center;animation:pop .5s ease-out}.result-medal .icon{height:52px;width:52px;color:#aa771c;fill:#f7c341}.result h1{font-size:2.3rem;margin:12px 0}.result p{color:#6d7b63;margin:0 auto;max-width:510px}.reward-row{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:24px 0}.reward-chip{display:flex;align-items:center;gap:8px;background:#fff1c8;color:#8c6926;border:1px solid #ebdca3;border-radius:15px;padding:13px 18px;font-weight:900}.reward-chip:nth-child(2){background:#eaf1dd;color:#64833f;border-color:#d7e2c4}.result-actions{display:flex;justify-content:center;gap:14px;margin:25px 0 6px;flex-wrap:wrap}.confetti{position:absolute;top:-20px;width:9px;height:16px;border-radius:3px;background:var(--gold);animation:fall 2.5s ease-out forwards;pointer-events:none}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.book-card{padding:25px;background:#fffdf7;border:1px solid var(--border);border-radius:22px;box-shadow:0 4px 0 #dce3d0;text-align:left}.book-cover{height:185px;border-radius:12px 20px 20px 12px;box-shadow:inset 10px 0 #00000013,4px 5px 0 #d8d6bf;background:linear-gradient(135deg,#2c8164,#175047);margin-bottom:21px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:22px;color:#fff5c9;text-align:center}.book-cover .icon{height:45px;width:45px;stroke-width:1.4}.book-cover h3{font-size:1.5rem}.book-card p{font-size:.81rem;color:var(--muted);margin:8px 0 12px}.book-card.locked{opacity:.72;box-shadow:none}.book-card.locked .book-cover{filter:grayscale(.6)}.nook-banner{border-radius:22px;background:#e7efd9;padding:20px 25px;display:flex;align-items:center;gap:17px;margin-bottom:25px}.nook-banner p{font-size:.87rem;color:#6e7a60}.nook-banner .link-btn{margin-left:auto}.nook-decor{font-size:2rem;letter-spacing:5px}.reader{max-width:800px;margin:auto;background:#fffdf8;box-shadow:var(--shadow);border:1px solid var(--border);border-radius:27px;padding:35px}.reader img.story-image{width:100%;height:200px;object-fit:cover;border-radius:17px;margin:20px 0}.reader-text{font-size:1.3rem;line-height:1.9;padding:15px 0;white-space:pre-line}.reader-text p{margin-bottom:18px}.reader-controls{display:flex;justify-content:space-between;align-items:center;margin-top:22px;gap:12px;flex-wrap:wrap}.search-row{display:flex;gap:15px;margin-bottom:25px}.search-input{width:100%;background:#fffdf9;border:2px solid #dce3d3;border-radius:16px;padding:14px 18px;min-height:53px;color:var(--ink)}.word-card{background:#fffdf7;border:1px solid var(--border);border-radius:22px;padding:23px;text-align:left;box-shadow:0 4px 0 #e1e5d8}.word-card h3{font-size:1.8rem;color:#3c7455;margin-bottom:10px}.word-card p{font-size:.91rem;color:#6e7a62}.word-card small{display:block;font-size:.72rem;color:#929980;margin-top:17px}.empty-state{text-align:center;background:#fffdf7;border:1px solid var(--border);border-radius:25px;padding:45px 25px}.empty-state .icon{width:45px;height:45px;color:#91a567;margin-bottom:15px}.empty-state p{color:var(--muted);margin:13px auto 20px;max-width:430px}.shop-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:25px}.shop-preview{border-radius:25px;background:#e6efdb;padding:24px;text-align:center;align-self:start;position:sticky;top:20px;border:1px solid #d4e0c4}.shop-preview img{width:100%;height:210px;object-fit:contain}.shop-preview h2{font-size:1.4rem}.shop-preview p{font-size:.88rem;margin-top:10px;color:#72805e}.equipped-row{font-size:1.9rem;min-height:45px;margin-top:15px}.item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.item-card{background:#fffdf7;border:1px solid var(--border);border-radius:21px;padding:21px;text-align:center}.item-art{height:64px;display:grid;place-items:center;font-size:2.8rem;margin-bottom:13px}.item-card h3{font-size:1.08rem}.item-card small{display:block;color:var(--muted);font-size:.74rem;margin:7px 0 17px}.item-card .btn{width:100%}.tabs{display:flex;gap:8px;padding:6px;background:#e6ecde;border-radius:16px;margin-bottom:25px;width:max-content;max-width:100%;flex-wrap:wrap}.tab{background:transparent;padding:11px 19px;font-weight:900;border-radius:12px;font-size:.88rem}.tab.active{background:#fffdf7;box-shadow:0 3px 7px #4058270b}.studio{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:25px}.studio-paper{padding:30px;border-radius:25px;background:#fffdf7;box-shadow:var(--shadow);border:1px solid var(--border)}.studio-paper label{display:block;font-weight:900;margin:19px 0 9px}.studio-paper input,.studio-paper textarea{width:100%;border:2px solid #dce5d1;border-radius:13px;padding:13px;background:white;color:var(--ink)}.studio-paper textarea{min-height:280px;resize:vertical;line-height:1.8}.studio-aside{padding:22px;border-radius:23px;background:#e9efdf;align-self:start}.studio-aside p{font-size:.88rem;margin:13px 0}.word-bank{display:flex;gap:7px;flex-wrap:wrap}.word-bank button{padding:8px 11px;border-radius:10px;background:#fffdf5;font-size:.83rem;min-height:42px}.setting-group{padding:20px 0;border-bottom:1px solid #e1e7d6}.setting-group label{display:block;font-weight:900;margin-bottom:8px}.setting-group p{color:var(--muted);font-size:.85rem;margin:6px 0 13px}.setting-group select,.setting-group input[type=text]{width:100%;border:2px solid #dce4d2;border-radius:12px;background:#fffdf6;padding:12px;color:var(--ink)}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.toggle-row label{margin:0}.toggle-row input{width:23px;height:23px;accent-color:var(--teal)}.track-options{display:grid;gap:10px}.track-option{background:#f0f4e8;border:2px solid #dde6d2;border-radius:15px;text-align:left;padding:14px}.track-option.selected{border-color:#7c9f50;background:#e9f3dc}.track-option strong{display:block}.track-option small{display:block;color:var(--muted);margin-top:5px}.progress-skill{margin:18px 0}.progress-skill strong{display:block;font-size:.95rem}.progress-skill p{font-size:.84rem;color:var(--muted);margin-top:5px}.progress-line{height:9px;background:#e8eedf;border-radius:8px;overflow:hidden;margin-top:8px}.progress-line i{display:block;height:100%;background:#8faf63;border-radius:8px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.quick-card{padding:27px;border:1px solid var(--border);border-radius:23px;background:#fffdf7;box-shadow:0 4px 0 #dfe5d5;text-align:left;display:flex;gap:18px;align-items:center}.quick-card .icon{width:38px;height:38px;color:#81a04d}.quick-card p{color:var(--muted);font-size:.87rem;margin-top:8px}.mini-note{font-size:.8rem;color:var(--muted);line-height:1.5;margin-top:20px}dialog{width:min(530px,calc(100% - 30px));max-height:90dvh;overflow:auto;border:1px solid #e0e6d7;border-radius:27px;background:#fffdf7;color:var(--ink);padding:28px;box-shadow:0 25px 90px #183a3440}dialog::backdrop{background:#17392c70;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.dialog-head h2{font-size:1.65rem}.dialog-actions{display:flex;justify-content:end;gap:13px;margin-top:23px;flex-wrap:wrap}.dialog-pip{width:150px;height:160px;object-fit:contain;display:block;margin:0 auto 12px}.dialog-body p{margin:13px 0;line-height:1.65}.dialog-body .big-word{font-family:'Fredoka',sans-serif;font-size:2.5rem;color:var(--teal)}#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#214f43;color:white;border:2px solid #fff8df;box-shadow:0 5px 20px #20453233;border-radius:16px;padding:14px 22px;font-size:.92rem;font-weight:800;max-width:calc(100% - 30px);text-align:center;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.save-warning{background:#fff0cd;color:#73521a;padding:12px 20px;font-size:.86rem}.muted{color:var(--muted)}.sr-only{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.large-text .passage,.large-text .choice,.large-text .reader-text{font-size:1.4rem}.reduce-motion *{scroll-behavior:auto}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -5px}}@keyframes pop{from{transform:scale(.4)}to{transform:scale(1)}}@keyframes fall{0%{top:-20px;rotate:0deg;opacity:1}100%{top:100%;rotate:320deg;opacity:0}}.reduce-motion *{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(min-width:1500px){.hero-scene{min-height:440px}.hero-copy{padding:46px}.hero-copy h2{font-size:4rem}.activity-card{min-height:135px}.map-panel{min-height:620px}}
@media(max-width:1180px){.shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:28px 14px 18px}.brand{font-size:1.45rem}.brand small{font-size:.52rem}.brand-icon{width:39px;height:39px;border-radius:13px}.topbar{padding:0 27px}.main{padding:0 27px 30px}.hero-copy{max-width:65%;padding:29px}.hero-copy h2{font-size:2.8rem}.hero-progress{padding:11px;right:15px;bottom:15px}.activity-card{padding:15px;gap:10px;min-height:121px}.activity-icon{width:45px;height:52px;border-radius:14px}.activity-icon .icon{width:27px;height:27px}.activity-card h3{font-size:1.06rem}.game-layout{grid-template-columns:minmax(0,1fr) 205px;gap:17px}.game-panel{padding:23px}.companion-panel{padding:17px}.companion-panel img{height:140px}.shop-layout{grid-template-columns:210px minmax(0,1fr)}.studio{grid-template-columns:minmax(0,1fr) 190px}.quest-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:940px){.shell{grid-template-columns:90px minmax(0,1fr)}.sidebar{padding:27px 13px}.brand{justify-content:center}.brand-text,.nav-btn span,.side-companion,.sidebar-footer{display:none}.nav-btn{justify-content:center;padding:17px 12px}.sidebar-nav{gap:12px;margin-top:35px}.brand-icon{width:48px;height:48px}.game-layout{grid-template-columns:minmax(0,1fr)}.companion-panel{display:none}.map-panel{min-height:480px}.hero-scene{min-height:370px}.activity-grid{gap:12px}.activity-card{flex-direction:column;align-items:start;min-height:155px}.activity-icon{height:47px;width:47px}.hero-copy h2{font-size:2.7rem}.collection-grid{grid-template-columns:repeat(2,1fr)}.shop-layout{grid-template-columns:180px minmax(0,1fr)}.shop-preview{padding:18px}.shop-preview img{height:160px}.studio{grid-template-columns:minmax(0,1fr)}.studio-aside{display:none}.region-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){:root{font-size:16px}.shell{display:block}.sidebar{display:none}.topbar{height:84px;padding:0 20px}.greeting{font-size:.76rem}.greeting strong{font-size:1.05rem}.header-actions{gap:8px}.avatar{display:none}.star-wallet{padding:7px 11px;font-size:.94rem;gap:5px}.star-wallet .icon{width:20px;height:20px}.icon-btn{width:42px;height:42px}.main{padding:0 18px 105px}.home-title{margin:4px 0 20px}.home-title h1{font-size:1.85rem}.home-title p{font-size:.88rem}.hero-scene{min-height:427px;border-radius:24px;background-position:63% center}.hero-scene:before{background:linear-gradient(180deg,#153c2866 0%,#19382008 45%,#1a3a34a3 100%)}.hero-copy{max-width:none;padding:24px 23px;display:flex;flex-direction:column;align-items:start;min-height:427px}.chapter-tag{font-size:.63rem;letter-spacing:1.2px;padding:7px 11px}.hero-copy h2{font-size:2.6rem;max-width:270px;margin:13px 0 9px}.hero-copy p{font-size:.89rem;max-width:240px}.hero-copy .btn{margin-top:auto;margin-bottom:47px;min-width:210px;min-height:50px}.hero-progress{background:transparent;box-shadow:none;color:#fffbe3;left:24px;right:auto;bottom:19px;padding:0;backdrop-filter:none;gap:8px}.hero-progress .icon{color:#ebd477;width:22px;height:22px}.hero-progress strong{font-size:.73rem}.hero-progress small{color:#edf6d7;font-size:.68rem}.hero-progress .dots{display:none}.section-title{margin:27px 0 15px}.section-title h2{font-size:1.4rem}.section-title small{font-size:.69rem}.activity-grid{gap:10px}.activity-card{padding:15px 11px;gap:12px;min-height:149px;border-radius:17px}.activity-card h3{font-size:1rem}.activity-card p{font-size:.7rem;line-height:1.4}.activity-icon{width:42px;height:43px;border-radius:13px}.activity-icon .icon{width:25px;height:25px}.bottom-strip{margin-top:23px;padding:15px;gap:10px;flex-wrap:wrap}.bottom-strip p{font-size:.81rem;flex:1}.bottom-strip .link-btn{margin-left:31px;font-size:.77rem;min-height:30px}.bottom-strip>.icon{width:22px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:76px;padding:7px 10px calc(7px + env(safe-area-inset-bottom));background:#fffdf6f5;border-top:1px solid #dce4d5;backdrop-filter:blur(15px);display:flex;justify-content:space-around;z-index:20}.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:none;font-size:.64rem;font-weight:900;color:#7f8a73;min-width:52px;border-radius:12px;padding:5px}.mobile-nav button.active{color:#347b52;background:#eaf2e1}.mobile-nav .icon{width:23px;height:23px}.page-heading{align-items:start;margin:5px 0 22px}.page-heading h1{font-size:1.95rem}.page-heading p{font-size:.9rem}.page-heading .btn{min-width:44px;padding:10px 12px}.map-panel{min-height:460px;border-width:4px;background-size:auto 100%;background-position:center}.map-node{max-width:110px}.map-node .node-pin{width:47px;height:47px;border-width:4px}.map-node .node-label{font-size:.66rem;padding:6px 7px;border-radius:9px}.map-legend{font-size:.66rem;padding:10px;bottom:10px;left:10px}.region-list{gap:10px;margin-top:19px}.region-list button{padding:13px;gap:9px;font-size:.78rem;border-radius:14px}.region-list .icon{width:20px;height:20px}.region-list small{font-size:.67rem}.region-hero{height:190px;padding:20px}.region-hero h2{font-size:1.75rem}.quest-grid{gap:13px}.quest-card{padding:17px;min-height:177px;border-radius:18px}.quest-card h3{font-size:1.04rem}.quest-card p{font-size:.72rem}.quest-card .quest-state{right:13px;top:19px;font-size:.65rem}.quest-number{height:38px;width:38px;border-radius:12px;font-size:1.15rem}.game-header{gap:11px;margin:2px 0 20px;flex-wrap:wrap}.game-header h1{font-size:1.25rem}.game-header .eyebrow{font-size:.61rem}.game-header .steps{width:100%;margin-left:55px;margin-top:0}.step-dot{height:6px;width:33px}.game-scene{min-height:510px;border-width:4px;background-position:66% center}.scene-top{left:12px;right:12px;top:12px;font-size:.88rem;padding:12px}.scene-hotspot{font-size:.76rem;min-height:50px;padding:10px;gap:6px;border-radius:14px}.scene-hotspot .icon{width:20px;height:20px}.scene-hotspot[data-index="0"]{left:6%;top:38%}.scene-hotspot[data-index="1"]{left:38%;top:57%}.scene-hotspot[data-index="2"]{right:6%;top:24%}.scene-bottom{left:12px;right:12px;bottom:12px;font-size:.82rem;padding:15px}.scene-bottom .btn{margin-top:9px;width:100%}.game-panel{padding:22px 18px;border-radius:22px;min-height:460px}.puzzle-prompt{font-size:1.45rem;margin-bottom:19px}.passage{font-size:1.03rem;padding:17px;line-height:1.8}.choice{font-size:1rem;min-height:59px;padding:13px;gap:9px}.puzzle-label{font-size:.67rem;letter-spacing:.7px}.answer-slots{gap:7px;min-height:80px}.tile{min-width:44px;min-height:51px;padding:8px 11px;font-size:1.3rem;border-radius:11px}.tile.word{font-size:.93rem;padding:8px 10px}.tile-bank{gap:9px}.puzzle-actions{margin-top:23px;gap:10px}.puzzle-actions .btn{min-width:140px;padding:12px 16px}.puzzle-actions .link-btn{font-size:.83rem}.help-row{gap:9px}.help-row button{font-size:.76rem}.help-row .icon{width:18px;height:18px}.result{padding:20px;border-radius:24px;margin-top:0}.result-scene{height:180px;margin-bottom:25px}.result h1{font-size:1.95rem}.result p{font-size:.94rem}.reward-row{gap:9px}.reward-chip{font-size:.82rem;padding:11px 13px}.result-actions .btn{width:100%}.collection-grid{gap:13px}.book-card{padding:15px;border-radius:18px}.book-cover{height:165px;padding:17px;gap:15px}.book-cover h3{font-size:1.13rem}.book-card>h3{font-size:1rem}.book-card .btn{font-size:.75rem;padding:10px 12px;min-height:43px}.nook-banner{padding:17px;gap:12px;flex-wrap:wrap}.nook-banner h3{font-size:1.1rem}.nook-banner p{font-size:.77rem}.nook-banner .link-btn{margin-left:0;font-size:.77rem}.reader{padding:23px}.reader-text{font-size:1.12rem;line-height:1.85}.reader img.story-image{height:160px}.reader h1{font-size:1.85rem}.reader-controls .btn{font-size:.81rem;padding:11px 15px}.word-card{padding:18px}.word-card h3{font-size:1.5rem}.word-card p{font-size:.83rem}.shop-layout{grid-template-columns:1fr}.shop-preview{position:static;display:flex;align-items:center;gap:17px;text-align:left;padding:17px}.shop-preview img{width:105px;height:125px}.shop-preview h2{font-size:1.25rem}.shop-preview p{font-size:.8rem;margin-top:7px}.equipped-row{font-size:1.5rem;margin-top:7px}.item-grid{gap:13px}.item-card{padding:18px 13px}.item-card h3{font-size:1rem}.item-card .btn{padding:10px 9px;font-size:.8rem;min-height:44px}.tabs{gap:4px}.tab{font-size:.77rem;padding:10px 13px}.studio-paper{padding:21px}.studio-paper h2{font-size:1.5rem}.studio-paper textarea{min-height:320px}.quick-grid{grid-template-columns:1fr;gap:15px}.quick-card{padding:23px}.quick-card h3{font-size:1.15rem}.quick-card p{font-size:.81rem}.search-row{flex-wrap:wrap;gap:10px}.search-row select{width:100%}dialog{padding:24px 20px}.dialog-head h2{font-size:1.5rem}#toast{bottom:87px;font-size:.85rem;padding:12px 17px}.large-text .passage,.large-text .choice{font-size:1.2rem}}
@media(max-width:360px){.main{padding-left:13px;padding-right:13px}.topbar{padding:0 14px}.hero-copy{padding:23px 19px}.hero-copy h2{font-size:2.35rem}.activity-card{padding:13px 9px}.activity-card h3{font-size:.9rem}.activity-card p{font-size:.65rem}.home-title h1{font-size:1.7rem}.puzzle-actions .btn{width:100%}.puzzle-actions .link-btn{margin:auto}.collection-grid{grid-template-columns:1fr}.item-grid{gap:10px}.game-header h1{font-size:1.1rem}.quest-card{padding:14px}.quest-card .quest-state{position:static;display:block;margin-bottom:8px}.quest-number{margin-bottom:9px}.map-node{max-width:96px}.map-node .node-label{font-size:.62rem}.hero-progress{left:20px}.page-heading h1{font-size:1.75rem}}

@keyframes glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.09)}}
.item-sprite{display:inline-block;width:108px;height:108px;background-image:url('./assets/items.png');background-size:400% 200%;background-repeat:no-repeat;flex-shrink:0;vertical-align:middle}
.item-sprite.mini{width:43px;height:43px}
.item-art{height:115px}
.equipped-row{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}
.nook-decor{display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:170px}
@media(max-width:640px){.item-sprite{width:95px;height:95px}.item-sprite.mini{width:36px;height:36px}.item-art{height:100px}.playing .mobile-nav{display:none}.playing .main{padding-bottom:30px}.playing #toast{bottom:20px}}
.result-scene{animation:restore-light 1.1s ease-out}
@keyframes restore-light{from{filter:brightness(.65) saturate(.7)}to{filter:brightness(1) saturate(1)}}
@media(max-width:640px){.mobile-nav button{font-size:.72rem}.chapter-tag{font-size:.72rem}.activity-card p{font-size:.77rem}.eyebrow{font-size:.73rem}}
