/* buscoalgomas.es · /vagon/ — aplicación a pantalla completa (solo añade sobre base.css).
   Móvil primero: barra de acciones abajo y hojas que suben desde abajo; en escritorio, barra lateral y paneles a la derecha. */

html.app-vagon, html.app-vagon body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.app-vagon body { min-height: 0; }
.vagon { position: fixed; inset: 0; overflow: hidden; }

/* ---------------------------------------------------------------- escena */
.escena { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 35%, #1b2232 0%, var(--fondo) 62%); touch-action: none; }
.escena canvas.lienzo-vagon { display: block; width: 100%; height: 100%; max-width: none; touch-action: none; outline: none; -webkit-tap-highlight-color: transparent; }
.vagon[data-fase="bienvenida"] .escena::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 14, .38); pointer-events: none; }
.sin-webgl .escena { background: radial-gradient(90% 60% at 50% 30%, #2a2233 0%, #161b26 45%, var(--fondo) 80%); }

/* ---------------------------------------------------------------- billete de bienvenida */
.billete {
  position: absolute; z-index: 20; left: 12px; right: 12px; top: 64px;
  max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: 1fr;
  color: var(--texto);
  background: linear-gradient(165deg, rgba(31, 38, 54, .97) 0%, rgba(18, 22, 31, .98) 70%);
  border: 1px solid rgba(201, 162, 39, .55); border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.billete-cuerpo { padding: 20px 20px 16px; }
.billete-sobre { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--texto-2); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.billete-sobre span { color: var(--acento-2); border: 1px solid rgba(201, 162, 39, .6); border-radius: 6px; padding: 2px 8px; letter-spacing: .2em; }
.billete h2 { font-size: clamp(2rem, 8vw, 2.9rem); margin: 0 0 .25em; }
.billete-lema { font-family: var(--serif); font-style: italic; font-size: 1.06rem; line-height: 1.45; color: var(--acento-2); margin: 0 0 14px; }
.billete-pasos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.billete-pasos li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.billete-pasos .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: #1a1405; font-weight: 800; font-size: .95rem; }
.billete-pasos p { margin: 0; color: var(--texto-2); font-size: .95rem; line-height: 1.45; }
.billete-pasos strong { display: block; color: var(--texto); font-weight: 650; }
.billete-respeto { margin: 0; font-size: .9rem; }
.billete-luto { margin: -2px 0 12px; color: var(--texto-2); font-size: .85rem; }
.billete-luto .lazo { fill: #e9e2d4; vertical-align: -3px; margin-right: 4px; }
.billete-talon { position: relative; padding: 18px 20px 20px; border-top: 2px dashed rgba(201, 162, 39, .45); }
.billete-talon::before, .billete-talon::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--fondo); border: 1px solid rgba(201, 162, 39, .55); }
.billete-talon::before { left: -12px; clip-path: inset(0 0 0 50%); }
.billete-talon::after { right: -12px; clip-path: inset(0 50% 0 0); }
.billete-datos { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.billete-datos div { min-width: 0; }
.billete-datos dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--texto-2); line-height: 1.25; }
.billete-datos dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; color: var(--acento-2); overflow-wrap: anywhere; }
.billete-datos div:first-child dd { color: var(--texto); overflow-wrap: normal; font-size: clamp(1.1rem, 5.2vw, 1.45rem); }
@media (max-width: 420px) { .billete-datos { grid-template-columns: 1.45fr 1fr 1fr; } }
.billete-entrar { width: 100%; min-height: 52px; font-size: 1.05rem; }
.billete-enlaces { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.billete-enlaces a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--texto); font-size: .92rem; }
.billete-enlaces a:hover { background: rgba(255, 255, 255, .05); }
.billete-ayuda { margin: 0; text-align: center; font-size: .82rem; color: var(--texto-2); }
.sin-3d { margin: 0 0 12px; font-size: .9rem; color: var(--vela); }

