/* ---------- TRIVIA SEMANAL (spec 29): intro, pregunta con tiempo y resultado. Cada paso cabe en el alto del teléfono ---------- */
.tq-page{container-type:inline-size;display:flex;flex-direction:column;gap:16px}
.tq-page h1{font-family:var(--tech-wide);font-weight:600;color:var(--navy)}

/* Intro: la semana y el reto, con Cruz Azulito al lado señalando; abajo las reglas en cuatro líneas */
.tq-hero{display:flex;align-items:flex-end;gap:8px}
.tq-hero>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;padding-bottom:8px}
.tq-masc{flex:none;width:auto;height:136px;margin-right:-6px}
.tq-intro h1{font-size:1.6rem;line-height:1.18}
.tq-rules{display:flex;flex-direction:column;padding:4px 16px;border-radius:var(--r-tile);background:var(--white);box-shadow:var(--shadow-soft)}
.tq-rules li{display:flex;align-items:center;gap:12px;min-height:46px;font-size:.92rem;color:var(--text)}
.tq-rules li+li{border-top:1px solid var(--gray-lightest)}
.tq-rules svg{flex:none;width:20px;height:20px;color:var(--sky-ink)}
.tq-rules b{color:var(--navy)}

/* Pregunta: número, avance en cinco marcas y segundos en una fila; la barra de tiempo corre debajo de esa fila */
.tq-q{gap:14px}
.tq-top{position:relative;display:flex;align-items:center;gap:12px;padding-bottom:12px}
.tq-n{font-family:var(--tech-wide);font-weight:600;font-size:1.25rem;line-height:1;color:var(--navy)}
.tq-n small{font-family:var(--font);font-weight:400;font-size:.8rem;color:var(--muted)}
.tq-steps{flex:1;display:flex;gap:6px}
.tq-steps i{width:22px;height:6px;border-radius:3px;background:var(--gray-light)}
.tq-steps i.now{background:var(--navy)}
.tq-steps i.ok{background:var(--sky-ink)}
.tq-steps i.bad{background:var(--red)}
.tq-time{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:16px;background:var(--white);box-shadow:var(--shadow-soft);font-size:.85rem;color:var(--navy);font-variant-numeric:tabular-nums}
.tq-time svg{width:16px;height:16px}
.tq-time b{font-family:var(--tech-wide);font-weight:600;font-size:1.05rem;min-width:1.3em;text-align:right}
.tq-time.late{background:var(--red);color:var(--white)}
.tq-bar{position:absolute;left:0;right:0;bottom:0;height:5px;border-radius:3px;background:var(--gray-lightest);overflow:hidden}
.tq-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--electric-ink),var(--sky-ink));transform-origin:left center;animation:tq-bar linear forwards}
.tq-bar span.stop{animation:none}
@keyframes tq-bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.tq-text{font-size:1.32rem;line-height:1.28}

/* Respuestas: letra y texto; al revelar, palomita en la correcta y tache en la tuya si fallaste */
.tq-opts{display:flex;flex-direction:column;gap:10px}
.tq-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 14px 8px 8px;border-radius:14px;border:1.5px solid var(--gray-light);background:var(--white);color:var(--text);text-align:left;font-weight:600;transition:border-color .15s,background .15s}
.tq-opt:not([disabled]):hover{border-color:var(--sky-ink)}
.tq-opt .k{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--bg-card);color:var(--navy);font-family:var(--tech-wide);font-weight:600}
.tq-opt .t{flex:1;min-width:0;line-height:1.3}
.tq-opt svg{flex:none;width:20px;height:20px}
.tq-opt[disabled]{cursor:default;opacity:.55}
.tq-opt.ok{opacity:1;border-color:var(--sky-ink);background:#e8f0fd;color:var(--navy)}
.tq-opt.ok .k{background:var(--sky-ink);color:var(--white)}
.tq-opt.ok svg{color:var(--sky-ink)}
.tq-opt.bad{opacity:1;border-color:var(--red);background:#fdf0f2;color:var(--red)}
.tq-opt.bad .k{background:var(--red);color:var(--white)}
.tq-after{display:flex;flex-direction:column;gap:12px}
.tq-after:empty{display:none}
.tq-dato{font-size:.86rem;line-height:1.5;color:var(--muted)}
.tq-dato b{color:var(--navy)}

/* Resultado: aciertos en grande con puntos y lugar, Cruz Azulito al lado, y el repaso con la respuesta correcta de cada pregunta */
.tq-fin{gap:14px}
.tq-score{display:flex;align-items:flex-end;gap:8px}
.tq-score .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;padding-bottom:6px}
.tq-score .big{display:flex;align-items:baseline;gap:8px;font-family:var(--tech-wide);font-weight:600;font-size:1.4rem;color:var(--navy)}
.tq-score .big b{font-size:3.8rem;line-height:.95}
.tq-score .big small{font-family:var(--font);font-weight:400;font-size:.82rem;color:var(--muted)}
.tq-score p{font-size:.86rem;line-height:1.45;color:var(--muted)}
.tq-score p b{color:var(--navy)}
.tq-score img{flex:none;width:auto;height:120px;margin-right:-6px}
.tq-review{display:flex;flex-direction:column;padding:2px 14px;border-radius:var(--r-tile);background:var(--white);box-shadow:var(--shadow-soft)}
.tq-review li{display:flex;align-items:center;gap:12px;padding:7px 0}
.tq-review li+li{border-top:1px solid var(--gray-lightest)}
.tq-review .ic{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--sky-ink);color:var(--white)}
.tq-review .bad .ic{background:var(--red)}
.tq-review .ic svg{width:15px;height:15px}
.tq-review .t{flex:1;min-width:0}
.tq-review b{display:block;font-size:.88rem;color:var(--navy)}
.tq-review small{display:block;font-size:.76rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tq-next{font-size:.84rem;color:var(--muted);text-align:center}

@container (max-width:300px){ .tq-intro h1{font-size:1.4rem} .tq-masc{height:112px} .tq-text{font-size:1.18rem} .tq-score .big b{font-size:3.2rem} .tq-score img{height:96px} .tq-steps{gap:4px} .tq-steps i{width:14px} }
/* Teléfonos bajos (667 px o menos): todo se compacta para que la pregunta revelada y el resultado quepan sin desplazar */
@media (max-height:700px){
  .tq-page,.tq-q,.tq-fin{gap:10px}
  .tq-masc{height:104px}
  .tq-rules li{min-height:40px;font-size:.88rem}
  .tq-text{font-size:1.15rem}
  .tq-opts{gap:7px}
  .tq-opt{min-height:44px;padding:5px 12px 5px 6px}
  .tq-opt .k{width:30px;height:30px}
  .tq-dato{font-size:.8rem;line-height:1.4}
  .tq-score .big b{font-size:3rem}
  .tq-score img{height:88px}
  .tq-review li{padding:5px 0}
  .tq-review .ic{width:22px;height:22px}
}
@media (max-height:600px){
  .tq-q{gap:8px}
  .tq-top{padding-bottom:10px}
  .tq-text{font-size:1.06rem;line-height:1.25}
  .tq-opt{min-height:40px}
  .tq-dato{font-size:.76rem}
  .tq-review small{display:none}
  .tq-next{display:none}
  .tq-after .btn,.tq-fin .btn{height:44px}
}
