/* Both Studio rows use the same column tracks, including on touch screens. */
.lodge-experiment .studio-toolbar{position:absolute;left:43px;top:143px;z-index:12;display:grid;gap:8px;width:304px}
.lodge-experiment .studio-toolbar .room-tools,.lodge-experiment .studio-toolbar .lodge-atmosphere-tools{position:static;inset:auto;display:grid;grid-template-columns:repeat(6,44px);gap:8px;align-items:center;justify-content:start;width:100%;padding:0;transform:none}
.lodge-experiment .studio-toolbar .home-play-tools,.lodge-experiment .studio-toolbar .mood-buttons{display:contents}
.lodge-experiment .studio-toolbar :is(button,.archive-entry){position:static;inset:auto;width:44px;height:44px;min-width:0;min-height:44px;margin:0;padding:0;display:grid;place-items:center;border:1px solid #ffffff30;border-radius:4px;background:#152923dc;color:#e8ede5;transform:none;box-sizing:border-box}
.lodge-experiment .studio-toolbar :is(button,.archive-entry) svg{width:18px;height:18px}
.lodge-experiment .studio-toolbar :is(#treasure-start,#studio-location){width:44px;height:44px;min-height:44px}
.lodge-experiment .studio-toolbar :is(button,.archive-entry):hover{background:#34564a}
.lodge-experiment .studio-toolbar button[aria-pressed=true]{color:#f7a391;border-color:#d87966;background:#352e2adc}
.lodge-experiment .studio-toolbar #lodge-weather-status{grid-column:1/-1;grid-row:2;max-width:none;padding:0;background:none;line-height:1.5;min-height:12px}
.lodge-experiment .home-copy{top:270px}
.lab-quality{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:10px 0 18px;font-size:11px;color:#bccbc1}
.lab-quality select{min-height:36px;max-width:150px;background:#172823;color:#e7ece4;border:1px solid #74857870;border-radius:4px;padding:6px 24px 6px 10px}
.lab-graphics-notice{position:absolute;inset:0;z-index:25;margin:0;display:grid;place-content:center;padding:24px;background:#132721ed;color:#edf1e8;text-align:center}
.lab-graphics-notice[hidden]{display:none}
#lab-stage,#bottles-stage,#driving-stage,#blueprint-stage,#flight-stage,#sigiriya-stage{position:relative;width:100%;height:clamp(280px,58svh,640px);min-height:0;overflow:hidden;isolation:isolate;scroll-margin-top:100px;scroll-margin-bottom:60px}
:is(#lab-stage,#bottles-stage,#driving-stage,#blueprint-stage,#flight-stage,#sigiriya-stage)>canvas:not(#driving-map){position:absolute;inset:0;display:block;width:100%!important;height:100%!important;aspect-ratio:auto!important;max-width:none}
#driving-stage #driving-map{position:absolute;inset:12px 12px auto auto;width:120px;height:100px;aspect-ratio:6/5;z-index:4;border:1px solid #bbd1bc80;border-radius:4px;pointer-events:none}
.flight-lab .flight-touch{width:max-content;max-width:calc(100% - 24px);flex-wrap:nowrap;gap:8px}
.lab-layout{min-width:0;grid-template-columns:minmax(0,1fr) minmax(220px,280px)}
.arcade-lab,.flight-lab,.sigiriya-lab,.lab-controls,.lab-toolbar{min-width:0}
.arcade-toolbar{align-items:end}
.arcade-toolbar label,.flight-toolbar label{min-width:0}
.arcade-toolbar select,.flight-toolbar select{max-width:100%;min-width:0}
.arcade-score{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.arcade-score>span{min-width:0;overflow-wrap:anywhere}
.stone-controls{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.stone-controls label{min-width:0}.stone-controls input{max-width:100%}
.arcade-touch,.flight-touch{flex-wrap:wrap;gap:12px}
.arcade-touch button,.flight-touch button{min-height:44px}
.arcade-touch.compact-game-controls{position:absolute;inset:auto 8px 8px;z-index:6;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:end;gap:8px;pointer-events:none}
.compact-game-controls .arcade-dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:3px}
.compact-game-controls .arcade-actions{display:grid;grid-template-columns:44px;gap:3px;max-width:none}
.compact-game-controls button{width:44px;height:44px;padding:0;background:#183e35dd;backdrop-filter:blur(4px);font-size:0!important;gap:0;pointer-events:auto;touch-action:none}
.compact-game-controls button svg{width:20px;height:20px}
.blueprint-reticle,.blueprint-damage{z-index:2}
@media(max-width:760px),(max-width:1100px) and (pointer:coarse){
 .lodge-experiment .home-copy{top:auto}
 .lodge-experiment .mobile-studio-body{display:block;max-height:calc(100svh - 150px);overflow-y:auto;padding:12px}
 .lodge-experiment .mobile-studio-body .studio-toolbar{position:static;inset:auto;display:grid;width:100%;gap:10px}
 .lodge-experiment .mobile-studio-body .studio-toolbar :is(.room-tools,.lodge-atmosphere-tools){grid-template-columns:repeat(6,44px);gap:6px;justify-content:space-between}
 .lodge-experiment .mobile-studio-body .studio-toolbar :is(button,.archive-entry){width:44px;min-width:44px;height:44px}
 .lab-layout{grid-template-columns:minmax(0,1fr)}
 #lab-stage,#bottles-stage,#driving-stage,#blueprint-stage,#flight-stage,#sigiriya-stage{height:clamp(240px,51svh,500px)}
 .stone-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .stone-controls button{min-height:44px}.stone-controls #stone-charge{grid-column:1/-1}
 .lab-quality{margin:8px 0 14px}
 .arcade-score{font-size:9px}.arcade-score output{font-size:18px}
 #driving-stage #driving-map{width:84px;height:70px;inset:10px 10px auto auto}
 .atlas-map{min-height:240px}
}
@media(max-width:360px){
 .lodge-experiment .mobile-studio-body .studio-toolbar :is(.room-tools,.lodge-atmosphere-tools){grid-template-columns:repeat(3,44px)}
 .lodge-experiment .studio-toolbar #lodge-weather-status{grid-row:3}
 .arcade-toolbar label{flex:1 1 110px}
}
@media(orientation:landscape) and (max-height:600px){
 #lab-stage,#bottles-stage,#driving-stage,#blueprint-stage,#flight-stage,#sigiriya-stage{height:58svh;min-height:180px}
 .lab-layout{grid-template-columns:minmax(0,1fr)}
 .atlas-map{min-height:220px;aspect-ratio:2.2}
 .arcade-touch{justify-content:space-between}
}
