/* Celular — se usa con una mano: botones grandes y abajo, letra legible. */
html, body { min-height: 100%; }
body { background: var(--negro); overscroll-behavior: none; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cel-cab {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 56px;
  background: rgba(7, 6, 15, .94); backdrop-filter: blur(6px); border-bottom: 3px solid rgba(255, 255, 255, .08);
}
.cel-cab .lockup { font-size: 21px; }
.cel-cab .yo { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--e, #241C55); color: var(--et, #fff); border: 3px solid #000; border-radius: 999px; padding: 5px 12px; font-size: 15px; font-weight: 800; max-width: 52%; cursor: pointer; }
.cel-cab .yo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pantalla { flex: 1; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 16px; }
.sin-red-cel { display: none; background: var(--naranja); color: #fff; font-weight: 800; text-align: center; padding: 8px 12px; font-size: 15px; }
html.sin-conexion .sin-red-cel { display: block; }

h1.cel { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 4px 0 0; }
p.cel { font-size: 17px; line-height: 1.45; color: #DCD9F5; margin: 0; }
.ceja-cel { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.chip { display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 2px solid #000; background: var(--amarillo); color: var(--negro); }

/* Botones */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 12px 18px;
  font-family: var(--fuente); font-size: 19px; font-weight: 800; color: var(--negro); background: var(--cyan);
  border: 4px solid #000; border-radius: 16px; box-shadow: 0 6px 0 #000; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #000; }
.btn:disabled { background: #3A3466; color: rgba(255, 255, 255, .5); box-shadow: 0 6px 0 #000; transform: none; cursor: default; }
.btn.secundario { background: #241C55; color: #fff; }
.btn.amarillo { background: var(--amarillo); }
.btn.naranja { background: var(--naranja); color: #fff; }
.btn.amarillo:disabled, .btn.naranja:disabled, .btn.secundario:disabled { background: #3A3466; color: rgba(255, 255, 255, .75); }

/* Elegir nombre */
.nombres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nombre-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; width: 100%; min-height: 64px; padding: 8px 12px;
  font-family: var(--fuente); font-size: 18px; font-weight: 800; color: #fff; background: var(--noche); border: 3px solid #000; line-height: 1.1;
  border-left: 10px solid var(--e); border-radius: 14px; box-shadow: 0 5px 0 #000; cursor: pointer; text-align: left;
}
.nombre-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.nombre-btn small:empty { display: none; }
.nombre-btn small { font-size: 12px; font-weight: 800; color: var(--gris); background: rgba(255, 255, 255, .08); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

/* Hoja de confirmación */
.hoja-fondo { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .65); display: flex; align-items: flex-end; justify-content: center; }
.hoja { width: 100%; max-width: 520px; background: var(--crema); color: var(--negro); border-top: 5px solid #000; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: entrar-arriba .25s; }
.hoja h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hoja p { margin: 0 0 6px; font-size: 16px; line-height: 1.45; color: #2B2F3A; }
.hoja .btn.secundario { background: #E1E5EB; color: var(--negro); }

/* Tarjeta de equipo */
.tarjeta-eq { background: var(--e); color: var(--et); border: 5px solid #000; box-shadow: 8px 8px 0 #000; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tarjeta-eq .sos { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.tarjeta-eq .nom { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.tarjeta-eq .comp { display: flex; flex-wrap: wrap; gap: 8px; }
.tarjeta-eq .comp span { font-size: 14px; font-weight: 800; padding: 5px 10px; border-radius: 999px; border: 2px solid #000; background: rgba(255, 255, 255, .85); color: var(--negro); }
.tarjeta-eq .comp span.no { opacity: .55; }
.caja-cel { background: var(--noche); border: 3px solid #000; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.caja-cel h3 { margin: 0; font-size: 17px; font-weight: 800; }
.caja-cel p, .caja-cel li { margin: 0; font-size: 15px; line-height: 1.45; color: #DCD9F5; }
.caja-cel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.grande-centro { text-align: center; padding: 20px 0 6px; }
.grande-centro .emoji { font-size: 64px; }

/* Pregunta */
.preg-cel { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.preg-cel .fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preg-cel .num { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.preg-cel .seg { font-size: 34px; font-weight: 800; line-height: 1; min-width: 56px; text-align: right; }
.preg-cel .seg.urgente { color: var(--naranja); }
.barra-tiempo { height: 12px; border: 3px solid #000; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; }
.barra-tiempo i { display: block; height: 100%; background: var(--amarillo); width: 100%; transition: width .1s linear; }
.preg-cel .texto { background: #fff; color: var(--negro); border: 4px solid #000; box-shadow: 6px 6px 0 var(--violeta); padding: 14px 16px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.ops-cel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; min-height: 300px; }
.op-cel {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px;
  background: var(--c); color: var(--t); border: 4px solid #000; border-radius: 18px; box-shadow: 0 7px 0 var(--c-osc), 0 7px 0 4px #000;
  font-family: var(--fuente); text-align: left; cursor: pointer; min-height: 140px; -webkit-tap-highlight-color: transparent; transition: opacity .25s, transform .1s;
}
.op-cel:active { transform: translateY(4px); }
.op-cel .arriba { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; }
.op-cel .arriba .forma { width: 30px; height: 30px; }
.op-cel .txt { font-size: 20px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.ops-cel.respondida .op-cel { opacity: .25; }
.ops-cel.respondida .op-cel.elegida { opacity: 1; outline: 5px solid #fff; outline-offset: 3px; }
.ops-cel.cerrada .op-cel { cursor: default; }
.aviso-resp { text-align: center; font-size: 18px; font-weight: 800; background: var(--amarillo); color: var(--negro); border: 3px solid #000; border-radius: 14px; padding: 12px; }
.atentos-cel { position: fixed; inset: 0; z-index: 40; background: rgba(7, 6, 15, .95); display: none; place-items: center; text-align: center; }
.atentos-cel.ver { display: grid; }
.atentos-cel .n { font-size: 130px; font-weight: 800; line-height: .9; text-shadow: 8px 8px 0 var(--violeta); }
.atentos-cel p { font-size: 22px; font-weight: 800; color: var(--cyan); margin: 16px 0 0; }

/* Resultado */
.resultado { border: 5px solid #000; box-shadow: 8px 8px 0 #000; padding: 22px 18px; text-align: center; animation: pop .45s; }
.resultado.bien { background: var(--verde); color: var(--negro); }
.resultado.mal { background: var(--naranja); color: #fff; }
.resultado.nada { background: #3A3466; color: #fff; }
.resultado .grande { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.resultado .pts { font-size: 30px; font-weight: 800; margin-top: 8px; }
.resultado .era { font-size: 17px; font-weight: 700; margin-top: 10px; line-height: 1.35; }
.resumen-eq { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.resumen-eq div { background: var(--noche); border: 3px solid #000; border-radius: 14px; padding: 12px 8px; text-align: center; }
.resumen-eq b { display: block; font-size: 24px; font-weight: 800; }
.resumen-eq small { font-size: 12px; font-weight: 800; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; }

/* Armado */
.reloj-sticky { position: sticky; top: 56px; z-index: 15; display: flex; align-items: center; gap: 10px; background: var(--negro); padding: 8px 0; margin: -6px 0 0; }
.reloj-sticky .r { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; min-width: 108px; }
.reloj-sticky .r.urgente, .reloj-sticky .r.cero { color: var(--naranja); }
.reloj-sticky .btn { width: auto; flex: 1; min-height: 50px; font-size: 16px; padding: 8px 12px; }
.comodin-activo { background: var(--amarillo); color: var(--negro); border: 4px solid #000; border-radius: 16px; padding: 14px 16px; font-size: 17px; font-weight: 800; line-height: 1.35; animation: latido 1.6s infinite; }
.comodin-activo b { font-size: 28px; display: block; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.campo label .n { width: 28px; height: 28px; display: grid; place-items: center; background: var(--amarillo); color: var(--negro); border: 3px solid #000; border-radius: 8px; font-size: 15px; }
.campo label .estado { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--gris); }
.campo label .estado.ok { color: var(--verde); }
.campo input, .campo textarea {
  width: 100%; font-family: var(--fuente); font-size: 17px; font-weight: 600; color: var(--negro); background: #fff; border: 3px solid #000;
  border-radius: 12px; padding: 12px; line-height: 1.35; resize: vertical;
}
.campo textarea { min-height: 96px; }
.campo input:focus, .campo textarea:focus { outline: 4px solid var(--cyan); outline-offset: 1px; }
.ultima-edicion { font-size: 13px; color: var(--gris); font-weight: 700; text-align: center; }

/* Pitch */
.pitch-cel .presenta { background: var(--e); color: var(--et); border: 5px solid #000; box-shadow: 8px 8px 0 #000; padding: 16px; }
.pitch-cel .presenta small { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pitch-cel .presenta .nom { font-size: 30px; font-weight: 800; line-height: 1.05; }
.pitch-cel .presenta .r { font-size: 46px; font-weight: 800; line-height: 1; margin-top: 8px; }
.pitch-cel .presenta .r.cero { font-size: 32px; }
.ficha-lectura { display: flex; flex-direction: column; gap: 10px; }
.ficha-lectura .bloque { background: #fff; color: var(--negro); border: 3px solid #000; border-radius: 12px; padding: 12px 14px; }
.ficha-lectura .bloque small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violeta); margin-bottom: 4px; }
.ficha-lectura .bloque div { font-size: 18px; font-weight: 700; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.orden-cel { display: flex; flex-direction: column; gap: 8px; }
.orden-cel div { font-size: 16px; font-weight: 800; padding: 10px 12px; border-left: 10px solid var(--e); background: rgba(255, 255, 255, .06); border-radius: 8px; color: var(--gris); }
.orden-cel div.ahora { background: var(--e); color: var(--et); border: 3px solid #000; border-left-width: 10px; }
.orden-cel div.hecho { text-decoration: line-through; opacity: .6; }

/* Inversión */
.billetera { position: sticky; top: 56px; z-index: 15; background: var(--amarillo); color: var(--negro); border: 4px solid #000; border-radius: 16px; box-shadow: 0 6px 0 #000; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.billetera small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.billetera b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.billetera .emoji { font-size: 34px; }
.inv-card { background: var(--noche); border: 3px solid #000; border-left: 12px solid var(--e); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.inv-card .sn { font-size: 20px; font-weight: 800; line-height: 1.15; }
.inv-card .eq { font-size: 13px; font-weight: 700; color: var(--gris); }
.inv-card .esl { font-size: 14px; color: var(--cyan); font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 58px; height: 52px; font-family: var(--fuente); font-size: 30px; font-weight: 800; border: 4px solid #000; border-radius: 14px; background: #fff; color: var(--negro); box-shadow: 0 5px 0 #000; cursor: pointer; flex-shrink: 0; }
.stepper button:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.stepper button:disabled { opacity: .35; }
.stepper .monto { flex: 1; text-align: center; font-size: 24px; font-weight: 800; }
.inv-card.propio { opacity: .55; }
.confirmada { background: var(--verde); color: var(--negro); border: 5px solid #000; box-shadow: 8px 8px 0 #000; padding: 18px; }
.confirmada h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.confirmada ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 800; }
.confirmada li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 2px dashed rgba(0, 0, 0, .25); padding-bottom: 4px; }

.podio-cel { display: flex; flex-direction: column; gap: 10px; }
.podio-cel div { display: flex; align-items: center; gap: 12px; background: var(--noche); border: 3px solid #000; border-left: 12px solid var(--e); border-radius: 12px; padding: 12px 14px; font-size: 18px; font-weight: 800; animation: entrar-arriba .4s; }
.podio-cel div b { font-size: 24px; width: 46px; }
.podio-cel div span { flex: 1; min-width: 0; }
.podio-cel div em { font-style: normal; color: var(--amarillo); }
.podio-cel div.mio { outline: 4px solid var(--amarillo); }

/* Trivia: hinchada y respuestas escritas */
.ops-lectura { display: flex; flex-direction: column; gap: 8px; }
.ops-lectura div { background: var(--c); color: var(--t); border: 3px solid #000; border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.ops-lectura b { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .22); border-radius: 50%; font-size: 14px; }
.aviso-resp.hincha { background: var(--cyan); }
.escribir-cel { display: flex; flex-direction: column; gap: 12px; background: var(--noche); border: 3px solid #000; border-radius: 18px; padding: 16px; }
.escribir-cel label { font-size: 17px; font-weight: 800; }
.escribir-cel input { width: 100%; font-family: var(--fuente); font-size: 22px; font-weight: 800; color: var(--negro); background: #fff; border: 4px solid #000; border-radius: 14px; padding: 14px; }
.escribir-cel input:focus { outline: 4px solid var(--amarillo); outline-offset: 1px; }
.escribir-cel input:disabled { background: #E1E5EB; color: #3B3F4A; }
.escribir-cel.respondida input { background: #E7FFF0; }

/* Sorteo de grupos */
.tarjeta-eq.grande { padding: 22px 18px; animation: pop .5s ease; }
.tarjeta-eq.grande .nom { font-size: 40px; overflow-wrap: anywhere; }
.tarjeta-eq.grande .comp span.no { opacity: .5; }
.tarjeta-eq.grande.nombre .nom { font-size: 34px; }
.emoji.sacude { display: inline-block; animation: sacudir .35s infinite; }

/* Armado: pasos y disparadores */
.paso-cel { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-top: 4px; }
.paso-cel .n { width: 32px; height: 32px; display: grid; place-items: center; background: var(--cyan); color: var(--negro); border: 3px solid #000; border-radius: 50%; font-size: 16px; flex-shrink: 0; }
.paso-cel small { font-size: 14px; color: var(--gris); font-weight: 700; }
.disp-lista { display: flex; flex-direction: column; gap: 8px; }
.disp-op { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-family: var(--fuente); font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--negro); background: var(--crema); border: 3px solid #000; border-radius: 12px; padding: 10px 12px; box-shadow: 0 4px 0 #000; cursor: pointer; }
.disp-op .emoji { font-size: 24px; flex-shrink: 0; }
.disp-op.propio { background: var(--amarillo); }
.disp-op.sel { outline: 4px solid var(--cyan); outline-offset: 2px; }
.disp-op:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.disp-elegido { display: flex; align-items: center; gap: 12px; background: var(--amarillo); color: var(--negro); border: 4px solid #000; border-radius: 16px; box-shadow: 0 5px 0 #000; padding: 12px 14px; }
.disp-elegido .emoji { font-size: 32px; flex-shrink: 0; }
.disp-elegido .t { flex: 1; font-size: 17px; font-weight: 800; line-height: 1.25; }
.btn.chico { width: auto; min-height: 42px; padding: 6px 12px; font-size: 14px; border-radius: 12px; box-shadow: 0 4px 0 #000; flex-shrink: 0; }

/* Inversión: regla de la favorita */
.regla-favorita { display: none; background: var(--naranja); color: #fff; border: 3px solid #000; border-radius: 14px; padding: 12px 14px; font-size: 16px; font-weight: 800; line-height: 1.35; }
.regla-favorita.ver { display: block; animation: sacudir .35s ease 2; }
.podio-cel div span small { display: block; font-size: 13px; color: var(--gris); font-weight: 700; margin-top: 2px; }
