/* ==========================================================================
   TRANSMISSION-7 — feuille de style globale
   Thème : poste de contrôle extraterrestre / signal capté depuis l'espace
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Couleurs — palette "console dans le vide" */
  --void:          #060910;   /* fond principal, vide spatial */
  --void-deep:     #030408;   /* fond le plus sombre, pour contraste */
  --panel:         #0d1420;   /* panneaux / cartes / tableaux */
  --panel-line:    #1b2636;   /* bordures fines des panneaux */

  --bio:           #6dffb0;   /* vert bioluminescent — accent principal */
  --bio-dim:       #2f6b52;   /* vert atténué (bordures, hover discret) */
  --signal:        #5fd8ff;   /* cyan signal — liens, focus */
  --alert:         #ffb454;   /* ambre — alertes, flash messages */
  --danger:        #ff6d6d;   /* rouge signal — erreurs critiques */
  --violet:        #b98dff;   /* violet — 5e accent (code lumineux) */

  --text:          #dff5ea;   /* texte principal */
  --text-dim:      #7f9a90;   /* texte secondaire */
  --text-faint:    #4c6058;   /* texte tertiaire / placeholders */

  /* Typographie */
  --font-display:  'Space Mono', 'Courier New', monospace;
  --font-body:     'Manrope', -apple-system, sans-serif;

  /* Rythme */
  --radius:        3px;
  --gap:           1.5rem;
  --glow: 0 0 12px rgba(109, 255, 176, 0.35);
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background-color: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Fond : champ d'étoiles + bruit de signal ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--void);
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(223, 245, 234, 0.6) 0, transparent 60%),
    radial-gradient(1px 1px at 65% 15%, rgba(223, 245, 234, 0.4) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 70%, rgba(109, 255, 176, 0.5) 0, transparent 60%),
    radial-gradient(1px 1px at 40% 85%, rgba(95, 216, 255, 0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 90% 40%, rgba(223, 245, 234, 0.5) 0, transparent 60%),
    radial-gradient(1px 1px at 10% 65%, rgba(223, 245, 234, 0.3) 0, transparent 60%);
  background-repeat: repeat;
  background-size: 600px 600px;
}

/* fines lignes de scan, très discrètes, comme un signal capté */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(109, 255, 176, 0.02),
    rgba(109, 255, 176, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bio);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 1rem;
}

h1 {
  font-size: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--panel-line);
  display: inline-block;
}

h1::before { content: "// "; color: var(--text-faint); }

h1 a {
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

h1 a:hover {
  color: var(--signal);
  text-shadow: 0 0 10px rgba(95, 216, 255, 0.5);
}

h2 { font-size: 1.1rem; color: var(--signal); }

p { color: var(--text-dim); }

a {
  color: var(--signal);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
  color: var(--bio);
  text-shadow: 0 0 8px rgba(109, 255, 176, 0.5);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--bio);
  outline-offset: 2px;
}

/* ---------- Layout général ---------- */
main, .content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---------- Navigation : console de commandement ---------- */
nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, var(--void-deep), var(--void));
  border-bottom: 1px solid var(--bio-dim);
  box-shadow: 0 1px 0 rgba(109, 255, 176, 0.08), var(--glow);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  position: relative;
}

nav a::before { content: "· "; color: var(--bio-dim); }

nav a:hover {
  color: var(--bio);
  border-color: var(--bio-dim);
  background: rgba(109, 255, 176, 0.06);
  text-shadow: none;
}

nav a:last-child { margin-left: auto; }

nav a.lien-admin {
  color: var(--alert);
  border-color: rgba(255, 180, 84, 0.35);
  background: rgba(255, 180, 84, 0.08);
}

nav a.lien-admin::before { color: var(--alert); }

nav a.lien-admin:hover {
  color: var(--alert);
  border-color: var(--alert);
  background: rgba(255, 180, 84, 0.16);
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.3);
}

