/* ==========================================================================
   pila.css · las escenas dibujadas en celular y tableta (escenas.js con «pila»):
   van una debajo de otra y se recorren bajando con el dedo. Cada escena ancha
   se reacomoda en vertical: primero el dibujo, luego su contenido.
   © 2026 María Inés Cisterna Escobar · Studios Conari SpA.
   ========================================================================== */
html.escenas-pila, html.escenas-pila body { overflow: visible !important; height: auto !important; }
html.escenas-pila .escenas-capa { position: static !important; }
html.escenas-pila .ev { position: relative !important; inset: auto !important; display: block !important; overflow: visible !important; padding: 34px 14px 24px !important; min-height: 0 !important; }
html.escenas-pila .ev + .ev { border-top: 0; }
html.escenas-pila .ev-caja { width: 100% !important; max-width: none !important; zoom: 1 !important; }
html.escenas-pila .ev .section-head { margin-bottom: 14px !important; position: relative !important; inset: auto !important; }
html.escenas-pila .ev .section-head .cinta-nombre { width: min(300px, 82vw) !important; margin: 0 auto !important; font-size: 1.05rem !important; padding: 0 16% 2% !important; box-sizing: border-box !important; }
html.escenas-pila .ev .section-head > div { justify-items: center !important; }
html.escenas-pila .escenas-indice, html.escenas-pila .escenas-pista { display: none !important; }

/* ---------------------------------------------------------------- las mismas escenas que en el computador:
   las que son un solo dibujo ancho (escritorio, mural, sala, cuaderno, puesto, libro de clases) llenan el alto
   de la pantalla y se recorren deslizando el dedo hacia el costado; así la letra se lee en tamaño normal */
html.escenas-pila { --alto: calc(100svh - 96px); }
html.escenas-pila :is(.ev-datos, .ev-trayectoria, .ev-matrona, .ev-leyendas) .ev-caja,
html.escenas-pila .ev-desarrollo .papel-marcos, html.escenas-pila .ev-arcade .maq-escena { overflow-x: auto !important; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 6px; }
html.escenas-pila :is(.ev-datos, .ev-trayectoria, .ev-matrona, .ev-leyendas) .section-head { position: sticky !important; left: 0; width: calc(100vw - 28px); }
html.escenas-pila .ev-datos .ev-caja { position: relative; }
html.escenas-pila .app-tableros .tableros { width: calc(var(--alto) * 1672 / 941) !important; max-width: none !important; }
html.escenas-pila .mural { width: calc(var(--alto) * 1672 / 941) !important; max-width: none !important; }
html.escenas-pila .sala { width: calc(var(--alto) * 1672 / 941) !important; max-width: none !important; }
html.escenas-pila .ev-leyendas .ley-museo { width: calc((var(--alto) - 70px) * 1575 / 905) !important; max-width: none !important; }
html.escenas-pila .papel-app.app-tableros, html.escenas-pila .ev-datos .ev-caja > * { width: max-content !important; min-width: 100%; }
/* el aviso para deslizar, sobre cada escena ancha */
html.escenas-pila :is(.ev-datos, .ev-trayectoria, .ev-matrona, .ev-leyendas)::after { content: "← desliza para recorrer →"; display: block; margin: 6px auto 0; text-align: center; font: italic 600 .95rem "Cormorant Garamond", Georgia, serif; color: #8a4f7e; }
/* Studios Conari y Mi perfil: las mismas piezas, una debajo de otra */
html.escenas-pila .ev-estudio .estudio-dos.estudio-tres { display: grid !important; grid-template-columns: 1fr !important; gap: 18px !important; }
html.escenas-pila .estudio-servicios { grid-template-columns: repeat(2, 1fr) !important; }
html.escenas-pila .perfil-pro { grid-template-columns: 1fr !important; gap: 18px !important; justify-items: center; }
html.escenas-pila .perfil-pro-texto { max-height: none !important; width: min(100%, 420px); }
html.escenas-pila .perfil-pro-retrato { width: min(78vw, 300px); }
html.escenas-pila .perfil-credenciales { width: min(100%, 420px); }
html.escenas-pila .perfil-medalla-detalle { right: auto; left: 50%; top: calc(100% + 8px); transform: translate(-50%, 0) !important; width: min(300px, 86vw); }
html.escenas-pila .perfil-medalla-detalle::after { display: none; }
/* Arcade: las máquinas del salón en fila; al jugar, la máquina a todo el ancho y las instrucciones debajo */
html.escenas-pila .ev-arcade .maq-escena { flex-direction: column; align-items: center; }
html.escenas-pila .ev-arcade .maq-1, html.escenas-pila .ev-arcade .maq-2 { --h: auto !important; height: auto !important; width: min(100%, 460px) !important; }
html.escenas-pila .ev-arcade .maq-3 { --h: auto !important; height: auto !important; width: min(100%, 560px) !important; }
html.escenas-pila .ev-arcade .juego-lado { width: min(100%, 400px) !important; height: 560px !important; }
html.escenas-pila .ev-arcade.jugando-arcade .section-head { display: block !important; }
/* Contacto: dos columnas */
html.escenas-pila .ev-contacto .contactos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 8px !important; }
html.escenas-pila .ev-contacto .contacto small { white-space: normal; text-align: center; word-break: break-all; }
html.escenas-pila .ev-contacto .contacto { grid-template-rows: 120px auto auto !important; }
html.escenas-pila .ev-contacto .contacto-ico { width: 120px !important; height: 120px !important; }

