/* Stable game shell: the stage changes, navigation and controls stay in place. */
html,body.location-trial{height:100%;height:100dvh;overflow:hidden}
:root:fullscreen{overflow:hidden}
body.location-trial{display:flex;flex-direction:column}
header{height:54px;min-height:54px;width:100%;max-width:none;padding:0 24px;gap:12px}
header button{min-height:38px;padding:8px 12px}
main{width:100%;max-width:1600px;flex:1;min-height:0;margin:0 auto!important;padding:14px 24px;grid-template-columns:220px minmax(0,1fr);gap:24px;overflow:hidden}
aside{min-height:0;overflow:auto;scrollbar-width:thin;border-right:1px solid var(--line);padding-right:20px}
aside>h1{font-size:36px;margin:8px 0 20px}aside>.intro,aside>.mission,aside>.note,aside>.eyebrow{display:none}
.pack{padding:0}#equipment{margin-top:8px}.item{padding:7px 0;line-height:1.5;font-size:11px}#equipment button{width:100%;margin-top:8px;min-height:40px}.restart{min-height:40px;padding:9px;font-size:11px}
.character-button{display:none}#connectionSummary{display:none}
.play{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px}
#routeProgress{margin:0;flex-shrink:0}#routeProgress>span{padding:4px 3px}
.game-hud{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex-shrink:0}
.stats{margin:0;gap:6px}.stat{padding:8px 12px}.stat small{font-size:9px;margin-bottom:3px}.stat strong{font-size:24px}
.lantern{margin:0;padding:7px 14px;gap:10px}.lantern-heading{font-size:10px}.oil-ticks{margin:7px 0 5px;gap:3px}.oil-ticks i{height:5px}.lantern p{font-size:9px}.oil-value{min-width:64px}.oil-value strong{font-size:28px}.oil-value span{font-size:7px}
.game-stage{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;position:relative;overflow:hidden}
.scene-space{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#0d120c;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.location-trial .scene{flex-shrink:0;max-width:100%;border:0;border-radius:0}
.location-trial #locationCaption h2{font-size:25px;margin:0 0 3px}.location-trial #locationCaption p{font-size:12px;line-height:1.4}.location-trial #locationCaption .room-next{display:none}
.location-trial .console{padding:8px 0 0;border:0;flex-shrink:0;min-height:0}
#message{font-size:12px;line-height:1.4;min-height:0;max-height:50px;overflow:auto}
.actions{margin:8px 0 0;gap:8px}.actions button{min-height:46px;padding:9px 12px;font-size:13px}.actions small{margin-top:3px}
.battle-focused .scene-space,.puzzle-open .scene-space{display:none}
.location-trial.battle-focused .console,.location-trial.puzzle-open .console{flex:1;min-height:0;display:flex;flex-direction:column;padding:14px 20px;overflow:hidden}
.battle-focused #combatData,.puzzle-open #combatData{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.battle-focused .actions,.puzzle-open .actions{width:100%;max-width:none;flex-shrink:0;margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line)}
.battle-title h2{font-size:26px;margin:3px 0 10px}.battle-opponents{grid-template-columns:1fr 82px 1fr;gap:20px;margin-bottom:4px;max-width:620px}.enemy-portrait{width:82px;height:82px}.combatant-name{font-size:23px}.combatant-life{font-size:25px;margin-top:3px}.battle-attributes{margin:4px 0}.battle-health{margin:6px auto}
.battle-gear{position:static;order:2;justify-content:center;margin:7px auto 0;gap:6px}.hero-combatant{display:flex;flex-direction:column}.gear-slot{width:42px}.gear-picture{height:40px}.gear-name{font-size:8px;margin:3px 0}.gear-slot small{display:none}.gear-slot strong{font-size:15px}
.battle-rolls{max-width:540px}.roll-side{padding:2px 0 4px}.poly-die{width:76px;height:86px;margin:3px auto}.poly-die svg{width:76px;height:76px}.roll-equation{min-height:22px}.battle-margin{margin:5px 0;font-size:11px}.battle-outcome{margin:6px 0;padding:8px}.battle-outcome strong{font-size:21px}.battle-outcome span{font-size:12px;margin-top:3px}
.damage-table{margin-top:5px;padding-top:0}.damage-table summary{min-height:36px;padding:8px;text-align:center;font-size:11px}
.shield-reaction{margin:6px 0;padding:8px 12px}.shield-reaction>.eyebrow,.shield-reaction>h3,.shield-reaction>p{display:none}.reaction-previews>div{padding:2px 8px}.reaction-previews strong{font-size:11px}.reaction-previews span{font-size:10px;margin-top:2px}
dialog{max-height:calc(100dvh - 30px);overflow:auto;overscroll-behavior:contain}.close{position:sticky;top:0;z-index:2;background:#24291f}
.coffer-puzzle h2{font-size:26px;margin:5px 0 8px}.puzzle-inscription{margin:12px auto;padding:8px}.symbol-slot{min-height:85px}.coffer-lock{padding:12px}.symbol-bank{margin:10px auto}.puzzle-feedback{margin:8px auto;min-height:0}
@media(max-width:800px){
 header{height:48px;min-height:48px;padding:0 10px;gap:5px}header .brand{font-size:0;letter-spacing:0;margin-right:auto}header .brand span{font-size:20px}header .edition{display:none}header .quiet{font-size:10px;padding:7px;min-height:36px}.character-button{display:block}
 main{display:flex;flex-direction:column;padding:8px;gap:0}main>aside{display:none}.play{flex:1;gap:7px;order:0}
 #routeProgress>span{font-size:10px;padding:3px} .game-hud{gap:6px;grid-template-columns:1.05fr 1fr}.stat{padding:7px 5px}.stat small{font-size:7px;letter-spacing:0}.stat strong{font-size:21px}.stat strong span{font-size:9px}.stats{gap:3px}
 .lantern{padding:6px 8px;gap:6px}.lantern-heading{font-size:8px;letter-spacing:.6px}.lantern-heading span{display:none}.lantern p{font-size:8px;line-height:1.25}.oil-value{min-width:24px}.oil-value strong{font-size:25px}.oil-value span{display:none}.oil-ticks{margin:5px 0}
 .location-trial #locationCaption h2{font-size:22px}.location-trial #locationCaption p{font-size:11px}.actions button{min-width:0;font-size:12px;padding:9px 7px}.actions{gap:6px}.actions small{font-size:9px}
 .location-trial.battle-focused .console,.location-trial.puzzle-open .console{padding:10px}
 .battle-title h2{font-size:23px;margin-bottom:8px}.battle-opponents{grid-template-columns:1fr 65px 1fr;gap:8px}.enemy-portrait{width:65px;height:65px}.combatant-name{font-size:20px}.combatant-life{font-size:22px}.combatant-life small{display:inline;font-size:9px}.battle-attributes{font-size:9px}.battle-gear{margin-top:5px}.gear-picture{height:33px}.gear-slot{width:35px}.gear-name{font-size:7px}.gear-durability{margin:3px 0}.gear-slot strong{font-size:13px}
 .poly-die{width:66px;height:76px}.poly-die svg{width:66px;height:66px}.roll-equation small{display:inline;font-size:9px}.roll-equation{font-size:11px}.roll-equation b{font-size:18px}.battle-outcome strong{font-size:19px}.battle-outcome span{font-size:11px}.battle-outcome{padding:6px 3px}.battle-focused .actions button{min-height:46px}
 .puzzle-story,.puzzle-inscription{font-size:12px}.puzzle-inscription{margin:8px auto;padding:5px}.puzzle-inscription p{margin:3px}.symbol-slot{min-height:75px}.symbol-slot svg{width:27px;height:27px}.symbol-bank button{min-height:55px}.symbol-bank svg{width:23px;height:23px}.puzzle-instruction{margin:7px auto}.puzzle-open .actions .primary{grid-column:auto}
}
@media(max-height:650px){.battle-title h2{font-size:21px}.battle-opponents{margin-bottom:0}.battle-gear{flex-direction:row}.battle-outcome{padding:5px}.battle-title .eyebrow{font-size:8px}}

.location-trial #locationCaption p{display:none}.connections-button{width:100%;margin-top:8px;min-height:40px;padding:9px}

/* Scene actions: compact visible labels and generous touch targets. */
.location-trial .hotspot.scene-label{min-height:44px;min-width:60px;padding:10px 6px;background:transparent;border:0;box-shadow:none;border-radius:5px;color:#f3eedf;white-space:nowrap;font:12px Arial,sans-serif}
.scene-label>span{display:flex;align-items:center;gap:6px;padding:5px 8px;background:#101710bb;border:1px solid #f3eedf3d;border-radius:4px;text-shadow:0 1px 2px #000}
.scene-label>span:before{content:"";display:block;width:5px;height:5px;flex-shrink:0;background:#dfb573;border-radius:50%}
.location-trial .hotspot.scene-label:hover{background:transparent;box-shadow:none}.scene-label:hover>span,.scene-label:focus-visible>span{background:#253022ed;border-color:#dfb573}
@media(max-width:800px){.location-trial .hotspot.scene-label{font-size:11px}.scene-label>span{padding:5px 7px;gap:5px}}

.location-trial .hotspot.scene-label.searched>span{opacity:.65;border-color:#8a92745c}.location-trial .hotspot.scene-label.searched>span:before{background:#919c7c}

.attack-energy{margin:6px 0;padding:6px 10px;border-left:2px solid var(--gold);background:#dfb5730c}.attack-energy>.eyebrow,.attack-energy>h3{display:none}.attack-energy>p{margin:0;font-size:12px;line-height:1.4;color:var(--muted)}

/* Un singolo mostro resta al centro della colonna degli avversari. */
.battle-opponents > .enemy-portrait:not(.mill-group){justify-self:center}

@media(max-width:700px){header .monster-sound-toggle{font-size:0;min-width:36px}.monster-sound-toggle::after{content:"🔇";font-size:16px}.monster-sound-toggle[aria-pressed=true]::after{content:"🔊"}}

@media (max-width: 600px){
 .location-trial #scene[data-lab-card="62"] .scene-label[aria-label^="Cerca passaggi segreti"]{transform:translate(-85%,-50%)}
}

@media (max-width: 600px){
 .location-trial #scene[data-lab-card="58"] .scene-label{
  max-width:36%;
  white-space:normal;
  text-align:left;
 }
}
