.playing-rpg{overflow:hidden}.playing-rpg #weather{display:none}.rpg-shell{height:calc(100svh - 72px);position:relative;background:#091729;overflow:hidden;isolation:isolate}.rpg-shell>canvas{display:block;width:100%;height:100%;touch-action:none}.rpg-hud{position:absolute;top:18px;left:20px;right:20px;display:flex;gap:16px;align-items:flex-start;pointer-events:none;z-index:2}.rpg-identity,.rpg-vitals{background:linear-gradient(125deg,#10263aef,#0b1626f5);border:1px solid #a88b54;border-radius:6px;padding:11px 17px;box-shadow:0 4px 20px #0005}.rpg-identity{min-width:260px;max-width:35%}.rpg-identity strong{display:block;font-family:var(--serif);font-size:21px;line-height:1.3;margin-top:4px}.rpg-identity .eyebrow{font-size:9px;letter-spacing:1.7px}.rpg-hero-name{font-size:10px;color:#b6c9da;letter-spacing:1px}.rpg-vitals{min-width:260px;margin:auto;padding:10px 17px}.rpg-vitals label{display:flex;justify-content:space-between;color:#afc3d5;font-size:10px;letter-spacing:1px;text-transform:uppercase}.rpg-vitals label b{color:#d4ebd9}.rpg-health-track{height:7px;background:#253547;border-radius:5px;margin:5px 0 8px;overflow:hidden}.rpg-health-track span{height:100%;display:block;width:100%;background:linear-gradient(90deg,#6dba92,#b6e4a1);transition:width .2s}.rpg-vital-small{display:flex;gap:15px;justify-content:space-between;font-size:10px;color:#d5c399}.rpg-tools{display:flex;gap:7px;pointer-events:auto}.rpg-tools button{background:#0c1929e8;min-width:40px;height:40px;font-size:20px;color:var(--gold);border-color:#aa8b55}.rpg-objective{position:absolute;top:124px;left:24px;max-width:340px;padding:12px 15px;background:#0b1727dc;border-left:2px solid #c5a366;pointer-events:none;z-index:2;box-shadow:0 4px 25px #0004}.rpg-objective .eyebrow{font-size:8px;letter-spacing:2px}.rpg-objective strong{font-size:12px;display:block;color:#d4e2eb;margin-top:5px}.rpg-objective>span:last-child{font-size:10px;color:#8fa9c0;display:block;margin-top:5px}.rpg-bottom{position:absolute;bottom:35px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:flex-end;gap:15px;z-index:3;pointer-events:none}.rpg-bottom>div{display:flex;gap:7px;pointer-events:auto}.rpg-bottom button{background:linear-gradient(125deg,#172e44ef,#0b192af0);border:1px solid #9a8158;border-radius:5px;box-shadow:0 3px 12px #0006;min-height:48px;padding:9px 13px;font-size:11px;line-height:1.2;color:#d9e1e9;touch-action:none;user-select:none;-webkit-user-select:none}.rpg-bottom button b{display:block;font-size:15px;font-family:var(--serif);color:var(--gold);margin-bottom:3px}.rpg-bottom button:active,.rpg-bottom button.active{background:#4b5362;border-color:var(--blue)}.rpg-bottom .rpg-move-controls button{font-size:25px;min-width:50px}.rpg-bottom #rpg-interact:enabled{border-color:#a8e6ff;box-shadow:0 0 23px #69cfff55;color:#c6f0ff}.rpg-key-guide{position:absolute;bottom:8px;left:20px;right:20px;text-align:center;font-size:9px;color:#91a9bf;text-shadow:0 2px 4px #000;letter-spacing:.7px;pointer-events:none}.rpg-overlay{position:absolute;z-index:6;inset:0;background:#020817c9;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;overflow-y:auto;padding:24px}.rpg-intro{width:min(850px,100%);max-height:100%;overflow:auto;background:#101d2cf2;border:1px solid #a38a59;border-radius:7px;box-shadow:0 15px 100px #000a}.rpg-intro>img{width:100%;height:190px;object-fit:cover;object-position:center 32%;display:block;filter:brightness(.82);border-bottom:1px solid #715f3f}.rpg-intro-copy{padding:24px 30px}.rpg-intro h1{font-size:32px;margin:7px 0 12px}.rpg-intro p{font-size:13px;color:#b9cbdb;margin-bottom:17px;max-width:700px}.rpg-control-help{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border-top:1px solid #3f5068;border-bottom:1px solid #3f5068;padding:14px 0;margin:16px 0}.rpg-control-help span{font-size:11px;color:#abc2d6}.rpg-control-help b{color:var(--gold);display:block;font-size:11px;margin-bottom:2px}.rpg-math{position:relative;max-width:670px;width:100%;max-height:100%;overflow-y:auto;box-shadow:0 20px 90px #0009;border:1px solid #a68c5c;border-radius:6px;background:#101c2c}.rpg-math>.quest-panel{border:0;min-height:0;border-radius:0;padding:23px 30px}.rpg-seal-heading{padding:12px 20px 11px 30px;background:#18273a;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #3f5067}.rpg-seal-heading .icon-btn{height:29px;min-width:29px;font-size:11px}.rpg-close{position:absolute;right:12px;top:12px;z-index:3}.rpg-math .question-progress{margin-bottom:17px}.rpg-math m{padding:14px 8px}.rpg-math .question-title{font-size:15px;margin-bottom:15px}.rpg-math .answer-input{padding:12px;min-height:51px;font-size:18px}.rpg-math .options{gap:7px}.rpg-math .option{min-height:46px;padding:10px 12px;font-size:13px}.rpg-math .feedback{margin-top:12px}.rpg-math .knowledge-note{font-size:10px}.rpg-math .actions{margin-top:15px}.rpg-math .graph-wrap canvas{height:230px}.rpg-level-stars{color:#d6b471;font-size:12px;letter-spacing:2px}.rpg-battle-note{font-size:11px;color:#c4d3df;padding:8px 12px;background:#0a1725dc;border:1px solid #4d6981}.rpg-shell:fullscreen{height:100svh}.rpg-shell button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:1100px){.rpg-identity{min-width:220px}.rpg-identity strong{font-size:18px}.rpg-vitals{min-width:230px}.rpg-bottom{left:14px;right:14px;gap:8px}.rpg-bottom button{padding:8px 10px}.rpg-key-guide{font-size:8px;letter-spacing:0}}
@media(max-width:800px){.rpg-shell{height:calc(100svh - 65px)}.rpg-hud{top:10px;left:10px;right:10px;gap:8px}.rpg-identity{min-width:0;max-width:45%;padding:8px 10px}.rpg-identity strong{font-size:15px}.rpg-identity .eyebrow{font-size:7px;letter-spacing:1px}.rpg-hero-name{font-size:8px}.rpg-vitals{min-width:0;flex:1;padding:8px 10px}.rpg-vital-small{font-size:8px;gap:6px}.rpg-tools button{height:34px;min-width:32px;font-size:16px}.rpg-objective{top:111px;left:12px;max-width:245px;padding:9px 12px}.rpg-objective strong{font-size:11px}.rpg-objective>span:last-child{font-size:9px}.rpg-bottom{bottom:22px;gap:6px;align-items:flex-end}.rpg-bottom>div{gap:4px}.rpg-bottom button{font-size:9px;padding:7px;min-height:44px}.rpg-bottom .rpg-move-controls button{min-width:38px;font-size:22px}.rpg-key-guide{bottom:5px;font-size:7px;left:5px;right:5px}.rpg-overlay{padding:12px}.rpg-intro-copy{padding:20px}.rpg-intro>img{height:155px}.rpg-intro h1{font-size:26px}.rpg-math>.quest-panel{padding:20px}.rpg-seal-heading{padding:10px 15px 10px 20px}.rpg-control-help{grid-template-columns:repeat(3,1fr);gap:8px}}
@media(max-width:540px){.rpg-identity{max-width:49%;width:49%}.rpg-identity strong{font-size:13px}.rpg-hero-name{display:none}.rpg-vitals{margin:0;max-width:40%;min-height:64px}.rpg-vitals label{font-size:8px}.rpg-vital-small{font-size:8px;flex-wrap:wrap;gap:3px;line-height:1.1}.rpg-tools{position:absolute;right:0;top:76px}.rpg-objective{top:86px;max-width:265px;left:10px}.rpg-objective>span:last-child{display:none}.rpg-hud{gap:7px}.rpg-bottom{left:10px;right:10px;bottom:24px;flex-wrap:wrap}.rpg-utility-controls{position:absolute;bottom:62px;left:0}.rpg-bottom button{min-height:45px;padding:7px 9px}.rpg-bottom .rpg-move-controls button{min-width:45px}.rpg-bottom .rpg-action-controls button{min-width:46px}.rpg-intro>img{height:110px}.rpg-intro h1{font-size:23px}.rpg-intro-copy{padding:17px}.rpg-control-help span{font-size:9px}.rpg-control-help b{font-size:10px}.rpg-intro p{font-size:12px;margin-bottom:13px}.rpg-intro .btn{width:100%}.rpg-math>.quest-panel{padding:16px}.rpg-math m{font-size:22px;padding:13px 7px}.rpg-math .question-title{font-size:14px}.rpg-math .actions{flex-wrap:wrap}.rpg-key-guide{font-size:6px}.rpg-math .btn{font-size:12px}.rpg-math .graph-wrap canvas{height:200px}}
@media(max-height:590px) and (min-width:600px){.rpg-hud{top:8px}.rpg-identity{padding:5px 11px}.rpg-identity strong{font-size:16px}.rpg-hero-name{display:none}.rpg-vitals{padding:5px 11px}.rpg-objective{top:80px;max-width:280px;padding:7px 11px}.rpg-objective>span:last-child{display:none}.rpg-bottom{bottom:24px}.rpg-intro{display:grid;grid-template-columns:35% 65%}.rpg-intro>img{height:100%;object-position:40% center}.rpg-intro-copy{padding:17px}.rpg-intro h1{font-size:22px}.rpg-intro p{font-size:11px}.rpg-control-help{padding:8px 0;margin:8px 0}.rpg-control-help span{font-size:9px}.rpg-intro .btn{min-height:39px;padding:8px 14px}}

/* Touch buttons only where they help: hidden on keyboard-and-mouse computers until the screen is touched */
body:not(.touch-used) .rpg-move-controls,body:not(.touch-used) .rpg-action-controls{display:none}
body:not(.touch-used) .rpg-bottom{justify-content:center}

/* Phones and other short landscape screens: keep the play area clear */
@media (max-height:500px){
 .rpg-hud{top:6px;left:8px;right:8px;gap:6px}
 .rpg-identity{min-width:0;padding:4px 9px}
 .rpg-identity .eyebrow{display:none}
 .rpg-identity strong{font-size:13px}
 .rpg-hero-name{display:none}
 .rpg-vitals{min-width:0;padding:4px 10px}
 .rpg-vitals .rpg-vital-small{font-size:10px}
 .rpg-objective{display:none}
 .rpg-key-guide{display:none}
 .rpg-bottom{bottom:6px}
 .rpg-bottom button{min-height:40px;padding:4px 9px;font-size:11px;opacity:.72}
 .rpg-bottom button:active{opacity:1}
 .rpg-utility-controls button{min-height:34px}
}
