/* Cocina: menu comun y superficie de juego adaptable. */
#app{min-height:540px}.mode-cards,.activity-tabs,.menu-title,#configSummary{display:none!important}#menu{grid-template-columns:1fr;left:max(20px,15%);right:max(20px,15%);top:43%;bottom:9%;align-content:center}.menu-options{gap:9px}.menu-options>.setup-row{display:flex;flex-wrap:wrap;gap:10px}.menu-options label{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:150px}#menu .players{flex:1}#menu .players button{flex:1}#menu #teamLabel{flex:0 1 200px}.activity-choice label:first-child{flex:2}.course-focus{margin:0;font-size:12px;text-align:center}#menuMessage{font-size:13px}#play{width:100%;min-height:46px;font-size:24px}#scene{bottom:59%}#scene header{top:42px}#chef{height:75%;left:35%;width:20%}#intro{padding:12px;top:35%;left:58%;right:3%}#intro h2{font-size:24px}#intro p{font-size:15px;margin:4px 0}#intro small{display:none}.return-letrasia{position:absolute;top:8px;left:10px;z-index:20;background:#fffbed;color:#28564f;text-decoration:none;border:1px solid #c6d3b9;border-radius:20px;padding:5px 11px;font:14px Fredoka,Arial}
body.aula-clase #app{padding-top:50px}body.aula-clase #scene{top:50px}body.aula-clase #scene header{top:10px}.play #scene{bottom:68%}.play #stations{top:33%;bottom:8%}.play #scene h1{font-size:24px}.play #sceneStatus{font-size:17px;top:15px;padding:5px 12px}.play #chef{height:55%;bottom:2%;left:3%;width:20%}.play #customers{top:28%;bottom:30%}.play #party{height:23%;bottom:2%}.station-head>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aula-clase .station-head img{width:28px;height:28px;border-radius:50%;object-fit:cover}.station-head{min-height:30px}.aula-clase footer{bottom:1%}
body .lxpdi .lxpdi-box{font:16px/1.35 Fredoka,Arial}body .lxpdi .lxpdi-box h2{font-size:22px}body .lxpdi button{font-size:14px;min-height:32px}body .lxpdi .lxpdi-bar{max-width:calc(100vw - 100px);font:13px Fredoka,Arial}.lxpdi .lxpdi-x{box-shadow:none}body .lxpdi .lxpdi-fab{font-size:14px;padding:9px 14px;bottom:60px}
@media(max-width:700px){
 #app{height:100svh;min-height:540px;overflow:auto}#scene{height:170px;bottom:auto}body.aula-clase #scene{top:53px;height:145px}#scene header,body.aula-clase #scene header{top:36px;left:12px;max-width:68%}body.aula-clase #scene header{top:12px}#scene header h1,.play #scene h1{font-size:24px;line-height:1.05}#scene header small{font-size:7px}#chef{left:auto;right:10px;width:28%;height:77%}#intro{top:auto;bottom:8px;left:12px;right:31%;padding:7px;border-radius:12px}#intro h2{font-size:14px;margin:0}#intro p{display:none}
 #menu{position:relative;inset:auto;margin:180px 10px 0;display:block;padding:0}.aula-clase #menu{margin-top:158px}.menu-options{gap:7px}#menu .setup-row{gap:6px;align-items:end}#menu label{font-size:12px;min-width:100px}#menu .players{width:100%;flex-basis:100%}#menu .players button{font-size:13px;padding:4px;min-height:36px}#menu #teamLabel{flex:1}#menu select{font-size:13px;min-height:37px;padding:4px;max-width:100%;width:100%}#menu #settings{font-size:11px;min-height:37px}#menu .course-focus{font-size:10px;line-height:1.2}#menuMessage{font-size:11px;min-height:0}#play{min-height:42px;font-size:22px}#lx-criteria{margin:0!important;font-size:11px!important}#lx-criteria button{font-size:11px!important;padding:3px 7px!important}
 footer,body.aula-clase footer{position:relative;inset:auto;margin:10px 6px 0;height:auto;flex-wrap:wrap;gap:5px;padding-bottom:6px}footer button{font-size:11px;min-height:34px;padding:3px 8px}
 .play #scene{height:158px}.aula-clase .play #scene{height:145px}.play #scene header{top:37px}.play #scene h1{font-size:17px}.play #sceneStatus{top:42px;right:10px;width:46%;font-size:11px;padding:4px}.aula-clase .play #sceneStatus{top:12px}.play #chef{height:48%;width:20%;left:3%;bottom:0}.play #customers{left:26%;right:3%;top:34%;bottom:32%}.play .customer span{font-size:9px;padding:1px 4px}.play #party{left:25%;height:26%;right:3%}.play #partyCaption{font-size:10px;left:0;width:100%}.play #partyGuests{display:none}.play .bunting{display:none}
 .play #stations{position:relative;inset:auto;margin:166px 6px 0;display:grid;grid-template-columns:1fr!important;gap:8px}.aula-clase .play #stations{margin-top:153px}#stations[data-count='1'] .station,#stations .station{height:calc(100svh - 220px);min-height:320px;padding:5px 7px;grid-template-columns:1fr;grid-template-rows:30px 43px 35px minmax(80px,1fr) 65px;gap:3px}.aula-clase #stations .station{height:calc(100svh - 260px)}
 #stations .station.sharing,#stations .station.arithmetic{grid-template-rows:30px 45px minmax(100px,1fr) 65px}#stations .station .work-area{grid-column:1;grid-row:4}#stations .station.sharing .work-area,#stations .station.arithmetic .work-area{grid-row:3}#stations .station .station-tail{grid-column:1;grid-row:5;display:grid;grid-template-rows:minmax(0,1fr) 35px}#stations .station.sharing .station-tail,#stations .station.arithmetic .station-tail{grid-row:4}#stations .station .station-order{grid-row:2;grid-column:1;flex-direction:row;font-size:15px}#stations .station .actions{display:flex;gap:4px}#stations .station .actions button{font-size:12px;min-height:34px;padding:3px 7px}#stations .station .actions .primary{font-size:16px}#stations .station-head{grid-row:1;grid-column:1;font-size:13px;gap:4px}.station-head .listen{min-height:30px;height:30px}.station-head .zoom{font-size:10px;padding:2px 5px}.station-head .score{font-size:11px}#stations .station .feedback{font-size:11px;line-height:1.15}.cut-tools{gap:4px}.cut-tools>span{font-size:10px}.cut-tools button{padding:1px 7px}.share-board{grid-template-columns:minmax(85px,.7fr) minmax(155px,1.3fr)}.station .written-board{min-height:0}.written-answer strong{font-size:24px}.number-pad button{min-height:30px;font-size:22px}.simplify-help{overflow:auto}
 body .lxpdi .lxpdi-bar{font-size:10px;gap:3px;right:7px;left:auto;transform:none;max-width:calc(100vw - 60px);padding:4px 6px}body .lxpdi .lxpdi-bar img{width:21px;height:21px}body .lxpdi .lxpdi-bar button{font-size:11px;padding:4px 7px}body .lxpdi .lxpdi-box{padding:14px;font-size:15px;max-height:90svh}body .lxpdi .lxpdi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}body .lxpdi .lxpdi-al{padding:7px 3px;overflow-wrap:anywhere}body .lxpdi .lxpdi-al img{width:42px;height:42px}.return-letrasia{font-size:12px;padding:5px 8px;top:10px}.aula-clase .return-letrasia{font-size:0;width:36px;height:32px}.aula-clase .return-letrasia:before{content:'‹';font-size:25px;line-height:18px}
 dialog{max-width:94vw;max-height:85svh;overflow:auto}.end #scene{height:210px}.end #ending{top:230px;bottom:65px}
}
@media(max-width:360px){body .lxpdi .lxpdi-bar{flex-wrap:nowrap;font-size:9px;gap:2px;padding:4px;max-width:calc(100vw - 52px)}body .lxpdi .lxpdi-bar img{width:17px;height:17px}body .lxpdi .lxpdi-bar .lx-flag{width:24px;flex-basis:24px;height:16px;background-size:24px auto}body .lxpdi .lxpdi-bar button{font-size:10px;padding:3px 5px}.written-board .entry-field small{font-size:10px;line-height:1.1}.written-board .entry-field strong{font-size:23px}.written-board{gap:7px;padding:2px}}
/* Mobile scene: explicit lanes prevent legacy percentage rules overlapping content. */
@media(max-width:700px){
 #app.menu #scene{height:170px;top:0;bottom:auto}
 body.aula-clase #app.menu #scene{top:53px;height:145px}
 #app.menu #scene header{top:37px;left:12px;max-width:64%}
 body.aula-clase #app.menu #scene header{top:12px}
 #app.menu #chef{left:auto;right:8px;width:29%;height:114px;max-height:none;bottom:0}
 #app.menu #intro{top:auto;bottom:9px;left:12px;right:32%;padding:7px}
 #app.menu #intro h2{font-size:14px;line-height:1.2}
 #app.menu #menu{top:auto;bottom:auto;left:auto;right:auto}
 #app.play #scene header,body.aula-clase #app.play #scene header{top:36px;left:12px;max-width:calc(100% - 24px);padding:0}
 #app.play #scene header small{display:none}
 #app.play #scene h1{font-size:16px;line-height:20px;margin:0}
 #app.play #scene h1 br{display:none}
 #app.play #sceneStatus,.aula-clase #app.play #sceneStatus{top:64px;left:12px;right:auto;width:45%;font-size:10px;line-height:12px;padding:4px}
 #app.play #chef{left:4%;right:auto;bottom:0;width:18%;height:65px;max-height:none}
 #app.play #customers{left:62%;right:8%;top:57px;bottom:auto;height:64px}
 #app.play #party{left:25%;right:4%;bottom:2px;height:32px}
 #app.play #partyCaption{top:-14px;left:0;width:100%;font-size:9px;line-height:12px}
 #app.play .partyTable{height:24px}
 body.aula-clase #app.play #scene header{top:6px}
 body.aula-clase #app.play #sceneStatus{top:31px}
 body.aula-clase #app.play #customers{top:34px}
}
@media(max-width:700px){#app.play #scene h1 br:after{content:' '}#app.play #scene h1 em{margin-left:.2em}#app.play #customers{left:78%;right:2%}#app.play #partyCaption{width:72%;text-align:left;padding-left:5px}}
body:has(#app.play) .lxpdi-fab{display:none!important}
