body:has(#menu:not([hidden])) .lxpdi-fab{bottom:12px!important}
body:has(.playing) .lxpdi-fab,body:has(#ending:not([hidden])) .lxpdi-fab{display:none!important}
footer{flex-wrap:wrap;height:auto;min-height:40px;gap:8px}
footer button{min-height:40px}
#desks .desk{grid-template-rows:auto auto minmax(0,1fr) auto auto}
#desks .actions{flex-wrap:wrap}
#desks .actions button{min-height:40px}
#overlay section{max-height:75svh}
@media(orientation:portrait){
 #app{display:flex;flex-direction:column;height:auto;min-height:100svh;overflow:visible;padding-bottom:10px}
 #world,.playing #world{position:relative;inset:auto;height:220px;flex:1 0 180px;min-height:180px;--scene-top:44px;--scene-bottom:28px}
 body.aula-clase #world{top:auto;height:auto;margin-top:52px;flex-basis:160px}
 #world>header,.playing #world>header{width:100%;max-width:none;padding:6px 10px 6px 88px}
 #world h1,.playing #world>header h1{font-size:17px}
 #story,#village{display:none!important}
 #menu,body.aula-clase #menu{position:relative;inset:auto;display:block;padding:12px;width:100%;flex:none}
 #menu .settings{width:100%;gap:8px}
 #menu .row{flex-wrap:wrap}
 #menu label{min-width:0}
 #menu select{min-width:0;max-width:100%}
 #desks,.playing #desks{position:relative;inset:auto;margin:10px;display:flex!important;flex-direction:column;flex:none;gap:12px}
 #desks .desk,body.aula-clase #desks .desk{height:auto;min-height:0;padding:10px;gap:8px;grid-template-rows:auto auto auto auto auto}
 #desks[data-count] .desk[data-grade] .work{min-height:150px;overflow:visible;padding:4px;justify-content:center}
 #desks .mission{padding:4px;min-height:40px}
 #desks .feedback{min-height:30px}
 #desks .actions button{min-height:42px}
 footer,.playing footer{position:relative;inset:auto;margin:4px 10px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:none}
 footer button,.playing footer button{min-height:44px;font-size:13px;padding:6px}
 footer #fullscreen{display:block}
 body:has(#menu:not([hidden])) #app{padding-bottom:74px}
 #ending{position:relative;inset:auto;min-height:260px}
 #overlay{position:fixed;inset:0;padding:16px;align-items:center}
 #overlay section{width:100%;max-height:80svh}
}
@media(min-width:700px) and (orientation:portrait){
 #world,.playing #world{flex-basis:300px;min-height:300px;--scene-top:56px;--scene-bottom:32px}
 #world>header h1,.playing #world>header h1{font-size:22px}
 #desks{margin:16px}
 #desks .desk{padding:16px;gap:12px}
 #desks[data-count] .desk[data-grade] .work{min-height:180px}
 footer,.playing footer{display:flex;justify-content:center}
 footer button,.playing footer button{min-width:100px;font-size:15px}
}
#desks[hidden]{display:none!important}
