:root { --bg: #12101a; --card: #1e1a2b; --line: #2f2944; --txt: #f4f1fb; --mute: #9a92b5; --acc: #ff3d7f; --ok: #3ddc97; --ko: #ff5a5a; --gold: #ffd23f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 24px 0 10px; }
.mute { color: var(--mute); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 14px 0; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--txt); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
textarea { min-height: 160px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
button { font: inherit; font-weight: 700; color: #fff; background: var(--acc); border: 0; border-radius: 12px; padding: 14px 18px; min-height: 48px; cursor: pointer; }
button.full { width: 100%; margin-top: 16px; }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
button:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.big-num { font-size: 4.5rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.urgent { color: var(--ko); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--line); font-size: 14px; font-weight: 600; }
.ok { color: var(--ok); } .ko { color: var(--ko); }
.solution { font-size: 1.35rem; font-weight: 700; }
.err { color: var(--ko); min-height: 1.4em; margin: 8px 0 0; }
.ranking { list-style: none; padding: 0; margin: 0; }
.ranking li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ranking li:last-child { border: 0; }
.pos { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--line); font-weight: 800; font-size: 14px; flex: none; }
.ranking li:first-child .pos { background: var(--gold); color: #000; }
.tname { flex: 1; font-weight: 600; }
.tscore { font-weight: 800; font-variant-numeric: tabular-nums; }
.offline::before { content: "Connexion perdue… reconnexion en cours"; position: fixed; inset: 0 0 auto; background: var(--ko); color: #fff; text-align: center; padding: 6px; font-weight: 700; z-index: 9; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--mute); font-weight: 600; font-size: 13px; }
td input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ok); }
