/* Fléchettes : panneau modérateur (chargé avec le shell commun admin.css) */

.mode-label { font-weight: 800; color: var(--muted); text-align: right; }

/* tableau des scores */
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 10px; }
.sb-team {
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; position: relative;
  border-top: 8px solid var(--team, var(--line));
}
.sb-team.active { box-shadow: 0 0 0 3px var(--team, var(--blue)); border-color: transparent; border-top-color: var(--team); }
.sb-name { font: 400 22px var(--display); color: var(--night); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-players { font-size: 14px; font-weight: 700; color: var(--muted); min-height: 1.5em; }
.sb-players b { color: var(--ink); }
.sb-score { font: 400 52px/1.05 var(--display); color: var(--night); font-variant-numeric: tabular-nums; }
.sb-sub { font-size: 13px; font-weight: 700; color: var(--muted); }
.sb-darts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; min-height: 28px; }
.sb-darts span { background: var(--snow); border-radius: 8px; padding: 2px 8px; font-weight: 800; font-size: 14px; }
.sb-darts span.ok { background: #dcf3e7; color: #0f6b40; }
.sb-darts span.bust { background: #fde2e4; color: var(--stop); }
.legs { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.legs i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--team, var(--night)); }
.legs i.won { background: var(--team, var(--night)); }
.turn-info { font-weight: 800; min-height: 1.5em; margin: 0 0 16px; }
.turn-info .warn { color: var(--stop); }

.log-title { margin-top: 22px; }
.log { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 260px; overflow: auto; font-variant-numeric: tabular-nums; }
.log li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; font-weight: 700; padding: 4px 6px; border-radius: 8px; }
.log li:nth-child(odd) { background: var(--snow); }
.log li.muted { display: block; background: none; }
.log .dot { width: 12px; height: 12px; border-radius: 50%; }
.log .res { font-size: 13px; color: var(--muted); }
.log .res.bust { color: var(--stop); }
.log .res.win { color: var(--go); }

/* équipes et salle d'attente */
.players-head { display: flex; justify-content: space-between; align-items: baseline; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-team { border-radius: 12px; padding: 10px; background: var(--snow); border-top: 6px solid var(--team, var(--line)); }
.slot-team h4 { margin: 0 0 6px; font: 400 17px var(--display); color: var(--night); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot { display: flex; align-items: center; gap: 6px; background: #fff; border: 2px dashed var(--line); border-radius: 10px; padding: 6px 8px; margin-top: 6px; min-height: 40px; font-weight: 800; }
.slot.filled { border-style: solid; }
.slot .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .free { flex: 1; color: var(--muted); font-weight: 700; }
.slot button { border: 0; background: none; color: var(--muted); font: 800 18px var(--body); cursor: pointer; padding: 0 4px; border-radius: 6px; }
.slot button:hover { color: var(--stop); }
.online { width: 9px; height: 9px; border-radius: 50%; background: #c2ccd8; flex: none; }
.online.on { background: var(--go); }
.slot-actions { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.waiting-title { margin-top: 20px; }
.count { font: 800 13px var(--body); background: var(--ice); color: var(--night); border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.small-note { font-size: 13px; margin: 2px 0 8px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow: auto; }
.people li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; }
.people li:hover { background: var(--snow); }
.people .name { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .placed { font-size: 12px; color: var(--muted); font-weight: 700; }
.place-btns { display: flex; gap: 4px; }
.place-btns button {
  font: 800 12px var(--body); border-radius: 8px; padding: 4px 8px; cursor: pointer;
  border: 2px solid var(--team, var(--line)); background: #fff; color: var(--ink);
}
.place-btns button:hover { background: var(--team); color: #fff; }

/* paramètres */
.board-edit { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.board-preview { width: 260px; height: 260px; border-radius: 50%; flex: none; }
.color-grid { flex: 1; min-width: 280px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; }
.color-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
.decor-pick { display: grid; gap: 8px; }
.decor-btn {
  text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer;
  font: 600 14px var(--body); color: var(--muted); display: grid; gap: 2px;
}
.decor-btn b { font: 400 19px var(--display); color: var(--night); }
.decor-btn[aria-pressed=true] { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); background: var(--ice); }
[data-game="flechettes"] .phone-preview i { width: 14px; height: 52px; border-radius: 6px; background: linear-gradient(#e9edf2 0 45%, var(--dart, #29abe2) 45%); }

[data-game="flechettes"] .chip.lobby { background: var(--ice); }
.decor-btn { width: 100%; min-width: 0; }
.decor-btn span { overflow-wrap: anywhere; }
