/* Mêmes couleurs que go_kifu et la revue d'ouverture (copiées, pas importées). */
:root {
  --bg: #14161a; --panel: #1c1f25; --line: #2c313a; --ink: #e6e8ec;
  --muted: #949aa6; --accent: #7fb2ff; --board: #DCB35C;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f5f7; --panel: #fff; --line: #dfe2e8; --ink: #1a1d22;
          --muted: #666d7a; --accent: #1f6feb; }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); display: flex; flex-direction: column;
       font: 14px/1.5 ui-sans-serif, system-ui, "Segoe UI", sans-serif; }

header { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 16px;
         background: var(--panel); border-bottom: 1px solid var(--line); }
header label { display: flex; gap: 6px; align-items: center; color: var(--muted); }
input, select { background: var(--bg); color: var(--ink); border: 1px solid var(--line);
                border-radius: 7px; padding: 6px 8px; font: inherit; }
input[type=number] { width: 5.5em; }
button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 7px;
         padding: 7px 14px; font: inherit; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primaire { background: var(--accent); border-color: var(--accent); color: #fff; }

main { flex: 1; display: flex; min-height: 0; }
#boite { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 12px; }
#plateau { width: 100%; height: 100%; max-height: calc(100dvh - 90px); touch-action: none; user-select: none; }
aside { width: 300px; padding: 14px 16px; border-left: 1px solid var(--line); background: var(--panel);
        display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
#statut { font-weight: 650; margin: 0; }
.discret { color: var(--muted); margin: 0; font-size: 13px; }
.message { color: #ff6b6b; margin: 0; min-height: 1.5em; }
.boutons { display: flex; gap: 8px; }
.option { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.jauge { height: 10px; border-radius: 5px; background: #f2f2f2; overflow: hidden; border: 1px solid var(--line); }
#jauge-noir { height: 100%; width: 50%; background: #222; transition: width .3s; }

@media (max-width: 760px) {
  main { flex-direction: column; }
  #boite { flex: none; height: min(100vw, 62dvh); padding: 6px; }
  aside { width: auto; border-left: none; border-top: 1px solid var(--line); }
}