/* ---------- Formulaires ---------- */
form {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 420px;
  margin-top: 1.5rem;
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-bottom: 1.25rem;
  background: var(--void-deep);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus {
  border-color: var(--bio);
  box-shadow: var(--glow);
}

input::placeholder { color: var(--text-faint); }

button, input[type="submit"] {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--void-deep);
  background: var(--bio);
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

button:hover, input[type="submit"]:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

button:active, input[type="submit"]:active { transform: translateY(0); }

/* ---------- Bouton danger (ex: fermer une partie) ---------- */
.btn-danger {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-danger:hover {
  background: rgba(255, 109, 109, 0.16);
  box-shadow: 0 0 12px rgba(255, 109, 109, 0.35);
  transform: translateY(-1px);
}

.deja-fermee { color: var(--text-faint); }

/* ---------- Modale de révélation du rôle ---------- */
.modale-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 8, 0.85);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modale-overlay[hidden] { display: none; }

.modale-role {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  padding: 2.5rem 2rem 2rem;
  max-width: 480px;
  width: calc(100% - 3rem);
  text-align: center;
}

.modale-role .eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.modale-role h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.modale-role p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modale-role {
  max-height: 85vh;
  overflow-y: auto;
}

.recit-jerry {
  text-align: left;
  background: rgba(109, 255, 176, 0.05);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.recit-jerry .eyebrow {
  color: var(--bio) !important;
  text-align: center;
}

.recit-jerry p {
  font-style: italic;
  font-size: 0.88rem !important;
}

.separateur-recit {
  border: none;
  border-top: 1px dashed var(--panel-line);
  margin: 1.25rem 0;
}

.coequipiers-alien {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px dashed var(--danger);
  color: var(--danger) !important;
}

.coequipiers-alien strong { color: var(--danger); }

.modale-fermer {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 109, 109, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.modale-fermer:hover {
  background: rgba(255, 109, 109, 0.2);
  box-shadow: 0 0 10px rgba(255, 109, 109, 0.4);
}

/* ---------- Icône de rappel du rôle (coin haut droit, au niveau du titre) ---------- */
.rappel-role {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  color: var(--bio);
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.rappel-role:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.rappel-regles {
  position: fixed;
  top: 4.75rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  color: var(--bio);
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.rappel-regles:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.rappel-role-pastille {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--void-deep);
  box-shadow: 0 0 6px rgba(255, 109, 109, 0.7);
}

/* ---------- Panneau des rôles restants ---------- */
.annonces-partie {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  max-width: 600px;
}

.annonces-partie:empty { margin: 0; }

/* repliable par défaut : évite que la liste des rôles restants + indices n'occupe tout l'écran
   avant même d'arriver aux boutons d'action, en particulier sur téléphone */
.panneau-roles-details {
  max-width: 600px;
  margin: 0 0 1.5rem;
}

.panneau-roles-details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}

.panneau-roles-details[open] summary { border-radius: var(--radius) var(--radius) 0 0; }

.panneau-roles-details .panneau-roles-restants { margin-top: 0.5rem; }

.options-avancees-corps {
  padding: 1rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.options-avancees-corps fieldset {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 0.25rem;
  margin: 0 0 1.25rem;
}

.options-avancees-corps fieldset:last-child { margin-bottom: 0; }

.options-avancees-corps legend {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bio);
  padding: 0 0.4rem;
}

.options-avancees-corps .champ label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.options-avancees-corps .champ input[type="number"] { max-width: 8rem; }

.panneau-roles-restants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  max-width: 600px;
}

.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
}

.badge-role-emoji { font-size: 1rem; }

.badge-role-eteint {
  color: var(--text-faint);
  border-color: var(--panel-line);
  opacity: 0.5;
  text-decoration: line-through;
}

.badge-elimination {
  color: var(--alert);
  background: rgba(255, 180, 84, 0.08);
  border-color: rgba(255, 180, 84, 0.35);
}

.badge-elimination.mode-attaque {
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border-color: rgba(255, 109, 109, 0.35);
}

/* ---------- Indice ADN (Biologiste éliminé) ---------- */
.indice-dna {
  max-width: 600px;
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(185, 141, 255, 0.06);
  border: 1px solid var(--violet);
  border-radius: var(--radius);
}

.indice-dna .eyebrow {
  color: var(--violet) !important;
  margin-bottom: 0.4rem;
}

.indice-dna p:not(.eyebrow) {
  color: var(--text);
  margin-bottom: 0 !important;
}

/* ---------- Écran de fin de partie ---------- */
.ecran-fin {
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  padding: 2.5rem 2rem;
  max-width: 480px;
  text-align: center;
  margin-bottom: 2rem;
}

.ecran-fin .eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.ecran-fin h1 {
  font-size: 1.6rem;
  border: none;
  padding: 0;
}

.ecran-fin h1::before { content: none; }

.ecran-fin.mode-attaque {
  border-color: var(--danger);
  box-shadow: 0 0 12px rgba(255, 109, 109, 0.35);
}

.ecran-fin.mode-attaque h1 { color: var(--danger); }

.ecran-fin.mode-biologiste {
  border-color: var(--violet);
  box-shadow: 0 0 12px rgba(185, 141, 255, 0.35);
}

.ecran-fin.mode-biologiste h1 { color: var(--violet); }

/* ---------- Annonce de phase suivante ---------- */
.annonce-phase {
  background: var(--panel);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  box-shadow: 0 0 12px rgba(95, 216, 255, 0.3);
  padding: 1.5rem 2rem;
  max-width: 420px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.annonce-phase .eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}

.annonce-phase h2 {
  font-size: 1.3rem;
  color: var(--signal);
  margin: 0;
}

/* ---------- Panneau mini-jeu ---------- */
.panneau-mini-jeu {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
}

.panneau-mini-jeu .eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--signal);
  margin-bottom: 0.5rem;
}

