/* An explorable kingdom with floating controls, rather than a dashboard. */
.realm-shell{height:100dvh;min-height:560px;overflow:hidden;background:#7d9c73}
.realm-main{position:relative;height:100%;max-width:none;padding:0;margin:0;isolation:isolate}
.kingdom-world{position:absolute;inset:0;z-index:0;outline:none}
.realm-vignette{position:absolute;inset:0;background:linear-gradient(#0b211839,transparent 23%,transparent 65%,#0d1d284d);pointer-events:none;z-index:1}
.realm-top{position:absolute;top:24px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;gap:18px;z-index:8;pointer-events:none}
.realm-top>*{pointer-events:auto}
.realm-brand{display:flex;gap:10px;align-items:center;filter:drop-shadow(0 2px 8px #0e2d1566)}
.realm-brand img{width:43px;height:43px;box-shadow:0 3px 12px #1a342c36;border-radius:13px}
.realm-brand>span{font:600 25px 'Baloo 2';letter-spacing:-1px;color:#fff}
.realm-brand small{display:block;font:600 8px Nunito;letter-spacing:1.7px;color:#d4e4d2;margin-top:4px}
.realm-location{display:flex;align-items:center;gap:10px;background:#16342ac9;border:1px solid #c7e3bb40;box-shadow:0 3px 14px #1c3b2630;backdrop-filter:blur(16px);padding:10px 18px;border-radius:14px;transform:translateX(-22px)}
.realm-location strong{font:600 17px 'Baloo 2';display:block;color:#f1f3dd;letter-spacing:.2px}
.realm-location span:not(.realm-sun){font-size:11px;color:#b6ccb9;display:block;margin-top:2px}
.realm-sun{color:#efd891}.realm-sun .icon{width:24px;height:24px}
.realm-resources{display:flex;align-items:center;gap:10px}
.resource-token{display:flex;align-items:center;gap:8px;background:#172c25e8;border:1px solid #a3c39c40;border-radius:12px;padding:11px 14px;min-height:44px;box-shadow:0 5px 16px #1b312833;backdrop-filter:blur(10px);white-space:nowrap}
.resource-token b{font-size:15px}.resource-token small{font-size:11px}.resource-token .icon{width:17px;height:17px}
.world-tool{width:42px;height:42px;display:grid;place-items:center;border:1px solid #b7d1aa44;border-radius:12px;background:#183328d9;color:#d8e8cc;backdrop-filter:blur(14px);box-shadow:0 3px 16px #142e2833;transition:transform .18s,background .18s}
.world-tool:hover{background:#304c33;transform:translateY(-2px)}.player-profile{border-radius:50%;width:44px;height:44px;background:#243c2f}.player-profile .avatar{width:36px;height:36px}
.hud-panel{background:#142b26e8;border:1px solid #cee1b636;border-radius:17px;box-shadow:0 12px 32px #17362630,inset 0 1px #e2efcd0a;backdrop-filter:blur(18px);color:#eff3e4}
.realm-quest{position:absolute;z-index:5;left:26px;top:112px;width:254px;padding:20px;animation:hudEnter .5s both .1s}
.realm-overline{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#a7c8a4}
.realm-quest .icon{width:17px;height:17px}.realm-quest h2{font-size:17px;line-height:1.4;letter-spacing:-.2px;margin-top:13px}.realm-quest p{color:#b2c4af;font-size:13px;margin-top:4px}
.daily-track{height:5px;background:#385141;border-radius:8px;margin:19px 0 9px;overflow:hidden}.daily-track>span{display:block;height:100%;background:#c7e68b;border-radius:inherit;transition:width .5s}.realm-quest .between>small{font-size:11px;color:#b0c1ae}.realm-quest .between>.row{font-size:11px;gap:4px}.realm-quest .btn{margin-top:18px;font-size:13px;background:#d4e6a2;color:#26361d;box-shadow:0 3px 0 #94af65;min-height:40px}.realm-quest .btn:hover{background:#e5f4b8;transform:translateY(-2px)}.quest-card-note{font-size:10px;color:#8ea991;text-align:center;margin-top:12px}
.realm-world-tools{position:absolute;z-index:5;right:26px;top:111px;display:flex;gap:12px;align-items:center}.realm-mode{font-size:11px;color:#e8efe1;text-shadow:0 2px 6px #183722;display:flex;align-items:center;gap:5px}.realm-mode .icon{width:14px;height:14px}.world-tool-buttons{display:flex;gap:7px}.world-tool-buttons .world-tool{width:35px;height:35px;border-radius:10px}
.realm-welcome{position:absolute;z-index:2;top:110px;left:50%;transform:translateX(-50%);text-align:center;pointer-events:none;white-space:nowrap;animation:welcomeAway 8s forwards;color:#fff9df;text-shadow:0 2px 18px #183b22}
.realm-welcome>span{font-size:9px;letter-spacing:2px;font-weight:600;color:#e3edc9}.realm-welcome h1{font-size:26px;margin:5px 0;letter-spacing:-.7px}.realm-welcome p{font-size:12px;color:#e5ebd9}
.realm-player{position:absolute;z-index:5;left:26px;bottom:25px;width:264px;display:flex;align-items:center;gap:14px;padding:15px 16px;animation:hudEnter .5s both .2s}
.hero-portrait{width:48px;height:58px;position:relative;background:radial-gradient(#9bb88444,#1d352d);border:1px solid #b8d39255;border-radius:12px;display:grid;place-items:center;flex-shrink:0}
.hero-portrait svg{width:39px;height:47px;filter:drop-shadow(0 2px 4px #0018)}.hero-portrait b{position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);background:#d9df9c;color:#26371e;font-size:10px;line-height:17px;width:20px;text-align:center;border-radius:5px;border:1px solid #e3ecba}
.hero-status{min-width:0;flex:1}.hero-status strong{font:600 14px 'Baloo 2';overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}.hero-status>.between>span{display:flex;align-items:center;gap:3px;font-size:11px;color:#c4d4b8}.hero-status .icon{width:12px;height:12px}.hero-status>small{font-size:10px;color:#9eb69d;display:block;margin:4px 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-status .progress{height:4px;background:#385441}.hero-status>.between:last-child{margin-top:6px}.hero-status>.between:last-child span{font-size:9px;color:#a7bfa3}
.realm-bottom{position:absolute;z-index:9;bottom:23px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px}
.realm-controls{display:flex;align-items:center;gap:11px;font-size:10px;color:#f2f1db;text-shadow:0 2px 7px #14361d;white-space:nowrap;background:#1835294d;padding:5px 10px;border-radius:6px;backdrop-filter:blur(4px)}.realm-controls i{width:3px;height:3px;background:#d7e0c6;border-radius:50%;opacity:.6}.realm-controls kbd{font:9px Nunito;border:1px solid #d3e4be66;padding:1px 3px;border-radius:3px;display:inline-block;margin-right:2px}
.realm-dock{display:flex;align-items:center;gap:7px;padding:8px 10px;background:#142a25f2;border:1px solid #d7e3be44;backdrop-filter:blur(20px);border-radius:20px;box-shadow:0 12px 35px #13322444,inset 0 1px #f3f9d612}
.dock-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:58px;height:62px;border-radius:12px;background:transparent;color:#a9bfa8;transition:transform .22s,background .22s,color .22s}
.dock-item>span{position:relative}.dock-item small{font-size:10px;font-weight:600}.dock-item .icon{width:22px;height:22px}.dock-item:hover{background:#2b4232;color:#e3efc9;transform:translateY(-4px)}.dock-item.active{background:#d1e49e;color:#26391f;box-shadow:0 3px 0 #a1b573}.dock-item.active:after{content:'';position:absolute;bottom:-13px;width:5px;height:5px;border-radius:50%;background:#e2f3b5}.dock-badge{position:absolute;right:-10px;top:-7px;background:#edc378;color:#463c23;border:2px solid #20372b;font-size:9px;min-width:16px;height:16px;border-radius:50%;display:grid;place-items:center}.dock-divider{height:34px;width:1px;background:#819e6540;margin:0 3px}.dock-attack{width:45px;color:#e5c690}.dock-attack:hover{color:#ffe9a6;background:#5a4d2b}
.realm-mini{position:absolute;right:26px;bottom:25px;z-index:5;width:150px;padding:10px 11px 8px;animation:hudEnter .5s both .3s}.realm-mini>.between>span{font-size:8px;letter-spacing:1.2px;color:#afc3a3}.realm-mini .icon-btn{padding:0;color:#a9c298}.realm-mini .icon-btn .icon{width:14px;height:14px}.realm-mini>svg{width:126px;height:94px;display:block;margin-top:4px}.mini-controls{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.mini-controls button{background:#314c36;border:1px solid #647f4e55;width:21px;height:21px;border-radius:6px;color:#d7e7bd;font-size:16px}.mini-controls span{font-size:8px;color:#a7b99d}.realm-travel{position:absolute;bottom:137px;left:50%;transform:translateX(-50%);background:#173025e8;padding:10px 18px;border:1px solid #bdcd9355;border-radius:30px;color:#d6e7b7;font-size:13px;z-index:10;pointer-events:none;opacity:0;transition:opacity .2s}.realm-travel.show{opacity:1}
.realm-panel{position:absolute;z-index:7;right:26px;top:92px;bottom:120px;width:410px;max-width:calc(100vw - 40px);background:#11241ff2;border:1px solid #bed5a446;border-radius:21px;backdrop-filter:blur(26px);box-shadow:0 18px 70px #09221966;overflow:hidden;display:flex;flex-direction:column;animation:drawerIn .28s cubic-bezier(.16,1,.3,1)}.realm-panel[hidden]{display:none}.realm-panel-header{display:flex;align-items:center;gap:12px;padding:20px 22px 18px;border-bottom:1px solid #9bbd8430}.realm-panel-header>.icon-btn{margin-left:auto}.realm-panel-header>div>span{font-size:9px;letter-spacing:1.6px;color:#9fb99b}.realm-panel-header h2{font-size:22px;letter-spacing:-.7px;margin-top:4px}.drawer-emblem{width:42px;height:44px;border-radius:12px;border:1px solid #afc3883a;background:#b5d68118;color:#caddaa;display:grid;place-items:center}.realm-panel-body{padding:21px;overflow:auto;scrollbar-width:thin;scrollbar-color:#76946555 transparent;overscroll-behavior:contain;flex:1;min-height:0}.realm-panel-body>p:first-child{font-size:14px;color:#a6bca8;margin-bottom:18px;line-height:1.65}.realm-panel .pills{background:#162d24;border-color:#a5c78625;width:100%;justify-content:space-between;margin-bottom:17px}.realm-panel .pill{font-size:13px;flex:1}.realm-panel .pill.active{background:#35503a;color:#e6edce}.realm-panel .btn{font-size:13px}.realm-panel .notice{background:#243a2b;border-color:#59714944;font-size:12px;color:#bed0b6}.realm-panel .tag{font-size:10px;border-color:#6e8c5d44}.realm-panel .text-button{color:#c7d9af}.realm-panel .difficulty{font-size:10px}
.quest-choice{display:flex;align-items:center;gap:12px;border:1px solid #6d8d5e40;background:#21392cc9;border-radius:13px;padding:15px;margin:10px 0;transition:transform .18s,border-color .18s,background .18s;position:relative;overflow:hidden}.quest-choice:hover{transform:translateX(-3px);border-color:#bdd08e8c;background:#2e4933}.quest-choice .problem-icon{width:38px;height:40px;flex-shrink:0;border-radius:10px}.quest-choice h3{font-size:15px;line-height:1.5}.quest-choice p{font-size:11px;color:#a9bda7;margin-top:3px}.quest-choice .quest-reward{margin-left:auto;text-align:right;flex-shrink:0}.quest-reward strong{font-size:12px;color:#d2e4a7;display:block;margin-top:9px}.quest-choice.done:before{content:'';position:absolute;top:0;bottom:0;left:0;width:3px;background:#a6d07b}.drawer-stats{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#a8bda2;padding-bottom:12px}.drawer-gear-preview{height:205px;background:radial-gradient(#48634477,#162a2277);border:1px solid #91b27536;border-radius:14px;overflow:hidden;position:relative;margin-bottom:14px}.drawer-gear-preview:after{content:'YOUR ADVENTURER';position:absolute;bottom:11px;width:100%;text-align:center;font-size:9px;letter-spacing:1.6px;color:#bccdaf;pointer-events:none}.drawer-gear-info{margin:14px 0 20px}.drawer-gear-info strong{font-size:18px;font-family:'Baloo 2';display:block}.drawer-gear-info small{font-size:12px;color:#9db89c;display:block;margin-top:5px}.realm-panel .item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.realm-panel .item-card{background:#21382c;border-color:#78926340;padding:13px}.realm-panel .item-card.equipped{background:#364d32;border-color:#c6d58f99}.realm-panel .item-art{height:70px}.realm-panel .item-art svg{height:63px}.realm-panel .item-card h4{font-size:12px;min-height:34px}.realm-panel .item-card .btn{font-size:12px;min-height:32px}.realm-panel .item-card.locked{opacity:.5}.realm-panel .rarity-label{font-size:9px}.realm-panel .chest-banner{padding:14px;background:linear-gradient(110deg,#4b442a,#263a2b);border-color:#bfa86755;gap:12px;flex-wrap:wrap}.realm-panel .chest-banner h3{font-size:14px}.realm-panel .chest-banner p{font-size:12px}.realm-panel .chest-banner .chest-art svg{width:40px;height:40px}.realm-panel .chest-banner .btn{width:100%;margin:0}.realm-panel .chest-banner .text-button{font-size:11px}.realm-panel .bot-card{background:#21382c;border-color:#76926440;margin:12px 0;padding:18px}.realm-panel .bot-card p{font-size:13px}.realm-panel .bot-card .btn{background:#365139;border-color:#73895777;color:#e3edc8}.realm-panel .avatar{width:38px;height:38px}.realm-panel .leader-row{border-color:#70906033;padding:15px 0}.realm-panel .leader-name{font-size:14px}.realm-panel .leader-name small{font-size:11px}.realm-panel .rank{font-size:14px}.realm-panel .leader-score{font-size:13px}.realm-panel .panel{background:#22362b;border-color:#7e936433;padding:15px}.realm-panel .reward-stats{margin:16px 0}.realm-panel .reward-stat{padding:13px 8px;background:#2a4130}.realm-panel .reward-stat strong{font-size:22px}.realm-panel .reward-stat span{font-size:10px}
body.realm-active{overflow:hidden}.realm-active .modal-backdrop{background:#091a204d;backdrop-filter:blur(5px)}.realm-active .modal{background:#172e25f5;border-color:#a6c18666}.realm-active .why-option{background:#213d2d;border-color:#77986755}.realm-active .why-option.correct{background:#395a30}.realm-active .battle-question{background:#10221c;border-color:#5a77513d}
.study-shell{min-height:100dvh;background:radial-gradient(ellipse at 50% 0,#1c302a,#0d181a 60%)}.study-shell .topbar{height:76px;background:#12231de8;border-color:#6a895737;position:sticky;top:0;z-index:12}.study-shell main{max-width:1350px;padding-top:25px}.study-shell .realm-brand{font-size:20px;filter:none}.study-shell .realm-brand img{width:32px;height:32px}.study-shell .realm-brand>span{font-size:21px}.study-shell .back-world{font-size:13px;color:#bdceaf;display:flex;align-items:center;gap:8px;background:#28402f;border:1px solid #687d514f;padding:9px 13px;border-radius:9px}.study-shell .topbar .row{gap:24px}.study-shell .panel,.study-shell .editor{background:#13251f;border-color:#59764c44}.study-shell .editor-bar{background:#1c3026;border-color:#59764c44}.study-shell .editor-content{background:#0e1d19}.study-shell .line-number{background:#0e1d19}.study-shell .code-line.new .line-number{background:#28452b}.study-shell .code-line.new{background:#28452b;animation:codeSnap .32s ease-out}.study-shell .code-option{background:#1e3228;border-color:#5c7b4f66}.study-shell .code-option:hover:not(:disabled){background:#2d4930;border-color:#b2ce8b}.study-shell .code-option.correct{background:#304c2c;border-color:#a8cc7a;animation:correctPop .3s ease}.study-shell .code-option.wrong{background:#432f2a;border-color:#ba7762;animation:wrongNudge .25s ease}.study-shell .code-options.answered .code-option:not(.correct){display:none}.study-shell .code-options.answered{margin-top:12px}.study-shell .statement .notice{font-size:13px}.statement-details>summary{cursor:pointer;color:#c4d6b4;font-size:14px;font-weight:600;margin-top:22px;list-style:none;display:flex;align-items:center;justify-content:space-between}.statement-details>summary:after{content:'+';font-size:20px}.statement-details[open]>summary:after{content:'−'}.inline-why{border:1px solid #718f584f;background:#1a3023;border-radius:12px;margin-top:16px;padding:19px;animation:drawerIn .2s ease}.inline-why h4{font-size:16px;line-height:1.6}.inline-why .why-options{margin-bottom:0}.inline-why .why-option{background:#253e2c;border-color:#597d4e55;font-size:14px}.study-shell .step-section{animation:stepReveal .22s ease}.study-shell .study-top>.progress{height:6px;max-width:none}.study-shell .study-top{gap:15px}.study-shell .progress>span{transition:width .35s ease}.study-shell .code-options{gap:12px}.study-shell .study-actions .btn.primary{box-shadow:0 3px 0 #7e9e51}.study-shell .feedback{font-size:14px}.study-shell .statement h1{font-size:28px}.study-shell .summary-card{background:#182e22}.study-shell .success-emblem{box-shadow:0 0 55px #a5d95726;animation:correctPop .6s ease}
@keyframes drawerIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@keyframes hudEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes welcomeAway{0%,70%{opacity:1}100%{opacity:0;visibility:hidden}}
@keyframes correctPop{0%{transform:scale(.975)}65%{transform:scale(1.012)}100%{transform:scale(1)}}
@keyframes wrongNudge{0%,100%{transform:translateX(0)}30%{transform:translateX(-4px)}70%{transform:translateX(4px)}}
@keyframes codeSnap{from{opacity:.3;transform:translateX(9px)}to{opacity:1;transform:translateX(0)}}
@keyframes stepReveal{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1200px){.realm-quest{width:223px;padding:17px;left:20px}.realm-top{left:20px;right:20px}.realm-player{left:20px;width:229px;padding:14px 12px;gap:11px}.realm-bottom{left:53%}.realm-dock{gap:4px;padding:8px}.dock-item{width:51px}.realm-controls{font-size:9px;gap:7px}.realm-mini{right:20px;width:132px;padding:9px}.realm-mini>svg{width:112px;height:84px}.realm-world-tools{right:20px}.realm-location{transform:none}.realm-brand small{font-size:7px;letter-spacing:1.2px}.realm-panel{right:20px;width:390px}.realm-welcome{left:52%;top:105px}.realm-welcome h1{font-size:22px}.realm-welcome p{font-size:11px}}
@media(max-width:1000px){.realm-location{display:none}.realm-quest{top:98px;width:215px}.realm-player{bottom:122px;width:216px}.realm-mini{bottom:122px}.realm-bottom{left:50%;bottom:20px}.realm-world-tools{top:98px}.realm-welcome{display:none}.realm-panel{top:86px;bottom:117px}.realm-quest .quest-card-note{display:none}.realm-quest h2{font-size:16px}.realm-mode{font-size:10px}.realm-quest p{font-size:12px}.realm-top{top:20px}.study-shell .topbar .row{gap:15px}}
@media(max-width:760px){.realm-shell{min-height:480px}.realm-top{top:14px;left:14px;right:14px;gap:10px}.realm-brand{gap:7px}.realm-brand img{width:33px;height:33px;border-radius:10px}.realm-brand>span{font-size:19px;letter-spacing:-.6px}.realm-brand small{display:none}.realm-resources{gap:6px}.resource-token{padding:8px;gap:5px;min-height:35px;border-radius:10px}.resource-token b{font-size:12px}.resource-token small{display:none}.resource-token .icon{width:14px;height:14px}.player-profile{width:34px;height:34px}.player-profile .avatar{width:27px;height:27px;font-size:12px}.realm-quest{display:none}.realm-player{left:14px;top:69px;bottom:auto;width:185px;padding:10px 11px;gap:10px;border-radius:13px;background:#163128db}.hero-portrait{height:43px;width:34px;border-radius:9px}.hero-portrait svg{width:28px;height:35px}.hero-portrait b{width:17px;font-size:9px;line-height:15px;bottom:-6px}.hero-status strong{font-size:12px;max-width:95px}.hero-status>.between>span{font-size:10px}.hero-status>small{font-size:9px;margin:3px 0 7px}.hero-status>.between:last-child span{font-size:8px}.hero-status .progress{height:3px}.realm-world-tools{top:73px;right:14px;gap:8px;align-items:flex-end;flex-direction:column}.realm-mode{display:none}.world-tool-buttons{gap:5px}.world-tool-buttons .world-tool{width:31px;height:31px;border-radius:9px}.world-tool-buttons .icon{width:16px;height:16px}.realm-mini{width:91px;right:14px;bottom:119px;padding:7px;border-radius:12px}.realm-mini>svg{width:75px;height:56px}.realm-mini>.between>span{font-size:6px;letter-spacing:.5px}.realm-mini .icon-btn .icon{width:11px;height:11px}.mini-controls span{display:none}.mini-controls{margin-top:0;justify-content:space-around}.mini-controls button{height:20px;width:24px;font-size:14px}.realm-bottom{bottom:16px;gap:7px;width:100%;padding:0 12px}.realm-dock{width:100%;max-width:440px;justify-content:space-around;padding:8px 6px;gap:2px;border-radius:18px}.dock-item{width:48px;height:55px;gap:4px}.dock-item small{font-size:9px}.dock-item .icon{width:20px;height:20px}.dock-divider{margin:0 1px}.dock-attack{width:39px}.dock-item.active:after{bottom:-11px}.realm-controls{font-size:10px;padding:4px 9px}.realm-controls>span:first-child,.realm-controls i:first-of-type{display:none}.realm-travel{bottom:130px;font-size:12px;max-width:calc(100% - 120px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;left:14px;transform:none;padding:9px 12px}.realm-panel{top:151px;left:12px;right:12px;bottom:112px;width:auto;max-width:none;border-radius:17px;background:#14291ff5;z-index:8}.realm-panel-header{padding:14px 17px 13px;gap:10px}.realm-panel-header h2{font-size:20px}.realm-panel-header>div>span{font-size:8px}.drawer-emblem{width:35px;height:36px;border-radius:10px}.drawer-emblem .icon{width:18px;height:18px}.realm-panel-body{padding:16px}.realm-panel-body>p:first-child{font-size:14px}.realm-panel .pills{margin-bottom:13px}.quest-choice{padding:13px 12px;gap:10px;margin:9px 0}.quest-choice h3{font-size:14px}.quest-choice p{font-size:10px}.quest-choice .problem-icon{width:31px;height:35px}.quest-choice .problem-icon .icon{width:18px;height:18px}.quest-reward strong{font-size:11px}.realm-panel .difficulty{font-size:9px}.realm-panel .pill{font-size:12px}.realm-panel .btn{font-size:13px}.drawer-gear-preview{height:170px}.realm-panel .item-card{padding:12px}.realm-panel .item-card h4{font-size:12px}.study-shell .topbar{padding:0 16px;height:64px}.study-shell .topbar .row{gap:11px}.study-shell .realm-brand>span{display:none}.study-shell .back-world{font-size:12px;padding:8px 10px}.study-shell .realm-brand img{width:30px;height:30px}.study-shell .topbar .top-actions{gap:9px}.study-shell main{padding:18px 16px 26px}.study-shell .study-layout{gap:17px}.study-shell .statement{padding:18px}.study-shell .statement h1{font-size:24px;margin:13px 0}.study-shell .statement .description{font-size:15px;line-height:1.7}.study-shell .statement .notice{font-size:12px;margin-top:17px!important}.statement-details>summary{font-size:13px;margin-top:15px}.study-shell .study-top{gap:9px}.study-shell .study-top .meta{font-size:11px;white-space:nowrap}.study-shell .study-top .btn{font-size:12px;padding:7px 10px}.study-shell .editor-content{min-height:130px}.study-shell .study-actions{gap:8px}.study-shell .study-actions .btn{font-size:12px;padding:9px 11px}.inline-why{padding:15px}.inline-why h4{font-size:15px}}
@media(prefers-reduced-motion:reduce){.realm-welcome{display:none}.realm-panel,.realm-quest,.realm-player,.realm-mini{animation:none}.realm-dock a:hover{transform:none}}

.drawer-daily{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid #b9bd744a;background:#4a492638;border-radius:11px;margin-bottom:17px}.drawer-daily>div>span{font-size:13px;color:#e1d5a0;display:flex;gap:6px;align-items:center}.drawer-daily .icon{width:14px;height:14px}.drawer-daily small{font-size:11px;color:#b4bea1;display:block;margin-top:5px}.drawer-daily .btn.small{font-size:12px;padding:8px 10px}.world-tool.night{background:#292f52;color:#d9d4fa}
.dock-item small{font-size:12px}.realm-overline{font-size:11px;letter-spacing:1.1px}.realm-quest p{font-size:14px}.realm-quest .between>small,.realm-quest .between>.row{font-size:12px}.quest-card-note{font-size:11px}.hero-status>small{font-size:11px}.realm-location span:not(.realm-sun){font-size:12px}.quest-choice p{font-size:12px}.quest-reward strong{font-size:13px}.realm-panel .item-card h4{font-size:14px}.realm-shell{min-height:0}
@media(max-width:760px){.dock-item small{font-size:11px}.hero-status>small{font-size:10px}.quest-choice p{font-size:12px}.quest-reward strong{font-size:12px}.realm-panel .item-card h4{font-size:13px}}
@media(max-height:600px){.realm-quest,.realm-mini,.realm-welcome{display:none}.realm-top{top:12px}.realm-player{top:75px;bottom:auto;left:16px;width:215px;padding:11px 13px}.realm-world-tools{top:75px;right:16px}.realm-bottom{bottom:10px}.realm-controls{display:none}.realm-dock{padding:5px 8px}.dock-item{height:50px}.realm-panel{top:72px;bottom:83px;right:16px;left:auto;width:360px}.realm-panel-header{padding:12px 16px}.realm-panel-body{padding:15px}.realm-travel{bottom:87px}.realm-location{display:none}}
.library-banner{margin:18px 0;padding:16px;border:1px solid #d5e4d7;border-radius:16px;background:linear-gradient(135deg,#eef5e8,#e4f0e9);color:#234c3b}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.library-heading>span{display:flex;gap:7px;align-items:center;font-size:13px;font-weight:750}.library-banner p{font-size:12px!important;line-height:1.6!important;margin:8px 0 12px!important;color:#42624e!important}.library-difficulties{display:flex;gap:7px}.library-difficulties span{font-size:10px;text-transform:uppercase;letter-spacing:.5px;padding:4px 7px;border-radius:6px;background:#ffffffa8;color:#42624e}.source-button{margin-top:16px}.source-credit{margin-top:14px}.source-credit p{font-size:12px;margin:10px 0}.source-credit a{color:var(--teal)}

.library-banner{margin:0 0 12px;padding:12px}.library-banner .text-button{color:#2f5740}.library-banner p{margin:6px 0 0!important}.library-difficulties{display:none}.drawer-daily{margin:12px 0;padding:12px}.realm-panel[data-route="practice"] .realm-panel-body{padding-top:18px}

/* Keep controls clear of phone notches and the home indicator. */
.realm-main{top:env(safe-area-inset-top,0px);height:calc(100% - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));margin-left:env(safe-area-inset-left,0px);width:calc(100% - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}
.study-shell{padding-bottom:env(safe-area-inset-bottom,0px)}
.study-shell .topbar{padding-top:env(safe-area-inset-top,0px);height:calc(76px + env(safe-area-inset-top,0px))}
@media(max-width:760px){.study-shell .topbar{height:calc(64px + env(safe-area-inset-top,0px))}.realm-panel{max-width:calc(100% - 24px)}}

.language-picker{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px;color:#c1d3b4;margin:12px 0}.language-picker select{margin-left:auto;background:#243e2e;color:#f0f5e2;border:1px solid #789264;border-radius:8px;padding:9px;min-width:130px;font:inherit}.language-picker small{width:100%;color:#9fb399}.language-picker select:disabled{opacity:.7}.xp-breakdown{padding:14px;background:#253b2d;border-radius:10px;font-size:14px}#quest-xp{max-width:200px;text-align:right}

/* Compact anchored map and safe-area aware dock. */
.realm-mini{width:156px;right:22px;bottom:132px;border-radius:24px;background:#173b35ed;border:1px solid #a8dac955;box-shadow:0 8px 24px #061b2633}.realm-mini .atlas-map-button{display:block;width:100%;border:0;background:transparent;padding:0}.realm-mini .atlas-map-button svg{display:block;width:100%;height:auto}.realm-mini>.between>span{font-size:10px;letter-spacing:.08em}.hero-status{min-width:0}.hero-status strong,.hero-status>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.realm-panel h2,.account-form p{overflow-wrap:anywhere}
#kingdom-connection{position:fixed;z-index:110;left:50%;top:155px;transform:translateX(-50%);width:min(360px,calc(100% - 24px));padding:12px 16px;border-radius:16px;background:#163b35f5;color:#ebf8ef;box-shadow:0 6px 25px #0003;font-size:14px;text-align:center}#kingdom-connection[hidden]{display:none}
@media(max-width:760px){.realm-shell{min-height:100dvh}.realm-bottom{box-sizing:border-box;bottom:max(10px,env(safe-area-inset-bottom));left:0;transform:none;width:100%;padding:0 8px}.realm-dock{box-sizing:border-box;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:6px 4px;max-width:440px}.dock-item,.dock-attack{width:100%;min-width:0;height:56px}.dock-item small{font-size:10px;line-height:1.4;white-space:nowrap;letter-spacing:0}.dock-divider{display:none}.dock-item.active:after{bottom:-5px}.realm-controls{display:none}.realm-mini{display:block;width:100px;right:12px;bottom:calc(87px + env(safe-area-inset-bottom));padding:8px;border-radius:18px}.realm-mini>.between>span{font-size:8px}.realm-mini .mini-controls{display:none}.realm-mini .icon-btn{width:22px;height:22px}.realm-panel{bottom:calc(88px + env(safe-area-inset-bottom))}.account-status{max-width:calc(100vw - 140px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
