html,body{height:100%;margin:0}body{overflow:hidden}.shell{height:100dvh;max-width:1600px;box-sizing:border-box;display:flex;flex-direction:column;padding:10px 18px;gap:8px}.masthead{margin:0;min-height:42px;flex:0 0 auto}.brand-logo{width:160px;height:auto}.edition{font-size:9px}.run-hud{position:relative;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:9px 16px;background:var(--theme-surface);color:var(--theme-ink);border:1px solid var(--theme-line);border-radius:8px;flex:0 0 auto}.run-clock{display:grid;grid-template-columns:auto auto;column-gap:12px;row-gap:0;align-items:center}.run-label{font-size:9px;letter-spacing:1.3px}#run-time{font:800 28px/1.05 Consolas,monospace;color:var(--theme-ink)}#run-status{grid-column:1/-1;font-size:9px;letter-spacing:.6px}.run-objective{display:flex;flex-direction:column;gap:3px;text-align:right}.run-objective strong{font-size:12px;letter-spacing:1px}#run-progress{font:11px Consolas,monospace}.run-objective small{font-size:9px;color:var(--theme-muted)}.console{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 216px;grid-template-rows:minmax(0,1fr)}.play-column{display:grid;grid-template-rows:32px minmax(0,1fr) auto;min-height:0;overflow:hidden}.screen-top{min-height:0;padding:7px 13px}.viewport{height:auto!important;min-height:0;aspect-ratio:auto}.dialog{min-height:0;padding:9px 13px}.dialog-label{margin-bottom:5px;font-size:9px}.typing-row{gap:8px}.typing-prompt,.typing-prompt.story{font:16px/1.35 Consolas,monospace;white-space:pre-wrap;max-height:88px;overflow:auto;min-height:22px;letter-spacing:0}.typing-prompt.story{font-family:'Segoe UI',sans-serif}.typing-prompt span{white-space:pre-wrap}.input-display,.notice{font-size:10px;min-height:13px;margin:2px 0}.attack-selection{display:flex;align-items:center;gap:10px;margin-bottom:8px}.attack-selection>span{font-size:9px;letter-spacing:.7px;color:var(--theme-muted);flex:0 0 auto}.attack-options{display:flex;gap:7px;flex-wrap:wrap}.attack-options button{padding:6px 10px;border:1px solid var(--theme-line);border-radius:5px;background:var(--theme-surface);color:var(--theme-ink);font:11px 'Segoe UI',sans-serif}.attack-options button.active{background:var(--theme-accent);color:var(--theme-paper);border:2px solid var(--theme-accent);box-shadow:0 0 0 2px var(--theme-shadow)}.attack-options button.active:after{content:' SELECTED';font-size:8px;letter-spacing:.6px;margin-left:8px;color:var(--theme-paper)}.attack-options kbd{font-size:9px;margin-right:5px}.attack-options button.active kbd{background:var(--theme-surface)}.attack-options strong{margin-left:7px}.battle-actions{margin-top:6px;gap:6px}.battle-actions button{font-size:10px;padding:4px 7px}.combat-card{padding:8px 11px}.combat-card h2{font-size:18px}.combat-card p{margin:3px 0 5px;font-size:9px}.combat-card small{margin-top:5px;font-size:9px}.battle-scene{padding:12px 16px;gap:8px}.journal{min-height:0;overflow:auto;padding:11px}.footer{margin:0;min-height:16px;flex:0 0 auto;font-size:8px}.footer kbd{font-size:9px}.footer>div{gap:9px}.panel{max-height:96%;overflow:auto}.location-panel{max-height:none;overflow:hidden}.collection-list{gap:6px}.pet-card{min-height:100px;padding:7px}.pet-card canvas{width:55px;height:55px}.pet-card strong{font-size:12px}.guide p{font-size:11px;line-height:1.35}
@media(max-width:800px){.shell{padding:8px;gap:6px}.masthead{min-height:36px}.brand-logo{width:136px;height:auto}.run-hud{padding:8px 10px;gap:10px}.run-objective strong{font-size:10px}#run-progress{font-size:9px}.run-objective small{font-size:8px}.console{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}.journal{display:none}body:is([data-screen=world],[data-screen=reward]) .journal{display:grid;grid-template-columns:1fr 1fr;max-height:116px;padding:5px 11px;overflow:auto}.journal .quest,.journal .journal-heading,.journal .learned-keys,.journal .stats,.journal .species-label{display:none}.journal .companion-card,.journal .controls{padding:2px 0;border:0}.journal .portrait{width:42px;height:42px}.journal .friend-name{font-size:16px}.journal .friend-label{font-size:8px}.journal .bar{height:5px}.journal .direction-pad{margin:4px 0 0;grid-template-columns:repeat(3,25px)}.journal .direction kbd{width:22px;height:21px;font-size:15px}.journal .direction div{font-size:7px}.journal #control-note{font-size:9px;margin:3px 0}.journal .section-row h2{font-size:10px}.journal #map-count{font-size:8px}#run-time{font-size:25px}.run-clock{column-gap:7px}.footer>span{display:none}.location-heading{padding:10px 14px}.location-overview{min-height:0}.location-footer{padding:8px 14px}}
@media(max-width:500px){h1{font-size:17px}.edition{font-size:7px}.run-label{font-size:8px}.run-objective{max-width:52%}.run-objective strong{font-size:9px;letter-spacing:0}.run-objective small{font-size:7px}#run-progress{font-size:8px;line-height:1.3}#run-time{font-size:23px}#run-status{font-size:8px}.run-hud{padding:8px}.play-column{grid-template-rows:28px minmax(0,1fr) auto}.screen-top{font-size:8px;padding:7px 10px}#lesson{font-size:7px}.dialog{padding:8px 10px}.typing-prompt,.typing-prompt.story{font-size:14px;line-height:1.35;max-height:79px}.attack-selection{display:block;margin-bottom:5px}.attack-selection>span{display:block;font-size:8px;margin-bottom:4px}.attack-options{gap:5px}.attack-options button{font-size:10px;padding:5px 7px}.attack-options button.active:after{font-size:7px;margin-left:5px}.battle-actions button{font-size:9px;padding:4px 6px}.combat-card{padding:6px}.combat-card h2{font-size:13px}.combat-card p,.combat-card small{font-size:7px}.hp-label{font-size:8px}.battle-scene{padding:9px;gap:6px}.battle-top{gap:7px}.move-caption{font-size:9px}.battle-ground{font-size:7px}.location-heading h2{font-size:17px}.location-overview{min-height:0}.location-choice{padding:7px}.location-choice strong{font-size:13px}.location-choice small{font-size:8px}.location-choice kbd{font-size:16px;width:23px;height:26px;line-height:23px}.location-footer{font-size:9px}.panel h2{font-size:19px}.guide p{font-size:10px}.footer{font-size:7px}}
html{overflow:hidden}.sr-only{top:0;left:0}.shell{overflow:hidden}.masthead h1{margin:0 0 4px;line-height:1.05;font-size:23px}.edition{display:block;line-height:1.1}.masthead .quiet{padding:2px 0}.run-clock{line-height:1.2}#run-status{line-height:1.3}.footer .quiet{padding:0}.footer kbd{padding:2px 4px;border-bottom-width:1px}.combat-card h2{margin:0 0 2px}.location-panel{container-type:size}.location-overview{flex:none;width:min(94%,calc((100cqh - 130px)*1.535));height:auto;aspect-ratio:1.535;align-self:center;margin:auto;border-radius:8px;box-shadow:0 5px 20px rgb(var(--theme-shadow-rgb) / 0.2667)}.location-heading{flex:none}.location-footer{flex:none}.location-choice{max-width:230px;padding:9px 11px}.location-choice strong{font-size:18px}.location-choice small{font-size:10px}
@media(max-width:500px){.masthead h1{font-size:17px}.location-overview{width:min(94%,calc((100cqh - 108px)*1.535))}.location-choice{padding:7px}.location-choice strong{font-size:13px}.location-choice small{font-size:8px}}