.panneau-mini-jeu p:not(.eyebrow) {
  margin-bottom: 1.5rem;
}

.panneau-mini-jeu form { background: none; border: none; padding: 0; max-width: none; margin: 0; }

.carte-secrete-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.25rem !important;
}

.carte-secrete {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--bio);
  text-shadow: 0 0 12px rgba(109, 255, 176, 0.4);
  margin-bottom: 1rem !important;
}

.cartes-posees {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.carte-posee {
  font-family: var(--font-display);
  font-size: 0.85rem;
  background: rgba(95, 216, 255, 0.08);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  color: var(--text);
}

.carte-anonyme {
  background: rgba(255, 109, 109, 0.08);
  border: 1px dashed var(--danger);
  color: var(--danger);
}

/* ---------- Chrono de vote ---------- */
.chrono-vote {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--signal);
  margin-bottom: 1.25rem !important;
}

/* ---------- Liste de cibles sélectionnables (vote / attaque) ---------- */
.liste-cibles {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 480px;
}

.liste-cibles li { margin-bottom: 0.6rem; }

.liste-cibles label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.liste-cibles input[type="radio"],
.liste-cibles input[type="checkbox"] {
  accent-color: var(--bio);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.liste-cibles label:hover {
  border-color: var(--bio-dim);
  color: var(--text);
}

.liste-cibles input[type="radio"]:checked + span,
.liste-cibles input[type="checkbox"]:checked + span {
  color: var(--bio);
}

.liste-cibles li:has(input[type="radio"]:checked) label,
.liste-cibles li:has(input[type="checkbox"]:checked) label {
  border-color: var(--bio);
  background: rgba(109, 255, 176, 0.06);
  color: var(--text);
}

.liste-cibles input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.liste-cibles li:has(input[type="checkbox"]:disabled) label {
  opacity: 0.45;
  cursor: not-allowed;
}

.liste-cibles.mode-attaque li:has(input[type="radio"]:checked) label {
  border-color: var(--danger);
  background: rgba(255, 109, 109, 0.06);
}

.liste-cibles.mode-attaque input[type="radio"] { accent-color: var(--danger); }

/* ---------- Votes des Aliens en direct ---------- */
.votes-en-direct {
  max-width: 480px;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
}

.votes-en-direct h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--danger);
}

.votes-en-direct ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.votes-en-direct li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.9rem;
}

.votes-en-direct li:last-child { border-bottom: none; }

