/* Escapaencasa — pistas y flujo del jugador. Misma paleta/tipos que la tienda (cream + navy + gold, bordes finos, sin marcos pesados). */
.eec-pistas,
.eec-jugador-wrap {
	--eec-bg: #F5F0E6;
	--eec-bg-alt: #F2EDE0;
	--eec-surface: #FBF8F1;
	--eec-surface-2: #F3EEDD;
	--eec-border: rgba(180,163,120,.35);
	--eec-text: #333333;
	--eec-text-muted: #767065;
	--eec-radius-s: 5px;
	--eec-radius-m: 7px;
	--eec-radius-l: 10px;
	--eec-shadow: none;
	--eec-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--eec-font-hero: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
	--eec-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--eec-font-mono: 'SF Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
}
/* --eec-accent / --eec-accent2 / --eec-critical se inyectan desde Ajustes (EEC_Admin::inline_css). Valores por defecto: */
:root {
	--eec-accent: #1E3D48;
	--eec-accent2: #F5C240;
	--eec-critical: #D43F60;
}
.eec-pistas,
.eec-jugador-wrap {
	--eec-accent-ink: #FFFFFF;
	--eec-accent2-ink: #333333;
	--eec-accent-soft: color-mix(in srgb, var(--eec-accent) 10%, var(--eec-surface));
	--eec-accent2-soft: color-mix(in srgb, var(--eec-accent2) 22%, var(--eec-surface));
	--eec-critical-soft: color-mix(in srgb, var(--eec-critical) 12%, var(--eec-surface));
}

.eec-pistas *, .eec-jugador-wrap * { box-sizing: border-box; }
.eec-pistas { font-family: var(--eec-font-body); color: var(--eec-text); max-width: 1000px; margin: 0 auto; }
.eec-card { background: var(--eec-surface); border: 1px solid var(--eec-border); border-radius: var(--eec-radius-m); box-shadow: var(--eec-shadow); }