@media (min-width: 760px) {
  .billete {
    left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%);
    width: min(840px, calc(100vw - 48px)); max-height: calc(100dvh - 120px);
    grid-template-columns: 1fr 280px; overflow: auto;
    --corte: calc(100% - 280px);
    -webkit-mask: radial-gradient(circle 13px at var(--corte) 0, #0000 97%, #000 100%) top / 100% 51% no-repeat, radial-gradient(circle 13px at var(--corte) 100%, #0000 97%, #000 100%) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 13px at var(--corte) 0, #0000 97%, #000 100%) top / 100% 51% no-repeat, radial-gradient(circle 13px at var(--corte) 100%, #0000 97%, #000 100%) bottom / 100% 51% no-repeat;
  }
  .billete-cuerpo { padding: 30px 32px 28px; }
  .billete-talon { border-top: 0; border-left: 2px dashed rgba(201, 162, 39, .45); padding: 30px 24px 24px; display: flex; flex-direction: column; }
  .billete-talon::before, .billete-talon::after { display: none; }
  .billete-datos { grid-template-columns: 1fr; gap: 14px; margin-bottom: auto; padding-bottom: 18px; }
  .billete-datos dd { font-size: 1.7rem; }
  .billete-datos div:first-child dd { font-size: 2rem; }
}

/* ---------------------------------------------------------------- capa de interfaz */
.hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.hud > * { pointer-events: auto; }
.luto-linea { display: none; position: absolute; top: 64px; left: 50%; transform: translateX(-50%); margin: 0; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 6px 14px; border-radius: 999px; background: rgba(15, 18, 24, .78); border: 1px solid rgba(138, 21, 56, .7); color: var(--texto-2); font-size: .8rem; line-height: 1.3; white-space: nowrap; pointer-events: none; }
html[data-luto="1"] .luto-linea { display: inline-flex; }
.luto-linea .lazo { flex: none; fill: #e9e2d4; }
.luto-linea span { overflow: hidden; text-overflow: ellipsis; }

.boton-sonido { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border-radius: 999px; background: rgba(15, 18, 24, .82); border: 1px solid var(--borde); color: var(--texto); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.boton-sonido:hover { border-color: var(--acento); }
.boton-sonido svg { flex: none; }
.boton-sonido svg path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.boton-sonido svg .altavoz { fill: currentColor; }
.boton-sonido[aria-pressed="false"] .ondas, .boton-sonido[aria-pressed="true"] .mudo { display: none; }
.boton-sonido[aria-pressed="true"] { border-color: var(--acento); color: var(--acento-2); }
.sonido-texto { display: none; }

/* selector de asiento: un talón de billete */
.asiento { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(15, 18, 24, .88); border: 1px solid rgba(201, 162, 39, .5); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.asiento-flecha { display: grid; place-items: center; flex: none; width: 44px; min-width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--texto); cursor: pointer; }
.asiento-flecha:hover { background: rgba(255, 255, 255, .06); }
.asiento-flecha svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.asiento-actual { margin: 0; min-width: 132px; padding: 0 4px; text-align: center; line-height: 1.12; }
.asiento-etq { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; color: var(--texto-2); }
.asiento-actual strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--acento-2); }
.asiento-sub { display: block; font-size: .72rem; color: var(--texto-2); }

