/* Panneaux liés aux règles : préparation, combat, compteurs, journal, alertes caméra, fin de partie */
.small { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.box { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow); }
.box h3 { margin: 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: 4px; }
.btnrow > button { flex: 1 1 auto; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
button.wide { width: 100%; padding: 9px 10px; }
button.ghost { background: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }

.leader-form { display: grid; gap: 6px; }
.leader-form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.leader-form label { display: grid; gap: 2px; font-size: 11px; color: var(--muted); }
.leader-form input, .leader-form select { width: 100%; min-width: 0; }
.box select { background: var(--sunken); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; font: inherit; }
.first { display: grid; gap: 4px; font-size: 13px; }

.phases span { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.phases span.on { background: var(--gold); color: #111; border-color: var(--gold); font-weight: 600; }

.battle { border-color: var(--straw-red); box-shadow: 0 0 0 1px rgb(200 48 44 / .4), var(--shadow); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.versus > div { display: grid; gap: 2px; padding: 6px; border-radius: var(--radius); background: var(--sunken); border-left: 3px solid var(--opp); }
.versus > div.me { border-left-color: var(--me); }
.versus b { font: 700 13px/1.2 var(--f-display); }
.versus span { font: 700 20px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--gold); }
.versus small { font-size: 11px; color: var(--muted); }
.versus i { font-style: normal; color: var(--muted); font-size: 12px; }

.player .pname { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.player .pname small { font: 500 12px/1.2 var(--f-body); color: var(--muted); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.counters { grid-template-columns: repeat(3, 1fr); }
.counter .v { font-size: 20px; }
.counter .adj { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.counter .adj button { padding: 0 7px; font-size: 12px; line-height: 1.4; box-shadow: none; }
.donline { margin-top: 6px; }

.log li.manual { color: #ffb15c; }
.log li.refused { color: #ff8080; }
.log li.undo { color: var(--muted); font-style: italic; }
.log li.cam { color: var(--gold); }

.zone.legal { border: 2px solid var(--straw-red); background: rgb(200 48 44 / .12); }
.zm-why { grid-column: 1 / -1; margin: -2px 0 2px; font-size: 11.5px; color: #ffb15c; }
.zm-more summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 2px; }
.zm-more[open] summary { margin-bottom: 6px; }
.zm-kw { display: grid; gap: 2px; font-size: 12px; }
.zm-kw label { display: flex; align-items: center; gap: 6px; }
.zm-cost { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.zm-cost input { width: 64px; }
.zmenu input[type=number] { width: 100%; }

.camwarn { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; padding: 6px 12px; border-radius: 999px;
  background: rgb(120 20 20 / .9); border: 1px solid #ff8080; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* mélange ou carte montrée : la caméra du joueur en grand */
.frame.spotlight { position: fixed; z-index: 45; left: 50%; top: 50%; height: auto; width: min(92vw, calc(84vh * 16 / 9));
  transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgb(5 10 18 / .75), 0 10px 40px rgb(0 0 0 / .6); }
.spotlabel { position: fixed; z-index: 46; left: 50%; top: 2vh; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px;
  background: rgb(11 23 36 / .95); border: 2px solid var(--gold); color: var(--gold); font: 700 16px/1.2 var(--f-display); letter-spacing: .04em; }

.gameover { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgb(5 10 18 / .7); }
.gameover > div { display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 460px; padding: 26px 30px; color: var(--ink);
  background: linear-gradient(180deg, var(--parch), var(--parch-dark)); border-radius: 4px; box-shadow: 0 10px 40px rgb(0 0 0 / .6), inset 0 0 40px rgb(120 80 30 / .35); }
.gameover b { font: 700 28px/1.1 var(--f-display); letter-spacing: .04em; }
.gameover p { margin: 0; }
.gameover .btn.primary { background: var(--straw-red); border-color: #8e1f1b; color: #fff; }