/* ---------- Bannière de résultat (élimination) ---------- */
.banniere-resultat {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--alert);
  background: rgba(255, 180, 84, 0.08);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-left: 3px solid var(--alert);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.banniere-resultat.mode-attaque {
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border-color: rgba(255, 109, 109, 0.35);
  border-left-color: var(--danger);
}

.banniere-resultat strong { color: var(--text); }

form p {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.separateur {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.separateur::before,
.separateur::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--panel-line);
}

.nouveau-joueur {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

/* ---------- Messages flash — alertes de la console ---------- */
.alert {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--alert);
  background: rgba(255, 180, 84, 0.08);
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-left: 3px solid var(--alert);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.5rem;
  max-width: 420px;
}

.alert::before { content: "⚠ "; }

/* variantes par catégorie Flask : message, error, success, warning, info */
.alert.error {
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border-color: rgba(255, 109, 109, 0.35);
  border-left-color: var(--danger);
}

.alert.success {
  color: var(--bio);
  background: rgba(109, 255, 176, 0.08);
  border-color: rgba(109, 255, 176, 0.35);
  border-left-color: var(--bio);
}

.alert.success::before { content: "✓ "; }
.alert.error::before { content: "✕ "; }

.alert.info {
  color: var(--signal);
  background: rgba(95, 216, 255, 0.08);
  border-color: rgba(95, 216, 255, 0.35);
  border-left-color: var(--signal);
}

.alert.info::before { content: "ℹ "; }

/* ---------- Message d'état (ex: partie fermée) ---------- */
.message-etat {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border: 1px solid rgba(255, 109, 109, 0.35);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  max-width: 420px;
}

.message-etat::before { content: "⏻ "; }

/* ---------- Erreurs de champ de formulaire ---------- */
.champ { margin-bottom: 1.25rem; }

.champ-case label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.champ-case input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  cursor: pointer;
}

.erreur {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border: 1px solid rgba(255, 109, 109, 0.35);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  margin-top: 0.4rem;
}

.erreur::before { content: "⚠ "; }

/* ---------- Lien-bouton secondaire (ex: retour au menu) ---------- */
.btn-lien {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-lien::before { content: "← "; color: var(--text-faint); }

.btn-lien.sans-fleche::before { content: none; }

.btn-lien:hover {
  color: var(--bio);
  border-color: var(--bio-dim);
  box-shadow: var(--glow);
  text-shadow: none;
}

/* ---------- Bouton secondaire plein (ex: créer un compte) ---------- */
.btn-secondaire {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal);
  background: rgba(95, 216, 255, 0.06);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-secondaire:hover {
  background: rgba(95, 216, 255, 0.14);
  box-shadow: 0 0 12px rgba(95, 216, 255, 0.35);
  color: var(--signal);
  text-shadow: none;
  transform: translateY(-1px);
}

/* ---------- Tableaux — journal de données captées ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
}

thead th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bio);
  background: var(--void-deep);
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--bio-dim);
}

tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.9rem;
  color: var(--text-dim);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(109, 255, 176, 0.04); color: var(--text); }

/* ---------- Bouton d'activation du son (petite pastille, ne gêne pas le reste de l'écran) ---------- */
.bouton-son {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.bouton-son:hover {
  box-shadow: 0 0 12px rgba(95, 216, 255, 0.4);
  transform: translateY(-2px);
}

/* ---------- Chat général de l'équipage ---------- */
.chat-bouton {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: 50%;
  color: var(--bio);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.chat-bouton:hover {
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 109, 109, 0.8);
  animation: pulse-chat 1.2s ease-in-out infinite;
}

@keyframes pulse-chat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ---------- Sous-menu discret du chat des Aliens (volontairement peu visible) ---------- */
.chat-toggle-discret {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.15s ease;
}

.chat-toggle-discret:hover { opacity: 0.9; box-shadow: none; transform: none; }

.chat-badge-discret {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}

.modale-chat {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  padding: 2.5rem 1.5rem 1.5rem;
  max-width: 480px;
  width: calc(100% - 3rem);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modale-chat .eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  text-align: center;
}

.chat-messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 150px;
  max-height: 45vh;
  background: var(--void-deep);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}

.chat-messages li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  border-bottom: 1px solid var(--panel-line);
}

