/* ESPEJISMO · estilos de las pantallas, el marcador y los controles táctiles */
:root {
  --tinta: #1b100c;
  --oro: #e8b23a;
  --oro-claro: #ffe3a1;
  --oro-oscuro: #9a6418;
  --crema: #f6ead2;
  --carmesi: #c8262c;
  --turquesa: #1f8f93;
  --panel: rgba(24, 12, 8, 0.84);
  --borde: rgba(232, 178, 58, 0.55);
  --si: env(safe-area-inset-left, 0px);
  --sd: env(safe-area-inset-right, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #140a06; color: var(--crema); font-family: 'Alegreya Sans', system-ui, sans-serif; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; overscroll-behavior: none; }
#lienzo { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; background: #140a06; transition: filter 0.25s; }
#lienzo.rebobinando { filter: sepia(0.85) saturate(1.35) hue-rotate(-10deg) contrast(1.08) brightness(1.05); }
button { font-family: inherit; color: inherit; cursor: pointer; }
.oculto { display: none !important; }

/* ───────── pantallas ───────── */
.pantalla { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.capa { background: rgba(14, 7, 4, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 40; }
.fondo-pantalla { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--panel); border: 1px solid var(--borde); border-radius: 14px; padding: 18px 26px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 260px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); max-height: calc(100dvh - 24px); overflow: auto; }
.panel.ancho { max-width: min(760px, 94vw); }
h2 { font-family: 'Cinzel', serif; font-weight: 800; letter-spacing: 0.06em; margin: 0; color: var(--oro-claro); font-size: clamp(20px, 5.4vh, 30px); text-align: center; }
h3 { font-family: 'Cinzel', serif; font-weight: 600; color: var(--oro); margin: 6px 0 4px; font-size: 15px; letter-spacing: 0.04em; }
.boton { font-family: 'Cinzel', serif; font-weight: 800; letter-spacing: 0.05em; font-size: clamp(13px, 3.8vh, 17px); padding: 11px 26px; border-radius: 999px; border: 1px solid var(--oro); background: linear-gradient(180deg, #f2c55a, #c98a26); color: #2a1408; box-shadow: 0 3px 0 #7a4a12, 0 8px 18px rgba(0, 0, 0, 0.35); min-width: 220px; transition: transform 0.12s ease-out, filter 0.12s; }
.boton:active { transform: translateY(2px) scale(0.98); }
.boton.secundario { background: rgba(40, 22, 12, 0.85); color: var(--crema); box-shadow: none; border-color: var(--borde); }
.boton.grande { font-size: clamp(15px, 4.6vh, 20px); padding: 13px 34px; }
@media (hover: hover) { .boton:hover { filter: brightness(1.08); } }
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; }

/* logo */
.logo { margin: 0; font-family: 'Cinzel Decorative', serif; font-weight: 900; font-size: clamp(42px, 15vh, 96px); letter-spacing: 0.03em; line-height: 1; }
.logo span { background: linear-gradient(180deg, #fff4cf 0%, #ffd56e 38%, #e09a2a 62%, #8f4d12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.2px rgba(60, 22, 6, 0.85); filter: drop-shadow(0 3px 0 rgba(50, 18, 4, 0.9)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.logo.pequeno { font-size: clamp(30px, 10vh, 56px); }

/* carga */
#carga { background: radial-gradient(ellipse at 50% 60%, #3a1d0e, #140a06 70%); gap: 18px; z-index: 60; }
.barra-carga { width: min(320px, 60vw); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.barra-carga div { height: 100%; width: 0; background: linear-gradient(90deg, var(--oro-oscuro), var(--oro-claro)); transition: width 0.2s; }
.carga-texto { margin: 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 234, 210, 0.6); }

/* título */
#titulo { justify-content: flex-start; align-items: flex-start; cursor: pointer; }
#titulo .fondo-pantalla { object-position: 72% 50%; animation: respira 18s ease-in-out infinite alternate; }
@keyframes respira { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }
.velo-titulo { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 8, 4, 0.72) 0%, rgba(20, 8, 4, 0.35) 38%, rgba(20, 8, 4, 0) 60%), linear-gradient(0deg, rgba(20, 8, 4, 0.6), rgba(20, 8, 4, 0) 35%); }
.titulo-contenido { position: relative; padding: calc(8vh + var(--st)) 0 0 calc(6vw + var(--si)); display: flex; flex-direction: column; gap: 8px; }
.lema { margin: 0; font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(15px, 4.6vh, 24px); letter-spacing: 0.16em; color: var(--crema); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); padding-left: 0.3em; }
.empezar { margin: 4vh 0 0 0.4em; font-weight: 800; font-size: clamp(13px, 3.8vh, 17px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro-claro); animation: late 2.2s ease-in-out infinite; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
@keyframes late { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.arena-titulo { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255, 214, 120, 0.9) 0 1px, transparent 1.5px), radial-gradient(circle, rgba(255, 214, 120, 0.6) 0 1px, transparent 1.5px); background-size: 140px 120px, 90px 170px; background-position: 0 0, 40px 60px; animation: arena 16s linear infinite; opacity: 0.55; mix-blend-mode: screen; }
@keyframes arena { to { background-position: 140px -480px, 130px -620px; } }

/* historia */
#historia { cursor: pointer; }
.velo-historia { position: absolute; inset: 0; background: rgba(14, 6, 3, 0.78); }
.h-texto { position: relative; max-width: min(680px, 84vw); text-align: center; font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(17px, 5.2vh, 27px); line-height: 1.45; color: var(--crema); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.7s; }
.h-texto.ver { opacity: 1; }
.h-saltar { position: absolute; right: calc(18px + var(--sd)); bottom: calc(14px + var(--sb)); background: none; border: 1px solid var(--borde); border-radius: 999px; padding: 7px 16px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 234, 210, 0.75); }

/* oasis */
#oasis { justify-content: space-between; align-items: stretch; padding: calc(10px + var(--st)) calc(18px + var(--sd)) calc(10px + var(--sb)) calc(18px + var(--si)); gap: 6px; }
.velo-oasis { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 8, 4, 0.66), rgba(20, 8, 4, 0.18) 40%, rgba(20, 8, 4, 0.72)); }
.o-cab, .o-lema, .o-mejoras, .o-pie { position: relative; }
.o-cab { display: flex; justify-content: space-between; align-items: center; }
.o-cab h2 { text-align: left; }
.o-bucle { margin: 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246, 234, 210, 0.75); }
.o-destellos { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(18px, 5.4vh, 26px); color: var(--oro-claro); background: var(--panel); border: 1px solid var(--borde); border-radius: 999px; padding: 6px 16px; display: flex; gap: 8px; align-items: center; }
.o-destellos .ico { color: var(--oro); }
.o-lema { margin: 0; font-size: clamp(12px, 3.4vh, 15px); color: rgba(246, 234, 210, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.o-mejoras { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mejora { background: var(--panel); border: 1px solid rgba(232, 178, 58, 0.35); border-radius: 12px; padding: 10px 10px 10px; display: flex; flex-direction: column; gap: 5px; min-height: 0; }
.mejora.completa { border-color: rgba(31, 143, 147, 0.8); }
.mj-nombre { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(11px, 3.4vh, 15px); color: var(--oro-claro); line-height: 1.15; }
.mj-texto { font-size: clamp(11px, 3.1vh, 13px); line-height: 1.25; color: rgba(246, 234, 210, 0.85); flex: 1; }
.mj-puntos { display: flex; gap: 4px; }
.mj-puntos i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--oro); }
.mj-puntos i.si { background: var(--oro); }
.mj-comprar { border: 1px solid var(--oro); background: linear-gradient(180deg, #f2c55a, #c98a26); color: #2a1408; border-radius: 999px; font-weight: 800; padding: 6px 8px; font-size: clamp(12px, 3.4vh, 15px); display: flex; gap: 5px; justify-content: center; align-items: center; }
.mj-comprar.no { background: rgba(60, 36, 20, 0.8); color: rgba(246, 234, 210, 0.5); border-color: rgba(232, 178, 58, 0.3); }
.mj-comprar:disabled { background: rgba(31, 143, 147, 0.35); color: var(--crema); border-color: rgba(31, 143, 147, 0.8); }
.o-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.o-datos { margin: 0; font-size: 13px; color: rgba(246, 234, 210, 0.7); }
.o-botones { display: flex; gap: 10px; }
.o-botones .boton { min-width: 0; }

/* ───────── marcador ───────── */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.hud-izq { position: absolute; left: calc(14px + var(--si)); top: calc(10px + var(--st)); display: flex; flex-direction: column; gap: 6px; }
.vida { position: relative; width: clamp(150px, 26vw, 250px); height: 15px; border-radius: 3px; background: rgba(20, 8, 4, 0.75); border: 1.5px solid var(--oro); box-shadow: 0 0 0 1.5px var(--tinta), 0 4px 10px rgba(0, 0, 0, 0.4); overflow: hidden; }
.vida-relleno, .vida-dano { position: absolute; inset: 0; transform-origin: left center; transition: transform 0.18s ease-out; }
.vida-dano { background: #f1d38a; transition: transform 0.5s ease-in; }
.vida-relleno { background: linear-gradient(180deg, #ff6a4a, #c8262c 60%, #8e1720); z-index: 1; }
.vida-num { position: absolute; inset: 0; z-index: 2; font-size: 11px; font-weight: 800; line-height: 13px; text-align: center; color: #fff6e6; text-shadow: 0 1px 2px var(--tinta); }
.fila-hud { display: flex; align-items: center; gap: 12px; }
.cargas { display: flex; gap: 3px; }
.carga { position: relative; width: 20px; height: 22px; color: rgba(255, 227, 161, 0.25); filter: drop-shadow(0 1px 1px var(--tinta)); }
.carga .ico { width: 20px; height: 22px; }
.carga::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: calc(var(--p) * 16px); background: linear-gradient(0deg, #ffb53a, #ffe3a1); border-radius: 2px; opacity: 0.9; mix-blend-mode: screen; }
.carga.llena { color: var(--oro-claro); }
.carga.llena::after { display: none; }
.destellos { display: flex; align-items: center; gap: 5px; font-family: 'Cinzel', serif; font-weight: 800; font-size: 16px; color: var(--oro-claro); text-shadow: 0 1px 3px var(--tinta); }
.destellos .ico { color: var(--oro); width: 14px; height: 14px; }
.medallones { display: flex; gap: 4px; }
.medallones span { width: 22px; height: 22px; border-radius: 50%; background: rgba(20, 8, 4, 0.8); border: 1px solid var(--oro); display: grid; place-items: center; color: var(--oro-claro); }
.medallones .ico { width: 13px; height: 13px; }
.btn-pausa { position: absolute; right: calc(14px + var(--sd)); top: calc(10px + var(--st)); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--borde); background: rgba(20, 8, 4, 0.6); pointer-events: auto; display: grid; place-items: center; }
.btn-pausa svg { width: 20px; height: 20px; fill: var(--crema); }
.jefe { position: absolute; left: 50%; bottom: calc(14px + var(--sb)); transform: translateX(-50%); width: min(40vw, 420px); text-align: center; }
.jefe-nombre { font-family: 'Cinzel', serif; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; color: var(--oro-claro); text-shadow: 0 1px 3px var(--tinta); margin-bottom: 4px; }
.jefe-barra { height: 10px; border: 1.5px solid var(--oro); border-radius: 3px; background: rgba(20, 8, 4, 0.8); overflow: hidden; box-shadow: 0 0 0 1.5px var(--tinta); }
.jefe-relleno { height: 100%; background: linear-gradient(180deg, #b06cff, #5a2a9a); transform-origin: left center; transition: transform 0.2s; }

/* ───────── controles táctiles ───────── */
#tactil { position: fixed; inset: 0; z-index: 11; pointer-events: none; }
.zona-stick { position: absolute; left: 0; top: 18%; bottom: 0; width: 46%; pointer-events: auto; touch-action: none; }
.stick { position: absolute; left: 22%; top: 74%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 2px solid rgba(255, 227, 161, 0.35); background: rgba(20, 8, 4, 0.28); opacity: 0.35; transition: opacity 0.2s; pointer-events: none; }
.stick.activo { opacity: 1; transition: none; }
.stick-pomo { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe3a1, #c98a26); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); }
.botones .b { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; border: 2px solid rgba(255, 227, 161, 0.6); background: rgba(24, 12, 8, 0.46); display: grid; place-items: center; transition: transform 0.08s, background 0.08s; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.botones .b svg { width: 46%; height: 46%; fill: var(--crema); }
.botones .b.pulsado { transform: scale(0.9); background: rgba(232, 178, 58, 0.55); }
.botones .b.vacio { opacity: 0.4; }
.b-saltar { width: 80px; height: 80px; right: calc(20px + var(--sd)); bottom: calc(20px + var(--sb)); border-color: var(--oro) !important; }
.b-atacar { width: 72px; height: 72px; right: calc(112px + var(--sd)); bottom: calc(26px + var(--sb)); border-color: #ff8a6a !important; }
.b-patada { width: 60px; height: 60px; right: calc(104px + var(--sd)); bottom: calc(110px + var(--sb)); }
.b-esquivar { width: 60px; height: 60px; right: calc(30px + var(--sd)); bottom: calc(112px + var(--sb)); border-color: #9fd8ff !important; }
.b-chakram { width: 52px; height: 52px; right: calc(196px + var(--sd)); bottom: calc(32px + var(--sb)); }
.b-chakram .cd { position: absolute; inset: 4px; border-radius: 50%; border: 2px dashed rgba(255, 227, 161, 0.6); opacity: 0; transition: opacity 0.2s; }
.b-rebobinar { width: 50px; height: 50px; right: calc(14px + var(--sd)); top: calc(62px + var(--st)); border-color: var(--oro) !important; }
.b-rebobinar svg { fill: var(--oro-claro) !important; }
@media (max-height: 360px) {
  .b-saltar { width: 70px; height: 70px; } .b-atacar { width: 64px; height: 64px; right: calc(100px + var(--sd)); }
  .b-patada, .b-esquivar { width: 52px; height: 52px; bottom: calc(96px + var(--sb)); } .b-patada { right: calc(94px + var(--sd)); }
  .b-chakram { right: calc(176px + var(--sd)); }
}

/* ───────── carteles y avisos ───────── */
#cartel { position: fixed; left: 0; right: 0; top: 13%; z-index: 15; text-align: center; pointer-events: none; }
#cartel .c-num { font-family: 'Cinzel Decorative', serif; font-weight: 900; font-size: clamp(22px, 7vh, 40px); color: var(--oro); text-shadow: 0 2px 0 var(--tinta); }
#cartel .c-nombre { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(28px, 10vh, 56px); letter-spacing: 0.06em; color: var(--crema); text-shadow: 0 3px 0 var(--tinta), 0 8px 30px rgba(0, 0, 0, 0.6); }
#cartel .c-sub { margin-top: 4px; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(246, 234, 210, 0.85); text-shadow: 0 1px 4px var(--tinta); }
#cartel.entra { animation: cartelEntra 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
#cartel.sale { animation: cartelSale 0.7s ease-in both; }
@keyframes cartelEntra { from { opacity: 0; transform: translateY(14px); letter-spacing: 0.3em; } to { opacity: 1; transform: none; } }
@keyframes cartelSale { to { opacity: 0; transform: translateY(-10px); } }
#cartel-jefe { position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(20, 6, 30, 0.55) 30%, rgba(20, 6, 30, 0.55) 70%, transparent); }
.cj-nombre { font-family: 'Cinzel Decorative', serif; font-weight: 900; font-size: clamp(40px, 16vh, 90px); background: linear-gradient(180deg, #f3e1ff, #b06cff 55%, #4a1c80); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #12061c); }
.cj-sub { font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(14px, 4.6vh, 22px); letter-spacing: 0.3em; text-transform: uppercase; color: var(--crema); }
#cartel-jefe.entra { animation: cartelEntra 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
#cartel-jefe.sale { animation: cartelSale 0.8s ease-in both; }
#aviso { position: fixed; left: 50%; top: calc(16px + var(--st)); transform: translate(-50%, -10px); z-index: 16; background: var(--panel); border: 1px solid var(--borde); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
#aviso.ver { opacity: 1; transform: translate(-50%, 0); }
#muerte { position: fixed; inset: 0; z-index: 14; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; pointer-events: none; background: radial-gradient(ellipse at center, rgba(40, 8, 4, 0.1), rgba(40, 8, 4, 0.6)); }
.m-reloj { font-size: clamp(40px, 14vh, 70px); color: var(--oro-claro); animation: pulso 0.9s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 190, 90, 0.8)); }
#muerte.sin .m-reloj { display: none; }
.m-texto { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(16px, 5vh, 24px); letter-spacing: 0.06em; text-shadow: 0 2px 8px var(--tinta); }
@keyframes pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
#rebobinado { position: fixed; inset: 0; z-index: 14; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 12vh; background: repeating-linear-gradient(0deg, rgba(255, 210, 140, 0.04) 0 2px, transparent 2px 5px); }
.r-reloj { font-size: 44px; color: var(--oro-claro); animation: gira 1s linear infinite reverse; filter: drop-shadow(0 0 12px rgba(255, 190, 90, 0.9)); }
.r-texto { font-family: 'Cinzel', serif; font-weight: 800; letter-spacing: 0.4em; text-transform: uppercase; font-size: 14px; color: var(--oro-claro); text-shadow: 0 1px 6px var(--tinta); }
@keyframes gira { to { transform: rotate(360deg); } }
#dolor { position: fixed; inset: 0; z-index: 9; pointer-events: none; box-shadow: inset 0 0 120px 30px rgba(200, 20, 10, 0.75); opacity: 0; }
#dolor.ver { animation: dolor 0.45s ease-out; }
@keyframes dolor { from { opacity: 1; } to { opacity: 0; } }
#fundido { position: fixed; inset: 0; z-index: 30; background: #0d0603; opacity: 0; pointer-events: none; transition: opacity 0.6s; }
#fundido.ver { opacity: 1; }

/* elección de medallón */
#eleccion { gap: 6px; padding: 12px; }
.e-sub { margin: 0 0 6px; font-size: clamp(13px, 3.6vh, 16px); color: rgba(246, 234, 210, 0.85); text-align: center; }
.e-cartas { display: flex; gap: 14px; justify-content: center; flex-wrap: nowrap; max-width: 96vw; }
.carta { width: clamp(150px, 26vw, 220px); min-height: clamp(160px, 48vh, 240px); border-radius: 14px; border: 1.5px solid var(--oro); background: linear-gradient(180deg, rgba(60, 30, 14, 0.95), rgba(24, 12, 8, 0.95)); padding: 14px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: carta 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d) both; transition: transform 0.15s; }
.carta:active { transform: scale(0.97); }
@media (hover: hover) { .carta:hover { transform: translateY(-4px); } }
@keyframes carta { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.carta-ico { width: clamp(44px, 14vh, 64px); height: clamp(44px, 14vh, 64px); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ffe3a1, #c98a26 60%, #7a4a12); color: #2a1408; box-shadow: 0 0 24px rgba(255, 190, 90, 0.45); }
.carta-ico .ico { width: 55%; height: 55%; }
.carta-nombre { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(14px, 4.2vh, 18px); color: var(--oro-claro); line-height: 1.15; }
.carta-texto { font-size: clamp(12px, 3.5vh, 15px); line-height: 1.3; color: rgba(246, 234, 210, 0.9); }

/* resumen */
.r-sub { margin: 0; text-align: center; color: rgba(246, 234, 210, 0.85); font-size: clamp(13px, 3.6vh, 16px); max-width: 460px; }
.r-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; width: 100%; margin: 4px 0 6px; }
.r-datos div { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(232, 178, 58, 0.25); border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; }
.r-datos span { font-size: 12px; color: rgba(246, 234, 210, 0.7); }
.r-datos b { font-family: 'Cinzel', serif; font-size: 17px; color: var(--oro-claro); }
#resumen.victoria .panel { border-color: var(--oro); box-shadow: 0 0 60px rgba(255, 190, 90, 0.35); }

/* ayuda */
.ayuda-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.ayuda-cols ul { margin: 0; padding-left: 16px; font-size: clamp(12px, 3.3vh, 14px); line-height: 1.3; color: rgba(246, 234, 210, 0.9); }
.ayuda-cols li { margin-bottom: 2px; }
.ayuda-cols h3 { font-size: clamp(12px, 3.4vh, 15px); margin: 2px 0 3px; }
#ayuda .panel { padding: 12px 20px 14px; gap: 6px; }
.panel { touch-action: pan-y; overscroll-behavior: contain; }
.ayuda-cols b { color: var(--oro-claro); }

/* girar el teléfono */
#girar { position: fixed; inset: 0; z-index: 80; background: #140a06; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--oro-claro); text-align: center; }
#girar svg { width: 72px; height: 72px; animation: girar 2.4s ease-in-out infinite; }
#girar p { font-family: 'Cinzel', serif; font-weight: 800; font-size: 18px; margin: 0; padding: 0 30px; }
@keyframes girar { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

.guia-ios { position: absolute; left: calc(6vw + var(--si)); bottom: calc(5vh + var(--sb)); margin: 0; font-size: 13px; color: rgba(246, 234, 210, 0.85); background: rgba(20, 8, 4, 0.6); border: 1px solid var(--borde); border-radius: 10px; padding: 7px 12px; max-width: 60vw; }
.guia-ios b { color: var(--oro-claro); }

@media (prefers-reduced-motion: reduce) {
  #titulo .fondo-pantalla, .arena-titulo, .empezar { animation: none; }
}