.eec-pistas-intro { margin: 0 0 26px; }
.eec-pistas-intro h1 { font-family: var(--eec-font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; text-wrap: balance; }
.eec-pistas-intro p { margin: 0; color: var(--eec-text-muted); font-size: 1rem; max-width: 62ch; }

.eec-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.eec-enigma { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.eec-enigma-title { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.eec-enigma-title h3 { font-family: var(--eec-font-display); font-weight: 700; font-size: 1.15rem; margin: 0; color: var(--eec-text); text-wrap: balance; }
.eec-enigma-num { font-family: var(--eec-font-mono); font-size: .75rem; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--eec-accent2-soft); color: var(--eec-accent2-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }

.eec-enigma-image { border: none; border-radius: var(--eec-radius-s); overflow: hidden; cursor: zoom-in; position: relative; background: var(--eec-bg-alt); }
.eec-enigma-image img { display: block; width: 100%; height: auto; }
.eec-enigma-image::after { content: "Toca para ampliar"; position: absolute; right: 6px; bottom: 6px; font-family: var(--eec-font-mono); font-size: .62rem; background: rgba(30,25,10,.6); color: #fff; padding: 2px 6px; border-radius: 4px; }

.eec-pista { border-top: 1px solid var(--eec-border); }
.eec-pista:first-of-type { border-top: none; }
.eec-pista summary { list-style: none; cursor: pointer; padding: 9px 2px; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .9rem; color: var(--eec-text); }
.eec-pista summary::-webkit-details-marker { display: none; }
.eec-pista summary::before { content: "+"; font-family: var(--eec-font-mono); color: var(--eec-accent); width: 14px; text-align: center; }
.eec-pista[open] summary::before { content: "\2013"; }
.eec-pista p { margin: 0 0 10px 23px; color: var(--eec-text-muted); font-size: .93rem; }

.eec-solucion { margin-top: 6px; border-radius: var(--eec-radius-s); background: var(--eec-surface-2); border: 1px dashed var(--eec-border); padding: 10px 12px; }
.eec-solucion-toggle { background: none; border: none; color: var(--eec-critical); font-weight: 700; font-size: .8rem; cursor: pointer; padding: 0; font-family: var(--eec-font-mono); text-transform: uppercase; letter-spacing: .03em; }
.eec-solucion-body { margin-top: 8px; font-size: .9rem; color: var(--eec-text); display: none; }
.eec-solucion-body p { margin: 0 0 10px; white-space: pre-line; }
.eec-solucion-body .eec-solucion-imagen { margin-top: 8px; max-width: 320px; }
.eec-solucion.is-open .eec-solucion-body { display: block; }
.eec-solucion.is-open .eec-solucion-toggle { color: var(--eec-text-muted); }

.eec-final-code { margin-top: 24px; padding: 20px; text-align: center; }
.eec-label { font-family: var(--eec-font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--eec-text-muted); }
.eec-formula { font-family: var(--eec-font-mono); font-size: 1.05rem; margin: 8px 0; color: var(--eec-text); }
.eec-answer { font-family: var(--eec-font-hero); font-size: 2.1rem; letter-spacing: .03em; color: var(--eec-accent); }

.eec-lightbox { position: fixed; inset: 0; background: rgba(30,25,10,.75); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.eec-lightbox.is-open { display: flex; }
.eec-lightbox-inner { position: relative; max-width: min(640px, 92vw); max-height: 88vh; background: var(--eec-surface); border-radius: var(--eec-radius-m); padding: 14px; box-shadow: 0 10px 30px -10px rgba(30,25,10,.35); }
.eec-lightbox-inner img { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; border-radius: var(--eec-radius-s); }
.eec-lightbox-close { position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--eec-border); background: var(--eec-surface); color: var(--eec-text); cursor: pointer; }

/* página de pistas: pistas en orden (la siguiente se desbloquea al abrir la anterior) y toques grandes en móvil */
.eec-pista.is-locked summary { opacity: .45; cursor: not-allowed; }
.eec-pista.is-locked summary::before { content: "\1F512"; font-size: .75rem; }
.eec-solucion-toggle.is-armado { color: #fff; background: var(--eec-critical); padding: 6px 10px; border-radius: 6px; }
@media (max-width: 600px) {
	.eec-case-grid { grid-template-columns: 1fr; gap: 14px; }
	.eec-pista summary { min-height: 48px; font-size: 1rem; }
	.eec-pista p { font-size: 1.02rem; margin-left: 23px; line-height: 1.55; }
	.eec-solucion-toggle { min-height: 44px; font-size: .9rem; }
}

/* ================= flujo del jugador — "modo app" =================
   Escritorio: tarjeta centrada dentro de la página.
   Móvil (≤782px): al elegir juego ocupa toda la pantalla, como una app:
   barra arriba (cronómetro) · contenido con scroll · botón principal abajo. */
.eec-jugador-wrap {
	--eec-ok: #2E7D5B;
	--eec-ok-soft: color-mix(in srgb, var(--eec-ok) 12%, var(--eec-surface));
	--eec-tap: 56px;
	max-width: 640px;
	margin: 0 auto;
	font-family: var(--eec-font-body);
	color: var(--eec-text);
	font-size: 17px;
	line-height: 1.5;
	-webkit-tap-highlight-color: transparent;
}
.eec-jugador-panel { width: 100%; }
.eec-jugador-header { display: none !important; }
.eec-screen { display: block; }
.eec-jugador-wrap button { font-family: inherit; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.eec-jugador-wrap :focus-visible { outline: 3px solid var(--eec-accent2); outline-offset: 2px; }
.eec-jugador-wrap h2, .eec-jugador-wrap h3 { color: var(--eec-text); }

/* ---- textos */
.eec-grande { font-family: var(--eec-font-display); font-weight: 700; font-size: clamp(1.6rem, 6.5vw, 2rem); line-height: 1.15; margin: 0 0 6px; text-wrap: balance; }
.eec-sub { color: var(--eec-text-muted); font-size: .98rem; margin: 0 0 14px; }
.eec-centro { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: 4vh; }
.eec-centro .eec-sub { max-width: 34ch; }
.eec-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }
.eec-emoji--xl { font-size: 4.4rem; }
.eec-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 1. elegir juego (dentro de la página) */
.eec-elegir__titulo { font-family: var(--eec-font-display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2rem); margin: 0 0 16px; text-wrap: balance; }
.eec-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.eec-game-pick { display: flex; flex-direction: column; border: 1px solid var(--eec-border); background: var(--eec-surface); border-radius: var(--eec-radius-l); padding: 0; overflow: hidden; text-align: left; cursor: pointer; color: var(--eec-text); transition: transform .12s ease, box-shadow .12s ease; }
.eec-game-pick:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(30,25,10,.4); }
.eec-game-pick:active { transform: scale(.98); }
.eec-game-pick__img { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--eec-accent-soft); overflow: hidden; }
.eec-game-pick__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eec-game-pick__glifo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--eec-font-hero); font-size: 2.4rem; color: var(--eec-accent); }
.eec-game-pick__label { padding: 10px 12px 0; font-family: var(--eec-font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; text-wrap: balance; }
.eec-game-pick__meta { padding: 2px 12px 12px; font-size: .8rem; color: var(--eec-text-muted); }
@media (max-width: 560px) {
	.eec-game-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.eec-game-pick__label { font-size: 1.02rem; padding: 8px 10px 0; }
	.eec-game-pick__meta { padding: 0 10px 10px; }
}

/* ---- esqueleto app */
.eec-app { display: flex; flex-direction: column; background: var(--eec-bg); border: 1px solid var(--eec-border); border-radius: var(--eec-radius-l); overflow: clip; min-height: 520px; }
.eec-app__barra { display: grid; grid-template-columns: var(--eec-tap) 1fr var(--eec-tap); align-items: center; gap: 4px; padding: 8px; background: var(--eec-surface); border-bottom: 1px solid var(--eec-border); position: sticky; top: 0; z-index: 3; }
.eec-app__titulo { text-align: center; font-family: var(--eec-font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eec-app__hueco { width: var(--eec-tap); }
.eec-app__cuerpo { flex: 1; padding: 20px 18px 28px; }
.eec-app__pie { position: sticky; bottom: 0; z-index: 3; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--eec-surface); border-top: 1px solid var(--eec-border); display: flex; flex-direction: column; gap: 8px; }
.eec-icon-btn { width: 48px; height: 48px; border-radius: 50%; border: none; background: transparent; color: var(--eec-text); font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.eec-icon-btn:active { background: var(--eec-accent-soft); }
.eec-pasos { display: flex; gap: 6px; padding: 10px 18px 0; }
.eec-pasos span { flex: 1; height: 5px; border-radius: 3px; background: var(--eec-border); }
.eec-pasos span.is-on { background: var(--eec-accent); }

/* pantalla completa en móvil */
@media (max-width: 782px) {
	html.eec-app-abierta, html.eec-app-abierta body { overflow: hidden !important; overscroll-behavior: none; }
	/* mientras se juega, nada encima: pop-ups propios (ecp) y burbuja de chat */
	html.eec-app-abierta .ecp, html.eec-app-abierta [class*="sherbot"], html.eec-app-abierta [id*="sherbot"] { display: none !important; }
	.eec-jugador-wrap.is-app { position: fixed; inset: 0; z-index: 2147483100; max-width: none; margin: 0; background: var(--eec-bg); }
	.eec-jugador-wrap.is-app .eec-jugador-panel,
	.eec-jugador-wrap.is-app .eec-screen { height: 100%; }
	.eec-jugador-wrap.is-app .eec-app { height: 100%; height: 100dvh; min-height: 0; border: none; border-radius: 0; }
	.eec-jugador-wrap.is-app .eec-app__barra { padding-top: calc(8px + env(safe-area-inset-top)); }
	.eec-jugador-wrap.is-app .eec-app__cuerpo { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}

/* ---- botones */
.eec-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; border-radius: 14px; border: 2px solid var(--eec-accent); background: var(--eec-surface); color: var(--eec-accent); min-height: 48px; padding: 10px 18px; font-size: 1rem; font-weight: 800; cursor: pointer; transition: transform .1s ease, opacity .15s; box-sizing: border-box; line-height: 1.25; }
.eec-btn:active { transform: scale(.98); }
.eec-btn:disabled { opacity: .6; cursor: wait; }
.eec-btn small { display: block; font-weight: 600; font-size: .78rem; opacity: .75; margin-top: 2px; }
.eec-btn-block { width: 100%; }
.eec-btn-xl { min-height: var(--eec-tap); font-size: 1.08rem; }
.eec-btn-primary { background: var(--eec-accent); border-color: var(--eec-accent); color: var(--eec-accent-ink); }
.eec-btn-ok { background: var(--eec-ok); border-color: var(--eec-ok); color: #fff; }
.eec-btn-danger { background: var(--eec-critical); border-color: var(--eec-critical); color: #fff; }
.eec-btn-ghost { background: transparent; border-color: transparent; color: var(--eec-text-muted); }
.eec-btn-finish { background: transparent; border-color: var(--eec-border); color: var(--eec-text); min-height: 50px; }
.eec-link-btn { background: none; border: none; color: var(--eec-text-muted); font-size: .85rem; text-decoration: underline; padding: 6px; cursor: pointer; }
.eec-spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: eecGiro .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes eecGiro { to { transform: rotate(360deg); } }
.eec-btn:has(.eec-spinner) { flex-direction: row; }

/* ---- campos */
.eec-input-xl { width: 100%; max-width: 420px; margin-top: 10px; background: var(--eec-surface); border: 2px solid var(--eec-border); border-radius: 14px; padding: 16px 18px; color: var(--eec-text); font-family: var(--eec-font-body); font-size: 1.2rem; font-weight: 700; text-align: center; }
.eec-input-xl:focus { outline: none; border-color: var(--eec-accent); }

.eec-video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--eec-radius-m); overflow: hidden; background: #000; margin: 10px 0 14px; }
.eec-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- partida: reloj en la barra */
.eec-reloj { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; background: var(--eec-accent); color: #fff; border: none; border-radius: 999px; padding: 4px 22px 5px; cursor: pointer; line-height: 1; transition: background .3s; }
.eec-reloj__num { font-family: var(--eec-font-hero); font-size: 2rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.eec-reloj__txt { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .8; margin-top: 1px; }
.eec-app--juego.is-low .eec-reloj { background: #B4631B; }
.eec-app--juego.is-over .eec-reloj { background: var(--eec-critical); }
.eec-app--juego .eec-app__titulo { overflow: visible; }

.eec-progreso { padding: 10px 18px 10px; background: var(--eec-surface); border-bottom: 1px solid var(--eec-border); }
.eec-progreso__barra { height: 8px; border-radius: 4px; background: var(--eec-surface-2); overflow: hidden; }
.eec-progreso__barra span { display: block; height: 100%; background: var(--eec-ok); border-radius: 4px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.eec-progreso__txt { font-size: .82rem; color: var(--eec-text-muted); margin-top: 5px; text-align: center; }
.eec-progreso__txt strong { color: var(--eec-text); }

/* ---- lista de enigmas */
.eec-lista__titulo { font-family: var(--eec-font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin: 0 0 2px; text-wrap: balance; }
.eec-lista__ayuda { margin-bottom: 14px; }
.eec-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eec-lista li { margin: 0; padding: 0; }
.eec-fila { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; background: var(--eec-surface); border: 1px solid var(--eec-border); border-radius: 16px; text-align: left; cursor: pointer; color: var(--eec-text); min-height: 76px; transition: transform .1s; }
.eec-fila:active { transform: scale(.985); background: var(--eec-accent-soft); }
.eec-fila__mini { flex: none; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: var(--eec-accent-soft); display: flex; align-items: center; justify-content: center; }
.eec-fila__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eec-fila__mini b { font-family: var(--eec-font-hero); font-size: 1.7rem; color: var(--eec-accent); font-weight: 400; }
.eec-fila__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.eec-fila__num { font-family: var(--eec-font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.eec-fila__nombre { font-size: .9rem; color: var(--eec-text-muted); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.eec-fila__flecha { font-size: 1.8rem; color: var(--eec-text-muted); line-height: 1; padding-right: 2px; }
.eec-fila.is-hecho { background: var(--eec-ok-soft); border-color: color-mix(in srgb, var(--eec-ok) 30%, transparent); }
.eec-fila.is-hecho .eec-fila__mini { opacity: .55; }
.eec-chip { display: inline-block; font-size: .74rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--eec-surface-2); color: var(--eec-text-muted); }
.eec-chip.is-ok { background: var(--eec-ok); color: #fff; }
.eec-chip.is-pista { background: var(--eec-accent2-soft); color: var(--eec-accent2-ink); }
.eec-chip.is-sol { background: var(--eec-critical-soft); color: var(--eec-critical); }

/* ---- un enigma */
.eec-enigma-vista { display: flex; flex-direction: column; gap: 14px; }
.eec-enigma-top { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 -4px; }
.eec-volver { background: none; border: none; color: var(--eec-accent); font-weight: 800; font-size: .95rem; padding: 10px 0; min-height: 44px; cursor: pointer; }
.eec-enigma-top__n { font-size: .82rem; font-weight: 800; color: var(--eec-text-muted); background: var(--eec-surface-2); border-radius: 999px; padding: 3px 10px; }
.eec-enigma-nombre { margin: 0; }
.eec-foto { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--eec-border); border-radius: 14px; overflow: hidden; background: var(--eec-bg-alt); cursor: zoom-in; }
.eec-foto img { display: block; width: 100%; height: auto; max-height: 32vh; object-fit: contain; margin: 0 auto; }
.eec-foto__lupa { position: absolute; right: 8px; bottom: 8px; font-size: .75rem; font-weight: 800; background: rgba(20,20,20,.68); color: #fff; padding: 4px 9px; border-radius: 999px; }
.eec-foto--sol { margin-top: 10px; }
.eec-hecho-banner { background: var(--eec-ok); color: #fff; font-weight: 800; text-align: center; padding: 10px; border-radius: 12px; }

.eec-pistas-stack { display: flex; flex-direction: column; gap: 10px; }
.eec-pistas-stack:empty { display: none; }
.eec-pista-card, .eec-solucion-card { background: var(--eec-surface); border: 1px solid var(--eec-border); border-left: 5px solid var(--eec-accent2); border-radius: 12px; padding: 12px 14px; }
.eec-pista-card p, .eec-solucion-card p { margin: 0; font-size: 1.06rem; line-height: 1.55; white-space: pre-line; }
.eec-pista-card__n { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--eec-text-muted); margin-bottom: 4px; }
.eec-anteriores { border-radius: 12px; }
.eec-anteriores summary { list-style: none; cursor: pointer; font-size: .9rem; font-weight: 800; color: var(--eec-accent); padding: 10px 2px; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.eec-anteriores summary::-webkit-details-marker { display: none; }
.eec-anteriores summary::before { content: "▸"; transition: transform .15s; }
.eec-anteriores[open] summary::before { transform: rotate(90deg); }
.eec-anteriores .eec-pista-card { opacity: .8; margin-bottom: 8px; }
.eec-anteriores .eec-pista-card p { font-size: .96rem; }
.eec-pista-card.is-nueva { animation: eecEntra .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 6px 18px -12px rgba(30,25,10,.5); }
.eec-solucion-card { border-left-color: var(--eec-critical); animation: eecEntra .35s cubic-bezier(.2,.8,.2,1); }
@keyframes eecEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eec-btn-pista { background: var(--eec-accent2); border-color: var(--eec-accent2); color: var(--eec-accent2-ink); min-height: 64px; font-size: 1.1rem; position: relative; }
.eec-btn-pista__icono { font-size: 1.3rem; margin-bottom: 2px; }
.eec-consejo { text-align: center; margin: -4px 0 0; font-size: .88rem; }
.eec-btn-solucion { position: relative; overflow: hidden; background: transparent; border: 2px dashed var(--eec-critical); color: var(--eec-critical); min-height: 60px; }
.eec-btn-solucion::before { content: ""; position: absolute; inset: 0; background: var(--eec-critical-soft); transform: scaleX(0); transform-origin: left; }
.eec-btn-solucion.is-cargando::before { transform: scaleX(1); transition: transform .8s linear; }
.eec-btn-solucion.is-armado { border-style: solid; background: var(--eec-critical); color: #fff; }
.eec-btn-solucion > * { position: relative; }

/* ---- toast */
.eec-toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: min(92vw, 420px); width: max-content; background: #1d1d1b; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: .98rem; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); z-index: 2147483300; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.eec-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.eec-toast.is-aviso { background: #B4631B; }
.eec-toast.is-error { background: var(--eec-critical); }

/* ---- hoja inferior, pausa y visor */
.eec-sheet-wrap, .eec-pausa, .eec-visor { position: fixed; inset: 0; z-index: 2147483200; opacity: 0; transition: opacity .2s; }
.eec-sheet-wrap.is-open, .eec-pausa.is-open, .eec-visor.is-open { opacity: 1; }
.eec-sheet-wrap { background: rgba(20,18,12,.55); display: flex; align-items: flex-end; justify-content: center; }
.eec-sheet { width: 100%; max-width: 520px; background: var(--eec-surface); border-radius: 22px 22px 0 0; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; gap: 8px; transform: translateY(30px); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.eec-sheet-wrap.is-open .eec-sheet { transform: none; }
.eec-sheet__asa { width: 40px; height: 5px; border-radius: 3px; background: var(--eec-border); margin: 0 auto 8px; }
.eec-sheet__icono { font-size: 2.4rem; line-height: 1; }
.eec-sheet h3 { font-family: var(--eec-font-display); font-weight: 700; font-size: 1.5rem; margin: 4px 0 0; text-wrap: balance; }
.eec-sheet p { margin: 0 0 8px; color: var(--eec-text-muted); }
@media (min-width: 783px) { .eec-sheet-wrap { align-items: center; } .eec-sheet { border-radius: 22px; } }

.eec-pausa { background: var(--eec-accent); color: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; }
.eec-pausa__caja { width: 100%; max-width: 380px; text-align: center; }
.eec-pausa__icono { font-size: 2.2rem; opacity: .7; }
.eec-pausa h3 { color: #fff !important; font-family: var(--eec-font-display); font-weight: 700; font-size: 2rem; margin: 6px 0 0; }
.eec-pausa__tiempo { font-family: var(--eec-font-hero); font-size: 4.6rem; line-height: 1; margin: 6px 0 4px; letter-spacing: .03em; }
.eec-pausa p { margin: 0 0 22px; opacity: .85; }
.eec-pausa .eec-btn-primary { background: #fff; border-color: #fff; color: var(--eec-accent); }

.eec-visor { background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 56px 8px 40px; overflow: auto; touch-action: pinch-zoom pan-x pan-y; }
.eec-visor img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.eec-visor__cerrar { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; cursor: pointer; }
.eec-visor__ayuda { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.65); font-size: .8rem; }

/* ---- modo claro/oscuro del reloj ya no hace falta: el reloj va en la barra */

/* ---- final */
.eec-end-summary { display: flex; justify-content: center; gap: 10px; width: 100%; max-width: 420px; margin-top: 14px; }
.eec-end-summary div { flex: 1; background: var(--eec-surface); border: 1px solid var(--eec-border); border-radius: 14px; padding: 14px 6px; }
.eec-end-summary div span { display: block; font-family: var(--eec-font-hero); font-size: 2rem; line-height: 1.05; color: var(--eec-accent); }
.eec-end-summary div small { color: var(--eec-text-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.eec-fine-print { font-size: .74rem; color: var(--eec-text-muted); text-align: center; }

.eec-review-modal { position: fixed; inset: 0; background: rgba(30,25,10,.75); display: none; align-items: center; justify-content: center; z-index: 2147483400; padding: 16px; }
.eec-review-modal.is-open { display: flex; }
.eec-review-modal-inner { position: relative; width: 100%; max-width: min(720px, 94vw); height: min(720px, 86vh); background: var(--eec-surface); border-radius: 16px; overflow: visible; box-shadow: 0 10px 30px -10px rgba(30,25,10,.35); }
.eec-review-modal-inner iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: 16px; }
.eec-review-modal-close { position: absolute; top: -16px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--eec-border); background: var(--eec-surface); color: var(--eec-text); cursor: pointer; font-size: 1.4rem; line-height: 1; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
	.eec-jugador-wrap *, .eec-toast, .eec-sheet { animation: none !important; transition: none !important; }
}

/* Veredicto dentro del modo app */
.eec-contacto-app { width: 100%; max-width: 420px; margin-top: 22px; text-align: left; }
.eec-contacto-app label { display: block; font-size: .85rem; font-weight: 800; color: var(--eec-text); margin-bottom: 6px; }
.eec-contacto-app input { width: 100%; background: var(--eec-surface); border: 2px solid var(--eec-border); border-radius: 14px; padding: 14px 16px; font-size: 1.05rem; font-family: var(--eec-font-body); color: var(--eec-text); }
.eec-contacto-app input:focus { outline: none; border-color: var(--eec-accent); }
.eec-app--final .ecav-opinion { text-align: center; border-radius: 16px; margin-top: 22px; }
.eec-app--final .ecav-opinion .eec-field { margin-bottom: 10px; text-align: left; }
.eec-app--final .ecav-opinion .eec-field textarea,
.eec-app--final .ecav-opinion .eec-field input[type=text] { width: 100%; background: var(--eec-bg); border: 2px solid var(--eec-border); border-radius: 12px; padding: 12px 14px; font-size: 1rem; font-family: var(--eec-font-body); color: var(--eec-text); }

/* Blindaje frente a estilos del tema (botones en mayúsculas, fuente forzada, viñetas en las listas) */
.eec-jugador-wrap button, .eec-jugador-wrap button *, .eec-jugador-wrap .eec-btn { text-transform: none !important; letter-spacing: normal; }
.eec-jugador-wrap .eec-reloj__txt { text-transform: uppercase !important; letter-spacing: .12em; }
.eec-jugador-wrap .eec-fila__num, .eec-jugador-wrap .eec-game-pick__label { font-family: var(--eec-font-display) !important; }
.eec-jugador-wrap .eec-reloj__num, .eec-jugador-wrap .eec-fila__mini b, .eec-jugador-wrap .eec-game-pick__glifo { font-family: var(--eec-font-hero) !important; }
.eec-jugador-wrap .eec-pista-card__n, .eec-jugador-wrap .eec-chip { text-transform: none; }
.eec-jugador-wrap .eec-pista-card__n { text-transform: uppercase !important; }
.eec-jugador-wrap ul.eec-lista, .eec-jugador-wrap ul.eec-lista li { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.eec-jugador-wrap ul.eec-lista li::before, .eec-jugador-wrap ul.eec-lista li::marker { content: none !important; display: none !important; }

/* ================= v3.1 — todas las acciones abajo, al alcance del pulgar ================= */
/* fuera los márgenes que mete el tema (dejaban huecos enormes entre título, foto y botones) */
.eec-jugador-wrap .eec-app h2, .eec-jugador-wrap .eec-app h3, .eec-jugador-wrap .eec-app p,
.eec-jugador-wrap .eec-app ul, .eec-jugador-wrap .eec-app details { margin-top: 0 !important; }
.eec-jugador-wrap .eec-app button:not(.eec-foto--sol) { margin: 0 !important; }
.eec-jugador-wrap .eec-app img { margin: 0 auto !important; }

.eec-barra-izq { display: inline-flex; width: var(--eec-tap); justify-content: flex-start; }

/* cabecera del enigma: ‹ Enigma 2 de 10 › */
.eec-nav-enigma { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; margin: -4px 0 2px; }
.eec-nav-enigma__flecha { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--eec-border); background: var(--eec-surface); color: var(--eec-accent); font-size: 1.6rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.eec-nav-enigma__flecha:disabled { opacity: .3; cursor: default; }
.eec-nav-enigma__txt { text-align: center; min-width: 0; display: flex; flex-direction: column; }
.eec-nav-enigma__n { font-family: var(--eec-font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.eec-nav-enigma__nombre { font-size: .85rem; color: var(--eec-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eec-enigma-vista { gap: 12px; }
.eec-foto img { max-height: 30vh; }
.eec-pista-vacia { text-align: center; color: var(--eec-text-muted); font-size: .95rem; padding: 14px 12px; border: 2px dashed var(--eec-border); border-radius: 12px; }

/* barra de abajo con dos botones: ayuda (izquierda) · resuelto (derecha) */
.eec-pie-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eec-pie-botones.is-uno { grid-template-columns: 1fr; }
.eec-pie-botones .eec-btn { min-height: 64px; font-size: 1.12rem; width: 100%; padding: 8px 10px; }
.eec-pie-botones .eec-btn small { font-size: .74rem; }
.eec-pie-botones .eec-btn-solucion { background: var(--eec-surface); }
.eec-pie-botones .eec-btn-solucion.is-armado { background: var(--eec-critical); }

/* menú ☰ */
.eec-sheet--menu { text-align: left; gap: 6px; }
.eec-menu-op { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--eec-border); border-radius: 14px; background: var(--eec-bg); color: var(--eec-text); font-size: 1.05rem; font-weight: 700; cursor: pointer; text-align: left; }
.eec-menu-op span { width: 26px; text-align: center; }
.eec-menu-op.is-peligro { color: var(--eec-critical); }
.eec-menu-op:active { background: var(--eec-accent-soft); }

.eec-toast { bottom: calc(118px + env(safe-area-inset-bottom)); }
.eec-jugador-wrap .eec-sheet button, .eec-jugador-wrap .eec-pausa button { margin: 0 !important; }
.eec-jugador-wrap .eec-sheet h3, .eec-jugador-wrap .eec-sheet p, .eec-jugador-wrap .eec-pausa h3, .eec-jugador-wrap .eec-pausa p { margin-top: 0 !important; }

/* v3.1.1 — cuenta atrás más grande y con bordes rectos */
.eec-jugador-wrap .eec-reloj { border-radius: 4px; padding: 6px 26px 7px; min-width: 168px; }
.eec-jugador-wrap .eec-reloj__num { font-size: 2.7rem; line-height: .95; }
.eec-jugador-wrap .eec-reloj__txt { font-size: .66rem; margin-top: 2px; }
@media (max-width: 360px) { .eec-jugador-wrap .eec-reloj { min-width: 0; padding: 6px 16px 7px; } .eec-jugador-wrap .eec-reloj__num { font-size: 2.3rem; } }
