/* Simulatore con trainer (/simulatore/): pannelli coach e sessione, regole, simulatore di partite. Caricato dopo gioco.css. */
.bjs-count { display: flex; gap: 1rem; font-size: 0.86rem; color: var(--ink-3); }
.bjs-count b { color: var(--amber); margin-left: 0.4rem; font-variant-numeric: tabular-nums; }
.bjs-count[hidden] { display: none; }
.bjs-panels { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.9rem; padding: 0 1.1rem 1.1rem; }
.bjs-panel { padding: 0.9rem 1rem; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); }
.bjs-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.bjs-panel-head h3 { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.bjs-panel-head button { background: none; border: 0; color: var(--link); font: inherit; font-size: 0.82rem; cursor: pointer; padding: 0; }
.bjs-coach { min-height: 52px; margin-top: 0.7rem; }
.bjs-coach:empty::before { content: "Ogni chiedi, stai, raddoppia, dividi e arrenditi viene confrontato con la strategia di base per le regole impostate."; color: var(--ink-3); font-size: 0.88rem; }
.bjs-line { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.bjs-line p { flex: 1 1 220px; min-width: 0; margin: 0; }
.bjs-line + .bjs-line { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px dashed var(--line-2); }
.bjs-line strong { display: block; color: #fff; font-size: 0.95rem; line-height: 1.35; }
.bjs-line small { display: block; color: var(--ink-2); font-size: 0.84rem; line-height: 1.4; margin-top: 0.15rem; }
.bjs-line.is-mistake strong { color: #ffb4b4; }
.bjs-act { flex: 0 0 auto; min-width: 48px; height: 48px; padding: 0 0.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-s); font-weight: 800; font-size: 1.05rem; color: #0b1215; background: var(--green); font-variant-numeric: tabular-nums; }
.bjs-act.a-h { background: #5fb4ff; }
.bjs-act.a-s { background: var(--amber); }
.bjs-act.a-d { background: var(--green); }
.bjs-act.a-p { background: #c9a0ff; }
.bjs-act.a-r { background: #ffb4b4; }
.bjs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 0.9rem; margin-top: 0.7rem; }
.bjs-stat { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; color: var(--ink-3); }
.bjs-stat b { color: #fff; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.bjs-log { margin: 0.8rem 0 0; padding-left: 1.1rem; font-size: 0.82rem; color: var(--ink-3); max-height: 170px; overflow: auto; }
.bjs-log:empty { display: none; }
.bjs-settings { margin: 0 1.1rem 1.1rem; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); }
.bjs-settings summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.bjs-settings summary::-webkit-details-marker { display: none; }
.bjs-settings summary::after { content: "▾"; color: var(--green); }
.bjs-settings[open] summary::after { content: "▴"; }
.bjs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; padding: 0.2rem 1rem 0.9rem; }
.bjs-grid label { display: block; font-size: 0.74rem; color: var(--ink-3); margin-bottom: 0.25rem; }
.bjs-grid select, .bjs-run select, .bjs-run input[type="number"] { width: 100%; background: var(--surface-3); border: 1px solid var(--line-2); color: #fff; border-radius: var(--r-s); padding: 0.5rem 0.6rem; font: 500 0.88rem var(--font); }
.bjs-checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; padding: 0 1rem 0.9rem; }
.bjs-checks label { display: flex; gap: 0.5rem; align-items: center; color: #fff; font-size: 0.88rem; cursor: pointer; }
.bjs-checks input { width: 18px; height: 18px; accent-color: var(--green); }
.bjg-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.bjs-run { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem; margin: 1.2rem 0 1.6rem; }
.bjs-run-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.bjs-run-row label { display: block; font-size: 0.74rem; color: var(--ink-3); margin-bottom: 0.25rem; }
.bjs-run-rules { color: var(--ink-3); font-size: 0.86rem; margin: 0.8rem 0 0; }
.bjs-run-progress { font-size: 0.84rem; color: var(--ink-3); margin: 0.6rem 0 0; min-height: 1.2em; }
.bjs-run-chart { display: block; width: 100%; margin-top: 0.8rem; border-radius: var(--r-s); background: var(--surface-2); }
.bjs-run-chart[hidden] { display: none; }
.bjs-run-result { margin-top: 0.9rem; }
.bjs-run-result .hint { color: var(--ink-3); font-size: 0.9rem; margin: 0; }
.bjs-run .btn { margin-top: 0.8rem; }

@media (max-width: 760px) {
  .bjs-panels { grid-template-columns: 1fr; }
  .bjs-run-row { grid-template-columns: 1fr; }
}