/* mandos: barra de acciones */
.mandos { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(11, 13, 18, .93); border-top: 1px solid rgba(201, 162, 39, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.accion { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 60px; padding: 6px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--texto); font: inherit; font-size: .74rem; font-weight: 600; line-height: 1.1; cursor: pointer; text-align: center; }
.accion:hover { background: rgba(255, 255, 255, .05); }
.accion svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.accion svg .lleno { fill: currentColor; stroke: none; }
.accion svg .cuentas { stroke-dasharray: .01 2.93; stroke-width: 2.7; }
.accion[aria-pressed="true"], .accion[aria-expanded="true"] { background: rgba(201, 162, 39, .17); color: var(--acento-2); }
.accion .largo { display: none; }
.mandos-enlaces { display: none; }

/* rótulo del altar */
.altar-info { position: absolute; left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); max-height: 36dvh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 8px; border-radius: 16px; background: rgba(17, 21, 30, .94); border: 1px solid rgba(201, 162, 39, .42); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.altar-info h2 { font-size: 1.05rem; margin: 0 0 2px; }
.altar-cifras { margin: 0 0 4px; font-size: .85rem; color: var(--acento-2); }
.altar-lista { list-style: none; margin: 0; padding: 0; }
.altar-lista li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 0 10px; padding: 8px 4px; border-top: 1px dashed var(--borde); }
.altar-lista li.altar-vacio { display: block; color: var(--texto-2); font-size: .9rem; }
.altar-lista .punto { grid-row: span 2; align-self: start; margin-top: 6px; }
.altar-lista p { margin: 0; font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.altar-lista small { color: var(--texto-2); font-size: .76rem; }
.altar-lista li.nueva { background: rgba(201, 162, 39, .1); border-radius: 10px; border-top-color: transparent; }
.insignia { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: var(--acento); color: #1a1405; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; vertical-align: 1px; }
.altar-pie { margin: 6px 0 0; font-size: .85rem; }
.altar-pie a { display: inline-flex; align-items: center; min-height: 44px; }

.pista { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); margin: 0; padding: 10px 16px; border-radius: 999px; background: rgba(15, 18, 24, .82); border: 1px solid var(--borde); color: var(--texto); font-size: .9rem; white-space: nowrap; pointer-events: none; animation: pista-entra .6s ease-out both; }
@keyframes pista-entra { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }

.punto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 10px var(--c, #fff); }
.punto.flor { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- hojas (paneles) */
.hoja { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; max-height: min(62dvh, 600px); overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); background: #121620; color: var(--texto); border-top: 1px solid rgba(201, 162, 39, .5); border-radius: 20px 20px 0 0; box-shadow: 0 -18px 40px rgba(0, 0, 0, .45); }
.hoja-cabecera { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0 8px; background: #121620; }
.hoja-cabecera h2 { margin: 0; font-size: 1.4rem; }
.hoja-cabecera h2:focus { outline: none; }
.hoja-cabecera h2:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 4px; border-radius: 4px; }
.hoja-cerrar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borde); background: var(--tarjeta); color: var(--texto); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.hoja-cerrar:hover { border-color: var(--acento); }
.hoja-intro { margin: 0 0 6px; color: var(--texto-2); font-size: .92rem; }
.hoja h3 { font-size: 1rem; margin: 18px 0 6px; }

/* formularios del vagón */
.form-vagon fieldset { margin: 12px 0 4px; padding: 10px 12px 8px; }
.form-vagon legend { font-size: .95rem; }
.form-vagon label.opcion, .form-vagon label.color { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 6px 4px 0; padding: 8px 12px; border: 1px solid var(--borde); border-radius: 999px; font-weight: 500; cursor: pointer; vertical-align: middle; }
.form-vagon label.opcion input, .form-vagon label.color input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--acento); flex: none; }
.form-vagon label.opcion:has(input:checked), .form-vagon label.color:has(input:checked) { border-color: var(--acento); background: rgba(201, 162, 39, .12); }
.form-vagon label.opcion:focus-within, .form-vagon label.color:focus-within { outline: 2px solid var(--acento-2); outline-offset: 2px; }
.form-vagon label.opcion small { display: block; color: var(--texto-2); font-size: .78rem; font-weight: 400; }
.muestra { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: var(--c, #fff); border: 1px solid rgba(255, 255, 255, .25); }
.opcional { font-weight: 400; color: var(--texto-2); font-size: .85rem; }
.cuenta-caracteres { margin: 4px 0 0; text-align: right; font-size: .8rem; color: var(--texto-2); }
.ayuda-form { margin: 6px 0 0; font-size: .82rem; color: var(--texto-2); }
.form-vagon .boton-fila .btn { min-width: 200px; }

/* rezo */
.hoja-rezo:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; max-height: min(54dvh, 560px); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.rezo-cabecera { min-width: 0; }
.rezo-grupo { margin: 0 0 2px; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--acento); font-weight: 600; }
.rezo-progreso { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 2px 0 6px; }
.rezo-progreso .decena { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; }
.rezo-progreso i { display: block; aspect-ratio: 1; max-width: 8px; border-radius: 50%; background: #394050; }
.rezo-progreso i.hecha { background: var(--acento); }
.rezo-progreso i.actual { background: #fff1c2; box-shadow: 0 0 0 2px rgba(231, 198, 90, .45); }
.rezo-paso { flex: none; margin: 0 0 8px; font-size: .82rem; color: var(--texto-2); }
.rezo-cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; padding-bottom: 18px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); }
@media (max-width: 640px) { .hoja-rezo:not([hidden]) { max-height: min(62dvh, 560px); } }
.rezo-cuerpo .oracion { padding: 14px 16px; font-size: 1.06rem; line-height: 1.6; }
.rezo-cuerpo .oracion p { margin: 0 0 .6em; }
.rezo-cuerpo .oracion p:last-child { margin: 0; }
.rezo-contexto { margin: 0 0 8px; color: var(--texto-2); font-size: .9rem; }
.misterio-titulo { margin: 0 0 6px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--acento-2); }
.rezo-cuerpo .cita { margin: 8px 0 12px; }
.rezo-cuerpo .cita p { margin: 0 0 4px; }
.rezo-cuerpo .cita cite { font-size: .85rem; font-style: normal; color: var(--acento); }
.meditacion h3, .intencion h3 { margin: 0 0 4px; font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--acento); }
.meditacion p, .intencion p { margin: 0; }
.meditacion { margin: 0 0 10px; }
.fruto { margin: 0 0 10px; font-size: .95rem; }
.intencion { padding: 10px 14px; border-left: 3px solid var(--vela); border-radius: 0 10px 10px 0; background: rgba(255, 179, 71, .07); }
.letanias p { margin: 0 0 4px; }
.letanias em { color: var(--acento-2); font-style: normal; }
.letanias-respuesta { margin: 8px 0 4px; color: var(--texto-2); font-size: .9rem; }
.letanias-lista { margin: 0 0 8px; padding-left: 1.1em; font-size: .95rem; }
.rezo-final p { margin: 0 0 10px; }
.rezo-botones { flex: none; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding-top: 10px; }
.rezo-botones .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
.rezo-opciones { flex: none; margin-top: 8px; font-size: .9rem; }
.rezo-opciones summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--texto-2); }
.rezo-opciones label { margin-top: 4px; }
.rezo-opciones .btn { min-height: 44px; }

