:root{font-family:'Trebuchet MS',system-ui,sans-serif;color:#254459;background:#102739}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 22% 10%,#315572 0%,transparent 37%),radial-gradient(circle at 83% 15%,#244f63 0%,transparent 34%),linear-gradient(130deg,#0d2038,#172e43 60%,#122336);overflow-x:hidden}button{font:inherit;cursor:pointer}button:focus-visible{outline:4px solid #f7ca76;outline-offset:3px}.sky-glow{position:fixed;border-radius:50%;filter:blur(65px);opacity:.17;pointer-events:none}.glow-one{width:470px;height:470px;background:#85bccc;left:-130px;top:200px}.glow-two{width:430px;height:430px;background:#73d6a9;right:-120px;top:-90px}.app{position:relative;max-width:1500px;margin:0 auto;padding:23px 30px 9px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;color:white;margin:0 0 21px}.identity{display:flex;align-items:center;gap:14px}.logo{background:linear-gradient(130deg,#fff3ae,#e9ab5e);color:#7d5a2e;width:60px;height:60px;border-radius:21px;display:grid;place-items:center;font-size:42px;box-shadow:0 5px 0 #8e7148,0 12px 35px #0004}.eyebrow,.side-eyebrow,.modal-kicker{font-weight:900;letter-spacing:2px;font-size:10px;color:#8edac2}.identity h1{font-size:clamp(24px,2.5vw,39px);line-height:1.04;letter-spacing:-1.8px;margin:4px 0 0}.identity h1 span{color:#ffe39b}.header-right{display:flex;align-items:center;gap:22px}.age{font-size:12px;color:#c4d8dd}.star-pill{background:#fff8d8;border:3px solid #f8dda0;border-radius:16px;color:#5d4d2b;min-width:116px;display:flex;gap:7px;align-items:center;padding:9px 14px;box-shadow:0 6px 0 #c5ab7e}.star-pill strong{font-size:25px}.star-pill small{font-size:9px;letter-spacing:1px;font-weight:900}.layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:21px;align-items:start}.play-wrap{overflow:hidden;border-radius:24px;background:#eaf8e5;padding:7px;box-shadow:0 18px 0 #081a2940,0 22px 55px #010b166b}.world-head{height:45px;background:#f5f9eb;border-radius:18px 18px 0 0;display:flex;align-items:center;padding:0 22px;gap:9px;color:#35665f;font-size:11px;letter-spacing:1.15px}.live-dot{width:10px;height:10px;background:#63ca95;box-shadow:0 0 0 5px #d7f2db;border-radius:50%;margin-right:5px}.world-head-right{margin-left:auto;color:#819488;font-size:10px}.viewport{width:100%;aspect-ratio:960/600;min-height:300px;position:relative;overflow:hidden;border-radius:0 0 17px 17px;background:#8ccda4}#gameCanvas{height:100%;width:100%;display:grid;place-items:center}#gameCanvas canvas{display:block;max-width:100%;max-height:100%}.game-hud{position:absolute;left:17px;right:17px;top:15px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;gap:10px}.hud-banner,.hud-controls{background:#fff9e5ed;border-radius:13px;padding:10px 13px;font-size:12px;font-weight:900;color:#4b7866;box-shadow:0 5px 15px #275c5b2d}.hud-controls{font-size:11px;background:#1f5647db;color:#e9ffeb}.sidebar{display:flex;flex-direction:column;gap:15px}.side-card{background:#f7fbf5;border:4px solid #e6f5ea;border-radius:22px;padding:17px;box-shadow:0 12px 28px #06182860}.hero-card{background:linear-gradient(150deg,#eefeea,#fffbeb)}.side-eyebrow{color:#438e78}.side-card h2{margin:7px 0;font-size:24px;letter-spacing:-.7px}.side-card p{font-size:13px;line-height:1.5;color:#60816f;margin:0 0 14px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stats>div{background:#fff;border:2px solid #d9efdb;padding:10px;border-radius:13px;display:flex;flex-direction:column}.stats strong{font-size:26px;color:#30765f}.stats span{font-size:9px;letter-spacing:1px;color:#739386;font-weight:900}.progress-note{font-size:11px;color:#60816f;margin-top:12px}.card-heading{display:flex;justify-content:space-between;gap:6px;align-items:center;margin-bottom:13px}.card-heading h3{margin:0;font-size:20px}.card-heading span{color:#8aaf9b;font-size:9px;letter-spacing:1px;font-weight:bold}.journal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.journal-card{background:#e9f3ed;border:2px dashed #c9dfd0;border-radius:13px;display:flex;flex-direction:column;align-items:center;padding:7px 3px;gap:1px;min-width:0;color:#60796d}.journal-card img{width:65px;height:67px;object-fit:contain;filter:grayscale(1);opacity:.37}.journal-card span{font-size:11px;font-weight:900}.journal-card small{font-size:9px;color:#8b9e93}.journal-card.unlocked{background:#fff8df;border:2px solid #f4d596;color:#496f51}.journal-card.unlocked img{filter:none;opacity:1}.actions-card{display:grid;gap:8px}.main-btn,.light-btn{border-radius:13px;padding:13px 15px;font-weight:900;font-size:14px;width:100%;border:0}.main-btn{background:linear-gradient(180deg,#ffe8a1,#ffce6c);color:#74562b;box-shadow:0 4px 0 #cca451}.light-btn{background:#e5f2ea;color:#376e61;border:2px solid #d0e7d8}.main-btn:hover,.light-btn:hover{filter:brightness(.97);transform:translateY(-1px)}.reset-link{background:none;border:none;color:#81998a;text-decoration:underline;font-size:11px;margin-top:4px}.notice{padding:13px;border-radius:15px;background:#234a55;color:#d8f0e8;font-size:12px;line-height:1.5}footer{color:#bdd3d0;text-align:center;font-size:11px;padding:20px}.overlay{position:absolute;inset:0;z-index:25;background:#123642cf;backdrop-filter:blur(5px);display:none;align-items:center;justify-content:center;padding:14px}.overlay.visible{display:flex}.panel,.battle-modal{background:#fffdf4;border:5px solid #fff2c8;border-radius:26px;box-shadow:0 15px 0 #091f2b44,0 20px 35px #0007}.panel{width:min(580px,98%);padding:31px;position:relative;max-height:96%;overflow:auto}.panel h2{font-size:29px;letter-spacing:-.8px;margin:7px 0 10px}.panel p{line-height:1.6;color:#526e67;font-size:14px}.close-x{position:absolute;right:11px;top:10px;border:0;border-radius:12px;background:#eaf4e8;color:#366354;font-size:28px;width:40px;height:40px}.arena-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:250px;overflow:auto}.arena-creature{display:flex;align-items:center;gap:5px;text-align:left;border:2px solid #dfead9;background:#f3f9ed;border-radius:13px;padding:4px;min-width:0}.arena-creature img{width:56px;height:60px}.arena-creature strong{font-size:12px;display:block}.arena-creature small{font-size:9px;color:#769380;line-height:1.3;display:block}.arena-arrow{margin-left:auto;color:#59a87d}.battle-overlay{padding:12px}.battle-modal{width:min(880px,100%);max-height:99%;overflow:auto;padding:16px 21px}.battle-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.battle-top h2{font-size:26px;letter-spacing:-.7px;margin:4px 0}.battle-top p{margin:2px 0;font-size:12px;color:#729184}.exit-btn{border:2px solid #e7dacc;background:#fff4e9;color:#986850;font-weight:900;font-size:11px;padding:9px 11px;border-radius:10px;white-space:nowrap}.battle-stage{display:grid;grid-template-columns:1fr 75px 1fr;align-items:center;background:linear-gradient(160deg,#e0f6e5,#c9eced);border:3px solid #c9e7d8;border-radius:20px;min-height:160px;margin:13px 0;padding:7px 20px}.fighter{text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px}.fighter-label{font-size:11px;color:#568073;font-weight:900;letter-spacing:1px}.fighter img{height:96px;width:115px;object-fit:contain;margin-top:-2px;filter:drop-shadow(0 6px 6px #406a6e3b)}.fighter small{font-size:10px;color:#77968a}.health-bg{height:11px;border-radius:99px;background:#ffffff;overflow:hidden;width:min(185px,100%);border:2px solid #b7d6c7}.health-fill{height:100%;transition:width .25s ease;border-radius:99px}.friend-fill{background:linear-gradient(90deg,#efb76a,#ffd47b)}.enemy-fill{background:linear-gradient(90deg,#72d6ab,#34bd91)}.spell-burst{text-align:center;font-size:48px;color:#f1b959;line-height:1}.spell-burst span{display:block;font-weight:900;font-size:17px;color:#4d8c74}.question-box{text-align:center}.story{background:#f0f9f2;border:2px solid #d6e9d8;border-radius:13px;padding:11px 14px;margin:5px auto 8px;line-height:1.5;font-size:15px;font-weight:bold;color:#3e675c;max-width:640px}.question-box h3{font-size:clamp(17px,2.2vw,24px);line-height:1.3;margin:8px 0 14px;color:#285653}.answers{display:grid;grid-template-columns:1fr 1fr;gap:9px}.answer-btn{background:#fff;border:3px solid #d0e8da;color:#366c60;padding:12px 10px;border-radius:13px;font-weight:900;font-size:16px;min-height:47px}.answer-btn:hover:not(:disabled){background:#e7f8e9;border-color:#8fce9d}.answer-btn.right{background:#c8f2c9;border-color:#60c68d}.answer-btn.wrong{background:#ffe3d5;border-color:#f5ae91}.battle-feedback{font-size:13px;min-height:20px;margin:12px 0;color:#648477;font-weight:bold}.battle-feedback.positive{color:#298764}.battle-feedback.negative{color:#a66b42}.question-box .main-btn{width:auto;padding:10px 28px}.victory{grid-column:1/-1;font-size:21px;font-weight:900;color:#248d6e;padding:12px}button[hidden],section[hidden],p[hidden]{display:none!important}@media(max-width:1050px){.app{padding:15px}.layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.actions-card{grid-column:2}.notice{grid-column:1/-1}.journal-card img{width:70px}.world-head-right{display:none}}@media(max-width:650px){.topbar{align-items:flex-start}.header-right .age{display:none}.identity h1{font-size:24px}.logo{width:44px;height:44px;font-size:31px}.star-pill{min-width:80px}.world-head{padding:0 9px}.hud-controls{display:none}.sidebar{display:flex}.viewport{min-height:240px}.panel{padding:17px}.battle-modal{padding:9px}.battle-top h2{font-size:18px}.battle-top p{font-size:10px}.battle-stage{grid-template-columns:1fr 34px 1fr;padding:4px;min-height:130px}.fighter img{height:71px;width:80px}.spell-burst{font-size:26px}.answers{gap:5px}.answer-btn{font-size:12px;padding:8px}.story{font-size:12px}.question-box h3{font-size:16px}}
