/* BEAT SURGE PRISMA COMPLETO · bloque A · LOBBY ESTACIÓN OVERDRIVE (láminas 11 · 12 · «girá el teléfono» de la 38)
 * Clases bso-pl-* (dueño: bloque A). Curvas oficiales: cubic-bezier(0.34, 1.56, 0.64, 1) y
 * cubic-bezier(0.16, 1, 0.3, 1). Táctil ≥ 44 px. Transiciones solo transform · opacity · filter.
 *
 * El lienzo pinta la estación y la versión iluminada de cada control (PowerBSOPrismaLobby, porte de lobby.js). Estos botones
 * DOM van ENCIMA, transparentes, en las coordenadas del prototipo sobre el lienzo lógico de 660 × 360 (la caja de #bso-escena
 * es exactamente la del lienzo, con su proporción): --cx / --cy = centro, --w / --h = caja en unidades lógicas. Así nada se
 * corta ni se estira a ningún tamaño (660 × 360, 844 × 390, 1280 × 720, 2498 × 1390). Lámina 11, pie: «Los botones son DOM
 * (≥ 44 px, aria-label, foco visible) puestos encima del lienzo; el lienzo dibuja su versión iluminada». */
.bso-pl { position: absolute; inset: 0; display: none; min-width: 0; pointer-events: none; }
.bso-root[data-pantalla="lobby"] .bso-pl { display: block; }
.bso-root[data-pl-arranque] .bso-pl,
.bso-root[data-pl-ignicion] .bso-pl { visibility: hidden; }
.bso-pl > * { pointer-events: auto; }
.bso-pl-b {
  position: absolute;
  left: calc(var(--cx) / 660 * 100% - max(44px, calc(var(--w) / 660 * 100%)) / 2);
  top: calc(var(--cy) / 360 * 100% - max(44px, calc(var(--h) / 360 * 100%)) / 2);
  width: max(44px, calc(var(--w) / 660 * 100%));
  height: max(44px, calc(var(--h) / 360 * 100%));
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
/* la caja táctil no se mueve nunca: power-ui.css (body.power-hud button:active) le pone scale / translate a todo botón y el
   clic sintético del toque caía en el lienzo de atrás. Con id en el selector gana sin depender del orden. */
#bso-root .bso-pl-b, #bso-root .bso-pl-b:active { transform: none; translate: none; scale: none; filter: none; transition: none; }
#bso-root .bso-pl-b:focus-visible { outline: 2px solid #00f0ff; outline-offset: 2px; box-shadow: 0 0 0 1px #05040e, 0 0 0 4px rgba(0, 240, 255, 0.35); }
.bso-pl-b[aria-disabled="true"] { cursor: default; }
/* lobby.js:238-245 · hexágonos r 14 en (566 · 600 · 634, 30); el 🎓 de Dirección va a la izquierda (532). */
.bso-pl-hex { --cy: 30; --w: 30; --h: 30; border-radius: 50%; left: min(calc(var(--cx) / 660 * 100% - max(44px, calc(var(--w) / 660 * 100%)) / 2), calc(100% - 44px)); }
#bso-b-guia { --cx: 532; }
#bso-b-ayuda { --cx: 566; }
#bso-b-sonido { --cx: 600; }
#bso-cerrar { --cx: 634; }
html:not([data-pf-dop="1"]) #bso-b-guia { display: none; }
/* lobby.js:562 · placas (12, 72 + m · 50, 168 × 42): centro x 96, y 93 · 143 · 193 · 243. */
.bso-pl-placa { --cx: 96; --w: 168; --h: 42; border-radius: 4px; }
#bso-b-musica { --cy: 93; }
#bso-b-arboles { --cy: 143; }
#bso-b-esfera { --cy: 193; }
#bso-b-maestria { --cy: 243; }
/* lobby.js:565 · JUGAR (470, 276, 176 × 64). */
.bso-pl-jugar { --cx: 558; --cy: 308; --w: 176; --h: 64; }
/* BS5 · Estudio 2.0 (data-e2 lo pone beat-surge-prisma-lobby.js · jugarSprite): la losa de la lámina 09, 176 × 50 en (470, 290). */
.bso-pl-jugar[data-e2="1"] { --cy: 315; --h: 50; }
/* lobby.js:571-572 · CÓMO JUGAR (12, 326, 98 × 20): la caja táctil crece a 44 px hacia arriba y abajo. */
.bso-pl-tuto { --cx: 61; --cy: 336; --w: 98; --h: 20; border-radius: 22px; }
/* La tarjeta (lobby.js:222) y el chip ESTILO · DIFICULTAD (lobby.js:568) son lectura: el lienzo los pinta; el DOM los nombra. */
.bso-pl-tarjeta {
  position: absolute; left: calc(12 / 660 * 100%); top: calc(10 / 360 * 100%); width: calc(196 / 660 * 100%); height: calc(44 / 360 * 100%);
  min-width: 0; pointer-events: none;
}
.bso-pl-estilo, .bso-pl-oculto {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
#bso-root #bso-jugar .bso-des-badge { display: none !important; }   /* la insignia RETOS la pinta el lienzo (lobby.js:213) */
/* SONIDO · el diálogo AJUSTES del lobby aloja el grupo de la pausa (cuenta de 8, movimiento reducido, SINCRONIZAR TOQUE). */
#bso-m-ajustes .bso-pausa-aj { display: grid; gap: 8px; min-width: 0; }
#bso-m-ajustes .bso-pausa-aj[hidden] { display: none; }
#bso-m-ajustes .bso-aj-tg { min-height: 44px; min-width: 0; }

/* ── GIRÁ EL TELÉFONO (lámina 38 · 8; pantallas4.js:531): noche #05040e, el teléfono de neón cian que gira −90° con inOut en
 *    2,4 s (la mitad gira, la mitad queda), título cromado y la línea «Beat Surge se juega en horizontal». */
#bso-root .bso-girar { background: #05040e; gap: 0; padding: 24px 16px; }
#bso-root .bso-girar-icono {
  position: relative; width: 48px; height: 84px; margin: 0 0 34px; font-size: 0; color: transparent; box-sizing: border-box;
  border: 3px solid #00f0ff; border-radius: 8px; box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
  animation: bso-pl-girar 2400ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
#bso-root .bso-girar-icono::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; bottom: 5px; border-radius: 4px; background: rgba(0, 240, 255, 0.3); }
@keyframes bso-pl-girar { 0% { transform: rotate(0deg); } 50%, 100% { transform: rotate(-90deg); } }
#bso-root .bso-girar-t {
  font-family: "BSD", "Inter Display", "Orbitron", system-ui, sans-serif; font-style: italic; font-weight: 900; font-size: 24px; line-height: 1.25;
  letter-spacing: 0; text-transform: uppercase; color: #ffffff; text-shadow: -1px 0 rgba(0, 240, 255, 0.9), 1px 0 rgba(255, 0, 122, 0.9), 0 0 10px #00f0ff;
  -webkit-text-stroke: 1px #05040e; max-width: 100%; overflow-wrap: anywhere;
}
#bso-root .bso-girar .bso-nota { margin: 8px 0 0; font-family: "BSU", "Inter", "Rajdhani", system-ui, sans-serif; font-weight: 700; font-size: 11px; line-height: 1.4; color: #c8cff0; max-width: 100%; }
#bso-root .bso-girar .bso-btn { position: absolute; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); min-height: 44px; font-size: 11px; opacity: 0.7; }
#bso-root .bso-girar .bso-btn:active { transform: translateX(-50%) scale(0.95); }
@media (prefers-reduced-motion: reduce) { #bso-root .bso-girar-icono { animation: none; transform: rotate(-90deg); } }