/* más */
.mas-enlaces { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.mas-enlaces a { display: block; padding: 10px 14px; min-height: 44px; border-radius: 12px; background: var(--tarjeta); border: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-weight: 600; }
.mas-enlaces a:hover { border-color: var(--acento); }
.mas-enlaces small { display: block; color: var(--texto-2); font-weight: 400; font-size: .82rem; }
.mas-ayuda { margin: 0 0 12px; padding-left: 1.1em; color: var(--texto-2); font-size: .92rem; }
.mas-ayuda strong { color: var(--texto); }
.hoja .aviso { font-size: .88rem; }
.hoja p.pequeno a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.hoja p.pequeno a[href^="tel:"] { justify-content: center; min-width: 44px; padding: 0 10px; }
.form-vagon .nota-datos { margin: 10px 0 0; }
.nota-ofrecimiento { margin: 8px 0 0; }

/* avisos */
.toast.aviso-vagon { bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 45; text-align: center; }
.sin-js { position: fixed; left: 16px; right: 16px; top: 80px; z-index: 50; padding: 16px; border-radius: 14px; background: var(--tarjeta); border: 1px solid var(--borde); }

/* móvil: con una hoja abierta o en el altar, el selector de asiento se aparta */
@media (max-width: 899px) {
  html[data-hoja] .asiento, html[data-modo="altar"] .asiento { display: none; }
  html[data-hoja] .altar-info { display: none; }
}

/* ---------------------------------------------------------------- escritorio */
@media (min-width: 900px) {
  .luto-linea { top: 16px; font-size: .85rem; }
  .sonido-texto { display: inline; }
  .boton-sonido { top: 14px; right: 16px; padding: 8px 16px; }
  html[data-hoja] .boton-sonido { right: 456px; }
  .mandos { left: 16px; right: auto; top: 72px; bottom: auto; width: 262px; grid-template-columns: 1fr; gap: 2px; padding: 10px; border: 1px solid rgba(201, 162, 39, .38); border-radius: 18px; max-height: calc(100dvh - 88px); overflow-y: auto; }
  .accion { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 10px 14px; font-size: .95rem; text-align: left; }
  .accion .corto { display: none; }
  .accion .largo { display: inline; }
  .mandos-enlaces { display: block; list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--borde); }
  .mandos-enlaces a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--texto-2); text-decoration: none; font-size: .92rem; }
  .mandos-enlaces a:hover { background: rgba(255, 255, 255, .05); color: var(--texto); }
  .asiento { bottom: 22px; left: calc(50% + 139px); }
  html[data-hoja] .asiento { left: calc(139px + (100vw - 440px) / 2); }
  .altar-info { left: auto; right: 16px; bottom: 22px; width: 380px; max-height: calc(100dvh - 120px); }
  html[data-hoja] .altar-info { display: none; }
  .hoja { left: auto; right: 16px; top: 16px; bottom: 16px; width: 424px; max-height: none; padding: 0 22px 22px; border: 1px solid rgba(201, 162, 39, .45); border-radius: 18px; box-shadow: -18px 0 50px rgba(0, 0, 0, .45); }
  .hoja-rezo:not([hidden]) { max-height: none; padding-bottom: 20px; }
  .hoja-cabecera { padding-top: 18px; }
  .rezo-cuerpo .oracion { font-size: 1.12rem; padding: 18px 20px; }
  .toast.aviso-vagon { bottom: 96px; left: calc(50% + 139px); }
  .pista { left: calc(50% + 139px); }
}