.chat-messages li:last-child { border-bottom: none; }

.chat-pseudo {
  font-family: var(--font-display);
  color: var(--bio);
  margin-right: 0.4rem;
}

#chat-form { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0; }
#chat-form input { margin-bottom: 0; }
#chat-form button { flex-shrink: 0; }

/* ---------- Tableau défilable horizontalement (mobile) ---------- */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 2.5rem;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  margin-bottom: 0;
  min-width: 480px;
}

/* ---------- Code lumineux (mini-jeu type Simon) ---------- */
.info-manche {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--signal);
  margin-bottom: 1rem !important;
}

.grille-code-lumineux {
  display: grid;
  grid-template-columns: repeat(2, 7.5rem);
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto 1.5rem;
}

.bouton-lumineux {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--panel-line);
  background: var(--panel);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bouton-lumineux:disabled { cursor: default; opacity: 0.55; }

/* boutons 1-2 : rangée du haut · bouton 3 : rangée du milieu, centré · boutons 4-5 : rangée du bas */
.bouton-lumineux.b3 { grid-column: 1 / span 2; justify-self: center; }

.bouton-lumineux.b1 { border-color: var(--bio-dim); }
.bouton-lumineux.b2 { border-color: var(--signal); }
.bouton-lumineux.b3 { border-color: var(--alert); }
.bouton-lumineux.b4 { border-color: var(--danger); }
.bouton-lumineux.b5 { border-color: var(--violet); }

.bouton-lumineux.b1.actif { background: var(--bio); box-shadow: 0 0 25px 6px rgba(109, 255, 176, 0.7); }
.bouton-lumineux.b2.actif { background: var(--signal); box-shadow: 0 0 25px 6px rgba(95, 216, 255, 0.7); }
.bouton-lumineux.b3.actif { background: var(--alert); box-shadow: 0 0 25px 6px rgba(255, 180, 84, 0.7); }
.bouton-lumineux.b4.actif { background: var(--danger); box-shadow: 0 0 25px 6px rgba(255, 109, 109, 0.7); }
.bouton-lumineux.b5.actif { background: var(--violet); box-shadow: 0 0 25px 6px rgba(185, 141, 255, 0.7); }

.bouton-lumineux:not(:disabled):hover { transform: translateY(-2px); }

.statut-code-lumineux {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 1rem !important;
}

/* ---------- Calcul de coordonnées ---------- */
.origine-calcul {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.25rem !important;
}

.calcul-texte {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1rem !important;
}

.valeur-recue {
  color: var(--signal);
  text-shadow: 0 0 10px rgba(95, 216, 255, 0.5);
}

#form-calcul { display: flex; gap: 0.75rem; align-items: flex-start; }
#form-calcul input { margin-bottom: 0; }
#form-calcul button { flex-shrink: 0; }

.recap-calcul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.recap-calcul li {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
  background: var(--panel);
}

.recap-calcul li.recap-juste { border-color: var(--bio-dim); color: var(--bio); }
.recap-calcul li.recap-faux { border-color: var(--danger); color: var(--danger); }

/* ---------- Pictionnary ---------- */
.zone-canvas-pictionnary {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

#canvas-pictionnary {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}

#image-recue-pictionnary {
  display: block;
  width: 100%;
}

/* ---------- Événement aléatoire : tempête de météorites (labyrinthe) ---------- */
.zone-labyrinthe-meteorite {
  width: 100%;
  margin-bottom: 1.25rem;
}

.grille-labyrinthe {
  display: grid;
  grid-auto-rows: 1fr;
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--bio);
  border-radius: var(--radius);
  overflow: hidden;
}

.cellule-labyrinthe {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--void-deep);
  font-size: 0.75rem;
}

.cellule-labyrinthe.cellule-joueur {
  background: var(--signal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--void-deep);
}

