/* evoQuiz · estilo "sobremesa": mantel de cuadros, papel de cocina y colores de vajilla */
:root {
  --cloth: #fff6e9;
  --check: rgba(226, 84, 70, .085);
  --paper: #ffffff;
  --ink: #3a2a3f;
  --soft: #7d6a7f;
  --line: #f0dfcf;
  --brand: #e2543f;
  --brand-ink: #ffffff;
  --sun: #ffc93c;
  --ok: #3cae6b;
  --ko: #e2543f;
  --o0: #e8553f;
  --o1: #eaa21a;
  --o2: #4fa457;
  --o3: #3b86d1;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --shadow: 0 6px 0 rgba(58, 42, 63, .08), 0 14px 30px rgba(58, 42, 63, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.evq {
  background-color: var(--cloth);
  background-image:
    linear-gradient(90deg, var(--check) 50%, transparent 50%),
    linear-gradient(var(--check) 50%, transparent 50%);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

.evq-av { display: block; width: 100%; height: auto; overflow: visible; }
.evq-card { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 2px solid var(--line); }
.evq-kicker { font-size: .8em; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 800; }
.evq-pill { display: inline-flex; align-items: center; gap: .35em; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: .2em .8em; white-space: nowrap; }
.evq-logo { font-family: var(--display); font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.evq-row { display: flex; justify-content: center; gap: 4%; }
.evq-row .evq-av { width: 16%; max-width: 110px; }

.evq-btn { border: 0; border-radius: 999px; padding: .55em 1.4em; font-family: var(--display); font-weight: 800; font-size: 1.1em; box-shadow: 0 5px 0 rgba(58, 42, 63, .18); transition: transform .12s, box-shadow .12s; text-decoration: none; display: inline-block; }
.evq-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(58, 42, 63, .18); }
.evq-btn:disabled { opacity: .45; cursor: default; }
.evq-main { background: var(--brand); color: var(--brand-ink); }
.evq-soft { background: var(--paper); border: 2px solid var(--line); }
.evq-wide { width: 100%; }

/* Colores y formas de respuesta */
.evq-o0 { --oc: var(--o0); } .evq-o1 { --oc: var(--o1); } .evq-o2 { --oc: var(--o2); } .evq-o3 { --oc: var(--o3); }

/* Animaciones de los muñecos */
@keyframes evq-bob { 50% { transform: translateY(-6%) rotate(-2deg); } }
@keyframes evq-pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes evq-jump { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-18%) scale(.95, 1.06); } 60% { transform: translateY(0) scale(1.08, .92); } }
@keyframes evq-wiggle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.evq-bob { animation: evq-bob 2.4s ease-in-out infinite; }
.evq-d1 { animation-delay: -.4s; } .evq-d2 { animation-delay: -.8s; } .evq-d3 { animation-delay: -1.2s; } .evq-d4 { animation-delay: -1.6s; } .evq-d5 { animation-delay: -2s; }
.evq-pop { animation: evq-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.evq-jump { animation: evq-jump .9s ease-in-out 3; }
.evq-wiggle { animation: evq-wiggle .5s ease-in-out 2; }

/* ===================================================== */
/* TELE                                                  */
/* ===================================================== */
body.evq-tv { overflow: hidden; font-size: clamp(14px, 2.1vmin, 30px); }
.evq-tv #evq-app { height: 100%; display: flex; flex-direction: column; padding: 2.2vmin max(16px, 3vmin); gap: 2vmin; }
.evq-bar { display: flex; align-items: center; gap: 1em; }
.evq-brand { display: flex; align-items: baseline; gap: .6em; flex: 1; min-width: 0; }
.evq-brand .evq-logo { font-size: 1.9em; }
.evq-tag { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evq-bar-mid { font-size: 1.1em; }
.evq-bar-end { flex: 1; display: flex; justify-content: flex-end; font-size: 1.1em; }
.evq-foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: 1.1em; }

.evq-center { flex: 1; display: grid; place-items: center; min-height: 0; }
.evq-hello { padding: 2em 3em; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .9em; max-width: 34em; }
.evq-hello > .evq-av { width: 6em; }
.evq-hello h1 { font-size: 2.6em; }
.evq-hello p { color: var(--soft); font-size: 1.2em; }
.evq-hello .evq-row { width: 100%; }
.evq-hello .evq-row .evq-av { width: 4.4em; }
.evq-hello .evq-btn { font-size: 1.5em; margin-top: .3em; }

/* Preparar partida */
.evq-setup { max-width: 52em; }
.evq-setup h1 { font-size: 2.2em; }
.evq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; }
.evq-chip { border: 2px solid var(--line); background: var(--cloth); border-radius: 999px; padding: .35em .9em; font-weight: 800; display: inline-flex; gap: .4em; align-items: baseline; color: var(--soft); transition: all .15s; }
.evq-chip small { font-size: .75em; opacity: .7; }
.evq-chip.evq-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.evq-chip-all.evq-on { background: var(--brand); border-color: var(--brand); }
.evq-setrow { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; justify-content: center; }
.evq-label { font-size: .85em; color: var(--soft); text-transform: uppercase; letter-spacing: .1em; }
.evq-seg { display: flex; background: var(--cloth); border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.evq-segb { border: 0; background: transparent; border-radius: 999px; padding: .3em 1em; font-weight: 800; color: var(--soft); }
.evq-segb.evq-on { background: var(--sun); color: var(--ink); }
.evq-music { cursor: pointer; color: var(--soft); margin-right: .5em; }
.evq-music.evq-on { color: var(--ink); border-color: var(--sun); background: #fff8d6; }
.evq-cat { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Sala de espera */
.evq-lobby { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2vmin; min-height: 0; }
.evq-joinbox { padding: 1.4em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; text-align: center; min-height: 0; }
.evq-qr { width: min(100%, 34vmin); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: .4em; border: 3px dashed var(--line); }
.evq-qr svg { width: 100%; height: 100%; display: block; }
.evq-qr svg path { fill: var(--ink); }
.evq-or { color: var(--soft); word-break: break-all; }
.evq-or b { color: var(--ink); }
.evq-code { display: flex; gap: .25em; }
.evq-code span { font-family: var(--display); font-size: 3.6em; line-height: 1; background: var(--sun); color: var(--ink); width: 1.05em; padding: .12em 0 .02em; border-radius: 14px; box-shadow: 0 5px 0 #d9a21b; font-variant-numeric: tabular-nums; }
.evq-guests { padding: 1.2em 1.4em; display: flex; flex-direction: column; gap: 1em; min-height: 0; overflow: hidden; }
.evq-guests h2 { font-size: 2em; }
.evq-count { color: var(--brand); }
.evq-guests small { color: var(--soft); font-size: .6em; }
.evq-crowd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em 1.2em; align-content: start; }
.evq-guest { margin: 0; position: relative; text-align: center; }
.evq-guest .evq-av { width: 72%; margin: 0 auto; }
.evq-guest figcaption { font-family: var(--display); font-size: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evq-kick { position: absolute; top: 0; right: 8%; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); color: var(--soft); opacity: 0; transition: opacity .2s; line-height: 1; }
.evq-guest:hover .evq-kick, .evq-kick:focus-visible { opacity: 1; }
.evq-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; color: var(--soft); font-size: 1.3em; }
.evq-empty .evq-av { width: 6em; }

/* Pregunta */
.evq-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3vmin; min-height: 0; position: relative; }
.evq-q { font-size: 3.3em; max-width: 22em; padding-right: 4.5em; }
.evq-q-sm { font-size: 2.2em; padding-right: 0; }
.evq-timer { position: absolute; top: 0; right: 0; width: 5.5em; height: 5.5em; display: grid; place-items: center; }
.evq-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.evq-ring-bg { fill: var(--paper); stroke: var(--line); stroke-width: 5; }
.evq-ring { fill: none; stroke: var(--sun); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .2s linear; }
.evq-timer span { position: relative; font-family: var(--display); font-size: 2.2em; font-variant-numeric: tabular-nums; }
.evq-hurry .evq-ring { stroke: var(--brand); }
.evq-hurry span { color: var(--brand); animation: evq-wiggle .4s infinite; }
.evq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vmin; }
.evq-tile { position: relative; display: flex; align-items: center; gap: .7em; background: var(--oc); color: #fff; border-radius: var(--r); padding: .7em 1em; font-family: var(--display); font-size: 2em; line-height: 1.1; box-shadow: 0 6px 0 rgba(0, 0, 0, .15); min-width: 0; transition: opacity .3s, transform .3s; }
.evq-tile svg { width: 1.2em; flex: none; fill: #fff; }
.evq-tile-txt { min-width: 0; }
.evq-tile.evq-dim { opacity: .3; transform: scale(.97); }
.evq-tile.evq-right { outline: 6px solid var(--ink); outline-offset: 3px; animation: evq-jump .7s ease-in-out 1; }
.evq-votes { margin-left: auto; background: rgba(255, 255, 255, .28); border-radius: 999px; padding: 0 .55em; font-size: .9em; }
.evq-foot-q .evq-strip { display: flex; gap: .4em; flex-wrap: wrap; flex: 1; }
.evq-mini { position: relative; width: 2.6em; opacity: .35; filter: grayscale(.8); transition: all .3s; }
.evq-mini.evq-done { opacity: 1; filter: none; transform: translateY(-4px); }
.evq-mini i { position: absolute; right: -2px; bottom: -2px; background: var(--ok); color: #fff; border-radius: 50%; width: 1.1em; height: 1.1em; font-size: .8em; display: none; place-items: center; font-style: normal; }
.evq-mini.evq-done i { display: grid; }
.evq-ans { color: var(--soft); white-space: nowrap; }

/* Respuesta y clasificación */
.evq-reveal { flex: 1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.4vmin; min-height: 0; align-items: center; }
.evq-rq { display: flex; flex-direction: column; gap: 2.4vmin; }
.evq-rq .evq-tile { font-size: 1.6em; }
.evq-note { background: #fff8d6; border: 2px dashed #f0d77a; border-radius: 16px; padding: .7em 1em; font-size: 1.2em; }
.evq-note b { color: var(--brand); }
.evq-board { padding: 1.2em; align-self: stretch; display: flex; flex-direction: column; gap: .6em; overflow: hidden; }
.evq-board h2 { font-size: 1.8em; }
.evq-board ol, .evq-rest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5em; }
.evq-board li, .evq-rest li { display: flex; align-items: center; gap: .6em; font-size: 1.25em; background: var(--cloth); border-radius: 14px; padding: .3em .7em; animation: evq-pop .4s both; }
.evq-board li:nth-child(2) { animation-delay: .08s; } .evq-board li:nth-child(3) { animation-delay: .16s; } .evq-board li:nth-child(4) { animation-delay: .24s; } .evq-board li:nth-child(5) { animation-delay: .32s; } .evq-board li:nth-child(6) { animation-delay: .4s; }
.evq-board li .evq-av, .evq-rest li .evq-av { width: 2.2em; flex: none; }
.evq-pos { font-family: var(--display); color: var(--brand); width: 1.2em; text-align: center; }
.evq-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evq-plus { color: var(--ok); font-size: .85em; }
.evq-board li b, .evq-rest li b { font-variant-numeric: tabular-nums; }

/* Podio */
.evq-final { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2vmin; min-height: 0; }
.evq-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 12em)); align-items: end; gap: 1.2em; }
.evq-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1em; animation: evq-pop .6s both; }
.evq-step .evq-av { width: 64%; }
.evq-s0 { animation-delay: .6s; } .evq-s1 { animation-delay: .3s; }
.evq-s0 .evq-av { width: 82%; }
.evq-step .evq-nm { font-family: var(--display); font-size: 1.6em; max-width: 100%; }
.evq-pts { color: var(--soft); }
.evq-block { width: 100%; margin-top: .4em; border-radius: 18px 18px 0 0; display: grid; place-items: start center; padding-top: .3em; font-family: var(--display); font-size: 2.2em; color: #fff; box-shadow: var(--shadow); }
.evq-s0 .evq-block { height: 4.2em; background: var(--sun); color: var(--ink); }
.evq-s1 .evq-block { height: 3em; background: var(--o3); }
.evq-s2 .evq-block { height: 2.2em; background: var(--o0); }
.evq-rest { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.evq-rest li { font-size: 1.05em; }

/* ===================================================== */
/* MÓVIL                                                 */
/* ===================================================== */
body.evq-jugar { font-size: 17px; min-height: 100%; }
.evq-jugar #evq-app { min-height: 100%; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.evq-pbar { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .7em max(16px, env(safe-area-inset-left, 0px)) .7em max(16px, env(safe-area-inset-right, 0px)); background: var(--paper); border-bottom: 2px solid var(--line); }
.evq-pbar .evq-logo { font-size: 1.5em; }
.evq-me { display: flex; align-items: center; gap: .4em; min-width: 0; }
.evq-me .evq-av { width: 2em; flex: none; }
.evq-me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evq-me .evq-pill { font-size: .85em; }
.evq-offline { background: var(--sun); text-align: center; padding: .3em; }
.evq-pmain { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1em; padding: 1.2em max(16px, env(safe-area-inset-left, 0px)) 1.6em max(16px, env(safe-area-inset-right, 0px)); width: 100%; max-width: 560px; margin: 0 auto; }
.evq-pcard { padding: 1.4em 1.2em; display: flex; flex-direction: column; gap: .8em; text-align: center; align-items: center; }
.evq-pcard h1 { font-size: 1.9em; }
.evq-pcard p { color: var(--soft); }
.evq-pcard .evq-row { width: 100%; }
.evq-pcard .evq-row .evq-av { width: 24%; }
.evq-err { color: var(--ko) !important; }
.evq-form { width: 100%; display: flex; flex-direction: column; gap: .6em; text-align: left; }
.evq-label { font-size: .85em; color: var(--soft); text-transform: uppercase; letter-spacing: .1em; }
.evq-codein, .evq-namein { width: 100%; border: 3px solid var(--line); border-radius: 16px; padding: .5em .7em; font: 800 1.4em var(--body); color: var(--ink); background: var(--cloth); }
.evq-codein { font-family: var(--display); font-size: 2.6em; text-align: center; letter-spacing: .3em; padding: .2em; }
.evq-codein:focus, .evq-namein:focus { border-color: var(--sun); outline: none; }
.evq-form .evq-btn { font-size: 1.35em; margin-top: .4em; }

.evq-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5em; }
.evq-pk { border: 3px solid transparent; background: var(--cloth); border-radius: 16px; padding: .4em .2em .3em; display: flex; flex-direction: column; align-items: center; gap: .1em; font-size: .8em; transition: transform .15s, border-color .15s; }
.evq-pk .evq-av { width: 80%; }
.evq-pk.evq-on { border-color: var(--brand); background: #fff; transform: scale(1.06); }
.evq-pk.evq-on .evq-av { animation: evq-jump .8s ease-in-out 1; }
.evq-pk.evq-taken { opacity: .35; filter: grayscale(1); cursor: default; }

.evq-wait .evq-big, .evq-res .evq-big { width: 42%; max-width: 190px; }
.evq-ptime { height: 8px; background: var(--line); }
.evq-ptime i { display: block; height: 100%; width: 100%; background: var(--sun); transition: width .2s linear; }
.evq-pq { justify-content: flex-start; }
.evq-pqtext { font-size: 1.5em; text-align: center; }
.evq-pq .evq-kicker { text-align: center; }
.evq-pbtns { display: grid; grid-template-columns: 1fr; gap: .7em; }
.evq-pbtn { display: flex; align-items: center; gap: .7em; text-align: left; background: var(--oc); color: #fff; border: 0; border-radius: 20px; padding: .9em 1em; min-height: 4.2em; font-family: var(--display); font-size: 1.2em; line-height: 1.1; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.evq-pbtn svg { width: 1.4em; flex: none; fill: #fff; }
.evq-pbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.evq-res.evq-ok { border-color: #bfe8cd; }
.evq-res.evq-ok h1 { color: var(--ok); }
.evq-res.evq-ko h1 { color: var(--ko); }
.evq-gain { font-family: var(--display); font-size: 2.4em; color: var(--ok) !important; line-height: 1; }
.evq-rank { font-size: 1.1em; color: var(--ink) !important; }
.evq-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 14px; max-width: calc(100% - 32px); text-align: center; z-index: 10; animation: evq-pop .3s both; }

@media (max-width: 720px) {
  body.evq-tv { overflow: auto; }
  .evq-lobby, .evq-reveal { grid-template-columns: 1fr; }
  .evq-tiles { grid-template-columns: 1fr; }
  .evq-q { padding-right: 0; padding-top: 5em; font-size: 2.2em; }
}
@media (min-width: 420px) {
  .evq-pbtns { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================================================== */
/* v0.3 · Inicio y pruebas variadas                      */
/* ===================================================== */
.evq-home { cursor: pointer; margin-right: .6em; font-weight: 800; }
.evq-home:hover { border-color: var(--brand); color: var(--brand); }
.evq-confirm { position: fixed; inset: auto 0 0 0; z-index: 20; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8em 1.2em; padding: 1em max(16px, 3vmin) calc(1em + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 3px solid var(--brand); box-shadow: 0 -10px 30px rgba(58, 42, 63, .18); font-size: 1.1em; animation: evq-pop .3s both; }
.evq-confirm p { max-width: 36em; }
.evq-x2 { background: var(--sun); border-color: #d9a21b; color: var(--ink); font-weight: 800; animation: evq-wiggle .6s ease-in-out 3; }
.evq-gold::before { content: ""; position: absolute; inset: -1vmin -2vmin; border: 6px dashed var(--sun); border-radius: 28px; pointer-events: none; }
.evq-hint { color: var(--soft); font-size: .95em; }
.evq-type { color: var(--brand); }
.evq-toggle { display: inline-flex; align-items: center; gap: .5em; border: 2px solid var(--line); background: var(--cloth); border-radius: 999px; padding: .3em .9em .3em .4em; font-weight: 800; color: var(--soft); }
.evq-sw { width: 2.2em; height: 1.25em; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.evq-sw::after { content: ""; position: absolute; top: .15em; left: .15em; width: .95em; height: .95em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.evq-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--ok); }
.evq-toggle[aria-pressed="true"] .evq-sw { background: var(--ok); }
.evq-toggle[aria-pressed="true"] .evq-sw::after { transform: translateX(.95em); }

/* Tele: tipos de prueba */
.evq-emoji { font-size: 6em; line-height: 1.1; letter-spacing: .08em; animation: evq-pop .6s both; }
.evq-emoji-sm { font-size: 3.2em; }
.evq-st-emoji .evq-q { padding-right: 0; }
.evq-tiles-vf .evq-tile { font-size: 2.6em; justify-content: center; padding: .9em 1em; }
.evq-tiles-vf .evq-tile svg { width: 1em; }
.evq-ordlist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4vmin; }
.evq-orditem { background: var(--paper); border: 3px solid var(--line); border-radius: var(--r); padding: 1em .8em; font-family: var(--display); font-size: 1.7em; line-height: 1.15; text-align: center; box-shadow: var(--shadow); display: grid; place-items: center; min-height: 4.2em; }
.evq-orditem:nth-child(odd) { transform: rotate(-1.5deg); } .evq-orditem:nth-child(even) { transform: rotate(1.5deg); }
.evq-numbox { display: flex; align-items: baseline; gap: .4em; }
.evq-numq { font-family: var(--display); font-size: 6em; line-height: 1; color: var(--brand); background: var(--paper); border: 3px dashed var(--line); border-radius: 22px; padding: .05em .4em 0; min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }
.evq-numans .evq-numq { font-size: 4em; color: var(--ok); border-style: solid; border-color: #bfe8cd; animation: evq-pop .5s both; }
.evq-unit { font-family: var(--display); font-size: 2em; color: var(--soft); }
.evq-ordsol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1vmin; }
.evq-ordsol li { display: flex; align-items: center; gap: .8em; background: var(--paper); border-radius: 16px; padding: .45em .9em; font-family: var(--display); font-size: 1.6em; box-shadow: var(--shadow); animation: evq-pop .45s both; }
.evq-ordsol b { background: var(--ok); color: #fff; border-radius: 50%; width: 1.4em; height: 1.4em; display: grid; place-items: center; flex: none; }
.evq-ordsol span { flex: 1; min-width: 0; }
.evq-ordsol em { font-style: normal; color: var(--soft); font-size: .85em; }
.evq-guesses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: .6em; }
.evq-guesses li { display: flex; align-items: center; gap: .5em; background: var(--paper); border-radius: 14px; padding: .3em .7em; font-size: 1.15em; border: 2px solid var(--line); }
.evq-guesses li.evq-best { border-color: var(--ok); background: #eefaf2; }
.evq-guesses .evq-av { width: 2em; flex: none; }
.evq-guesses b { font-variant-numeric: tabular-nums; }
.evq-guesses small { color: var(--soft); white-space: nowrap; }
.evq-guesses .evq-none { color: var(--soft); }

/* Móvil: tipos de prueba */
.evq-px2 { background: var(--sun); text-align: center; font-family: var(--display); font-weight: 800; padding: .3em; animation: evq-wiggle .6s ease-in-out 2; }
.evq-pemoji { font-size: 3.6em; text-align: center; line-height: 1.1; letter-spacing: .06em; }
.evq-pvf { grid-template-columns: 1fr 1fr !important; }
.evq-pvf .evq-pbtn { flex-direction: column; justify-content: center; text-align: center; min-height: 9em; font-size: 1.4em; }
.evq-vfi { font-size: 2em; line-height: 1; }
.evq-pord { display: flex; flex-direction: column; gap: .6em; }
.evq-poi { display: flex; align-items: center; gap: .8em; text-align: left; background: var(--paper); border: 3px solid var(--line); border-radius: 18px; padding: .8em 1em; font-family: var(--display); font-size: 1.15em; line-height: 1.15; transition: border-color .15s, transform .15s; }
.evq-pon { width: 1.8em; height: 1.8em; border-radius: 50%; border: 3px dashed var(--line); display: grid; place-items: center; flex: none; font-size: 1.1em; }
.evq-poi.evq-on { border-color: var(--o3); transform: scale(.98); }
.evq-poi.evq-on .evq-pon { background: var(--o3); border: 0; color: #fff; animation: evq-pop .3s both; }
.evq-prow { display: flex; gap: .6em; }
.evq-prow .evq-main { flex: 1; }
.evq-pnum { display: flex; flex-direction: column; gap: .6em; }
.evq-numin { letter-spacing: .05em; }
.evq-psol { text-align: left; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .3em; width: 100%; }
.evq-psol li { background: var(--cloth); border-radius: 12px; padding: .35em .7em; display: flex; gap: .5em; align-items: baseline; }
.evq-psol b { color: var(--ok); }
.evq-psol em { color: var(--soft); font-style: normal; margin-left: auto; }
.evq-pnote { font-size: .95em; background: #fff8d6; border-radius: 12px; padding: .5em .8em; color: var(--ink) !important; }
.evq-gain small { font-size: .5em; color: var(--ink); }
@media (max-width: 720px) { .evq-ordlist { grid-template-columns: 1fr 1fr; } }

/* ===================================================== */
/* v0.4 · Dinamismo: cuenta atrás, reacciones, rachas    */
/* ===================================================== */
.evq-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
@keyframes evq-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-22%) rotate(-6deg); } 60% { transform: translateY(-22%) rotate(6deg); } }
.evq-hop { animation: evq-hop .9s ease-in-out infinite; }
@keyframes evq-zoom { 0% { transform: scale(2.4); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: .9; } }
@keyframes evq-slidein { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tele: presentación de cada prueba */
.evq-intro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2vmin; position: relative; min-height: 0; }
.evq-intro-n { color: var(--soft); font-size: 1.4em; animation: evq-slidein .4s both; }
.evq-intro-type { font-size: 5.2em; color: var(--brand); animation: evq-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.evq-intro-cat { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: .2em 1em; font-size: 1.5em; animation: evq-slidein .5s .2s both; }
.evq-intro-x2 { font-family: var(--display); font-size: 2.2em; color: var(--ink); background: var(--sun); border-radius: 18px; padding: .1em .7em; animation: evq-wiggle .5s ease-in-out infinite; }
.evq-intro-count { font-family: var(--display); font-size: 9em; line-height: 1; color: var(--ink); width: 1.6em; height: 1.6em; display: grid; place-items: center; background: var(--paper); border-radius: 50%; box-shadow: var(--shadow); border: 6px solid var(--sun); }
.evq-tickanim { animation: evq-zoom .9s ease-out both; }
.evq-intro-row { display: flex; gap: .6em; justify-content: center; flex-wrap: wrap; margin-top: 1vmin; }
.evq-intro-row .evq-av { width: 3.4em; }
.evq-d0.evq-hop { animation-delay: 0s; } .evq-d1.evq-hop { animation-delay: .12s; } .evq-d2.evq-hop { animation-delay: .24s; } .evq-d3.evq-hop { animation-delay: .36s; } .evq-d4.evq-hop { animation-delay: .48s; } .evq-d5.evq-hop { animation-delay: .6s; }

/* Tele: clasificación viva */
.evq-board li { animation: evq-slidein .45s both; }
.evq-board li.evq-climb { background: #eefaf2; }
.evq-up { color: var(--ok); font-size: .8em; font-weight: 800; }
.evq-down { color: var(--ko); font-size: .8em; font-weight: 800; opacity: .8; }
.evq-fire { font-size: .85em; white-space: nowrap; animation: evq-wiggle .8s ease-in-out infinite; display: inline-block; }

/* Tele: podio con redoble (3º, 2º y por último 1º) */
.evq-step { animation: evq-slidein .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.evq-s2 { animation-delay: .5s; }
.evq-s1 { animation-delay: 1.6s; }
.evq-s0 { animation-delay: 3.2s; }
.evq-s0 .evq-block { box-shadow: 0 0 0 6px rgba(255, 201, 60, .35), var(--shadow); }

/* Tele: reacciones que suben por la pantalla */
.evq-float { position: fixed; bottom: 4vh; z-index: 40; display: flex; flex-direction: column; align-items: center; width: 5.5em; pointer-events: none; animation: evq-floatup 3.5s ease-out forwards; font-size: clamp(14px, 2.1vmin, 30px); }
.evq-float-e { font-size: 3em; line-height: 1; }
.evq-float .evq-av { width: 2.6em; }
.evq-float small { background: var(--paper); border-radius: 999px; padding: 0 .5em; font-weight: 800; color: var(--ink); white-space: nowrap; }
@keyframes evq-floatup { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 12% { transform: translateY(0) scale(1.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-60vh) rotate(-8deg); opacity: 0; } }

/* Móvil: menú de sala */
.evq-menu { border: 2px solid var(--line); background: var(--cloth); border-radius: 12px; width: 2.4em; height: 2.2em; font-size: 1.1em; font-weight: 800; color: var(--ink); flex: none; }
.evq-sheet { position: fixed; inset: 0; z-index: 30; background: rgba(58, 42, 63, .35); display: flex; align-items: flex-end; justify-content: center; animation: evq-slidein .2s both; }
.evq-sheet-card { background: var(--paper); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 1.2em max(16px, env(safe-area-inset-left, 0px)) calc(1.2em + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: .6em; text-align: center; }
.evq-danger { color: var(--ko); }
.evq-link { border: 0; background: none; color: var(--soft); padding: .6em; font-weight: 800; }

/* Móvil: reacciones */
.evq-reacts { display: flex; justify-content: center; gap: .4em; flex-wrap: wrap; }
.evq-react { border: 2px solid var(--line); background: var(--paper); border-radius: 50%; width: 2.6em; height: 2.6em; font-size: 1.35em; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(58, 42, 63, .08); transition: transform .1s; }
.evq-react:active { transform: scale(.9); }
.evq-react.evq-sent { animation: evq-jump .5s ease-in-out 1; border-color: var(--sun); }
.evq-pmain > .evq-hint { text-align: center; }

/* Móvil: cuenta atrás y rachas */
.evq-pintro h1 { font-size: 2.2em; color: var(--brand); animation: evq-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.evq-pcd { font-family: var(--display); font-size: 5em; line-height: 1; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; border: 5px solid var(--sun); background: var(--cloth); }
.evq-streak { font-family: var(--display); font-size: 1.4em; color: var(--brand) !important; animation: evq-wiggle .6s ease-in-out 3; }
.evq-reacts { flex-wrap: nowrap; gap: .3em; }
.evq-react { width: 2.35em; height: 2.35em; font-size: 1.25em; flex: none; }
.evq-pbar .evq-logo { font-size: 1.3em; }