/* ---------------------------------------------------------------- alturas según la pantalla
   --alto = alto con que se dibuja cada escena ancha (se recorre deslizando hacia el costado) */
html.escenas-pila .ev { scroll-margin-top: 64px; }
/* teléfono de pie (por defecto) */
html.escenas-pila { --alto: clamp(420px, calc(100svh - 110px), 760px); }
/* teléfono muy chico */
@media (max-width: 360px) { html.escenas-pila { --alto: clamp(400px, calc(100svh - 100px), 640px); } html.escenas-pila .ev { padding-inline: 10px !important; } }
/* teléfono acostado: la escena ocupa el alto disponible */
@media (orientation: landscape) and (max-height: 520px) { html.escenas-pila { --alto: calc(100svh - 64px); } html.escenas-pila .ev .section-head .cinta-nombre { width: 240px !important; font-size: .9rem !important; } }
/* tableta de pie */
@media (min-width: 600px) and (orientation: portrait) { html.escenas-pila { --alto: clamp(560px, calc(100svh - 160px), 900px); } }
/* tableta acostada y pantallas táctiles grandes: la escena cabe entera a lo ancho */
@media (min-width: 900px) and (orientation: landscape) { html.escenas-pila { --alto: min(calc(100svh - 120px), calc((100vw - 40px) * 941 / 1672)); } }

/* el salón del Arcade: las tres máquinas siempre caben en el ancho */
html.escenas-pila .salon-arcade { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; width: 100% !important; }
html.escenas-pila .salon-arcade .maquina { width: 100% !important; min-width: 0 !important; height: auto !important; }
html.escenas-pila .salon-arcade .maquina-spr { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1.2; }
html.escenas-pila .salon-arcade .maquina-rotulo { font-size: clamp(.62rem, 2.6vw, .95rem) !important; white-space: normal !important; padding: 4px 6px !important; }
html.escenas-pila .ev { overflow-x: clip !important; }

/* ---------------------------------------------------------------- alturas según la pantalla
   --alto = alto con que se dibuja cada escena ancha (se recorre deslizando hacia el costado) */
html.escenas-pila .ev { scroll-margin-top: 64px; overflow-x: clip !important; }
/* teléfono de pie (por defecto) */
html.escenas-pila { --alto: clamp(420px, calc(100svh - 110px), 760px); }
/* teléfono muy chico */
@media (max-width: 360px) { html.escenas-pila { --alto: clamp(400px, calc(100svh - 100px), 640px); } html.escenas-pila .ev { padding-inline: 10px !important; } }
/* teléfono acostado: la escena ocupa el alto disponible */
@media (orientation: landscape) and (max-height: 520px) { html.escenas-pila { --alto: calc(100svh - 64px); } html.escenas-pila .ev .section-head .cinta-nombre { width: 240px !important; font-size: .9rem !important; } }
/* tableta de pie */
@media (min-width: 600px) and (orientation: portrait) { html.escenas-pila { --alto: clamp(560px, calc(100svh - 160px), 900px); } }
/* tableta acostada y pantallas táctiles grandes: la escena cabe entera a lo ancho */
@media (min-width: 900px) and (orientation: landscape) { html.escenas-pila { --alto: min(calc(100svh - 120px), calc((100vw - 40px) * 941 / 1672)); } }