/* ---------------------------------------------------------------- sin WebGL: fuera lo que solo sirve en 3D (ventanilla, selector de
   asiento, sonido del tren, ayuda para moverse); el altar y el rezo pasan a ser el contenido principal */
.sin-webgl .solo-3d { display: none !important; }
.sin-webgl .mandos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sin-webgl .altar-info { top: 108px; bottom: auto; max-height: calc(100dvh - 194px - env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .sin-webgl .altar-info { top: 72px; bottom: auto; width: min(720px, calc(100% - 324px)); left: calc(50% + 139px - min(360px, (100% - 324px) / 2)); right: auto; max-height: calc(100dvh - 96px); padding: 20px 24px 14px; }
  .sin-webgl .altar-info h2 { font-size: 1.4rem; }
  .sin-webgl .altar-lista p { -webkit-line-clamp: 4; }
}

/* ---------------------------------------------------------------- modo cine (?cine=1): solo la escena y los rótulos */
html.modo-cine .billete, html.modo-cine .hud, html.modo-cine .hoja, html.modo-cine .aviso-vagon, html.modo-cine .saltar { display: none !important; }
html.modo-cine .vagon[data-fase="bienvenida"] .escena::after { display: none; }
.cine-capa { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.cine-capa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to top, rgba(8, 10, 14, .62), rgba(8, 10, 14, 0)); }
.cine-rotulo { position: absolute; z-index: 1; left: 7vw; right: 7vw; bottom: 12vh; margin: 0; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 5.4vmin; line-height: 1.22; color: #fbf3e2; text-shadow: 0 2px 22px rgba(0, 0, 0, .6); opacity: 0; }
.cine-lema { font-style: italic; }
.cine-web { bottom: 15vh; font-size: 8.6vmin; font-weight: 600; color: #f1d27a; letter-spacing: .01em; }
.cine-web span { display: block; margin-top: .45em; font-family: var(--sans); font-size: .34em; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: #efe6d2; }
/* En apaisado el rótulo final iría encima de la placa «Adamuz · Urda» del altar: sube entre la pantalla de avisos y la cruz */
@media (min-aspect-ratio: 4/3) {
  .cine-web { top: 12vh; bottom: auto; font-size: 7.4vmin; }
  .cine-capa::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; background: linear-gradient(to bottom, rgba(8, 10, 14, .55), rgba(8, 10, 14, 0)); opacity: var(--velo-superior, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pista { animation: none; }
}
