/* EntrenaMENTE Arena · Demo pública (v52.9). Reutiliza los tokens y piezas de arena.css (misma composición que
   la Arena del estudiante) y añade solo lo propio de la demo: portada, sala, minuto de juego y resultados. Mobile-first. */

body.dm { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.dm-top { justify-content: space-between; }
.dm-top-der { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dm-chip { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 900; font-size: 13px; border: 1px solid rgba(255, 226, 122, .45); }
.dm-icono { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff !important; font: inherit; font-weight: 900; font-size: 18px; cursor: pointer; text-decoration: none; }
.dm-icono:hover { background: rgba(255, 255, 255, .2); }
.dm-login { font-size: 14px; background: var(--g-gold-grad); color: var(--g-navy) !important; border-color: transparent; box-shadow: 0 3px 0 var(--g-gold-d); }
.dm-main { max-width: 1120px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 28px) 60px; padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
.dm-vista[hidden], .dm-main [hidden] { display: none !important; }

/* ------------------------------------------------------------------ portada */
.dm-hero { min-height: 340px; margin-bottom: 16px; }
.dm-hero-av .ga-avatar { animation: dm-entra .6s cubic-bezier(.2, 1.4, .4, 1); }
.dm-kick { flex-wrap: wrap; }
.dm-hero h1 { font-size: clamp(28px, 4.6vw, 48px); }
.dm-lead { color: #e4ecff; font-size: clamp(15px, 1.6vw, 18px); margin: 0 0 6px; }
.dm-lead b { color: var(--g-gold2); }
.dm-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dm-grid > .ar-card { margin-bottom: 0; }
.dm-form h2, .dm-modos-card h2, .dm-explica h2 { font-size: 20px; }
.dm-label { display: block; margin: 6px 0 6px; font-weight: 900; color: var(--g-ink2); font-size: 14px; }
.dm-input { font-size: 18px; min-height: 52px; }
.dm-nota { color: var(--g-muted); font-size: 13px; margin: 4px 0 10px; }
.dm-avs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.dm-av { display: grid; place-items: center; padding: 6px; min-height: 76px; border-radius: 16px; border: 2px solid var(--g-line); background: var(--g-soft); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.dm-av:hover { transform: translateY(-2px); border-color: #a9c2f7; }
.dm-av.on { border-color: var(--g-gold); background: #fff6d6; box-shadow: 0 0 0 3px rgba(255, 194, 26, .35), 0 6px 14px rgba(209, 143, 0, .25); transform: scale(1.05); }
.dm-av .ga-avatar { --s: 56px; pointer-events: none; }
.dm-modos { display: grid; gap: 12px; }
.dm-modo { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 12px 16px; border-radius: 20px; border: 0; cursor: pointer; text-align: left; font: inherit; color: #fff;
  background: var(--g-navy-grad); box-shadow: 0 5px 0 #08113a, 0 12px 24px rgba(11, 24, 70, .22); transition: transform .12s, filter .12s; }
.dm-modo:hover { filter: brightness(1.1); transform: translateY(-2px); }
.dm-modo:active { transform: translateY(4px); box-shadow: 0 1px 0 #08113a; }
.dm-modo.oro { background: var(--g-gold-grad); color: var(--g-navy); box-shadow: 0 5px 0 var(--g-gold-d), 0 12px 24px rgba(209, 143, 0, .3); }
.dm-modo .gi { width: 52px; height: 52px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.dm-modo span { display: flex; flex-direction: column; min-width: 0; }
.dm-modo b { font-size: 19px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.dm-modo small { font-size: 13px; opacity: .88; font-weight: 800; }
.dm-modo.cargando { opacity: .7; pointer-events: none; }
.dm-modo:disabled { cursor: wait; }
.dm-pulso { animation: dm-pulso 1.3s ease-in-out infinite; }
.dm-explica { margin-top: 16px; }
.dm-explica p { color: var(--g-ink2); }
.dm-dims { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.dm-dims span { padding: 6px 12px; border-radius: 999px; background: #edf3ff; color: var(--g-royal-d); font-size: 13px; font-weight: 900; border: 1px solid #c9dcff; cursor: help; }

/* ------------------------------------------------------------------ sala de espera */
.dm-sala { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(18px, 3vw, 30px); }
.dm-sala h1 { font-size: clamp(24px, 3.6vw, 34px); }
.dm-sala-jug { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 16px 0 20px; }
.dm-jug { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 128px; padding: 12px 8px; border-radius: 20px; background: var(--g-soft); border: 2px solid var(--g-line); animation: dm-entra .45s cubic-bezier(.2, 1.4, .4, 1); }
.dm-jug.yo { border-color: var(--g-gold); background: #fff8df; }
.dm-jug .ga-avatar { --s: 84px; }
.dm-jug b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.dm-jug small { color: var(--g-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.dm-jug.vacio { border-style: dashed; background: #fff; }
.dm-hueco { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--g-line); color: var(--g-muted); font-size: 38px; font-weight: 900; animation: dm-late 1.4s ease-in-out infinite; }
.dm-vs { display: grid; place-items: center; animation: dm-vs 1.6s ease-in-out infinite; }
.dm-vs img { width: 70px; height: 70px; filter: drop-shadow(0 6px 10px rgba(11, 24, 70, .3)); }
.dm-compartir { padding: 14px; border-radius: 18px; background: #f4f7fe; border: 1px solid var(--g-line); margin-bottom: 16px; text-align: left; }
.dm-compartir p { margin: 0 0 10px; color: var(--g-ink2); }
.dm-link { display: flex; gap: 8px; align-items: center; }
.dm-link .ar-input { margin: 0; font-size: 14px; min-width: 0; }
.dm-share-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.ar-btn.dm-wa { --b: #25d366; --bd: #128c4b; --t: #fff; background: #25d366; color: #fff !important; text-decoration: none; }
.ar-btn.dm-wa::before { content: ''; width: 22px; height: 22px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2c0 1.3.9 2.6 1.1 2.8.1.2 1.9 2.9 4.6 4 1.7.7 2.4.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E"); }
.dm-sala .ar-btn.mega { margin-top: 4px; }
.dm-espera { color: var(--g-muted); margin: 12px 0 0; }

/* ------------------------------------------------------------------ juego */
.dm-juego { max-width: 860px; margin: 0 auto; position: relative; }
.dm-cuenta { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(circle, rgba(20, 42, 120, .82), rgba(11, 24, 70, .96)); }
.dm-cuenta b { font-size: clamp(110px, 30vw, 220px); font-weight: 900; color: var(--g-gold); text-shadow: 0 8px 0 var(--g-gold-d), 0 20px 40px rgba(0, 0, 0, .45); line-height: 1; }
.dm-cuenta b.pop { animation: dm-cuenta .8s cubic-bezier(.2, 1.4, .4, 1); }
.dm-hud { position: sticky; top: calc(var(--ar-top) + 6px); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 12px; border-radius: 22px; background: var(--g-navy-grad); color: #fff; box-shadow: 0 3px 0 rgba(255, 194, 26, .6), var(--g-sh-hi); }
.dm-reloj { position: relative; flex: none; width: 72px; height: 72px; }
.dm-reloj svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dm-reloj circle { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 5; }
.dm-reloj circle.v { stroke: var(--g-gold); stroke-linecap: round; transition: stroke .3s; }
.dm-reloj b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dm-reloj.urgente circle.v { stroke: #ff5a6e; }
.dm-reloj.urgente b { color: #ff8a98; animation: dm-latido .5s ease-in-out infinite; }
.dm-hud-st { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.dm-hud-st span { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 2px; border-radius: 14px; background: rgba(255, 255, 255, .1); min-width: 0; position: relative; }
.dm-hud-st .gi { position: absolute; top: -8px; left: 4px; width: 20px; height: 20px; }
.dm-hud-st b { font-size: 22px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dm-hud-st small { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.dm-hud-st .err b { color: #ff8a98; }
.dm-hud-st .pts { background: var(--g-gold-grad); color: var(--g-navy); }
.dm-marcador { list-style: none; display: flex; gap: 8px; margin: 0 0 12px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.dm-marcador li { flex: none; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--g-line); box-shadow: var(--g-sh); font-size: 13px; }
.dm-marcador li.yo { border-color: var(--g-gold); background: #fff6d6; }
.dm-marcador .p { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--g-navy); color: #fff; font-size: 12px; font-weight: 900; }
.dm-marcador li:first-child .p { background: var(--g-gold-grad); color: var(--g-navy); }
.dm-marcador .ga-avatar { --s: 28px; }
.dm-marcador b { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-marcador em { font-style: normal; font-weight: 900; color: var(--g-royal); }
.dm-preg { padding: clamp(14px, 2.6vw, 24px); min-height: 300px; }
.dm-preg.entra { animation: dm-desliza .16s cubic-bezier(.2, .9, .3, 1); }
.dm-q-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.dm-q-meta span { padding: 4px 10px; border-radius: 999px; background: var(--g-soft); color: var(--g-ink2); font-size: 12px; font-weight: 900; }
.dm-q-meta span:first-child { background: var(--g-navy); color: #fff; }
.dm-q-meta .dim { background: #f0ebff; color: #5536c9; }
.dm-estimulo { max-height: 34vh; font-size: 15px; }
.dm-img { max-height: 240px; }
.dm-q { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.3; margin: 6px 0 14px; }
.dm-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-op { --c: var(--g-royal); --cd: var(--g-royal-d); display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; font-weight: 800; font-size: 16px; line-height: 1.25;
  color: #fff; background: var(--c); box-shadow: 0 5px 0 var(--cd); transition: transform .08s, filter .12s, opacity .2s; touch-action: manipulation; }
.dm-op:nth-child(2) { --c: #e2364b; --cd: #ac2234; }
.dm-op:nth-child(3) { --c: #e09a00; --cd: #a56f00; }
.dm-op:nth-child(4) { --c: #1fa95b; --cd: #16804a; }
.dm-op kbd { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .22); font: inherit; font-weight: 900; font-size: 17px; }
.dm-op span { min-width: 0; overflow-wrap: anywhere; }
.dm-op:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-2px); }
.dm-op:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd); }
.dm-op:disabled { cursor: default; opacity: .45; }
.dm-op.sel { opacity: 1; outline: 4px solid #fff; outline-offset: -4px; }
.dm-op.bien { opacity: 1; --c: var(--g-ok); --cd: #0f6b39; animation: dm-pop .3s; }
.dm-op.mal { opacity: 1; --c: #8d1f2e; --cd: #5c111c; animation: dm-tiembla .35s; }
.dm-op.bien kbd::after { content: '✓'; } .dm-op.mal kbd::after { content: '✗'; }
.dm-op.bien kbd, .dm-op.mal kbd { font-size: 0; } .dm-op.bien kbd::after, .dm-op.mal kbd::after { font-size: 22px; }
.dm-flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; }
.dm-flash.bien { background: radial-gradient(circle, rgba(31, 169, 91, 0) 40%, rgba(31, 169, 91, .45)); }
.dm-flash.mal { background: radial-gradient(circle, rgba(226, 54, 75, 0) 40%, rgba(226, 54, 75, .45)); }
.dm-flash.on { animation: dm-flash .3s ease-out; }
.dm-racha { position: fixed; z-index: 70; left: 50%; top: 38%; display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--g-gold-grad); color: var(--g-navy); font-weight: 900; font-size: 22px; box-shadow: 0 6px 0 var(--g-gold-d), 0 16px 30px rgba(0, 0, 0, .25); pointer-events: none; animation: dm-racha .9s ease-out forwards; }
.dm-sin { text-align: center; padding: 40px 10px; }

/* ------------------------------------------------------------------ resultados */
.dm-esperando { text-align: center; padding: 60px 10px; }
.dm-esperando h2 { font-size: 40px; margin-top: 14px; }
.dm-fin-top { position: relative; text-align: center; padding: 26px 18px; margin-bottom: 16px; border-radius: 28px; background: var(--g-navy-grad); color: #fff; overflow: hidden; box-shadow: var(--g-sh-hi); }
.dm-fin-top::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255, 226, 122, .12) 20deg 40deg, transparent 40deg 60deg, rgba(255, 226, 122, .12) 60deg 80deg, transparent 80deg 100deg, rgba(255, 226, 122, .12) 100deg 120deg, transparent 120deg); animation: dm-gira 18s linear infinite; z-index: 0; }
.dm-fin-top > * { position: relative; z-index: 1; }
.dm-fin-top img { width: 110px; height: 110px; animation: dm-entra .7s cubic-bezier(.2, 1.4, .4, 1); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.dm-fin-top .kick { color: var(--g-gold2) !important; }
body.arena .dm-fin-top h1 { color: #fff; font-size: clamp(34px, 6vw, 56px); margin: 4px 0; }
body.arena .dm-fin-top.gano h1 { color: var(--g-gold); text-shadow: 0 4px 0 var(--g-gold-d); }
.dm-rank ol { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.dm-rank li { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; grid-template-areas: 'p a n e' 'p a s e'; align-items: center; column-gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--g-soft); border: 1px solid var(--g-line); }
.dm-rank li:first-child { background: linear-gradient(90deg, #fff4cc, #fff); border-color: #ffd977; }
.dm-rank li.yo { box-shadow: 0 0 0 3px rgba(31, 87, 224, .3); }
.dm-rank .pos { grid-area: p; font-size: 18px; font-weight: 900; text-align: center; }
.dm-rank .pos img { width: 34px; height: 34px; }
.dm-rank .ga-avatar { grid-area: a; --s: 48px; }
.dm-rank b { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-rk-st { grid-area: s; color: var(--g-muted); font-size: 13px; }
.dm-rank em { grid-area: e; font-style: normal; font-weight: 900; font-size: 18px; color: var(--g-royal); }
.dm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.dm-tiles div { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 16px; background: var(--g-soft); border: 1px solid var(--g-line); }
.dm-tiles b { font-size: 28px; font-weight: 900; line-height: 1.1; }
.dm-tiles small { color: var(--g-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.dm-tiles .ok { background: var(--g-ok-bg); border-color: #bfe9cf; } .dm-tiles .ok b { color: var(--g-ok); }
.dm-tiles .no { background: var(--g-no-bg); border-color: #f7c3cb; } .dm-tiles .no b { color: var(--g-no); }
.dm-dimbar { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.dm-dimbar li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.dm-dimbar span:first-child { display: flex; flex-direction: column; min-width: 0; }
.dm-dimbar small { color: var(--g-muted); font-size: 12px; font-weight: 700; }
.dm-dimbar em { font-style: normal; font-weight: 900; }
.dm-barra { display: block; height: 12px; border-radius: 8px; background: var(--g-line); overflow: hidden; }
.dm-barra i { display: block; height: 100%; border-radius: 8px; animation: dm-barra 1s cubic-bezier(.2, .8, .2, 1); }
.dm-comps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.dm-comps small { color: var(--g-muted); }
.dm-rivales { display: grid; gap: 12px; }
.dm-rival { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px; background: var(--g-soft); border: 1px solid var(--g-line); }
.dm-rival .ga-avatar { --s: 64px; }
.dm-rival > div { min-width: 0; }
.dm-rival small { display: block; color: var(--g-muted); }
.dm-rival .mejor { margin: 6px 0; padding-left: 18px; color: var(--g-ink2); }
.dm-rival .tu { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--g-ok-bg); color: #156b3c; font-weight: 800; }
.dm-err { border: 1px solid var(--g-line); border-radius: 16px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.dm-err summary { cursor: pointer; padding: 12px 14px; font-weight: 800; list-style: none; display: flex; gap: 8px; align-items: baseline; min-height: 44px; }
.dm-err summary::-webkit-details-marker { display: none; }
.dm-err summary::after { content: '▾'; margin-left: auto; color: var(--g-muted); transition: transform .2s; }
.dm-err[open] summary::after { transform: rotate(180deg); }
.dm-err summary span { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--g-no-bg); color: var(--g-no); font-size: 12px; font-weight: 900; }
.dm-err > div { padding: 0 14px 12px; }
.dm-err p { margin: 8px 0; }
.dm-err .mal { padding: 8px 12px; border-radius: 12px; background: var(--g-no-bg); color: #9b1c2e; }
.dm-err .bien { padding: 8px 12px; border-radius: 12px; background: var(--g-ok-bg); color: #156b3c; }
.dm-err .rev { padding: 8px 12px; border-radius: 12px; background: #fff6e0; color: #7a4f00; }
.dm-est { padding: 10px 12px; border-left: 4px solid var(--g-royal); background: var(--g-soft); border-radius: 10px; font-size: 14px; color: var(--g-ink2); max-height: 200px; overflow: auto; }
.dm-cneb { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-cneb span { padding: 4px 10px; border-radius: 999px; background: #edf3ff; color: var(--g-royal-d); font-size: 12px; font-weight: 900; }
.dm-ade { background: linear-gradient(160deg, #fffaf0, #fff 55%); border: 2px solid #ffd977; text-align: center; }
.dm-ade h2 { font-size: clamp(22px, 3vw, 30px); }
.dm-ade p { color: var(--g-ink2); max-width: 760px; margin-left: auto; margin-right: auto; }
.dm-ade-l { list-style: none; padding: 0; margin: 12px auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 760px; text-align: left; }
.dm-ade-l li { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--g-line); font-weight: 800; }
.ar-btn.dm-cta { white-space: normal; line-height: 1.2; text-decoration: none; margin-top: 8px; animation: dm-parpadea 1.1s ease-in-out infinite; }
.dm-fin-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dm-fin-btns .ar-btn { text-decoration: none; color: #fff; }
.dm-conf { position: fixed; z-index: 90; top: -20px; width: 10px; height: 16px; border-radius: 3px; pointer-events: none; animation: dm-cae 3s cubic-bezier(.3, .6, .6, 1) forwards; }

/* ------------------------------------------------------------------ animaciones */
@keyframes dm-pulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); box-shadow: 0 6px 0 var(--g-gold-d), 0 0 0 10px rgba(255, 194, 26, .25), 0 12px 26px rgba(209, 143, 0, .35); } }
@keyframes dm-parpadea { 0%, 100% { transform: scale(1); filter: brightness(1); box-shadow: 0 6px 0 var(--g-gold-d), 0 0 0 0 rgba(255, 194, 26, .7); } 50% { transform: scale(1.03); filter: brightness(1.15); box-shadow: 0 6px 0 var(--g-gold-d), 0 0 0 14px rgba(255, 194, 26, 0); } }
@keyframes dm-entra { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dm-late { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes dm-vs { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.12) rotate(4deg); } }
@keyframes dm-cuenta { 0% { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
@keyframes dm-latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes dm-desliza { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dm-pop { 50% { transform: scale(1.05); } }
@keyframes dm-tiembla { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes dm-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dm-racha { 0% { transform: translate(-50%, 20px) scale(.6); opacity: 0; } 25% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -40px) scale(1); opacity: 0; } }
@keyframes dm-gira { to { transform: rotate(360deg); } }
@keyframes dm-barra { from { width: 0; } }
@keyframes dm-cae { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: .8; } }

/* ------------------------------------------------------------------ v53.1 · matrículas siempre a mano */
.dm-top-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--g-gold-grad); color: var(--g-navy) !important; text-decoration: none; font-weight: 900; font-size: 13px; white-space: nowrap; box-shadow: 0 3px 0 var(--g-gold-d); animation: dm-brillo 2s ease-in-out infinite; }
.dm-top-cta b { font-weight: 900; }
.dm-cta-flot { position: fixed; z-index: 50; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 12px 22px; border-radius: 999px;
  background: var(--g-gold-grad); color: var(--g-navy) !important; font-weight: 900; font-size: 16px; text-decoration: none; white-space: nowrap; box-shadow: 0 5px 0 var(--g-gold-d), 0 14px 30px rgba(11, 24, 70, .35); animation: dm-flota 1.6s ease-in-out infinite; }
/* flotante solo en el resultado (en la portada, la sala y el juego vive en la barra superior: nunca tapa un botón) */
.dm-cta-flot { display: none; }
body[data-vista="final"] .dm-cta-flot { display: inline-flex; }
body:has(dialog[open]) .dm-cta-flot { display: none; }
.dm-main { padding-bottom: 96px !important; }

/* ------------------------------------------------------------------ v53.1 · final compacto con Jesús */
.dm-fin-top { padding: 20px 16px 18px; }
.dm-fin-top img { width: 84px; height: 84px; }
.dm-fin-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.dm-fin-chips span { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); animation: dm-entra .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.dm-fin-chips span:nth-child(2) { animation-delay: .06s; } .dm-fin-chips span:nth-child(3) { animation-delay: .12s; } .dm-fin-chips span:nth-child(4) { animation-delay: .18s; } .dm-fin-chips span:nth-child(5) { animation-delay: .24s; }
.dm-fin-chips b { font-size: 24px; font-weight: 900; line-height: 1.1; color: #fff; }
.dm-fin-chips small { font-size: 11px; color: #c9d6f5; text-transform: uppercase; letter-spacing: .05em; }
.dm-fin-chips .ok b { color: #7dffb0; } .dm-fin-chips .no b { color: #ff9aa8; }
.dm-jesus { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; margin: 0 0 16px; padding: 16px 16px 0; border-radius: 26px; background: linear-gradient(160deg, #fff9e6, #fff 60%); border: 2px solid #ffd977; box-shadow: var(--g-sh); overflow: hidden; }
.dm-jesus-img { width: 180px; height: auto; align-self: end; animation: dm-sube .5s cubic-bezier(.2, 1.3, .4, 1) both, dm-flota2 4s ease-in-out .6s infinite; filter: drop-shadow(0 8px 12px rgba(11, 24, 70, .2)); }
.dm-jesus-der { padding-bottom: 16px; min-width: 0; }
.dm-bocadillo { position: relative; margin: 0 0 12px; padding: 12px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--g-line); color: var(--g-ink); font-weight: 800; font-size: 16px; box-shadow: var(--g-sh); animation: dm-entra .4s .25s cubic-bezier(.2, 1.3, .4, 1) both; }
.dm-bocadillo::before { content: ''; position: absolute; left: -11px; bottom: 16px; border: 10px solid transparent; border-right-color: var(--g-line); border-left: 0; }
.dm-jesus-btns { display: grid; gap: 10px; }
.dm-jb { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; color: #fff; background: var(--g-navy-grad); box-shadow: 0 5px 0 #08113a; transition: transform .12s, filter .12s; animation: dm-entra .4s cubic-bezier(.2, 1.3, .4, 1) both; }
.dm-jb:nth-child(1) { animation-delay: .35s; } .dm-jb:nth-child(2) { animation-delay: .45s; } .dm-jb:nth-child(3) { animation-delay: .55s; }
.dm-jb:hover { transform: translateY(-2px); filter: brightness(1.1); }
.dm-jb:active { transform: translateY(4px); box-shadow: 0 1px 0 #08113a; }
.dm-jb.fb { background: linear-gradient(135deg, #b8263a, #e2364b); box-shadow: 0 5px 0 #7a1524; }
.dm-jb.ade { background: var(--g-gold-grad); color: var(--g-navy); box-shadow: 0 5px 0 var(--g-gold-d); }
.dm-jb .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.dm-jb .ic img { width: 40px; height: 40px; object-fit: contain; }
.dm-jb.ade .ic { background: #fff; } .dm-jb.ade .ic img { width: 46px; height: 46px; object-fit: cover; object-position: top; }
.dm-jb > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dm-jb b { font-size: 16px; font-weight: 900; line-height: 1.2; }
.dm-jb small { font-size: 12px; opacity: .9; font-weight: 800; }

/* ventana (pop-up) */
.dm-pop { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 26px; background: transparent; overflow: visible; }
.dm-pop::backdrop { background: rgba(11, 24, 70, .62); backdrop-filter: blur(3px); }
.dm-pop[open] { animation: dm-pop-in .28s cubic-bezier(.2, 1.2, .4, 1); }
.dm-pop-in { position: relative; max-height: calc(100dvh - 24px); overflow: auto; padding: 22px 20px 16px; border-radius: 26px; background: #fff; box-shadow: 0 30px 60px rgba(11, 24, 70, .4); overscroll-behavior: contain; }
.dm-pop-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--g-soft); color: var(--g-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.dm-pop h2 { font-size: clamp(22px, 3.4vw, 28px); padding-right: 44px; margin-bottom: 10px; }
.dm-pop .kick { padding-right: 44px; }
.dm-pop-pie { position: sticky; bottom: -16px; margin: 14px -20px -16px; padding: 12px 20px 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 30%); }
.dm-pop-pie .dm-cta { margin: 0; }
.dm-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.dm-tabs button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--g-line); background: #fff; color: var(--g-ink2); font: inherit; font-weight: 900; font-size: 14px; cursor: pointer; }
.dm-tabs button[aria-selected="true"] { background: var(--g-navy); border-color: var(--g-navy); color: #fff; }
.dm-car-slide { min-height: 180px; }
.dm-car-slide.entra { animation: dm-desliza .22s cubic-bezier(.2, .9, .3, 1); }
.dm-car-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.dm-car-nav > span { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.dm-car-nav small { color: var(--g-muted); font-size: 12px; }
.dm-car-puntos { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 220px; }
.dm-car-puntos i { width: 8px; height: 8px; border-radius: 50%; background: var(--g-line); transition: width .2s, background .2s; }
.dm-car-barra { display: block; width: 160px; height: 8px; border-radius: 6px; background: var(--g-line); overflow: hidden; }
.dm-car-barra i { display: block; height: 100%; background: var(--g-gold); transition: width .2s; }
.dm-car-puntos i.on { width: 22px; border-radius: 6px; background: var(--g-gold); }
.dm-car-nav .ar-btn { min-width: 64px; }
.dm-err-c h3 { font-size: 18px; margin: 6px 0 10px; }
.dm-err-c p { margin: 8px 0; }
.dm-err-n { color: var(--g-muted); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.dm-err-n span { color: #5536c9; text-transform: none; letter-spacing: 0; }
.dm-err-c .mal { padding: 10px 12px; border-radius: 12px; background: var(--g-no-bg); color: #9b1c2e; }
.dm-err-c .bien { padding: 10px 12px; border-radius: 12px; background: var(--g-ok-bg); color: #156b3c; }
.dm-err-c .rev { padding: 10px 12px; border-radius: 12px; background: #fff6e0; color: #7a4f00; }
.dm-err-c .idea { color: var(--g-ink2); }
.dm-est-d { margin: 4px 0; border-radius: 12px; background: var(--g-soft); padding: 8px 12px; }
.dm-est-d summary { cursor: pointer; font-weight: 900; color: var(--g-royal); min-height: 32px; }
.dm-est-d p { max-height: 30vh; overflow: auto; color: var(--g-ink2); font-size: 14px; }
.dm-vacio { text-align: center; padding: 10px; }
.dm-slide { text-align: center; padding: 6px 8px; }
.dm-slide img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(11, 24, 70, .2)); animation: dm-entra .45s cubic-bezier(.2, 1.4, .4, 1); }
.dm-slide h3 { font-size: 21px; margin: 8px 0 6px; }
.dm-slide p { color: var(--g-ink2); font-size: 16px; max-width: 520px; margin: 0 auto; }
.dm-guia-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: end; min-height: 200px; }
.dm-guia-in img { width: 160px; height: auto; animation: dm-sube .4s cubic-bezier(.2, 1.3, .4, 1); filter: drop-shadow(0 8px 12px rgba(11, 24, 70, .2)); }
.dm-bocadillo.grande { font-size: 18px; min-height: 110px; align-self: center; cursor: pointer; animation: none; }
.dm-guia .dm-cta { margin-top: 12px; }
@keyframes dm-brillo { 0%, 100% { box-shadow: 0 3px 0 var(--g-gold-d), 0 0 0 0 rgba(255, 194, 26, .6); } 50% { box-shadow: 0 3px 0 var(--g-gold-d), 0 0 0 7px rgba(255, 194, 26, 0); } }
@keyframes dm-flota { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
@keyframes dm-flota2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dm-sube { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dm-pop-in { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) {
  .dm-top .ar-brand span { display: none; }
  .dm-top-cta { padding: 0 10px; font-size: 12px; min-height: 38px; }
  .dm-top-der { gap: 6px; }
  .dm-icono { min-width: 40px; min-height: 40px; padding: 0 8px; font-size: 16px; }
  .dm-login { font-size: 12px; }
  .dm-cta-flot { font-size: 15px; padding: 11px 18px; }
  .dm-jesus { grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: 'img bub' 'btns btns'; gap: 10px; padding: 12px 12px 14px; align-items: end; }
  .dm-jesus-der { display: contents; }
  .dm-jesus-img { grid-area: img; width: 92px; }
  .dm-jesus .dm-bocadillo { grid-area: bub; margin: 0 0 8px; font-size: 15px; }
  .dm-jesus-btns { grid-area: btns; }
  .dm-bocadillo::before { left: -11px; bottom: 14px; }
  .dm-jb b { font-size: 15px; }
  .dm-fin-chips span { min-width: 64px; padding: 6px 8px; }
  .dm-fin-chips b { font-size: 20px; }
  .dm-pop { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dm-pop-in { max-height: 92dvh; border-radius: 24px 24px 0 0; padding: 18px 14px 14px; }
  .dm-pop-pie { margin: 12px -14px -14px; padding: 10px 14px 14px; }
  .dm-guia-in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .dm-guia-in img { width: 110px; order: 2; }
  .dm-bocadillo.grande { font-size: 16px; min-height: 96px; }
  .dm-slide img { width: 96px; height: 96px; }
}
@media (max-width: 380px) { .dm-top-cta b { font-size: 11px; } .dm-login { padding: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .dm-top-cta, .dm-cta-flot, .dm-jesus-img, .dm-pop[open], .dm-jb, .dm-bocadillo, .dm-fin-chips span { animation: none !important; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .dm-grid { grid-template-columns: minmax(0, 1fr); }
  .dm-hero { min-height: 0; }
}
@media (max-width: 600px) {
  .dm-main { padding: 12px 12px 50px; }
  .dm-chip { display: none !important; }
  .dm-hero h1 { font-size: 28px; }
  .dm-ops { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dm-op { min-height: 54px; font-size: 15px; padding: 10px 12px; }
  .dm-hud { gap: 8px; padding: 8px; border-radius: 18px; }
  .dm-reloj { width: 58px; height: 58px; }
  .dm-reloj b { font-size: 21px; }
  .dm-hud-st b { font-size: 18px; }
  .dm-hud-st small { font-size: 9px; letter-spacing: 0; }
  .dm-hud-st .gi { display: none; }
  .dm-preg { min-height: 0; }
  .dm-estimulo { max-height: 28vh; font-size: 14px; }
  .dm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-tiles b { font-size: 24px; }
  .dm-dimbar li { grid-template-columns: minmax(0, 1fr) auto; }
  .dm-dimbar .dm-barra { grid-column: 1 / -1; grid-row: 2; }
  .dm-ade-l, .dm-fin-btns { grid-template-columns: minmax(0, 1fr); }
  .dm-rank li { grid-template-columns: 34px auto minmax(0, 1fr) auto; padding: 8px; column-gap: 8px; }
  .dm-rank .ga-avatar { --s: 40px; }
  .dm-jug { width: 112px; }
  .dm-jug .ga-avatar, .dm-hueco { --s: 70px; width: 70px; height: 70px; }
  .dm-vs img { width: 52px; height: 52px; }
  .dm-link { flex-direction: column; align-items: stretch; }
  .dm-modo { min-height: 74px; }
  .dm-modo b { font-size: 16px; }
}
@media (max-width: 380px) {
  .dm-avs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dm-av .ga-avatar { --s: 48px; }
  .dm-av { min-height: 64px; padding: 4px; }
  .dm-login { font-size: 13px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-pulso, .dm-cta, .dm-vs, .dm-hueco, .dm-fin-top::before, .dm-reloj.urgente b, .dm-conf { animation: none !important; }
  .dm-preg.entra, .dm-op.bien, .dm-op.mal, .dm-cuenta b.pop, .dm-racha { animation-duration: .01s !important; }
}
