/* Identité RaikoGame (web/index.html) : encre, papier, rouge, or. Polices locales
   seulement : aucune requête vers un service tiers depuis la page d'un enfant. */
:root {
  --encre: #120d18;
  --papier: #f6ead8;
  --rouge: #d8343f;
  --or: #ffc23d;
  --gris: #6b6270;
  --vert: #2f9e5b;
  --fond: #efe3cf;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --papier: #1d1622; --encre: #f6ead8; --fond: #120d18; --gris: #b8aebd; }
}
:root[data-theme="dark"] { --papier: #1d1622; --encre: #f6ead8; --fond: #120d18; --gris: #b8aebd; }

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: start center;
  padding: 24px 16px; background: var(--fond); color: var(--encre);
  font: 16px/1.45 "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.carte {
  width: 100%; max-width: 520px; background: var(--papier);
  border: 3px solid var(--encre); border-radius: 14px; box-shadow: 6px 6px 0 var(--encre);
  padding: 20px;
}
h1 { margin: 0; font: 400 34px/1 Bangers, Impact, "Arial Black", sans-serif; letter-spacing: 1px; }
h1 span { color: var(--rouge); }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; color: var(--gris); }
.etat { margin: 6px 0 0; color: var(--gris); font-size: 14px; }
.etat.ok { color: var(--vert); }
.erreur { margin-top: 14px; padding: 10px 12px; border: 2px solid var(--rouge); border-radius: 8px; color: var(--rouge); font-weight: 600; }
.moi { margin-top: 18px; display: grid; gap: 10px; }
.bouton {
  font: inherit; font-weight: 700; padding: 12px 16px; border-radius: 10px; cursor: pointer;
  border: 3px solid var(--encre); background: var(--papier); color: var(--encre); box-shadow: 3px 3px 0 var(--encre);
}
.bouton:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.bouton:disabled { opacity: .5; cursor: not-allowed; }
.bouton.principal { background: var(--rouge); color: #fff; }
.bouton.principal.actif { background: var(--vert); }
.option { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.note { margin: 0; font-size: 13px; color: var(--gris); }
.participants { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.participant {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; border: 2px solid var(--encre); border-radius: 10px;
}
.pastille { width: 14px; height: 14px; border-radius: 50%; background: var(--gris); flex: none; transition: background .1s, box-shadow .1s; }
.participant.parle .pastille { background: var(--or); box-shadow: 0 0 0 4px color-mix(in srgb, var(--or) 40%, transparent); }
.nom { font-weight: 700; flex: 1; min-width: 6em; overflow-wrap: anywhere; }
.participant.moi-meme .actions { display: none; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.petit { font: inherit; font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 2px solid var(--encre); background: transparent; color: var(--encre); cursor: pointer; }
.petit[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
footer { margin-top: 22px; display: grid; gap: 10px; }
