:root {
  --fond: #14100a;
  --carte: #1e1810;
  --bord: #3a2f1d;
  --texte: #f3ecdf;
  --doux: #b9ab92;
  --miel: #f2b632;
  --vert: #62c370;
  --rouge: #e5544b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 50% 0, #2a1f0f 0, var(--fond) 60%) fixed;
  color: var(--texte);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[hidden] { display: none !important; }
.carte {
  width: 100%;
  max-width: 440px;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.tete { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.marque { font-weight: 800; color: var(--miel); letter-spacing: .02em; }
.sous-titre { color: var(--doux); font-size: 14px; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
p { margin: 0 0 14px; color: var(--doux); }
code { background: #2b2216; border: 1px solid var(--bord); border-radius: 5px; padding: 1px 6px; color: var(--texte); }
button { font: inherit; cursor: pointer; border-radius: 10px; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--miel); outline-offset: 2px; }
.principal {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: var(--miel);
  color: #23190a;
  font-weight: 700;
  margin: 6px 0 14px;
}
.principal:disabled { opacity: .6; cursor: wait; }
.secondaire { width: 100%; padding: 10px 16px; background: transparent; color: var(--doux); border: 1px solid var(--bord); }
.note { font-size: 13px; margin: 0; }
.statut { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 600; }
.pastille { width: 10px; height: 10px; border-radius: 50%; background: var(--doux); }
.pastille.ok { background: var(--vert); box-shadow: 0 0 0 4px rgba(98, 195, 112, .15); }
.pastille.ko { background: var(--rouge); }
.pseudo { margin-left: auto; color: var(--doux); font-weight: 400; font-size: 14px; }
.micro { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.micro-bouton {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #2a2114;
  color: var(--texte);
  border: 1px solid var(--bord);
  white-space: nowrap;
}
.micro-bouton svg { width: 20px; height: 20px; fill: currentColor; }
.micro-bouton .barre { display: none; }
.micro-bouton[aria-pressed="false"] { color: var(--rouge); }
.micro-bouton[aria-pressed="false"] .barre { display: block; }
.micro-bouton:disabled { cursor: not-allowed; opacity: .75; }
.niveau { flex: 1; height: 8px; border-radius: 4px; background: #2a2114; overflow: hidden; }
.niveau span { display: block; height: 100%; width: 0; background: var(--vert); transition: width .08s linear; }
.volume { display: block; color: var(--doux); font-size: 14px; margin-bottom: 18px; }
.volume span { float: right; color: var(--texte); }
.volume input { width: 100%; margin-top: 8px; accent-color: var(--miel); }
.proches { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--bord); border-radius: 10px; margin-bottom: 14px; }
.points { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.points i { width: 10px; height: 10px; border-radius: 50%; background: #4a3d27; }
.points i.parle { background: var(--miel); box-shadow: 0 0 0 3px rgba(242, 182, 50, .2); }
.message { font-size: 14px; color: var(--miel); }
.message:empty { display: none; }
[data-ecran="vocal"] .note { margin-bottom: 14px; }
@media (max-width: 380px) {
  .carte { padding: 18px; }
  .micro { flex-wrap: wrap; }
  .niveau { flex-basis: 100%; }
}