/* el salón del Arcade: las tres máquinas siempre caben en el ancho */
html.escenas-pila .salon-arcade { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; width: 100% !important; }
html.escenas-pila .salon-arcade .maquina { width: 100% !important; min-width: 0 !important; height: auto !important; }
html.escenas-pila .salon-arcade .maquina-spr { width: 100% !important; height: auto !important; aspect-ratio: 264 / 400; }
html.escenas-pila .salon-arcade .maquina-rotulo { font-size: clamp(.62rem, 2.6vw, .95rem) !important; white-space: normal !important; padding: 4px 6px !important; }

/* tableta: el pergamino del perfil con su ancho real (antes quedaba angosto) */
html.escenas-pila .perfil-pro-texto { width: min(92vw, 440px) !important; flex: none; }
html.escenas-pila .perfil-pro > * { justify-self: center; }
/* tableta acostada (hasta 1300 px): el menú se abre con el botón «Menú», como en el teléfono */
@media (max-width: 1300px) {
  html.escenas-pila .menu-toggle { display: block !important; }
  html.escenas-pila .topbar nav:not(.open) { display: none !important; }
  html.escenas-pila .topbar nav.open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-wrap: wrap; padding: 20px; border-radius: 14px; gap: 20px; background: rgba(255, 246, 251, .97); }
}

/* ---------------------------------------------------------------- teléfono de pie: la tableta y la carpeta se giran a lo alto
   (la tableta queda vertical; la carpeta, con una hoja arriba y la otra abajo) */
@media (orientation: portrait) and (max-width: 820px) {
  .sala-dialogo.sala-tableta, .sala-dialogo.sala-planilla { width: 94vw !important; height: min(88svh, 94vw * 1.82) !important; aspect-ratio: auto !important; background: none !important; }
  .sala-dialogo.sala-tableta::before, .sala-dialogo.sala-planilla::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none;
    width: min(88svh, 94vw * 1.82); height: 94vw; transform: translate(-50%, -50%) rotate(90deg); background: center / 100% 100% no-repeat; }
  .sala-dialogo.sala-tableta::before { background-image: url("assets/pergamino/tableta-sala.webp?v=2"); }
  .sala-dialogo.sala-planilla::before { background-image: url("assets/pergamino/carpeta-pap.webp?v=2"); }
  /* la pantalla de la tableta girada */
  .sala-pantalla { left: 14.56% !important; right: 15.68% !important; top: 6.17% !important; bottom: 6.17% !important; }
  .sala-pantalla .sala-dialogo-hacer { display: none; }
  /* las dos hojas de la carpeta girada: la explicación arriba y las capturas abajo */
  .sala-dialogo.sala-planilla .mh-pap-texto { left: 15% !important; top: 12.5% !important; width: 72% !important; height: 33% !important; font-size: .95rem !important; }
  .sala-dialogo.sala-planilla .mh-pap-imgs { left: 15% !important; top: 55% !important; width: 72% !important; height: 33% !important; flex-direction: row !important; gap: 4% !important; }
  .sala-dialogo.sala-planilla .mh-pap-imgs figure { flex: 1; }
  .sala-dialogo.sala-tableta .sala-cerrar, .sala-dialogo.sala-planilla .sala-cerrar { top: 1% !important; right: 2% !important; }
}
/* el dragoncito acompañante, más chico en pantallas pequeñas */
@media (max-width: 820px) { .dragoncito { width: 64px !important; height: 60px !important; } }
@media (orientation: portrait) and (max-width: 820px) { .sala-dialogo.sala-planilla .mh-pap-imgs { align-items: flex-start !important; justify-content: center !important; } .sala-dialogo.sala-planilla .mh-pap-imgs figure { flex: 1 1 0; height: auto !important; } }
@media (orientation: portrait) and (max-width: 820px) { .sala-dialogo.sala-planilla .mh-pap-imgs { flex-direction: column !important; align-items: center !important; gap: 6% !important; top: 53% !important; height: 37% !important; } .sala-dialogo.sala-planilla .mh-pap-imgs figure { flex: none !important; width: 88% !important; } }

/* ---------------------------------------------------------------- Arcade en el teléfono: se ven las tres máquinas; al apretar una se abre en grande,
   a pantalla completa, y «Volver al salón» la cierra (como en el computador) */