.dpad-labyrinthe {
  display: grid;
  grid-template-columns: 3.5rem 3.5rem 3.5rem;
  grid-template-areas:
    ".    haut  ."
    "gauche bas droite";
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.dpad-bouton {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.3rem;
  font-family: var(--font-display);
  color: var(--void-deep);
  background: var(--bio);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.dpad-haut { grid-area: haut; }
.dpad-bas { grid-area: bas; }
.dpad-gauche { grid-area: gauche; }
.dpad-droite { grid-area: droite; }

/* ---------- Réparation des moteurs ---------- */
.boutons-vote-equipe, .boutons-mission {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-oui {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--void-deep);
  background: var(--bio);
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

.btn-non {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

.btn-casser {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--danger);
  background: rgba(255, 109, 109, 0.08);
  border: 1px dashed var(--danger);
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

.btn-rechercher {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  background: rgba(185, 141, 255, 0.08);
  border: 1px solid var(--violet);
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

.votes-equipe-resultat li.choix-tuer { border-color: var(--danger); color: var(--danger); }
.votes-equipe-resultat li.choix-rechercher { border-color: var(--violet); color: var(--violet); }

#btn-choix-tuer.choix-actif, #btn-choix-rechercher.choix-actif {
  box-shadow: 0 0 0 3px currentColor inset;
  font-weight: bold;
}

/* ---------- Sélection du Capitaine (mini-jeu de réflexes) ---------- */
.capitaine-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.zone-dots-capitaine {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: min(340px, 60vh);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  box-sizing: border-box;
  touch-action: manipulation;
}

.dot-capitaine {
  position: absolute;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  max-width: 46px;
  max-height: 46px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.dot-vert {
  background: var(--bio);
  box-shadow: 0 0 16px 5px rgba(109, 255, 176, 0.65);
}

.dot-rouge {
  background: var(--danger);
  box-shadow: 0 0 16px 5px rgba(255, 109, 109, 0.65);
}

.liste-classement-capitaine {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 480px;
}

.liste-classement-capitaine li {
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
}

.liste-classement-capitaine li.ligne-capitaine {
  border-color: var(--bio);
  box-shadow: 0 0 12px rgba(109, 255, 176, 0.35);
  font-weight: bold;
}

.liste-avantages-apercu {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.liste-avantages-apercu li {
  padding: 0.4rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.equipe-proposee {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.equipe-proposee li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  background: rgba(95, 216, 255, 0.08);
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  color: var(--text);
}

.votes-equipe-resultat {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.votes-equipe-resultat li {
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--panel-line);
}

.votes-equipe-resultat li.vote-oui { border-color: var(--bio-dim); color: var(--bio); }
.votes-equipe-resultat li.vote-non { border-color: var(--danger); color: var(--danger); }

.recap-reparation-manche {
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.recap-reparation-manche.recap-juste { border-color: var(--bio-dim); }
.recap-reparation-manche.recap-faux { border-color: var(--danger); }

.recap-reparation-manche h3 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.recap-reparation-tentative {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  nav { gap: 0.25rem; padding: 0.75rem 1rem; }
  nav a { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
  nav a:last-child { margin-left: 0; }
  main, .content { padding: 0.75rem 1rem 3rem; }
  form { padding: 1.25rem; }

  /* le titre "Aliens" en haut de CHAQUE page (lien retour accueil, dans base.html) n'a pas besoin
     de toute la place d'un vrai titre de page : sur téléphone, il ne doit pas repousser le contenu
     utile (boutons d'action) hors de l'écran visible sans avoir à scroller */
  .container > h1:first-of-type {
    font-size: 0.95rem;
    padding-bottom: 0.3rem;
    margin-bottom: 0.75rem;
  }

  h1, h2, h3, h4 { margin-bottom: 0.6rem; }
  h1 { font-size: 1.25rem; padding-bottom: 0.4rem; }

  /* le panneau "état de la partie" (rôles restants, indices) est repliable : son résumé doit
     rester discret pour ne pas, lui non plus, repousser les boutons d'action */
  .annonces-partie { margin-bottom: 0.75rem; }
  .panneau-roles-details { margin-bottom: 1rem; }
  .panneau-roles-details summary { font-size: 0.68rem; padding: 0.4rem 0.6rem; }

  p { margin-bottom: 0.85rem; }

  /* boutons pleine largeur : cibles tactiles plus grandes et plus faciles à toucher au pouce, et
     pas de risque de devoir défiler horizontalement pour voir un bouton coupé */
  form button, form input[type="submit"],
  .panneau-mini-jeu button:not(.bouton-lumineux),
  .boutons-vote-equipe button, .boutons-mission button {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
  }

  /* code lumineux : boutons carrés plus petits pour tenir sur un écran de téléphone */
  .grille-code-lumineux { grid-template-columns: repeat(2, 5.5rem); }
  .bouton-lumineux { width: 5.5rem; height: 5.5rem; }

  /* calcul de coordonnées : champ et bouton empilés plutôt que côte à côte */
  #form-calcul { flex-direction: column; }

  /* chat général : idem, champ et bouton empilés */
  #chat-form { flex-direction: column; }
  .modale-chat { padding-top: 2.25rem; }

}

/* ---------- Mockups schématiques des écrans (page des règles) ---------- */
.mockup-ecran {
  max-width: 320px;
  margin: 0.75rem 0 1.25rem;
  background: var(--void-deep);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.mockup-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  background: var(--panel);
  border-bottom: 1px solid var(--panel-line);
}

.mockup-pastilles { display: flex; gap: 0.3rem; }
.mockup-pastilles span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--panel-line);
}

.mockup-chrono {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.mockup-corps { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* Sélection du Capitaine : grille de points verts/rouges */
.mockup-grille-points {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
}
.mockup-grille-points span { width: 100%; aspect-ratio: 1; border-radius: 50%; background: transparent; }
.mockup-point-vert { background: var(--bio) !important; box-shadow: 0 0 6px rgba(109, 255, 176, 0.6); }
.mockup-point-rouge { background: var(--danger) !important; box-shadow: 0 0 6px rgba(255, 109, 109, 0.6); }

/* Vote / phases de nuit : liste de lignes joueur + bouton */
.mockup-ligne-joueur {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}
.mockup-radio { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text-faint); flex-shrink: 0; }
.mockup-radio.mockup-coche { border-color: var(--signal); background: var(--signal); }
.mockup-nom-barre { height: 8px; border-radius: 2px; background: var(--text-faint); opacity: 0.6; flex-grow: 1; }
.mockup-bouton {
  align-self: flex-end;
  font-family: var(--font-display);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--void-deep);
  background: var(--bio);
  border-radius: var(--radius);
  padding: 0.3rem 0.75rem;
}

/* Avantages : rangée de boutons de choix */
.mockup-rangee-boutons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mockup-pilule {
  font-family: var(--font-display);
  font-size: 0.62rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  border-radius: var(--radius);
  padding: 0.3rem 0.55rem;
}

/* Tempête de météorites : labyrinthe + pavé directionnel */
.mockup-labyrinthe {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 0.4rem;
  background: var(--void);
  border-radius: var(--radius);
}
.mockup-labyrinthe span { aspect-ratio: 1; background: var(--panel); border-radius: 1px; }
.mockup-labyrinthe span.mockup-mur { background: var(--panel-line); }
.mockup-labyrinthe span.mockup-joueur { background: var(--signal); box-shadow: 0 0 6px rgba(95, 216, 255, 0.7); }
.mockup-labyrinthe span.mockup-sortie { background: var(--alert); box-shadow: 0 0 6px rgba(255, 180, 84, 0.7); }

.mockup-dpad {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  grid-template-rows: repeat(3, 28px);
  gap: 3px;
  align-self: center;
  margin-top: 0.25rem;
}
.mockup-dpad span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Boutons flottants : coin d'écran avec les 2 icônes toujours visibles */
.mockup-flottant-zone {
  position: relative;
  height: 90px;
  background: var(--void);
  border-radius: var(--radius);
}
.mockup-flottant-icone {
  position: absolute;
  bottom: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--bio-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.mockup-flottant-icone.mockup-icone-role { right: 5.8rem; color: var(--bio); }
.mockup-flottant-icone.mockup-icone-regles { right: 3.2rem; color: var(--alert); }
.mockup-flottant-icone.mockup-icone-chat { right: 0.6rem; color: var(--signal); }

/* ---------- Accessibilité : réduction de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}