/* Estilos propios de ANICHARACTER (carpeta anichara). Lo compartido (barra de arriba, buscador, botones, modales) está en /assets/base.css. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.three { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } /* Next clue / Skip | Guess (4/11/2026: sin el Skip aparte) */
.three > [hidden] { display: none; }

/* ---------- inicio: compartido en /assets/base.css (.start-card, 25/10/2026) ---------- */

/* ---------- en juego ---------- */
.prog { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bars { display: flex; gap: 4px; flex: 1; }
.bars i { flex: 1; height: 6px; border-radius: 3px; background: var(--chip); }
.bars .ok { background: var(--ok); } .bars .now { background: var(--accent); }
.bars .half { background: var(--close); } .bars .bad { background: var(--bad); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 12px; }
.qmark {
  width: 56px; height: 72px; border-radius: 8px; background: var(--text); color: var(--accent); flex: none; overflow: hidden;
  font-family: var(--font-title); font-weight: 800; font-size: 34px; display: flex; align-items: center; justify-content: center;
}
.qmark img { width: 100%; height: 100%; object-fit: cover; }
.who-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who-t b { font-family: var(--font-title); font-size: 20px; line-height: 1.15; }
.who-anime { font-size: 12px; color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: fact; }
.facts li {
  counter-increment: fact; display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2);
  border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.35;
}
.facts li::before { content: counter(fact); font-family: var(--font-title); font-weight: 800; color: var(--accent); min-width: 14px; }

.anime-hint[hidden] { display: none; }
.anime-hint { display: flex; align-items: center; gap: 12px; border: 1px solid var(--close); background: var(--close-bg); border-radius: 10px; padding: 8px 12px 8px 8px; }
.anime-hint img { width: 40px; height: 56px; object-fit: cover; border-radius: 5px; flex: none; background: var(--surface-2); }
.anime-hint div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.anime-hint .label { color: var(--close); }
.anime-hint b { font-size: 15px; }

.verdict { font-size: 14px; font-weight: 600; text-align: center; min-height: 0; }
.verdict:empty { display: none; }
.play-foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.guess-row { display: flex; flex-direction: column; gap: 8px; }
.guess-row[hidden], #next-btn[hidden] { display: none; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* ---------- resultado ---------- */
.result-head { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.result-line { font-size: 11px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.result-points { font-family: var(--font-title); font-weight: 800; font-size: 46px; line-height: 1; }
.result-points small { font-size: 22px; }
.result-calc { font-size: 13px; color: var(--muted); }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px 6px 6px; }
.row img { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-2); }
.row .t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row .t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t .y { color: var(--bad); text-decoration: line-through; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: #12302B; color: var(--ok); } .tag.half { background: var(--close-bg); color: var(--close); }
.tag.bad { background: #2E1A1C; color: var(--bad); }
.result-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* ---------- estadísticas ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stat-tiles div { border-radius: 10px; background: var(--surface-2); padding: 10px 2px; display: flex; flex-direction: column; align-items: center; }
.stat-tiles b { font-family: var(--font-title); font-weight: 800; }
.stat-tiles span { color: var(--muted); text-align: center; } /* tamaños: los de /assets/base.css (#stats-modal) */
.stat-block { display: flex; flex-direction: column; gap: 8px; }
.dist { display: flex; flex-direction: column; gap: 5px; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bar .k { width: 18px; text-align: right; color: var(--muted); flex: none; }
.bar i {
  height: 20px; border-radius: 4px; background: var(--border-strong); min-width: 22px; font-style: normal; font-weight: 700;
  font-size: 12px; display: flex; align-items: center; justify-content: flex-end; padding: 0 7px;
}
.bar i.today { background: var(--accent); color: var(--bg); }

/* La barra de arriba lleva récord y el logo largo (ANICHARACTER): el modo no entra ahí y va en la línea de progreso.
   En celulares angostos se achican el logo y los botones. */
.record { white-space: nowrap; }
#mode-pill { display: none; }
@media (max-width: 400px) {
  .topbar .logo { font-size: 18px; }
  .topbar .icon-btn { width: 40px; height: 40px; }
}

/* Anime al lado del nombre en el buscador. */
.suggestions .main .anime { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }

/* Romaji · kanji abajo en chico, en un renglón (Juan Cruz, 28/10/2026, todos los juegos). */
.who-sub, .row .t .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-sub[hidden] { display: none; }
.suggestions .alt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- datos de a uno (28/10/2026) ---------- */
.worth { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.worth[hidden] { display: none; }
.worth b { font-family: var(--font-title); font-weight: 800; font-size: 28px; line-height: 1; color: var(--ok); }
.worth b.mid { color: var(--close); }
.worth span { font-size: 10px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.facts li.new { outline: 1px solid var(--accent); }
.facts li.lock { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 13px; padding: 9px 12px; align-items: center; }
.facts li.lock::before { color: var(--muted); }
.facts li.lock .c { margin-left: auto; font-size: 12px; color: var(--link); font-weight: 600; white-space: nowrap; }
.card .anime-hint { margin-top: 0; }
/* Botón "Next clue": abre la próxima pista sin adivinar (28/10/2026). */
.clue-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-color: var(--link); line-height: 1.15; }
.clue-btn b { color: var(--link); font-size: 14px; white-space: nowrap; }
.clue-btn span { color: var(--muted); font-size: 12px; font-weight: 400; }
.clue-btn span:empty { display: none; }
.clue-btn:disabled { border-color: var(--border); }
.clue-btn:disabled b { color: var(--muted); }
.facts li.lock.next { cursor: pointer; border-color: var(--link); }
.facts li.lock.next:hover { background: var(--surface-2); }
.dots { display: flex; gap: 3px; margin-top: 2px; }
.dots i { width: 14px; height: 4px; border-radius: 2px; background: var(--chip); }
.dots i.on { background: var(--accent); } .dots i.an { background: var(--close); }

/* Resultado en una pantalla del celu (Juan Cruz, 28/10/2026): renglones más bajos; tag y rayitas a la derecha. */
.rows { gap: 5px; }
.row { padding: 5px 10px 5px 5px; gap: 10px; }
.row img { width: 40px; height: 50px; }
.row .t { gap: 1px; }
.row .t .y { text-decoration: line-through; color: var(--bad); }
.row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.row .side .dots { margin-top: 0; }
.result-head { margin-top: 0; gap: 2px; }
.result-points { font-size: 40px; }

/* ---------- segunda ronda (días bonus, 29/10/2026) ---------- */
#round2-btn[hidden], #back-btn[hidden], .round2-pill[hidden], .round2-note[hidden], #round1-btn[hidden] { display: none; }
.round2-note { text-align: center; }
.result-head .round2-pill, .start-body .round2-pill { align-self: center; }
.prog .round2-pill { flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; }