html.escenas-pila .ev-arcade .sala-juegos:not(.abierta) { display: none !important; }
html.escenas-pila .ev-arcade .sala-juegos.abierta { position: fixed !important; inset: 0 !important; z-index: 1200 !important; overflow-y: auto !important; padding: 14px 12px 30px !important;
  background: linear-gradient(180deg, #281238, #461e50) !important; }
html.escenas-pila .ev-arcade .sala-juegos.abierta .app-juego:not(.activo) { display: none !important; }
html.escenas-pila .ev-arcade .salon-arcade[hidden] { display: grid !important; }
html.escenas-pila .ev-arcade .maq-escena { overflow: visible !important; gap: 14px !important; }
html.escenas-pila .ev-arcade .juego-lado { order: -1; height: auto !important; max-height: none !important; padding: 62px 46px 56px !important; }
html.escenas-pila .ev-arcade .juego-lado-texto { max-height: 34svh; }
html.escenas-pila .ev-arcade .maq-1, html.escenas-pila .ev-arcade .maq-2 { width: min(100%, 420px, 52svh) !important; }
html.escenas-pila .ev-arcade .maq-3 { width: min(100%, 520px) !important; }
html.escenas-pila .ev-arcade .juego-lado { order: 0 !important; padding: 17% 16% 15% !important; width: min(100%, 380px) !important; }
html.escenas-pila .ev-arcade .juego-lado-texto { max-height: none !important; -webkit-mask: none !important; mask: none !important; overflow: visible !important; }
html.escenas-pila .ev-arcade .maq-1 { width: min(100%, calc((100svh - 80px) * 749 / 1412)) !important; }
html.escenas-pila .ev-arcade .maq-2 { width: min(100%, calc((100svh - 80px) * 743 / 1229)) !important; }
html.escenas-pila .ev-arcade .sala-juegos.abierta .juego-acciones { position: fixed !important; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1300; margin: 0 !important; }
html.escenas-pila .ev-arcade .sala-juegos.abierta .juego-salon { font-size: .9rem !important; padding: 8px 16px !important; box-shadow: 0 4px 12px rgba(20, 8, 40, .4) !important; }
html.escenas-pila .ev-arcade .sala-juegos.abierta { padding-top: 58px !important; }
html.escenas-pila .ev-arcade .sala-juegos.abierta .juego-acciones { display: none !important; }
.arcade-volver-fijo { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1300; padding: 9px 18px !important; font: 700 .92rem var(--sans, sans-serif) !important; border-radius: 999px !important; background: #fff6fb !important; color: #6a2c55 !important; border: 1px solid #e6c6dc !important; box-shadow: 0 4px 14px rgba(20, 8, 40, .45) !important; }
.arcade-volver-fijo[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Arcade en el teléfono: la máquina, debajo el control táctil y después las instrucciones */
html.escenas .ev-arcade .maq-escena > .control-magico { display: none !important; }
html.escenas-pila .ev-arcade .maq-escena > .control-magico { display: grid !important; order: 1; grid-template-columns: repeat(4, 64px) !important; grid-template-rows: 64px auto !important; gap: 10px !important; padding: 14px !important; margin: 0 auto; }
html.escenas-pila .ev-arcade .control-magico .cm-izq { grid-column: 1; grid-row: 1; } html.escenas-pila .ev-arcade .control-magico .cm-girar { grid-column: 2; grid-row: 1; }
html.escenas-pila .ev-arcade .control-magico .cm-bajar { grid-column: 3; grid-row: 1; } html.escenas-pila .ev-arcade .control-magico .cm-der { grid-column: 4; grid-row: 1; }
html.escenas-pila .ev-arcade .control-magico .cm-soltar { grid-column: 1 / span 2; grid-row: 2; border-radius: 999px !important; font-size: .95rem !important; padding: 10px 0 !important; }
html.escenas-pila .ev-arcade .control-magico .cm-pausa { grid-column: 3 / span 2; grid-row: 2; border-radius: 999px !important; font-size: .95rem !important; padding: 10px 0 !important; }
html.escenas-pila .ev-arcade .juego-lado { order: 2; }
/* en el teléfono, sin teclado: se ocultan las teclas y queda la explicación corta */
html.escenas-pila .ev-arcade .como-jugar, html.escenas-pila .ev-arcade #tetris-magic-demo, html.escenas-pila .ev-arcade #tetris-magic-demo ~ .small-note { display: none !important; }
html.escenas-pila .ev-arcade .como-jugar-tactil { display: block !important; text-align: center; font-weight: 700 !important; }
/* el pergamino de instrucciones: más angosto y con el texto dentro del papel */
html.escenas-pila .ev-arcade .juego-lado { width: min(92vw, 360px) !important; aspect-ratio: 800 / 1210; height: auto !important; padding: 21% 17% 18% !important; display: flex; flex-direction: column; }
html.escenas-pila .ev-arcade .juego-lado-texto { flex: 1; min-height: 0; overflow-y: auto !important; -webkit-mask: linear-gradient(180deg, #000 calc(100% - 16px), transparent) !important; mask: linear-gradient(180deg, #000 calc(100% - 16px), transparent) !important; }
html.escenas-pila .ev-arcade .juego-lado :is(p, li, span, label) { font-size: .82rem !important; }
html.escenas-pila .ev-arcade .juego-lado .atlas-gallery { grid-template-columns: repeat(3, 1fr) !important; }
/* la máquina y el control caben juntos en la pantalla (si el tablero sale de la vista, el juego se pausa solo) */
html.escenas-pila .ev-arcade .maq-1 { width: min(100%, calc((100svh - 250px) * 749 / 1412 / .66)) !important; aspect-ratio: auto !important; height: calc(100svh - 250px) !important; background-size: 100% auto !important; background-position: top center !important; overflow: hidden; }
html.escenas-pila .ev-arcade .maq-1 .maq-pantalla { top: calc(20.11% / .66) !important; height: calc(42.07% / .66) !important; }
html.escenas-pila .ev-arcade .maq-1 .maq-tablero { top: calc(63.4% / .66) !important; height: calc(6.4% / .66) !important; }
html.escenas-pila .ev-arcade .maq-escena > .control-magico { margin-top: -6px !important; }
html.escenas-pila .ev-arcade .maq-escena > .maq-juego { order: 0 !important; }
html.escenas-pila .ev-arcade .maq-escena > .control-magico { order: 1 !important; }
html.escenas-pila .ev-arcade .maq-escena > .juego-lado { order: 2 !important; }
/* instrucciones: letra clara y oscura, todo dentro del papel */
html.escenas .juego-lado, html.escenas-pila .ev-arcade .juego-lado { box-sizing: border-box !important; }
html.escenas .juego-lado-texto { padding: 0 2px 10px !important; }
html.escenas .juego-lado-texto :is(.landing-status, .match-message, .gem-power-message, .gem-lesson-hint) { background: rgba(255, 255, 255, .55) !important; border: 1px solid #ecd2e2 !important; border-radius: 10px !important; padding: 6px 8px !important; color: #4a2556 !important; font-weight: 600 !important; opacity: 1 !important; }
html.escenas .juego-lado-texto :is(p, li, span, label, small) { color: #3d1d4a !important; opacity: 1 !important; }
html.escenas .juego-lado-texto h3 { margin-top: 0 !important; }
html.escenas-pila .ev-arcade .juego-lado-texto { font-size: .9rem !important; }
html.escenas-pila .ev-arcade .juego-lado-texto :is(p, li, span, label) { font-size: .88rem !important; line-height: 1.45 !important; }

/* ================================================================ escenas anchas en el teléfono: completas a lo ancho; al tocar se acerca la cámara
   (reemplaza el deslizar hacia el costado) */
html.escenas-pila :is(.ev-datos, .ev-trayectoria, .ev-matrona, .ev-leyendas) .ev-caja { overflow: visible !important; padding-bottom: 0 !important; }
html.escenas-pila :is(.ev-datos, .ev-trayectoria, .ev-matrona, .ev-leyendas)::after { content: none !important; }
html.escenas-pila :is(.ev-datos, .ev-trayectoria, .ev-matrona, .ev-leyendas) .section-head { position: relative !important; width: auto !important; }
html.escenas-pila .papel-app.app-tableros, html.escenas-pila .ev-datos .ev-caja > * { width: 100% !important; min-width: 0 !important; }
html.escenas-pila .zoom-marco { position: relative; width: 100%; overflow: hidden; border-radius: 10px; touch-action: pan-y; cursor: zoom-in; }
html.escenas-pila .zoom-marco.acercado { touch-action: none; cursor: auto; box-shadow: 0 0 0 2px rgba(245, 168, 207, .8), 0 8px 22px rgba(40, 14, 56, .3); }
html.escenas-pila .zoom-marco > * { transform-origin: 0 0; will-change: transform; }
html.escenas-pila .zoom-marco .tableros, html.escenas-pila .zoom-marco .mural, html.escenas-pila .zoom-marco .sala { width: 100% !important; max-width: none !important; }
html.escenas-pila .zoom-marco .ley-museo { width: 100% !important; max-width: none !important; }
html.escenas-pila .zoom-pista { margin: 8px 0 0; text-align: center; font: italic 600 1rem "Cormorant Garamond", Georgia, serif; color: #8a4f7e; }
html.escenas-pila .zoom-todo { display: block; margin: 10px auto 0; padding: 8px 18px; border-radius: 999px; border: 1px solid #e6c6dc; background: #fff6fb; color: #6a2c55; font: 700 .9rem var(--sans, sans-serif); box-shadow: 0 3px 10px rgba(40, 14, 56, .2); }
html.escenas-pila .zoom-todo[hidden], html.escenas-pila .zoom-pista[hidden] { display: none !important; }
html.escenas-pila .ev-arcade .juego-lado { padding-top: 24% !important; }

/* ---------------------------------------------------------------- acercar por partes: la ventana crece para mostrar la parte entera */
html.escenas-pila .zoom-marco { transition: height .5s cubic-bezier(.2,.8,.2,1); touch-action: pan-y !important; }
html.escenas-pila .zoom-pista { display: none !important; }
html.escenas-pila .zoom-barra { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; }
html.escenas-pila .zoom-parte, html.escenas-pila .zoom-todo { margin: 0 !important; padding: 7px 13px !important; border-radius: 999px; border: 1px solid #e6c6dc; background: #fff6fb; color: #6a2c55; font: 700 .82rem var(--sans, sans-serif); box-shadow: 0 2px 8px rgba(40, 14, 56, .18); }
html.escenas-pila .zoom-parte.activo { background: linear-gradient(135deg, #f6b9d6, #cdb6f2); color: #4a2556; border-color: transparent; }
html.escenas-pila .zoom-barra:not(.acercado) .zoom-todo { display: none !important; }
html.escenas-pila .zoom-todo[hidden] { display: inline-block !important; }

/* ---------------------------------------------------------------- el pergamino de instrucciones: el texto dentro del papel crema (márgenes medidos en el dibujo,
   pergamino.webp 800 × 1210: el papel va de 17 % a 83 % de ancho y de 18,6 % a 83,5 % de alto) */
html.escenas .juego-lado { aspect-ratio: 800 / 1210 !important; height: auto !important; max-height: none !important; padding: 30% 19% 27% !important; }
html.escenas:not(.escenas-pila) .juego-lado { width: min(360px, calc((100vh - 140px) * 800 / 1210)) !important; }
html.escenas .juego-lado .juego-acciones { display: none !important; }
html.escenas:not(.escenas-pila) .juego-lado-volver { position: absolute; left: 50%; top: 5.2%; transform: translateX(-50%); }
html.escenas .juego-lado h3 { font-size: 1rem !important; line-height: 1.15 !important; }
/* en el computador «Volver al salón» va sobre el rollo de arriba del pergamino; en el teléfono, fijo arriba de la pantalla */
html.escenas:not(.escenas-pila) .juego-lado { position: relative; }
html.escenas:not(.escenas-pila) .juego-lado .juego-acciones { display: flex !important; position: absolute; left: 0; right: 0; top: 4%; justify-content: center; margin: 0 !important; z-index: 2; }
html.escenas .juego-lado { padding: 35% 21% 28% !important; }
html.escenas .juego-lado h3 { font-size: .95rem !important; margin-bottom: 6px !important; }
html.escenas-pila .ev-leyendas .ley-cuadro .ley-ver { min-height: 0 !important; height: auto !important; width: auto !important; border-radius: 999px !important; line-height: 1.2 !important; }
/* los márgenes del pergamino se miden con su propio ancho (--w), no con el del contenedor */
html.escenas .juego-lado { --w: min(360px, calc((100vh - 140px) * 800 / 1210)); width: var(--w) !important; padding: calc(var(--w) * .35) calc(var(--w) * .21) calc(var(--w) * .27) !important; }
html.escenas-pila .ev-arcade .juego-lado { --w: min(92vw, 360px); width: var(--w) !important; padding: calc(var(--w) * .35) calc(var(--w) * .21) calc(var(--w) * .27) !important; }
