/* ROBOTS — client web v1
   Mise à l'échelle : toute l'interface est dessinée sur une toile de 144 × 90 rem (16:10).
   1 rem = 10 px sur un écran 1440 × 900 ; la toile grandit ou rétrécit avec la fenêtre. */

:root {
  --fond: #16130f;
  --fond2: #1a1612;
  --panneau: #1f1b15;
  --panneau2: #221e18;
  --creux: #16130f;
  --filet: #3d342a;
  --filet2: #2f281f;
  --filet-fort: #5a4c3b;
  --texte: #f2e8d5;
  --texte2: #c7b99f;
  --texte3: #9c8f78;
  --texte4: #7d705d;
  --laiton: #d9a35b;
  --lien: #e8a25c;
  --rouille: #b8541f;
  --rouille-h: #cc6127;
  --ok-fond: #24331f; --ok: #bfe3b6;
  --warn-fond: #3a2c17; --warn: #f5c27a;
  --bad: #f19a94; --bad-fort: #e5534b;
  --vert: #7cc576;
  --meca: #3a8fde; --moteur: #e8283c; --elec: #9a5a2e; --energie: #f5bd1f; --dechet: #8a8f96;
  --logiciel: #3f74c4; --bouclier: #2f8a4a; --arme: #c23a33; --mouvement: #e6a817; --boost: #7d4fb3;
  --avancee: #4f5c68; --standard: #6f6c43;
  --t: 'Big Shoulders Display', 'Barlow Condensed', sans-serif;
  --c: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --b: 'Barlow', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { font-size: min(calc(100vw / 144), calc(100vh / 90)); background: #0c0a08; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #0c0a08; color: var(--texte); font: 400 1.5rem/1.4 var(--b); overflow: hidden; }
.app { width: 144rem; height: 90rem; background: var(--fond); position: relative; overflow: hidden;
  display: flex; flex-direction: column; }
button { font: inherit; color: inherit; }
a { color: var(--lien); }
a:hover { color: #f5c389; }
img { display: block; }
:focus-visible { outline: .3rem solid var(--lien); outline-offset: .2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.defile { overflow: auto; scrollbar-width: thin; scrollbar-color: #4a3f31 transparent; }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 4.8rem;
  padding: 0 2.2rem; border-radius: .8rem; background: var(--rouille); color: #fff; border: 0; cursor: pointer;
  font: 700 1.7rem/1 var(--c); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 -.3rem 0 rgba(0,0,0,.25); }
.btn:hover { background: var(--rouille-h); color: #fff; }
.btn2 { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 4.4rem;
  padding: 0 1.6rem; border-radius: .8rem; background: transparent; color: var(--texte); cursor: pointer;
  font: 600 1.5rem/1 var(--c); letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  border: .15rem solid var(--filet-fort); }
.btn2:hover { border-color: var(--laiton); color: var(--texte); }
.btn[disabled], .btn2[disabled], .chip[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.btn[disabled]:hover { background: var(--rouille); }
.btn2.nu { border-color: transparent; }
.btn2.nu:hover { border-color: var(--filet-fort); }
.btn-col { flex-direction: column; gap: .4rem; }
.btn-col small { font: 500 1.3rem var(--b); letter-spacing: 0; text-transform: none; opacity: .9; }
.chip { display: inline-flex; align-items: center; gap: .6rem; min-height: 4rem; padding: 0 1.2rem; border-radius: .8rem;
  border: .15rem solid var(--filet-fort); background: transparent; color: var(--texte); font: 600 1.4rem var(--c); cursor: pointer; }
.chip.p { min-height: 3.6rem; padding: 0 .8rem; font-size: 1.3rem; gap: .4rem; }
.chip[aria-pressed="true"] { border-color: var(--laiton); background: #3a2c17; }
.icone { width: 2rem; height: 2rem; flex: none; }
.lbl { font: 700 1.3rem/1 var(--c); letter-spacing: .14em; text-transform: uppercase; color: var(--laiton); }
.panel { background: var(--panneau); border: .15rem solid var(--filet); border-radius: 1.4rem; }
.creux { background: var(--creux); border-radius: .8rem; }
.muet { color: var(--texte3); }
.petit { font-size: 1.3rem; }
.raison { font-size: 1.25rem; line-height: 1.35; color: var(--warn); }
.seg { display: flex; border: .15rem solid var(--filet-fort); border-radius: .8rem; overflow: hidden; }
.seg button { flex: 1; min-height: 4.2rem; border: 0; background: transparent; color: #d8ccb4; cursor: pointer;
  font: 600 1.4rem var(--c); letter-spacing: .06em; text-transform: uppercase; padding: 0 1rem; }
.seg button + button { border-left: .15rem solid var(--filet-fort); }
.seg button[aria-pressed="true"] { background: var(--laiton); color: var(--fond); }
.seg button[disabled] { color: var(--texte4); cursor: not-allowed; }

/* ------------------------------------------------------------------ cubes, dés, avatars */
.cube { display: inline-block; width: 1.4rem; height: 1.4rem; border-radius: .3rem; border: .15rem solid rgba(0,0,0,.6);
  box-shadow: inset 0 .2rem 0 rgba(255,255,255,.35), inset 0 -.2rem 0 rgba(0,0,0,.25); vertical-align: middle; flex: none; }
.cube.m { width: 2.4rem; height: 2.4rem; border-radius: .5rem; border-width: .2rem; }
.cube.vide { background: transparent !important; border: .15rem dashed #6f6352; box-shadow: none; }
.cube.attendu { box-shadow: none; }
.r-meca { background: var(--meca); } .r-moteur { background: var(--moteur); }
.r-elec { background: var(--elec); } .r-energie { background: var(--energie); } .r-dechet { background: var(--dechet); }
.cubes { display: inline-flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.de { width: 3.4rem; height: 3.4rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center;
  font: 800 2rem/1 var(--t); border: .2rem solid rgba(0,0,0,.5); box-shadow: inset 0 -.3rem 0 rgba(0,0,0,.2); color: #fff; }
.de.r-energie, .gros-de.r-energie { color: #1d1d1f; }
.gros-de.zero { opacity: .55; }
.de.zero { opacity: .5; }
.gros-de { display: inline-flex; align-items: center; justify-content: center; color: #fff; width: 8.8rem; height: 8.8rem; border-radius: 1.6rem; font: 900 5.2rem/1 var(--t);
  border: .3rem solid rgba(0,0,0,.55);
  box-shadow: inset 0 -.6rem 0 rgba(0,0,0,.22), inset 0 .4rem 0 rgba(255,255,255,.25), 0 .8rem 1.8rem rgba(0,0,0,.5); }
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font: 700 1.6rem var(--c); color: #1d1a15; width: 4rem; height: 4rem; }
.avatar.p { width: 2.6rem; height: 2.6rem; font-size: 1.3rem; }
.avatar.g { width: 4.8rem; height: 4.8rem; font-size: 2rem; }
.pastille { width: .8rem; height: .8rem; border-radius: 50%; flex: none; display: inline-block; }
.pilule { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border-radius: 1.6rem;
  font: 600 1.3rem var(--c); letter-spacing: .05em; text-transform: uppercase; background: var(--panneau2); white-space: nowrap; }
.pilule.ok { background: var(--ok-fond); color: var(--ok); }
.pilule.warn { background: var(--warn-fond); color: var(--warn); }
.pilule.sortie { background: transparent; border: .1rem solid var(--filet); color: var(--texte4); }
.dos-s { width: 3rem; height: 4.2rem; border-radius: .4rem; background: var(--avancee); border: .2rem solid #0f0d0a;
  box-shadow: inset 0 0 0 .3rem #6b7a88; flex: none; }
.dos-a { width: 2.4rem; height: 3.4rem; border-radius: .4rem; background: #7a4a2a; border: .2rem solid #0f0d0a;
  box-shadow: inset 0 0 0 .3rem #9a6440; flex: none; align-self: flex-end; }
.dos { display: flex; gap: .3rem; align-items: flex-end; flex-wrap: wrap; }

/* ------------------------------------------------------------------ en-tête de partie */
.entete { display: flex; align-items: center; gap: 1.2rem 1.6rem; padding: 0 2rem; height: 6.4rem; flex: none;
  border-bottom: .1rem solid var(--filet2); background: var(--fond2); }
.logo { font: 800 2rem/1 var(--t); letter-spacing: .12em; }
.jour { font: 800 2.6rem/1 var(--t); color: var(--laiton); white-space: nowrap; }
.jour span { color: var(--texte4); }
.etapes { display: flex; align-items: center; gap: .2rem; flex: 1; min-width: 0; }
.etape { display: flex; align-items: center; gap: .5rem; font: 600 1.3rem/1 var(--c); letter-spacing: .05em;
  text-transform: uppercase; color: var(--texte4); padding: .7rem .7rem; border-radius: .6rem; white-space: nowrap; }
.etape.faite { color: var(--texte3); }
.etape.courante { background: var(--laiton); color: var(--fond); }
.etapes .tiret { color: #4a4033; font-size: 1.2rem; }
.statut-ia { position: relative; display: inline-flex; }
.statut-ia .marque { position: absolute; right: -.4rem; bottom: -.4rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font: 800 1rem/1 var(--c); border: .2rem solid var(--fond2); }
.statut-ia .marque.ok { background: #3f9e58; color: #fff; }
.statut-ia .marque.encours { background: var(--warn-fond); color: var(--warn); }
.des { display: flex; align-items: center; gap: .6rem; }
.entete .statuts { display: flex; gap: .6rem; }

/* ------------------------------------------------------------------ carte (HTML, pas une image) */
.carte { --cw: 15.6rem; width: var(--cw); height: calc(var(--cw) * 1.436); font-size: calc(var(--cw) / 15.6);
  flex: none; background: #e9ebed; border: .2em solid #0f0d0a; border-radius: 1em; display: flex; flex-direction: column;
  overflow: hidden; color: #1d1d1f; box-shadow: 0 .8em 1.6em rgba(0,0,0,.45); text-align: left; position: relative; }
.c-nom { margin: .6em .6em 0; background: #fff; border: .15em solid #1d1d1f; border-radius: .6em;
  font: 700 1.2em/1.05 var(--c); text-transform: uppercase; text-align: center; padding: .3em .4em; height: 3em;
  display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.c-corps { flex: 1; display: flex; gap: .4em; padding: .5em .6em .3em; min-height: 0; }
.c-rep { display: flex; flex-direction: column; align-items: center; gap: .3em; background: #fff; border: .15em solid #1d1d1f;
  border-radius: .5em; padding: .3em; align-self: flex-start; }
.c-img { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 0; }
.c-img img { width: 100%; height: 100%; max-height: 8.6em; object-fit: contain; }
.c-dem { display: flex; flex-direction: column; gap: .3em; background: #fff; border: .15em solid #1d1d1f; border-radius: .5em;
  padding: .3em .4em; align-self: flex-end; font: 700 1.1em/1 var(--c); }
.c-dem > span { display: flex; align-items: center; gap: .2em; }
.c-dem .cube { width: 1.27em; height: 1.27em; border-radius: .25em; border-width: .14em; }
.c-lbl { font: 800 .9em/1 var(--c); letter-spacing: .03em; }
.slot { width: 1.5em; height: 1.5em; border-radius: .3em; display: block; }
.slot.pose { border: .15em solid rgba(0,0,0,.6); box-shadow: inset 0 .2em 0 rgba(255,255,255,.35), inset 0 -.2em 0 rgba(0,0,0,.25); }
/* Silhouette de compatibilité, comme sur les cartes originales */
.c-compat { display: flex; justify-content: center; padding: 0 .6em .5em; flex: none; }
.c-compat .silhouette { width: 3.2em; height: 3.7em; padding: .25em; background: #fff; border: .1em solid #999; border-radius: .4em; display: block; }
.m-silhouette { width: 2.8rem; height: 3.2rem; padding: .2rem; flex: none; background: #fff; border-radius: .4rem; display: block; }
.c-bande { padding: .5em .7em .6em; display: flex; align-items: center; gap: .7em; min-height: 4.2em; flex: none; color: #fff; }
.c-bande svg { width: 1.8em; height: 1.8em; flex: none; }
.c-fam { display: block; font: 700 .9em/1 var(--c); letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-bottom: .2em; }
.c-eff { display: block; font: 700 1.2em/1.1 var(--c); }
.f-logiciel { background: var(--logiciel); } .f-bouclier { background: var(--bouclier); } .f-arme { background: var(--arme); }
.f-mouvement { background: var(--mouvement); color: #1d1d1f; } .f-boost { background: var(--boost); }
.f-avancee { background: var(--avancee); } .f-standard { background: var(--standard); }
.carte.std .c-img img { max-height: 11em; }
.ruban { position: absolute; top: 8.5em; right: -3.2em; transform: rotate(35deg); background: #3f9e58; color: #fff;
  font: 800 1.1em var(--c); letter-spacing: .14em; padding: .4em 3.4em; }
.mini { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.2rem .6rem .6rem; border-radius: .8rem;
  background: var(--panneau2); border: .15rem solid var(--filet); color: var(--texte); text-align: left; min-height: 5.2rem; }
.mini img { width: 4rem; height: 4rem; object-fit: contain; background: #e9ebed; border-radius: .6rem; flex: none; }
.mini b { display: block; font: 700 1.5rem/1.05 var(--c); }
.mini small { display: block; font-size: 1.2rem; margin-top: .2rem; }
button.mini { cursor: pointer; }
.m-couts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .4rem; }
.m-cout { display: inline-flex; align-items: center; gap: .3rem; }
.m-lbl { font: 700 1.05rem/1 var(--c); letter-spacing: .08em; color: var(--texte3); margin-right: .2rem; }
.m-cout .cube { width: 1.2rem; height: 1.2rem; border-radius: .25rem; }
button.mini[aria-pressed="true"] { border-color: var(--lien); background: #33261a; }
.coul-logiciel { color: #8fb3ec; } .coul-bouclier { color: #86d39d; } .coul-arme { color: #f0948e; }
.coul-mouvement { color: #f5c84a; } .coul-boost { color: #c9a8ee; } .coul-avancee { color: #b9c6d2; } .coul-standard { color: #d6d29a; }
.aide { font: 600 1.3rem/1.2 var(--c); letter-spacing: .03em; padding: .5rem .8rem; border-radius: .5rem; text-align: center; }
.aide.ok { background: var(--ok-fond); color: var(--ok); }
.aide.warn { background: var(--warn-fond); color: var(--warn); }
.aide.hot { background: var(--laiton); color: var(--fond); }
.aide.bad { background: #3a1d1b; color: var(--bad); }

/* ------------------------------------------------------------------ robot stylisé */
.robot { font-size: var(--rs, 1rem); width: 42em; display: flex; flex-direction: column; gap: 1.4em; color: var(--texte); }
.robot-grille { display: grid; grid-template-columns: 10.4em 19.6em 10.4em; column-gap: .8em; justify-content: center; align-items: start; }
.plaque { border: .25em solid #0f0d0a; display: flex; flex-direction: column; align-items: center; gap: .6em;
  padding: .8em .8em 1em; color: #fff; position: relative;
  box-shadow: inset 0 .3em 0 rgba(255,255,255,.14), inset 0 -.4em 0 rgba(0,0,0,.25), 0 .6em 1.4em rgba(0,0,0,.4); }
.plaque.avancee { background: var(--avancee); } .plaque.standard { background: var(--standard); }
.p-nom { font: 700 1.2em/1.05 var(--c); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.p-pv { display: flex; align-items: center; gap: .4em; font: 800 1.5em/1 var(--t); }
.p-bonus { display: inline-flex; align-items: center; gap: .3em; font: 700 .73em/1 var(--c); background: rgba(0,0,0,.28);
  padding: .2em .5em; border-radius: .4em; }
.p-bonus .cube { width: .75em; height: .75em; border-radius: .15em; }
.prises { display: flex; gap: .6em; flex-wrap: wrap; justify-content: center; }
.prise { width: 4.2em; height: 4.2em; border-radius: .8em; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .1em; flex: none; font: 700 1.1em/1 var(--c); }
.prise svg { width: 1.7em; height: 1.7em; }
.prise span { font-size: 1em; }
.prise.pleine { border: .2em solid #0f0d0a; box-shadow: inset 0 .2em 0 rgba(255,255,255,.25); color: #fff; }
.prise.pleine.f-mouvement { color: #1d1d1f; }
.prise.libre { background: rgba(0,0,0,.35); color: rgba(255,255,255,.55); border: .2em dashed rgba(255,255,255,.4); }
.prise.cible { background: rgba(108,192,112,.22); color: #d6f2cc; border: .25em solid var(--vert);
  box-shadow: 0 0 0 .3em rgba(124,197,118,.25); }
.manque { border: .25em dashed var(--bad-fort); background: rgba(229,83,75,.07); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .4em; text-align: center; color: var(--bad); padding: .8em; }
.manque small { font-size: 1.15em; line-height: 1.3; color: #e8b5b0; }
.r-liste { display: flex; flex-direction: column; gap: .6em; }
.r-ligne { display: flex; gap: .8em; align-items: flex-start; }
.r-ligne > b { width: 5.6em; flex: none; padding-top: .5em; font: 700 1.2em var(--c); letter-spacing: .1em; color: var(--texte3); }
.r-ligne > span { display: flex; gap: .5em; flex-wrap: wrap; }
.r-ligne i { font-style: normal; padding: .4em .7em; border-radius: .5em; font: 600 1.3em/1.15 var(--c); }

/* ------------------------------------------------------------------ fenêtres */
.voile { position: absolute; inset: 0; background: rgba(10,8,6,.72); display: flex; align-items: center; justify-content: center; z-index: 20; }
.fenetre { background: var(--panneau); border: .2rem solid #6b4426; border-radius: 1.8rem; padding: 2.8rem 3.2rem;
  display: flex; flex-direction: column; gap: 2rem; box-shadow: 0 2.4rem 6rem rgba(0,0,0,.6); max-height: 84rem; }
.fenetre h1 { margin: 0; font: 800 4rem/1 var(--t); }
.tiroir { position: absolute; top: 0; right: 0; bottom: 0; width: 54rem; background: var(--panneau); border-left: .2rem solid var(--filet);
  z-index: 15; display: flex; flex-direction: column; box-shadow: -2rem 0 4rem rgba(0,0,0,.5); }
.onglets { display: flex; border-bottom: .1rem solid var(--filet); padding: 0 1.2rem; }
.onglet { flex: 1; min-height: 4.8rem; border: 0; background: transparent; color: var(--texte2); font: 700 1.6rem var(--c);
  letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: .8rem; cursor: pointer;
  border-bottom: .3rem solid transparent; }
.onglet[aria-selected="true"] { color: var(--texte); }
.toasts { position: fixed; right: 2vh; bottom: 2vh; display: flex; flex-direction: column;
  gap: .8rem; z-index: 50; pointer-events: none; align-items: flex-end; font-size: min(calc(100vw / 144), calc(100vh / 90)); }
.toast { background: rgba(31,27,21,.97); border: .15rem solid #6b4426; border-radius: 1rem; padding: .9rem 1.4rem; color: var(--texte);
  font-size: 1.35em; line-height: 1.4; box-shadow: 0 1rem 3rem rgba(0,0,0,.5); max-width: 52em; animation: entree .25s ease-out; }
.toast.erreur { border-color: var(--bad-fort); }
@keyframes entree { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.chargement { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--texte3); font: 600 2rem var(--c); }

/* ------------------------------------------------------------------ accueil & nouvelle partie */
.barre { display: flex; align-items: center; gap: 1.4rem; padding: 0 3.2rem; height: 7rem; flex: none; border-bottom: .1rem solid var(--filet2); }
.tuile { display: flex; flex-direction: column; gap: 1rem; padding: 2.2rem; border-radius: 1.2rem; background: #221e18;
  border: .15rem solid var(--filet); text-decoration: none; color: var(--texte); }
a.tuile:hover, button.tuile:hover { border-color: var(--laiton); background: #29241d; color: var(--texte); }
.etiquette { font: 600 1.4rem/1 var(--c); letter-spacing: .08em; padding: .8rem 1.2rem; border: .1rem solid var(--filet-fort); border-radius: .6rem; color: #e8dcc4; }
.liste-parties { display: flex; flex-direction: column; border: .1rem solid var(--filet); border-radius: 1.2rem; overflow: hidden; }
.ligne-partie { display: flex; align-items: center; gap: 1.6rem; padding: 1.2rem 1.8rem; color: var(--texte); background: #1d1914; }
.ligne-partie + .ligne-partie { border-top: .1rem solid var(--filet); }
.ligne-partie .ouvrir { flex: 1; display: flex; align-items: center; gap: 1.6rem; background: none; border: 0; cursor: pointer;
  text-align: left; padding: 0; min-height: 4.4rem; color: inherit; text-decoration: none; }
.badge { font: 700 1.3rem var(--c); letter-spacing: .1em; padding: .6rem 1rem; border-radius: .4rem; white-space: nowrap; }
.badge.vous { color: var(--fond); background: var(--lien); }
.badge.fin { color: var(--texte2); border: .1rem solid var(--filet-fort); }
.badge { color: var(--texte3); border: .1rem solid var(--filet); }   /* version de la partie */
.badge.vous { border-color: transparent; }
.badge.autre { color: var(--laiton); border-color: #6b4426; }
.pile-avatars { display: flex; }
.pile-avatars .avatar + .avatar { margin-left: -.6rem; }
.pile-avatars .avatar { border: .2rem solid #1d1914; }
.case { display: flex; align-items: center; gap: 1.2rem; font-size: 1.5rem; color: #e8dcc4; min-height: 4.4rem; cursor: pointer; }
.case input { width: 2rem; height: 2rem; accent-color: var(--rouille); }
.champ { min-height: 4.4rem; padding: 0 1.2rem; border-radius: .8rem; border: .15rem solid var(--filet-fort); background: var(--creux);
  color: var(--texte); font: 600 1.7rem var(--c); width: 100%; }

/* ------------------------------------------------------------------ atelier (Bricolage) */
.atelier { background: #241e17; border: .4rem solid #5a3a22; border-radius: 1.8rem; padding: 1.4rem; display: flex; flex-direction: column;
  gap: 1.2rem; box-shadow: inset 0 0 0 .2rem #2e2117, inset 0 0 4rem rgba(0,0,0,.45); }
.etablis { display: flex; gap: 1.2rem; justify-content: center; }
.etabli { padding: .8rem; border: .2rem solid transparent; border-radius: 1.2rem; background: rgba(0,0,0,.25); display: flex; flex-direction: column;
  align-items: center; gap: .6rem; cursor: pointer; min-width: 16.4rem; }
.etabli[aria-pressed="true"] { border-color: var(--lien); background: rgba(232,162,92,.10); }
.etabli.depot { border-color: var(--vert); border-style: dashed; }
.etabli-tete { display: flex; justify-content: space-between; width: 100%; font: 700 1.2rem var(--c); letter-spacing: .12em; color: var(--laiton); }
.etabli-tete span { color: var(--texte2); }
.etabli-vide { width: 14.6rem; height: 21rem; border-radius: 1rem; border: .2rem dashed var(--filet-fort); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .8rem; color: var(--texte3); font: 600 1.4rem/1.3 var(--c); text-align: center; padding: 1.2rem; }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; align-items: start; }
.zones .large { grid-column: 1 / -1; }
.cube.m.s { width: 2.2rem; height: 2.2rem; }
.cube.m.xs { width: 2rem; height: 2rem; border-radius: .4rem; }
.zone { background: rgba(236,226,206,.07); border: .2rem solid #5a3e26; border-radius: 1rem; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.zone-lbl { display: flex; justify-content: space-between; align-items: center; font: 700 1.3rem/1 var(--c); letter-spacing: .08em; text-transform: uppercase; color: #e8dcc4; }
.zone-lbl > span { display: flex; gap: .6rem; align-items: center; }
.plein { color: #f0a03c; }
.ext { border: .2rem dashed #4f6a3a; border-radius: .8rem; padding: .5rem .8rem; display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; background: rgba(108,192,112,.06); font-size: 1.25rem; color: #bfd8b2; }
.ext .chip { min-height: 3.4rem; font-size: 1.3rem; border-color: #4f6a3a; color: #bfd8b2; white-space: nowrap; }
.heures { display: flex; align-items: center; justify-content: center; gap: 1.6rem; }
.heures-lbl { font: 800 2rem/1 var(--t); letter-spacing: .3em; color: #efe6cf; padding: .9rem 2rem; border-radius: .8rem; background: var(--fond2); border: .2rem solid #6b4426; }
.tuile-h { width: 3.4rem; height: 4rem; border-radius: .5rem; background: #efe6cf; color: #1d1a15; display: flex; align-items: center; justify-content: center;
  font: 900 2.4rem/1 var(--t); box-shadow: inset 0 -.3rem 0 rgba(0,0,0,.18); border: .15rem solid #0f0d0a; }
.tuile-h.passee { opacity: .35; }
.tuile-h.courante { background: var(--laiton); outline: .3rem solid var(--texte); outline-offset: .2rem; }
.act { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; border-radius: 1rem; background: var(--creux); border: .1rem solid var(--filet); }
.act-titre { display: flex; justify-content: space-between; font: 700 1.5rem var(--c); letter-spacing: .06em; text-transform: uppercase; }
.act-titre span { color: var(--laiton); }
button.act { cursor: pointer; text-align: left; color: var(--texte); }
button.act.cible { border: .2rem solid #3f9e58; }
button.act.cible:hover { background: #1c2618; }
.gain { font: 800 2.6rem/1 var(--t); color: var(--ok); }
.journal { margin: 0; padding-left: 2rem; font-size: 1.35rem; line-height: 1.55; color: #d8ccb4; }
.score-boite { flex: 1; padding: 1rem 1.2rem; border-radius: .8rem; background: var(--creux); display: flex; flex-direction: column; gap: .4rem; }
.score-boite span:first-child { font-size: 1.2rem; color: var(--texte3); }
.score-boite b { font: 800 2.6rem/1 var(--t); }
