/* Battle Royale lato Admin: dettaglio senza scorrere la pagina, finestre per
   modifica/annullamento/nuova partita, diretta per guardare una partita. */
.br-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 20px; padding: 20px 26px; }
.br-summary span { display: block; color: var(--text-gray); font-size: 12px; }
.br-summary b { font-size: 15px; }
.br-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 0 26px 20px; }
.br-tabs { display: flex; gap: 6px; padding: 14px 20px 0; }
.br-tab { padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--text-gray); background: #fff; border: 1px solid var(--border-color); cursor: pointer; }
.br-tab.active { background: #1B2140; color: #fff; border-color: #1B2140; }
/* La tabella scorre dentro la scheda: la pagina resta ferma. */
.br-scroll { max-height: calc(100vh - 360px); min-height: 200px; overflow: auto; margin-top: 12px; }
.br-scroll thead th { position: sticky; top: 0; z-index: 1; }
.br-modal { max-width: 860px !important; }
.br-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.br-form-grid .span-2 { grid-column: span 2; }
.br-form-grid .span-3 { grid-column: span 3; }
.br-hint { color: var(--text-gray); font-size: 12px; display: block; margin-top: 4px; }

/* Diretta */
.lv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; height: calc(100vh - 150px); min-height: 520px; }
.lv-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.lv-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 16px 18px; }
.lv-card h3 { font-size: 13px; font-weight: 800; color: var(--text-gray); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; display: flex; justify-content: space-between; }
.lv-head { background: linear-gradient(160deg, #4a8beb 0%, #2f6fd8 100%); color: #fff; border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 18px; }
.lv-head .k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd66b; }
.lv-head .big { font-size: 26px; font-weight: 800; }
.lv-head .stat { text-align: center; }
.lv-head .stat b { display: block; font-size: 24px; }
.lv-head .stat span { font-size: 12px; opacity: .85; }
.lv-onair { background: #e63946; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .14em; padding: 4px 9px; border-radius: 5px; }
.lv-clock { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-left: auto; }
.lv-q { font-size: 18px; font-weight: 700; color: #26283c; line-height: 1.35; }
.lv-choices { display: grid; gap: 8px; margin-top: 12px; }
.lv-choice { position: relative; display: flex; align-items: center; gap: 10px; border: 2px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; overflow: hidden; font-size: 14px; }
.lv-choice i { position: absolute; left: 0; top: 0; bottom: 0; background: #eaf1fd; z-index: 0; }
.lv-choice > * { position: relative; z-index: 1; }
.lv-choice b { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #ccd2dd; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; background: #fff; }
.lv-choice em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--text-gray); }
.lv-choice.ok { border-color: #2ca85a; }
.lv-choice.ok i { background: #e8f5e9; }
.lv-choice.ok b { background: #2ca85a; border-color: #2ca85a; color: #fff; }
.lv-players { flex: 1; min-height: 0; overflow: auto; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.lv-fig { position: relative; border: 0; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px #dde2ea; overflow: hidden; padding: 0; cursor: pointer; font: inherit; }
.lv-fig .img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #dce4fb; color: #2462e7; font-size: 24px; font-weight: 800; }
.lv-fig .img img { width: 100%; height: 100%; object-fit: cover; }
.lv-fig .n { display: block; font-size: 11px; font-weight: 800; padding: 4px; border-top: 2px solid #f2b70d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-fig.out { opacity: .4; }
.lv-fig.out .n { border-top-color: #dde2ea; }
.lv-badge { position: absolute; top: 4px; right: 4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; background: #dde2ea; color: #26283c; box-sizing: border-box; }
.lv-badge.ok { background: #2ca85a; color: #fff; }
.lv-badge.ko { background: #e63946; color: #fff; }
.lv-list { display: grid; gap: 6px; font-size: 14px; }
.lv-list div { display: flex; justify-content: space-between; gap: 10px; }
.lv-bar { height: 8px; border-radius: 99px; background: #eef1f6; overflow: hidden; margin-top: 3px; }
.lv-bar i { display: block; height: 100%; background: #2462e7; }
.lv-reacts { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-reacts span { background: #f4f6fa; border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.lv-empty { color: var(--text-gray); font-size: 14px; }
.lv-hist { border-top: 1px solid #eef1f6; padding: 10px 0; font-size: 14px; }
/* Dettaglio: schede strette, la tabella prende lo spazio che resta. */
.br-card { padding: 0 !important; }
.br-card .br-summary { padding: 16px 22px 12px; gap: 10px 20px; }
.br-card .br-actions { padding: 0 22px 16px; }
.br-card .br-tabs { padding: 14px 16px 0; }
.br-card .br-scroll { margin: 10px 16px 16px; max-height: calc(100vh - 400px); }
.lv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; min-height: 0; }
.lv-two .lv-card { overflow: auto; min-height: 0; }
.lv-fig { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.lv-fig .img { width: 100%; overflow: hidden; }
.lv-fig .n { width: 100%; box-sizing: border-box; }
/* Ordine delle materie */
.br-seg { display: inline-flex; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.br-seg button { border: 0; background: #fff; padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--text-gray); cursor: pointer; }
.br-seg button.on { background: #1B2140; color: #fff; }
.br-order-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin-top: 10px; align-items: start; }
.br-order-list { display: grid; gap: 6px; }
.br-order-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 8px; background: #fff; }
.br-order-item b { width: 20px; text-align: center; color: var(--text-gray); }
.br-order-name { flex: 1; font-weight: 700; }
.br-order-item button { width: 28px; height: 28px; border: 1px solid var(--border-color); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 800; }
.br-order-item button:disabled { opacity: .35; cursor: default; }
.br-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.br-order-add { padding: 6px 8px; }
.br-order-preview { margin-top: 0; line-height: 1.9; }
.br-chip-q { display: inline-block; background: #f4f6fa; border-radius: 6px; padding: 1px 8px; margin: 0 4px 4px 0; font-weight: 700; color: #26283c; }
.br-order .br-order-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 8px; }
.br-order-item { padding: 3px 6px; gap: 6px; }
.br-order-item button { width: 24px; height: 24px; font-size: 12px; }
.br-order-name { font-size: 14px; }
.br-order-add { padding: 4px 8px; font-size: 14px; }
.br-order-preview { font-size: 12px; line-height: 1.8; }
.br-seg button { padding: 6px 14px; }
/* Ordine in fila */
.br-order-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.br-order-line .br-order-item { display: inline-flex; padding: 3px 4px; gap: 4px; }
.br-order-line .br-order-item button { width: 22px; height: 22px; border: 0; background: #f4f6fa; font-size: 14px; }
.br-order-line .br-order-item button.x { color: #e53e3e; }
.br-arrow { color: var(--text-gray); font-weight: 800; }
.br-order-line .br-order-add { width: auto; padding: 4px 8px; font-size: 14px; }

/* Testi con LaTeX dentro una riga (risposte, storico del giocatore). */
.lv-tex .latex-preview { display: inline; }
