/* Suppress browser tap paint only on game controls; preserve editable text. */
button,a,[role=button],canvas,.ls-canvas{-webkit-tap-highlight-color:transparent}button,canvas,.ls-canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}button,a{touch-action:manipulation}input,textarea,[contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}button:focus-visible,a:focus-visible{outline:2px solid #e6d295;outline-offset:3px}canvas#world{touch-action:none}#touch-controls button{touch-action:none}.title-developer{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(68px,env(safe-area-inset-bottom));z-index:6;background:#1b3542ee;border-color:#98c4b4;padding:11px 18px;min-height:42px}#title-screen.hidden .title-developer{display:none}#title-voice-test{color:#b7f0dc;font-weight:600}.level-studio-dialog input[type=file]{display:none}
@media(max-width:760px){.title-developer{right:14px;bottom:max(16px,env(safe-area-inset-bottom));font-size:14px}.title-copy{padding-bottom:110px!important}.title-links{padding-bottom:64px}#play-screen header{gap:5px;padding:6px 8px;min-height:48px}#play-screen header button{padding:7px 9px;min-height:38px}#play-screen header .brand{font-size:20px}#play-screen header .subtitle{display:none}.task-hud{max-width:min(70vw,360px)}.task-hud h2{font-size:16px}#dialogue-panel{max-height:48dvh;overflow:auto}.modal-card{max-width:96vw;max-height:92dvh}#touch-controls{padding-bottom:env(safe-area-inset-bottom)}}
.asset-loading{position:fixed;z-index:100;left:50%;top:90px;transform:translateX(-50%);max-width:85vw;background:#18323bf2;border:1px solid #97bfb5;color:#e6e8d8;padding:10px 16px;border-radius:4px;pointer-events:none;font-size:14px}input{accent-color:#8bbca9}
@media(max-width:760px){.level-studio header .ls-primary{order:-2}.level-studio header .ls-actions>button:last-child{order:-1}}
@media(max-width:760px){
.world-editor{width:100vw;height:100dvh;padding:8px;overflow:auto}.world-editor>header{flex-wrap:wrap;gap:5px}.world-editor h2{font-size:17px}.world-editor-body{display:flex;flex-direction:column;overflow:auto;flex:1;min-height:0}.world-editor-body>aside{overflow:auto;max-height:230px;flex-shrink:0}.world-editor-body>section{flex:0 0 310px;min-height:310px}.world-editor-body input,.world-editor-body select{font-size:16px;min-height:40px}.world-editor-toolbar button{min-height:40px}
#interaction-editor .ir-layout{display:flex;flex-direction:column;overflow:auto}#interaction-editor .ir-map-panel{flex:0 0 auto}#interaction-editor .ir-inspector{max-height:none;overflow:visible}#interaction-editor input,#interaction-editor select{font-size:16px}#interaction-editor button{min-height:40px}#interaction-editor .ir-head{gap:5px;padding:7px}
.asset-lab{width:100vw;height:100dvh;max-height:100dvh;margin:0}.asset-lab header{padding:8px;min-height:48px}.asset-lab h2{font-size:16px}.asset-lab-tabs{flex-wrap:nowrap;overflow:auto;padding:5px}.asset-lab-tabs button{white-space:nowrap;min-height:40px;flex-shrink:0}.asset-lab-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:150px minmax(0,1fr);height:calc(100% - 154px)}.asset-lab-list{border:0;border-bottom:1px solid #36515b}.asset-lab input,.asset-lab select{font-size:16px}.asset-lab button{min-height:40px}.asset-lab-list button{padding:8px}
#modal:has(.story-devtools){width:100vw;height:100dvh;max-height:100dvh}.dev-toolbar{display:flex;flex-wrap:wrap}.dev-toolbar>*{flex:1 1 100px}.story-devtools input,.story-devtools textarea,.story-devtools select{font-size:16px}.story-devtools button{min-height:40px}.dev-workspace{display:flex;flex-direction:column;overflow:auto;min-width:0}.dev-sidebar,.dev-detail{min-width:0;max-width:100%;max-height:42dvh;overflow:auto}.dev-graph-wrap{min-height:330px}.dev-list{max-height:180px;overflow:auto}
}
@media(max-width:760px){.dev-body{display:flex;flex-direction:column;overflow:auto}.dev-navigation{min-height:240px;flex:0 0 42dvh;overflow:auto}.dev-inspector{max-height:none;flex:0 0 auto;overflow:visible}}

#play-screen,#title-screen{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#play-screen input,#play-screen textarea,#play-screen [contenteditable=true]{-webkit-user-select:text;user-select:text}.level-studio header,.ls-tabs,.ls-mobile-panes,.ls-footer,.ls-status{-webkit-user-select:none;user-select:none}
