/* LANOS — design system (doc 05). Noir profond + or laiton. */

/* ---------- Polices (variables, latin) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jbmono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
  --bg-void: #0A0B0E; --bg-surface: #131519; --bg-raised: #1C1F26; --bg-inset: #06070A;
  --line: #262A33; --line-soft: #1A1D24;
  --text: #ECEEF3; --text-muted: #9AA1B0; --text-faint: #5F6675;
  --gold: #E5B34A; --gold-soft: #F0CC85; --gold-dim: rgba(229,179,74,.14);
  --ok: #3FD68C; --warn: #FFB020; --danger: #FF4D5E; --info: #4ECBFF;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-data: 'JetBrains Mono', ui-monospace, monospace;
  --t-hero: clamp(2rem, 6vw, 3rem); --t-h1: clamp(1.5rem, 4vw, 2rem);
  --t-h2: 1.25rem; --t-h3: 1.0625rem; --t-base: .9375rem; --t-sm: .8125rem; --t-xs: .6875rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --e1: 0 1px 2px rgba(0,0,0,.4); --e2: 0 4px 16px rgba(0,0,0,.5); --e3: 0 12px 40px rgba(0,0,0,.6);
  --ease: cubic-bezier(.4,0,.2,1); --ease-out: cubic-bezier(0,0,.2,1);
  --d-fast: 120ms; --d-base: 200ms; --d-slow: 340ms;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-void); color: var(--text);
  font-family: var(--font-body); font-size: var(--t-base); line-height: 1.5;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.15; }
ul { list-style: none; }
.num, time, .mono { font-family: var(--font-data); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
[hidden] { display: none !important; }

.label {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); font-weight: 500; display: block; margin-bottom: var(--s2);
}

/* ---------- Layout ---------- */
.main {
  max-width: 640px; margin: 0 auto;
  padding: var(--s4) var(--s4) calc(84px + env(safe-area-inset-bottom));
}
.main--full { max-width: 560px; padding-bottom: var(--s6); }
@media (min-width: 1024px) { .main { max-width: 960px; } }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s3) var(--s4);
  background: color-mix(in srgb, var(--bg-void) 88%, transparent);
  backdrop-filter: blur(8px);
}
.topbar__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.topbar__brand span { color: var(--gold); }
.topbar__me { display: flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: flex-end; }
.topbar__right { display: flex; align-items: center; gap: var(--s2); }
/* Bouton discret « Ma config LAN » — présent sur toutes les vues, mène au profil + surligne la section */
.topbar__cfg {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-full); color: var(--text-faint);
  transition: color var(--d-fast), background var(--d-fast);
}
.topbar__cfg .icon { width: 19px; height: 19px; }
.topbar__cfg:hover, .topbar__cfg:focus-visible { color: var(--gold); background: var(--bg-raised); }
@keyframes cfgPulse {
  0% { box-shadow: 0 0 0 0 rgba(229,179,74,0); }
  25% { box-shadow: 0 0 0 3px rgba(229,179,74,.55); }
  100% { box-shadow: 0 0 0 0 rgba(229,179,74,0); }
}
.cfg-highlight { animation: cfgPulse 1.1s var(--ease-out) 2; border-radius: var(--r-lg); }

.view-head { margin: var(--s3) 0 var(--s5); }
.view-head h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h1); }
.view-head .sub { color: var(--text-muted); margin-top: var(--s1); }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around;
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
}
.bottomnav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-muted); font-size: var(--t-xs); position: relative;
  min-width: 44px;
}
.bottomnav__item .icon { width: 22px; height: 22px; }
.bottomnav__item.is-active { color: var(--gold); }
.bottomnav__badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 600;
  border-radius: var(--r-full); min-width: 16px; height: 16px; line-height: 16px;
  text-align: center; padding: 0 4px; font-family: var(--font-data);
}
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pin (composant central) ---------- */
.pin {
  --halo-color: var(--text-faint);
  position: relative; display: inline-flex; border-radius: var(--r-full);
  border: 2px solid var(--halo-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--halo-color) 25%, transparent),
              0 0 18px -2px color-mix(in srgb, var(--halo-color) 45%, transparent);
  background: var(--bg-raised); flex: none; vertical-align: middle;
}
.pin img, .pin b {
  border-radius: var(--r-full); object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; color: var(--text);
  font-style: normal;
}
.pin--xs img, .pin--xs b { width: 20px; height: 20px; font-size: 8px; }
.pin--sm img, .pin--sm b { width: 28px; height: 28px; font-size: 10px; }
.pin--md img, .pin--md b { width: 40px; height: 40px; font-size: 14px; }
.pin--lg img, .pin--lg b { width: 96px; height: 96px; font-size: 32px; }
.pin--admin { border-color: var(--gold); --halo-color: #E5B34A; }
.pin--absent { filter: saturate(.25); box-shadow: none; }
.pin--pending { border-style: dashed; }
.pin--test::after {
  content: 'TEST'; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  background: var(--warn); color: #201500; font-size: 8px; font-weight: 700;
  padding: 0 4px; border-radius: 4px; letter-spacing: .04em;
}
.pin-stack { display: inline-flex; align-items: center; }
.pin-stack .pin { margin-left: -8px; }
.pin-stack .pin:first-child { margin-left: 0; }
.pin-stack__more {
  margin-left: -6px; background: var(--bg-raised); color: var(--text-muted);
  font-size: 10px; font-family: var(--font-data); border-radius: var(--r-full);
  min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); z-index: 1;
}

/* ---------- Cartes ---------- */
.card {
  background: var(--bg-surface); border-radius: var(--r-lg); padding: var(--s5);
  transition: background var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
a.card:hover, button.card:hover { background: var(--bg-raised); transform: translateY(-2px); }
.card + .card { margin-top: var(--s3); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-md);
  font-weight: 600; font-size: var(--t-base); transition: filter var(--d-fast), background var(--d-fast);
}
.btn--gold { background: var(--gold); color: var(--bg-void); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--sec { background: var(--bg-raised); color: var(--text); }
.btn--sec:hover { filter: brightness(1.15); }
.btn--ghost { color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); }
.btn--danger { color: var(--danger); background: rgba(255,77,94,.08); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 var(--s3); font-size: var(--t-sm); }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2); margin-bottom: var(--s4); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 8px 14px; min-height: 38px; border-radius: var(--r-full);
  color: var(--text-muted); font-size: var(--t-sm); font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab.is-active { background: var(--bg-raised); color: var(--text); border-bottom-color: var(--gold); border-radius: var(--r-md) var(--r-md) 4px 4px; }

/* ---------- Accordéon ---------- */
.acc {
  display: flex; align-items: center; gap: var(--s2); width: 100%;
  min-height: 44px; color: var(--text-muted); font-size: var(--t-sm); text-align: left;
}
.acc .icon { transition: transform var(--d-base) var(--ease); width: 16px; height: 16px; }
.acc.is-open .icon { transform: rotate(90deg); }
.acc__count { color: var(--text-faint); font-family: var(--font-data); font-size: var(--t-xs); }
.acc__body { padding: var(--s2) 0 var(--s3); }
.hist-panel { margin-top: var(--s6); border-top: 1px solid var(--line-soft); }
.hist li { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; font-size: var(--t-sm); }
.hist__txt { flex: 1; }
.hist time { color: var(--text-faint); font-size: var(--t-xs); flex: none; }

/* ---------- Sheet / modale ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.sheet-root.is-open { pointer-events: auto; }
.sheet__veil { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg-raised); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--e3); max-height: 86dvh; overflow-y: auto;
  transform: translateY(100%); transition: transform var(--d-slow) var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-in { transform: translateY(0); }
.sheet__grip { padding: var(--s3); display: flex; justify-content: center; cursor: pointer; }
.sheet__grip::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.sheet__body { padding: 0 var(--s5) var(--s6); }
.sheet__body h2 { font-size: var(--t-h2); margin-bottom: var(--s4); }
.sheet__msg { font-size: var(--t-h3); margin: var(--s3) 0 var(--s5); }
.sheet__actions { display: flex; flex-direction: column; gap: var(--s2); }
@media (min-width: 640px) {
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(480px, 92vw);
    transform: translate(-50%, -46%); opacity: 0; border-radius: var(--r-xl);
    transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease); }
  .sheet.is-in { transform: translate(-50%, -50%); opacity: 1; }
  .sheet__grip { display: none; }
  .sheet__body { padding-top: var(--s5); }
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; flex-direction: column; gap: var(--s2); width: min(400px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s3) var(--s4);
  box-shadow: var(--e2); font-size: var(--t-sm);
  animation: toast-in var(--d-base) var(--ease-out);
}
.toast--err { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.toast.is-out { opacity: 0; transition: opacity var(--d-base); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- États vides ---------- */
.empty { text-align: center; padding: var(--s7) var(--s5); }
.empty .icon { width: 64px; height: 64px; color: var(--text-faint); margin: 0 auto var(--s4); }
.empty p { color: var(--text-muted); margin-bottom: var(--s5); }

/* ---------- Login ---------- */
.login-page { display: grid; place-items: center; padding: var(--s5); }
.login { text-align: center; max-width: 420px; width: 100%; }
.login__brand { font-family: var(--font-display); font-weight: 800; font-size: var(--t-hero); }
.login__brand span { color: var(--gold); }
.login__tagline { color: var(--text-faint); font-family: var(--font-data); font-size: var(--t-sm); margin-bottom: var(--s7); }
.login__ask { color: var(--text-muted); margin-bottom: var(--s4); }
.login__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 480px) { .login__grid { grid-template-columns: repeat(4, 1fr); } }
.login__user {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  background: var(--bg-surface); border-radius: var(--r-lg); padding: var(--s4) var(--s2);
  font-size: var(--t-sm); transition: background var(--d-fast);
}
.login__user:hover { background: var(--bg-raised); }
.login__form { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); }
.login__err { color: var(--danger); font-size: var(--t-sm); }

/* ---------- Accueil (hall) ---------- */
.hall-head { margin: var(--s3) 0 var(--s5); }
.hall-head h1 { font-family: var(--font-display); font-size: var(--t-h1); font-weight: 600; }
.hall-head .meta { color: var(--text-muted); font-size: var(--t-sm); margin-top: var(--s2); display: flex; gap: var(--s3); flex-wrap: wrap; }
.hall-head .jminus { font-family: var(--font-data); color: var(--gold); font-weight: 600; }
.todo {
  background: var(--gold-dim); border-radius: var(--r-lg); padding: var(--s4) var(--s5);
  margin-bottom: var(--s5);
}
.todo p { font-weight: 600; margin-bottom: var(--s2); }
.todo a { display: flex; align-items: center; gap: var(--s2); min-height: 36px; color: var(--gold-soft); font-size: var(--t-sm); }
.hall-section {
  font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); margin: var(--s6) 0 var(--s3);
}
.hall-section:first-of-type { margin-top: 0; }
.hall {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3);
}
@media (min-width: 640px) { .hall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .hall { grid-template-columns: repeat(4, 1fr); } }
.hall-card {
  display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start;
  background: var(--bg-surface); border-radius: var(--r-lg); padding: var(--s4);
  transition: background var(--d-fast), transform var(--d-fast);
}
.hall-card:hover { background: var(--bg-raised); transform: translateY(-2px); }
.hall-card__emoji { font-size: 1.4rem; }
.hall-card__title { font-weight: 600; font-size: var(--t-sm); }
.hall-card__num { font-family: var(--font-data); color: var(--text-muted); font-size: var(--t-sm); }
.hall-card__go { color: var(--gold); font-size: var(--t-xs); font-weight: 600; margin-top: auto; }

/* ---------- Dates ---------- */
.bigask { text-align: center; padding: var(--s6) var(--s4); }
.bigask h2 { font-family: var(--font-display); font-size: var(--t-h1); margin-bottom: var(--s5); }
.bigask__btns { display: flex; flex-direction: column; gap: var(--s3); max-width: 320px; margin: 0 auto; }
.statusbar { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-bottom: var(--s5); }
.statusbar__group { display: flex; align-items: center; gap: var(--s2); }
.statusbar__label { color: var(--text-faint); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }
.datestrip { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s2) 0 var(--s3); }
.datestrip__day {
  flex: none; width: 56px; padding: var(--s2) 0; text-align: center;
  background: var(--bg-surface); border-radius: var(--r-md); border: 1px solid transparent;
  font-family: var(--font-data);
}
.datestrip__day .dow { display: block; font-size: var(--t-xs); color: var(--text-faint); }
.datestrip__day .num { display: block; font-size: 1.1rem; font-weight: 600; }
.datestrip__day.in-range { background: var(--gold-dim); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.datestrip__day.is-edge { background: var(--gold); color: var(--bg-void); }
.datestrip__day.is-edge .dow { color: color-mix(in srgb, var(--bg-void) 70%, transparent); }
.gantt { margin-top: var(--s4); overflow-x: auto; }
.gantt table { border-collapse: collapse; width: 100%; min-width: 480px; }
.gantt th, .gantt td { padding: 3px 2px; }
.gantt .who { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); white-space: nowrap; padding-right: var(--s2); }
.gantt .bar { height: 18px; border-radius: 4px; }
.gantt .bar--pending { border: 1px dashed var(--line); background: none; }
.gantt tfoot td { font-family: var(--font-data); text-align: center; color: var(--text-muted); font-size: var(--t-sm); border-top: 1px solid var(--line-soft); padding-top: 6px; }
.gantt thead th { font-family: var(--font-data); font-size: var(--t-xs); color: var(--text-faint); font-weight: 400; }
.optimal {
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  background: var(--gold-dim); border-radius: var(--r-lg); padding: var(--s5); text-align: center;
  margin-top: var(--s5);
}
.optimal h3 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: var(--s3); }
.optimal .period { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 600; }
.optimal .who { color: var(--text-muted); font-size: var(--t-sm); margin-top: var(--s2); }
.waitbox { background: var(--bg-surface); border-radius: var(--r-lg); padding: var(--s4) var(--s5); margin-top: var(--s5); }
.waitbox p { font-size: var(--t-sm); color: var(--text-muted); }
.waitbox .row { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }

/* ---------- Couchage ---------- */
.plan { margin-bottom: var(--s5); }
.plan h2 { font-size: var(--t-h3); margin-bottom: var(--s3); display: flex; gap: var(--s2); align-items: baseline; }
.plan h2 small { color: var(--text-faint); font-weight: 400; font-size: var(--t-xs); }
.plan svg { width: 100%; height: auto; }
.plan .room-shape { fill: var(--bg-surface); stroke: var(--line); rx: 8; }
.plan .room-shape.is-bedroom { fill: #181b22; stroke: #343a47; cursor: pointer; }
.plan .room-shape.is-gaming { fill: var(--gold-dim); stroke: color-mix(in srgb, var(--gold) 40%, transparent); }
.plan .room-label { fill: var(--text-muted); font-size: 11px; font-family: var(--font-body); }
.plan .room-cap { fill: var(--text-faint); font-size: 9px; font-family: var(--font-data); }
@media (min-width: 640px) { .plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.plan-pin {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
.plan-pin--free {
  width: 34px; height: 34px; min-width: 34px; min-height: 34px;
  border: 1.5px dashed var(--text-faint); border-radius: var(--r-full);
  color: var(--text-muted); font-size: 1.1rem;
  background: color-mix(in srgb, var(--bg-void) 55%, transparent);
}
.plan-pin--free:hover { border-color: var(--gold); color: var(--gold); }
/* Le zzzZZZ — seule animation décorative autorisée (A5.4) */
.zz { position: absolute; left: 68%; top: -14px; font-family: var(--font-data); color: var(--text-muted); pointer-events: none; }
.zz i { font-style: normal; display: inline-block; opacity: 0; animation: zzz 3s infinite var(--ease); }
.zz i:nth-child(1) { font-size: 9px; animation-delay: 0s; }
.zz i:nth-child(2) { font-size: 12px; animation-delay: .35s; transform: translateY(-3px); }
.zz i:nth-child(3) { font-size: 15px; animation-delay: .7s; transform: translateY(-6px); }
.plan-pin:nth-of-type(2n) .zz i { animation-delay: 1.1s; }
.plan-pin:nth-of-type(2n) .zz i:nth-child(2) { animation-delay: 1.45s; }
.plan-pin:nth-of-type(2n) .zz i:nth-child(3) { animation-delay: 1.8s; }
@keyframes zzz { 0% { opacity: 0; } 25% { opacity: .9; } 60% { opacity: .4; } 100% { opacity: 0; } }
.bedcount { font-family: var(--font-data); color: var(--text-muted); margin-bottom: var(--s4); }
.bedcount b { color: var(--text); }

/* ---------- Table de guerre ---------- */
.wartable { overflow-x: auto; padding: var(--s3) 0; }
/* --tu = largeur d'une unité de poste, calculée en JS (fitTable) pour que la rangée la plus large
   tienne dans l'écran. Sans ça, les postes à 2 écrans débordaient et `justify-content:center`
   rendait le premier poste inatteignable au scroll (bug prod v3.4). */
.wartable__grid { display: flex; flex-direction: column; gap: var(--s3); --tu: 80px; }
/* `safe center` : centré tant que ça tient, aligné à gauche dès que ça déborde (jamais de clipping). */
.wartable__side { display: flex; gap: var(--s2); justify-content: safe center; }
.tslot {
  position: relative; border-radius: var(--r-md); background: var(--bg-surface);
  border: 1px dashed var(--line); min-height: 120px; padding: var(--s2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1);
  flex: none; transition: border-color var(--d-fast);
}
.tslot--free { cursor: pointer; color: var(--text-faint); }
.tslot--free:hover { border-color: var(--gold); color: var(--text-muted); }
.tslot--taken { border-style: solid; border-color: color-mix(in srgb, var(--halo-color, #555) 50%, var(--line)); }
.tslot--locked { border-style: solid; background: var(--bg-inset); color: var(--text-faint); font-size: var(--t-xs); text-align: center; }
.tslot__desk { width: 100%; }
.tslot__deskwrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.tslot__deskwrap.is-flip .tslot__desk { transform: scaleY(-1); }
.tslot__desk .scr { filter: drop-shadow(0 0 2px rgba(51,214,255,.75)); }
.tslot__gear { line-height: 1; letter-spacing: 1px; }
/* width/min-width:0 obligatoires : sans ça le pseudo élargit la colonne et déborde du poste. */
.tslot__player { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-width: 0; }
.tslot__name { font-size: var(--t-xs); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tslot__specs { font-size: 10px; font-family: var(--font-data); color: var(--text-faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Mode compact : quand la table est très serrée (beaucoup de postes larges sur petit écran). */
.wartable__grid.is-compact .tslot { padding: 3px; min-height: 104px; }
.wartable__grid.is-compact .tslot__name { font-size: 10px; }
.wartable__grid.is-compact .tslot__specs { font-size: 8px; }
.wartable__grid.is-compact .tslot__width { display: none; }
.wartable__grid.is-compact .tslot__gear { font-size: 9px !important; }

/* ---------- Mode réorganisation de la table (admin, v3.5) ---------- */
.arrzone { margin-bottom: var(--s3); }
.arrzone__label { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); margin-bottom: 4px; }
.arrrow { display: flex; flex-wrap: wrap; gap: 6px; min-height: 54px; padding: 6px;
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--bg-inset);
  transition: border-color var(--d-fast), background var(--d-fast); }
.arrrow.is-over { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--bg-inset)); }
.arrrow__empty { font-size: var(--t-xs); color: var(--text-faint); align-self: center; padding: 0 6px; }
.arrcard { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: var(--r-sm);
  background: var(--bg-surface); border: 1px solid var(--line); cursor: grab; touch-action: none;
  font-size: var(--t-xs); max-width: 100%; }
.arrcard.is-taken { border-color: color-mix(in srgb, var(--halo-color, #555) 55%, var(--line)); }
.arrcard__grip { color: var(--text-faint); letter-spacing: -2px; }
.arrcard__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; }
.arrcard__dot { width: 18px; height: 18px; border-radius: var(--r-full); border: 1px dashed var(--line); display: inline-block; }
.arrcard.is-dragging { opacity: .35; }
.arrcard--ghost { position: fixed; z-index: 200; pointer-events: none; cursor: grabbing;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.8); transform: scale(1.04); opacity: .96; }

/* Filtre « qui amène quoi » (Inventaire, v3.5) */
.invfilter { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: var(--s3);
  scrollbar-width: none; }
.invfilter::-webkit-scrollbar { display: none; }
.invchip { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 5px 11px; border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--bg-surface); color: var(--text-muted); font-size: var(--t-xs); white-space: nowrap;
  transition: border-color var(--d-fast), color var(--d-fast), background var(--d-fast); }
.invchip:hover { color: var(--text); }
.invchip.is-active { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* Filtres de la bibliothèque de jeux (v3.6) */
.gfilter { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s3); }
.gfilter__q { width: 100%; }
.gfilter__chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gfilter__chips::-webkit-scrollbar { display: none; }
.gchip { flex-shrink: 0; padding: 5px 11px; border-radius: var(--r-full); border: 1px solid var(--line);
  background: var(--bg-surface); color: var(--text-muted); font-size: var(--t-xs); white-space: nowrap;
  transition: border-color var(--d-fast), color var(--d-fast), background var(--d-fast); }
.gchip:hover { color: var(--text); }
.gchip.is-active { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
/* flex-basis 0 (et non auto) : sinon la largeur du contenu fait passer chaque select à la ligne. */
.gfilter__selects { display: flex; gap: 6px; }
.gfilter__selects select { flex: 1 1 0; min-width: 0; font-size: var(--t-xs); padding: 7px 6px;
  text-overflow: ellipsis; }
.gclear { color: var(--gold); font-size: var(--t-xs); text-decoration: underline; }
/* Raccourci « + » en tête de la bibliothèque (double le bouton du bas) */
.gadd { flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--bg-surface);
  color: var(--gold); font-size: 20px; line-height: 1; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--d-fast), transform var(--d-fast); }
.gadd:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); transform: scale(1.08); }

/* Résultats de recherche Steam à l'ajout d'un jeu (v3.6) */
.steamres { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s3); }
.steamres__item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-surface); text-align: left; width: 100%;
  transition: border-color var(--d-fast), background var(--d-fast); }
.steamres__item:hover { border-color: var(--gold); background: var(--bg-raised); }
.steamres__item img { width: 92px; height: 35px; object-fit: cover; border-radius: 3px; flex-shrink: 0; background: var(--bg-inset); }
.steamres__item span { font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; }
.steamres__item[disabled] { opacity: .6; }

/* ---------- Objectifs de LAN (v3.7) ---------- */
.objgrid { display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 720px) { .objgrid { display: grid; grid-template-columns: 1fr 1fr; } }
.obj { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s3); display: flex; flex-direction: column; gap: 6px; }
.obj.is-complete { border-color: color-mix(in srgb, var(--ok, #7DE86B) 55%, var(--line));
  background: color-mix(in srgb, var(--ok, #7DE86B) 7%, var(--bg-surface)); }
.obj__head { display: flex; align-items: center; gap: 6px; }
.obj__scope { font-size: 10px; font-family: var(--font-data); text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: var(--r-full); background: var(--bg-inset); color: var(--info); white-space: nowrap; }
.obj__scope--group { color: var(--gold); }
.obj__game { font-size: var(--t-xs); color: var(--text-faint); flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.obj__title { font-size: var(--t-sm); line-height: 1.3; }
.obj__detail { font-size: var(--t-xs); color: var(--text-muted); }
.obj__state { font-size: var(--t-xs); }
.obj__bar { height: 6px; border-radius: var(--r-full); background: var(--bg-inset); overflow: hidden; }
.obj__bar span { display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--info), var(--ok, #7DE86B)); transition: width var(--d-mid) var(--ease-out); }
.obj__who { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); }
/* Pied : état à gauche, bouton d'action à droite */
.obj__foot { display: flex; align-items: center; gap: var(--s3); margin-top: 4px; }
.obj__prog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.obj__foot .obj__state { flex: 1; min-width: 0; }
.obj__state--ok { color: var(--ok, #7DE86B); font-weight: 600; }

/* Bouton « Je l'ai fait ! » — volontairement clinquant, il doit donner envie d'appuyer. */
.objbtn { flex-shrink: 0; position: relative; overflow: hidden; border: 0; cursor: pointer;
  padding: 9px 15px; border-radius: var(--r-full); font-weight: 700; font-size: var(--t-xs);
  white-space: nowrap; transition: transform var(--d-fast), box-shadow var(--d-fast); }
.objbtn--go { color: #1a1205; background: linear-gradient(100deg, #FFD87A, var(--gold), #E09B2D);
  box-shadow: 0 4px 16px -4px rgba(229,179,74,.75), inset 0 1px 0 rgba(255,255,255,.45);
  animation: objPulse 2.6s var(--ease) infinite; }
.objbtn--go::after { content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shineSweep 2.8s var(--ease) infinite; }
.objbtn--go:hover { transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px -4px rgba(229,179,74,.9), inset 0 1px 0 rgba(255,255,255,.5); }
.objbtn--go:active { transform: translateY(0) scale(.98); }
@keyframes objPulse {
  0%, 100% { box-shadow: 0 4px 16px -4px rgba(229,179,74,.75), inset 0 1px 0 rgba(255,255,255,.45); }
  50% { box-shadow: 0 4px 22px -2px rgba(229,179,74,1), inset 0 1px 0 rgba(255,255,255,.55); }
}
/* Titre de vue avec une action sur la même ligne */
.view-head__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.headicon { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--bg-surface); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--d-fast), border-color var(--d-fast), transform var(--d-fast); }
.headicon .icon { width: 19px; height: 19px; }
.headicon:hover { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); transform: scale(1.06); }

/* Notes de version — volontairement sobre : c'est une liste de changements, pas une plaquette. */
.cl-entry + .cl-entry { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line-soft); }
.cl-entry__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: 6px; }
.cl-entry__head b { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.cl-entry__date { font-family: var(--font-data); font-size: var(--t-xs); color: var(--text-faint); white-space: nowrap; }
.whatsnew { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.whatsnew li { font-size: var(--t-sm); line-height: 1.4; color: var(--text-muted); padding-left: 14px; position: relative; }
.whatsnew li::before { content: '–'; position: absolute; left: 0; color: var(--text-faint); }

/* Détail d'un défi : preuves, contestations, commentaires (v3.8) */
.obj__alert { font-size: var(--t-xs); color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent);
  border-radius: var(--r-sm); padding: 5px 9px; margin-top: 6px; }
.obj__more { align-self: flex-start; font-size: var(--t-xs); color: var(--text-faint);
  text-decoration: underline; margin-top: 2px; }
.obj__more:hover { color: var(--gold); }
.proofimg { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--r-sm); margin-top: 6px; display: block; }
/* Têtes des participants : validés en couleur, les autres en creux mais visibles. */
.faces { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.faces__p { opacity: .30; filter: grayscale(1); transition: opacity var(--d-fast), filter var(--d-fast); }
.faces__p.is-done { opacity: 1; filter: none; }
.prow--pending { opacity: .62; }
.prow { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.prow:last-of-type { border-bottom: 0; }
.prow__head { display: flex; align-items: center; gap: 8px; }
.dispute { border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); border-radius: var(--r-md);
  padding: var(--s3); margin-top: var(--s3);
  background: color-mix(in srgb, var(--danger) 7%, var(--bg-surface)); }
.dispute__head { display: flex; align-items: center; gap: 6px; font-size: var(--t-sm); }
.dispute__reason { font-size: var(--t-sm); color: var(--text-muted); font-style: italic; margin: 6px 0; }
.dispute__score { font-size: var(--t-xs); color: var(--text-muted); margin: 8px 0 6px; }
.cmt { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.cmt:last-of-type { border-bottom: 0; }
.cmt__head { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); }
.cmt__body { font-size: var(--t-sm); color: var(--text-muted); margin-top: 4px; }

.objbtn--undo { background: transparent; border: 1px solid var(--line); color: var(--text-faint); font-weight: 500; }
.objbtn--undo:hover { color: var(--text); border-color: var(--text-faint); }
@media (prefers-reduced-motion: reduce) {
  .objbtn--go, .objbtn--go::after { animation: none; }
}
.tslot__width { position: absolute; top: 4px; right: 6px; font-size: 9px; font-family: var(--font-data); color: var(--text-faint); z-index: 1; }
.tabletop {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: var(--s3) var(--s2); border-radius: var(--r-md);
  background: linear-gradient(180deg, #1a1508, #0e0b05);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  box-shadow: inset 0 0 22px -6px color-mix(in srgb, var(--gold) 30%, transparent);
}
.tabletop__label { font-family: var(--font-display); font-weight: 700; letter-spacing: .18em; color: var(--gold); font-size: var(--t-sm); }
.tabletop__meta { font-family: var(--font-data); font-size: var(--t-xs); color: var(--text-faint); }
.matpanel pre-like { font-family: var(--font-data); }
.mat-danger {
  background: rgba(255,77,94,.1); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: var(--r-lg); padding: var(--s4) var(--s5); margin: var(--s4) 0; font-size: var(--t-sm);
}
.mat-danger b { color: var(--danger); }
.matgrid { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s4); font-size: var(--t-sm); }
.matgrid dt { color: var(--text-muted); }
.matgrid dd { font-family: var(--font-data); text-align: right; }
.checklist li { display: flex; gap: var(--s2); align-items: center; min-height: 32px; font-size: var(--t-sm); }

/* ---------- Panneau de bord — tuiles (refonte v3) ---------- */
.stattiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 640px) { .stattiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stattiles { grid-template-columns: repeat(4, 1fr); } }
.stattile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1);
  background: var(--bg-surface); border-radius: var(--r-lg); padding: var(--s4) var(--s2); min-height: 96px;
  text-align: center; transition: transform var(--d-fast), background var(--d-fast);
}
.stattile:hover { background: var(--bg-raised); transform: translateY(-2px); }
.stattile__ic { color: var(--gold); }
.stattile__ic .icon { width: 22px; height: 22px; }
.stattile__num { font-family: var(--font-data); font-weight: 600; font-size: var(--t-h3); }
.stattile__label { font-size: var(--t-xs); color: var(--text-muted); }
.stattile.is-danger .stattile__num { color: var(--warn); }

/* ---------- Jeux ---------- */
.gamegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 640px) { .gamegrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gamegrid { grid-template-columns: repeat(4, 1fr); } }
.gcard {
  position: relative; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-surface); cursor: pointer; text-align: left; width: 100%;
  transition: transform var(--d-fast);
}
.gcard:hover { transform: translateY(-2px); }
.gcard__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard__fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--text-faint);
  padding: var(--s3); text-align: center;
}
.gcard__grad { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
.gcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s3); }
.gcard__name { font-weight: 600; font-size: var(--t-sm); line-height: 1.2; }
.gcard__meta { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s1); }
.gcard__rating { font-size: var(--t-xs); color: var(--gold-soft); font-family: var(--font-data); }
.gcard__size {
  position: absolute; top: var(--s2); right: var(--s2);
  background: rgba(0,0,0,.65); font-family: var(--font-data); font-size: 10px;
  padding: 2px 6px; border-radius: var(--r-sm);
}
.gcard__mand {
  position: absolute; top: var(--s2); left: var(--s2);
  background: var(--gold); color: var(--bg-void); font-size: 9px; font-weight: 700;
  letter-spacing: .05em; padding: 2px 6px; border-radius: var(--r-sm);
}
.stars { display: inline-flex; gap: 2px; font-size: 1.3rem; }
.stars .star { color: var(--line); cursor: pointer; }
.stars .star.is-on { color: var(--gold); }
.dlrow { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 40px; font-size: var(--t-sm); }
.dlrow .num { color: var(--text-muted); }

/* ---------- Bouffe ---------- */
.shoprow { display: flex; align-items: center; gap: var(--s3); min-height: 44px; border-bottom: 1px solid var(--line-soft); }
.shoprow.is-bought .shoprow__label { text-decoration: line-through; color: var(--text-faint); }
.shoprow__check { width: 22px; height: 22px; flex: none; accent-color: var(--gold); }
.shoprow__label { flex: 1; }
.shoprow__qty { color: var(--text-faint); font-family: var(--font-data); font-size: var(--t-sm); }
.quickadd { display: flex; gap: var(--s2); margin: var(--s3) 0; }
.quickadd input:first-child { flex: 2; }
.quickadd input:nth-child(2) { flex: 1; }
.cat-title { margin: var(--s5) 0 var(--s2); }

/* ---------- Comptes ----------*/
.balance { display: flex; align-items: center; gap: var(--s3); min-height: 44px; font-size: var(--t-sm); }
.balance .num { margin-left: auto; }
.balance .pos { color: var(--ok); } .balance .neg { color: var(--danger); }
.transfer { display: flex; align-items: center; gap: var(--s2); min-height: 40px; font-size: var(--t-sm); flex-wrap: wrap; }
.transfer .num { margin-left: auto; font-weight: 600; }
.exprow { display: flex; align-items: center; gap: var(--s3); min-height: 52px; border-bottom: 1px solid var(--line-soft); }
.exprow__body { flex: 1; min-width: 0; }
.exprow__label { font-size: var(--t-sm); }
.exprow__meta { font-size: var(--t-xs); color: var(--text-faint); }
.exprow__amount { font-family: var(--font-data); font-weight: 600; }
.exprow__thumb { width: 36px; height: 36px; border-radius: var(--r-sm); object-fit: cover; }
.bigtotal { text-align: center; padding: var(--s4) 0 var(--s5); }
.bigtotal .num { font-family: var(--font-display); font-size: var(--t-hero); font-weight: 800; display: block; }
.bigtotal .sub { color: var(--text-muted); font-size: var(--t-sm); }

/* ---------- Planning ---------- */
.daynav { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); }
.daynav h2 { font-family: var(--font-display); font-size: var(--t-h2); text-align: center; flex: 1; }
.daynav button { min-width: 44px; min-height: 44px; color: var(--text-muted); }
.mealstrip {
  display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left;
  background: color-mix(in srgb, var(--ok) 10%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent);
  border-radius: var(--r-md); padding: var(--s3) var(--s4); margin-bottom: var(--s3);
  transition: background var(--d-fast);
}
.mealstrip:hover { background: color-mix(in srgb, var(--ok) 16%, var(--bg-surface)); }
.mealstrip__ic { font-size: 1.3rem; flex: none; }
.mealstrip__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mealstrip__txt b { font-size: var(--t-sm); }
.mealstrip__txt span { font-size: var(--t-xs); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mealstrip__go { color: var(--ok); flex: none; }
.slotcard {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-surface);
  padding: var(--s4) var(--s5); margin-bottom: var(--s3);
}
.slotcard.is-cold { opacity: .55; }
.slotcard__bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .22; }
.slotcard__time { font-family: var(--font-data); color: var(--gold); font-size: var(--t-sm); }
.slotcard__title { font-weight: 600; margin: 2px 0 var(--s2); position: relative; }
.slotcard__votes { display: flex; align-items: center; gap: var(--s2); position: relative; flex-wrap: wrap; }
.votebtns { display: flex; gap: var(--s2); margin-top: var(--s3); position: relative; }
.pool-banner {
  background: var(--gold-dim); border-radius: var(--r-md); padding: var(--s3) var(--s4);
  font-size: var(--t-sm); margin-bottom: var(--s4);
}

/* ---------- Codex ---------- */
.codex-list a { display: flex; align-items: center; gap: var(--s3); }
.codex-list .grow { flex: 1; }
.codex-list .count { font-family: var(--font-data); color: var(--text-faint); font-size: var(--t-sm); }
.sitemap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: var(--s4) 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.sitemap__zone {
  min-height: 110px; padding: var(--s2) var(--s1); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: center; gap: var(--s2); cursor: pointer; text-align: center;
}
.sitemap__zone:hover { background: var(--bg-raised); }
.sitemap__zone.is-mine { background: var(--gold-dim); }
.sitemap__label { font-family: var(--font-display); font-weight: 600; color: var(--text-muted); font-size: var(--t-sm); }
.sitemap__pins { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.sideswitch { display: inline-flex; background: var(--bg-inset); border-radius: var(--r-full); padding: 3px; gap: 2px; }
.sideswitch button { padding: 7px 18px; border-radius: var(--r-full); font-size: var(--t-sm); font-weight: 600; color: var(--text-muted); min-height: 38px; }
.sideswitch button.is-active { background: var(--gold); color: var(--bg-void); }
.entry { padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.entry__head { display: flex; align-items: center; gap: var(--s2); }
.entry__kind { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--info); font-family: var(--font-data); }
.entry__side { font-size: var(--t-xs); font-family: var(--font-data); color: var(--text-faint); }
.entry__video { display: inline-flex; align-items: center; gap: var(--s2); color: var(--gold); font-size: var(--t-sm); margin-top: var(--s2); }
.entry__body { font-size: var(--t-sm); color: var(--text-muted); margin-top: var(--s2); }
.entry__throwers { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line-soft); }
.entry__throwers-lbl { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.entry__throwers .btn { margin-left: auto; }
.thrower { position: relative; display: inline-flex; }
.thrower.is-primary::after { content: '★'; position: absolute; top: -6px; right: -4px; font-size: 9px; color: var(--gold); text-shadow: 0 0 3px rgba(0,0,0,.8); }
/* Galerie smokes/vidéos (refonte v3.3) */
.smoke-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin-top: var(--s3); }
@media (min-width: 640px) { .smoke-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.smoke-card { background: var(--bg-inset); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.smoke-card__media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; background: var(--bg-raised); cursor: pointer; border: 0; padding: 0; }
.smoke-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smoke-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.30); color: #fff; transition: background var(--d-fast); }
.smoke-card__play .icon { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.smoke-card__media:hover .smoke-card__play { background: rgba(0,0,0,.44); }
.smoke-card__media--link, .smoke-card__media--none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); font-size: var(--t-xs); }
.smoke-card__media--none .icon, .smoke-card__media--link .icon { width: 28px; height: 28px; color: var(--gold); }
.smoke-card__body { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.smoke-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.smoke-card__kind { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--info); font-family: var(--font-data); }
.smoke-card__actions { display: flex; gap: 2px; }
.smoke-card__title { font-size: var(--t-sm); line-height: 1.25; }
.smoke-card .entry__throwers { margin-top: auto; }

/* ---------- Galerie (refonte v3.3) ---------- */
.galgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
@media (min-width: 640px) { .galgrid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .galgrid { grid-template-columns: repeat(6, 1fr); } }
.galtile-wrap { position: relative; }
.galtile {
  display: block; width: 100%; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-inset); cursor: pointer; padding: 0; border: 0;
  transition: transform var(--d-fast);
}
.galtile:hover { transform: scale(1.03); }
.galtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galtile__vid {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(160deg, #1a1e26, #0d1015); color: var(--gold);
}
.galtile__vid .icon { width: 30px; height: 30px; }
.galtile__del {
  position: absolute; top: 4px; right: 4px; z-index: 1;
  width: 26px; height: 26px; border-radius: var(--r-full);
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.galtile__del:hover { background: var(--danger); }
.entry__video-thumb { position: relative; display: block; width: 100%; margin-top: var(--s2); border-radius: var(--r-md); overflow: hidden; cursor: pointer; }
.entry__video-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.entry__video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.32); color: #fff; }
.entry__video-play .icon { width: 30px; height: 30px; }
.entry__video-thumb:hover .entry__video-play { background: rgba(0,0,0,.45); }
.videowrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; }
.videowrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Le Mur ---------- */
.wall { columns: 1; column-gap: var(--s4); }
@media (min-width: 640px) { .wall { columns: 2; } }
@media (min-width: 1024px) { .wall { columns: 3; } }
.postit {
  position: relative; break-inside: avoid; margin-bottom: var(--s4); margin-top: 10px; padding: var(--s4);
  border-radius: 3px 16px 5px 14px / 12px 5px 16px 4px; cursor: pointer; width: 100%; text-align: left;
  color: #3B2F18; box-shadow: var(--e1), inset 0 0 30px rgba(120,90,40,.10);
  background:
    radial-gradient(circle at 12% 18%, rgba(120,90,40,.12) 0, transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(120,90,40,.10) 0, transparent 42%),
    radial-gradient(circle at 70% 15%, rgba(120,90,40,.07) 0, transparent 30%),
    linear-gradient(135deg, #F5EACB 0%, #EBDBAC 55%, #DFCC98 100%);
  transition: transform var(--d-fast);
}
.postit:hover { transform: scale(1.02) rotate(0deg) !important; }
.postit::before {
  content: ''; position: absolute; top: -9px; left: 50%; width: 56px; height: 20px;
  transform: translateX(-50%) rotate(-3deg); border-radius: 2px;
  background: var(--tape-color); opacity: .6; box-shadow: var(--e1);
}
.postit--yellow { --tape-color: #E5B34A; } .postit--pink { --tape-color: #FF8FD8; }
.postit--blue { --tape-color: #4ECBFF; } .postit--green { --tape-color: #7DE86B; }
.postit--orange { --tape-color: #FF9F5C; }
.postit__author { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-xs); font-weight: 600; margin-bottom: var(--s2); }
.postit__title { font-weight: 600; line-height: 1.25; }
.postit__date { font-family: var(--font-data); font-size: 10px; opacity: .55; margin-top: var(--s3); }
.postit__status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.15); }
.status-chip { font-size: var(--t-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--r-full); }
.status-chip--open { background: var(--bg-raised); color: var(--text-muted); }
.status-chip--retenu { background: rgba(63,214,140,.15); color: var(--ok); }
.status-chip--rejete { background: rgba(255,77,94,.12); color: var(--danger); }
.status-chip--fait { background: var(--gold-dim); color: var(--gold); }

/* ---------- Boxe ---------- */
.poster {
  background: radial-gradient(120% 90% at 50% 0%, #1d1408 0%, var(--bg-void) 70%);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: var(--r-xl); padding: var(--s6) var(--s4); text-align: center; overflow: hidden;
}
.poster h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--t-hero); letter-spacing: .03em; color: var(--gold); text-transform: uppercase; }
.poster__vs { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin: var(--s6) 0; }
.poster__fighter { display: flex; flex-direction: column; align-items: center; gap: var(--s2); flex: 1; min-width: 0; }
.poster__fighter .name { font-weight: 700; font-size: var(--t-sm); }
.poster__fighter.is-winner .name::after { content: ' 🏆'; }
.poster__fighter.is-loser { filter: saturate(.2); opacity: .6; }
.poster__x { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--text-faint); flex: none; }
.poster__date { font-family: var(--font-data); color: var(--text-muted); }
.poster__anim-a { animation: fly-a var(--d-slow) var(--ease-out); }
.poster__anim-b { animation: fly-b var(--d-slow) var(--ease-out); }
@keyframes fly-a { from { transform: translateX(-40px); opacity: 0; } }
@keyframes fly-b { from { transform: translateX(40px); opacity: 0; } }
.betcamp { margin-top: var(--s4); }
.betcamp h3 { font-size: var(--t-sm); color: var(--text-muted); margin-bottom: var(--s2); }
.betrow { display: flex; align-items: center; gap: var(--s3); min-height: 40px; font-size: var(--t-sm); }
.betrow .stake { color: var(--text-faint); font-style: italic; }

/* ---------- Journal ---------- */
.j-day { margin: var(--s5) 0 var(--s2); }
.j-entry { display: flex; align-items: center; gap: var(--s3); min-height: 52px; border-bottom: 1px solid var(--line-soft); }
.j-entry__txt { flex: 1; font-size: var(--t-sm); }
.j-entry time { display: block; color: var(--text-faint); font-size: var(--t-xs); }
.j-entry__go { color: var(--gold); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.j-unread-sep { display: flex; align-items: center; gap: var(--s3); color: var(--gold); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; margin: var(--s3) 0; }
.j-unread-sep::before, .j-unread-sep::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--gold) 40%, transparent); }

/* ---------- Onboarding ---------- */
.ob-progress { height: 4px; background: var(--bg-raised); border-radius: 2px; margin: var(--s4) 0 var(--s6); overflow: hidden; }
.ob-progress b { display: block; height: 100%; background: var(--gold); border-radius: 2px; transition: width var(--d-slow) var(--ease); }
.ob-step h2 { font-family: var(--font-display); font-size: var(--t-h1); font-weight: 600; margin-bottom: var(--s5); }
.ob-step .hint { color: var(--text-muted); margin-bottom: var(--s5); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice {
  background: var(--bg-surface); border: 1px solid transparent; border-radius: var(--r-md);
  padding: var(--s4) var(--s3); text-align: center; font-weight: 500; min-height: 54px;
  transition: border-color var(--d-fast), background var(--d-fast);
}
.choice:hover { background: var(--bg-raised); }
.choice.is-active { border-color: var(--gold); background: var(--gold-dim); }
.ob-nav { display: flex; gap: var(--s3); margin-top: var(--s5); }
.ob-nav .btn { flex: 1; }
.avatar-preview { display: flex; flex-direction: column; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.colorpick { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }
.colorpick button { width: 44px; height: 44px; border-radius: var(--r-full); border: 3px solid transparent; }
.colorpick button.is-active { border-color: var(--text); }
.gamepick { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 480px) { .gamepick { grid-template-columns: repeat(3, 1fr); } }
.gamepick .choice { min-height: 44px; font-size: var(--t-sm); padding: var(--s3) var(--s2); }
.recap li { display: flex; gap: var(--s3); align-items: center; min-height: 36px; color: var(--text-muted); }
.recap .icon { color: var(--ok); flex: none; }

/* ---------- Profil ---------- */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s5) 0; text-align: center; }
.profile-head h1 { font-family: var(--font-display); font-size: var(--t-h1); }
.profile-head .real { color: var(--text-faint); font-size: var(--t-sm); }

/* ---------- Divers ---------- */
.row { display: flex; align-items: center; gap: var(--s3); }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: var(--s4); } .mt2 { margin-top: var(--s6); }
.sep { border: 0; border-top: 1px solid var(--line-soft); margin: var(--s4) 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-raised); border-radius: var(--r-full); padding: 3px 10px; font-size: var(--t-xs); color: var(--text-muted); }
.field { margin-bottom: var(--s4); }
.switchrow { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: var(--s3); }
.switchrow input { width: auto; accent-color: var(--gold); transform: scale(1.4); }

/* ================================================================
   V2 — VIE, PROFONDEUR & ANIMATIONS
   ================================================================ */

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes snowfall {
  0% { transform: translateY(-4px) translateX(0); opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .7; }
  100% { transform: translateY(var(--fall, 70px)) translateX(6px); opacity: 0; }
}
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--halo-color) 25%, transparent), 0 0 18px -2px color-mix(in srgb, var(--halo-color) 45%, transparent); } 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--halo-color) 40%, transparent), 0 0 26px 0 color-mix(in srgb, var(--halo-color) 60%, transparent); } }
@keyframes vsPulse { 0%,100% { transform: scale(1); text-shadow: 0 0 18px rgba(229,179,74,.35); } 50% { transform: scale(1.14); text-shadow: 0 0 34px rgba(229,179,74,.75); } }
@keyframes ringGlow { 0%,100% { opacity: .35; } 50% { opacity: .8; } }
@keyframes shineSweep { from { transform: translateX(-130%) skewX(-18deg); } to { transform: translateX(230%) skewX(-18deg); } }
@keyframes freePulse { 0%,100% { border-color: var(--text-faint); } 50% { border-color: var(--gold); color: var(--gold-soft); } }

/* Entrées de vue : léger fondu monté, en cascade */
.main > * { animation: fadeUp .34s var(--ease-out) both; }
.main > *:nth-child(2) { animation-delay: .05s; }
.main > *:nth-child(3) { animation-delay: .1s; }
.hall > *, .gamegrid > *, .wall > * { animation: popIn .3s var(--ease-out) both; }
.hall > :nth-child(2n) { animation-delay: .04s; }
.hall > :nth-child(3n) { animation-delay: .08s; }
.hall > :nth-child(5n) { animation-delay: .12s; }
.gamegrid > :nth-child(2n) { animation-delay: .05s; }
.gamegrid > :nth-child(3n) { animation-delay: .09s; }
.wall > :nth-child(2n) { animation-delay: .06s; }

/* Topbar : flèche retour */
.topbar__left { display: flex; align-items: center; gap: var(--s2); }
.topbar__back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-full);
  color: var(--text-muted); background: var(--bg-surface);
  transition: background var(--d-fast), color var(--d-fast), transform var(--d-fast);
}
.topbar__back:hover { background: var(--bg-raised); color: var(--text); transform: translateX(-2px); }

/* Boutons or : reflet au survol */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-130%) skewX(-18deg);
}
.btn--gold:hover::after { animation: shineSweep .7s var(--ease-out); }

/* Nudge de complétion global (refonte v3.4) — bandeau or brillant sur toutes les vues */
.gonudge {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  background: linear-gradient(100deg, var(--gold), var(--gold-soft));
  color: #1a1205; font-weight: 600; border-radius: var(--r-md);
  padding: var(--s3) var(--s4); margin-bottom: var(--s4);
  position: relative; overflow: hidden; box-shadow: 0 6px 20px -8px rgba(229,179,74,.7);
  animation: fadeUp .34s var(--ease-out) both;
}
.gonudge::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shineSweep 3.4s var(--ease) infinite;
}
.gonudge__txt { font-size: var(--t-sm); }
.gonudge__txt b { font-family: var(--font-data); }
.gonudge__cta { white-space: nowrap; font-weight: 700; font-size: var(--t-sm); }

/* Récap éditable de la config (page profil, refonte v3.4) */
.cfg-list { display: flex; flex-direction: column; }
.cfgrow { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; border-radius: var(--r-sm);
  transition: background var(--d-fast); }
.cfgrow:last-child { border-bottom: 0; }
.cfgrow:hover { background: var(--bg-inset); }
.cfgrow--empty { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.cfgrow__emoji { font-size: 19px; width: 26px; text-align: center; flex-shrink: 0; }
.cfgrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cfgrow__label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
.cfgrow__value { font-size: var(--t-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfgrow__value--empty { color: var(--warn); font-weight: 600; }
.cfgrow__edit { flex-shrink: 0; color: var(--text-faint); font-size: 15px; }
.cfgrow:hover .cfgrow__edit { color: var(--gold); }

/* ---------- Hall v2 : cartes teintées + vivantes ---------- */
.hall-hint {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: linear-gradient(135deg, var(--gold-dim), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-radius: var(--r-lg); padding: var(--s4) var(--s5); margin-bottom: var(--s5);
  font-size: var(--t-sm);
}
.hall-hint b { color: var(--gold-soft); }
.hall-hint button { margin-left: auto; color: var(--text-faint); min-width: 32px; min-height: 32px; flex: none; }
.hall-card {
  position: relative; overflow: hidden; border: 1px solid transparent;
  background:
    radial-gradient(120% 90% at 20% 0%, hsla(var(--hue, 45), 60%, 55%, .12), transparent 55%),
    var(--bg-surface);
  transition: transform var(--d-base) var(--ease), border-color var(--d-base), box-shadow var(--d-base);
}
.hall-card:hover {
  transform: translateY(-4px);
  border-color: hsla(var(--hue, 45), 70%, 60%, .4);
  box-shadow: 0 10px 30px -12px hsla(var(--hue, 45), 70%, 50%, .35);
}
.hall-card__emoji { font-size: 1.6rem; filter: drop-shadow(0 3px 8px hsla(var(--hue, 45), 70%, 50%, .5)); transition: transform var(--d-base) var(--ease); }
.hall-card:hover .hall-card__emoji { transform: translateY(-3px) scale(1.12) rotate(-4deg); }
.hall-card__num { color: hsla(var(--hue, 45), 55%, 72%, .95); }
.hall-card__go { display: inline-flex; align-items: center; gap: 4px; transition: gap var(--d-fast); }
.hall-card:hover .hall-card__go { gap: 9px; }
.hall-card__art { position: absolute; right: -6px; bottom: -4px; width: 74px; opacity: .5; pointer-events: none; transition: opacity var(--d-base), transform var(--d-base); }
.hall-card:hover .hall-card__art { opacity: .95; transform: translateY(-2px); }

/* ---------- Plans v2 : pièces vivantes ---------- */
.plan .room-shape { transition: filter var(--d-fast); }
.plan .room-shape.is-bedroom:hover { filter: brightness(1.35); }
.plan .room-shape.is-bedroom { fill: url(#roomGrad); }
.room-chip {
  position: absolute; transform: translate(-50%, 0);
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  font-family: var(--font-data); font-size: 9px; color: var(--text-muted);
  padding: 1px 7px; border-radius: var(--r-full); pointer-events: none;
  border: 1px solid var(--line-soft);
}
.room-chip b { color: var(--text); }
.sf {
  fill: #CDEBFF; font-size: 8px; opacity: 0; pointer-events: none;
  animation: sfFall var(--sfd, 3.6s) linear infinite;
}
@keyframes sfFall {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .95; }
  80% { opacity: .5; }
  100% { transform: translateY(var(--sf, 40px)); opacity: 0; }
}
.room-hit { position: absolute; background: transparent; border: 0; padding: 0; cursor: pointer; }
.ac-badge { filter: drop-shadow(0 0 5px rgba(120,200,255,.8)); }
.plan-pin .pin { animation: floaty 3.4s var(--ease) infinite; }
.plan-pin:nth-of-type(2n) .pin { animation-delay: -1.2s; }
.plan-pin:nth-of-type(3n) .pin { animation-delay: -2.1s; }
.plan-pin--free { animation: freePulse 2.6s var(--ease) infinite; }
.plan-pin--free:nth-of-type(2n) { animation-delay: -1.3s; }

/* ---------- Table de guerre v2 ---------- */
.tslot--taken {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--halo-color, #555) 16%, transparent), transparent 72%),
    linear-gradient(180deg, #1a1e26, #12151b);
  border-color: color-mix(in srgb, var(--halo-color, #555) 55%, var(--line));
  box-shadow: inset 0 0 16px -8px color-mix(in srgb, var(--halo-color, #555) 60%, transparent);
  transition: transform var(--d-fast), box-shadow var(--d-base);
}
/* liseré RGB à la couleur du joueur, du côté du centre de la table */
.tslot--south::before, .tslot--north::before {
  content: ''; position: absolute; left: 12%; right: 12%; height: 3px; border-radius: 3px;
  background: var(--halo-color, #888);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--halo-color, #888) 70%, transparent);
}
.tslot--south::before { top: 0; }
.tslot--north::before { bottom: 0; }
.tslot--taken:hover { transform: translateY(-3px); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--halo-color, #555) 60%, transparent); }
.tslot--taken .pin { animation: floaty 3.8s var(--ease) infinite; }
.tslot--free { transition: transform var(--d-fast), border-color var(--d-fast); }
.tslot--free:hover { transform: translateY(-2px); }
.player-sheet__desk { background: var(--bg-inset); border-radius: var(--r-md); padding: var(--s3); margin: var(--s3) 0; }
.player-sheet__desk svg { width: 100%; max-height: 74px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2) var(--s4); margin: var(--s3) 0; }
.spec-grid .spec { background: var(--bg-inset); border-radius: var(--r-md); padding: var(--s2) var(--s3); }
.spec-grid .spec .label { margin-bottom: 2px; }
.spec-grid .spec b { font-family: var(--font-data); font-size: var(--t-sm); font-weight: 600; }
.gearchips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.gearchips .chip { font-size: var(--t-sm); padding: 6px 12px; }

/* ---------- Jeux v2 ---------- */
.gcard__cover { transition: transform var(--d-slow) var(--ease); }
.gcard:hover .gcard__cover { transform: scale(1.06); }
.gcard { box-shadow: var(--e1); transition: transform var(--d-fast), box-shadow var(--d-base); }
.gcard:hover { box-shadow: var(--e2); }

/* ---------- Codex v2 : cercles de jeux + fiches maps illustrées ---------- */
.codex-circles { display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: center; padding: var(--s4) 0 var(--s5); }
.codex-circle { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 108px; text-align: center; }
.codex-circle__disc {
  width: 88px; height: 88px; border-radius: var(--r-full); overflow: hidden;
  border: 2px solid hsla(var(--hue, 45), 65%, 60%, .8);
  box-shadow: 0 0 0 4px hsla(var(--hue, 45), 65%, 60%, .18), 0 8px 22px -8px hsla(var(--hue, 45), 65%, 55%, .5);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, hsla(var(--hue, 45), 55%, 30%, 1), hsla(var(--hue, 45), 45%, 12%, 1));
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base);
}
.codex-circle:hover .codex-circle__disc { transform: translateY(-5px) scale(1.05); box-shadow: 0 0 0 5px hsla(var(--hue, 45), 65%, 60%, .3), 0 14px 30px -8px hsla(var(--hue, 45), 65%, 55%, .65); }
.codex-circle__disc img { width: 100%; height: 100%; object-fit: cover; }
.codex-circle b { font-size: var(--t-sm); }
.codex-circle .count { font-size: var(--t-xs); color: var(--text-faint); font-family: var(--font-data); }
.mapcard {
  position: relative; display: flex; align-items: flex-end; min-height: 110px;
  border-radius: var(--r-lg); overflow: hidden; padding: var(--s3) var(--s4); width: 100%; text-align: left;
  background: var(--bg-surface); margin-bottom: var(--s3);
  transition: transform var(--d-fast), box-shadow var(--d-base);
}
.mapcard:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.mapcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--ease); }
.mapcard:hover .mapcard__bg { transform: scale(1.05); }
.mapcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(185deg, transparent 30%, rgba(4,5,8,.88)); }
.mapcard__body { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--s3); width: 100%; }
.mapcard__body b { font-family: var(--font-display); font-size: var(--t-h3); }
.mapcard__meta { margin-left: auto; font-family: var(--font-data); font-size: var(--t-xs); color: var(--text-muted); }
.sitemap__zone { transition: background var(--d-fast); }
.sitemap__zone.is-mine { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
.entry__kind-ic { color: var(--info); flex: none; }

/* ---------- Accordéons avec icônes ---------- */
.acc__ic { color: var(--gold); flex: none; width: 18px; height: 18px; }

/* ---------- Bouffe v2 ---------- */
.meal-ic {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-md);
  background: radial-gradient(circle at 30% 25%, #2a2416, #15120a);
  border: 1px solid #363019;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.foodpick { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.foodpick button {
  width: 48px; height: 48px; border-radius: var(--r-md); font-size: 1.4rem;
  background: var(--bg-inset); border: 1px solid var(--line);
  transition: transform var(--d-fast), border-color var(--d-fast);
}
.foodpick button:hover { transform: translateY(-2px) scale(1.08); }
.foodpick button.is-active { border-color: var(--gold); background: var(--gold-dim); }

/* ---------- Boxe v2 ---------- */
.poster { position: relative; }
.poster::before {
  content: ''; position: absolute; inset: -30% -10%;
  background: radial-gradient(45% 38% at 50% 30%, rgba(229,179,74,.16), transparent 70%);
  animation: ringGlow 3.2s var(--ease) infinite; pointer-events: none;
}
.poster h2 { position: relative; }
.poster__x { animation: vsPulse 2.2s var(--ease) infinite; color: var(--gold); }
.poster__fighter .pin { animation: floaty 3.6s var(--ease) infinite; }
.poster__fighter:last-of-type .pin { animation-delay: -1.8s; }
.poster__fighter.is-winner .pin { animation: glowPulse 1.8s var(--ease) infinite; }
.poster__date { position: relative; }

/* ---------- Profil v2 ---------- */
.moodpick { display: flex; gap: var(--s2); flex-wrap: wrap; }
.moodpick button {
  width: 46px; height: 46px; border-radius: var(--r-full); font-size: 1.3rem;
  background: var(--bg-inset); border: 1px solid var(--line);
  transition: transform var(--d-fast), border-color var(--d-fast);
}
.moodpick button:hover { transform: scale(1.12); }
.moodpick button.is-active { border-color: var(--gold); background: var(--gold-dim); }
input[type="color"] { padding: 4px; height: 44px; width: 64px; cursor: pointer; }
.profile-head .pin { animation: floaty 4s var(--ease) infinite; }
.profile-head .tagline { color: var(--text-muted); font-style: italic; max-width: 380px; }
.profile-head .mood { font-size: 1.3rem; }

/* ---------- Fiche personne (overlay global) ---------- */
.pin { cursor: pointer; }
.pcard-head { display: flex; align-items: center; gap: var(--s4); }
.pcard-head .who b { font-family: var(--font-display); font-size: var(--t-h2); display: block; }
.pcard-head .who .real { color: var(--text-faint); font-size: var(--t-sm); }
.pcard-head .who .tagline { color: var(--text-muted); font-size: var(--t-sm); font-style: italic; }
.pcard-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s4); }
.pcard-facts .fact {
  display: flex; align-items: center; gap: var(--s2);
  background: var(--bg-inset); border-radius: var(--r-md); padding: var(--s2) var(--s3);
  font-size: var(--t-sm);
}
.pcard-facts .fact .icon { color: var(--gold); flex: none; width: 16px; height: 16px; }
.pcard-games {
  display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s3);
  background: var(--bg-inset); border-radius: var(--r-md); padding: var(--s2) var(--s3);
  font-size: var(--t-sm); color: var(--text-muted);
}
.pcard-games .icon { color: var(--gold); flex: none; width: 16px; height: 16px; margin-top: 2px; }
.pcard-games:hover { color: var(--text); }
.pcard-ranks {
  display: flex; flex-direction: column; gap: 6px; margin-top: var(--s3);
  background: var(--bg-inset); border-radius: var(--r-md); padding: var(--s3);
}
.pcard-ranks__label { font-size: var(--t-xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }
.pcard-ranks__label i { text-transform: none; letter-spacing: 0; }
.pcard-rank { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.pcard-rank__g { font-size: var(--t-sm); color: var(--text-muted); flex: 1; min-width: 90px; }
.pcard-rank__g i { color: var(--text-faint); font-style: normal; font-size: var(--t-xs); }

/* ---------- Rangs (vue Rangs + pastilles réutilisées dans la fiche personne) ---------- */
/* La pastille porte la couleur de son palier via --c : une seule règle sert tous les jeux. */
.rk-chip {
  display: inline-flex; align-items: baseline; gap: 6px; flex: none; max-width: 100%;
  border-radius: var(--r-full); padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--c, var(--text-faint)) 55%, transparent);
  background: color-mix(in srgb, var(--c, var(--text-faint)) 14%, transparent);
}
.rk-chip b { font-size: var(--t-sm); font-weight: 600; color: color-mix(in srgb, var(--c, var(--text)) 70%, var(--text)); }
.rk-chip i { font-family: var(--font-data); font-style: normal; font-size: 10px; color: var(--text-muted); }
.rk-chip--todo {
  border-style: dashed; border-color: var(--line); background: transparent;
  font-size: var(--t-xs); color: var(--text-faint); padding: 3px 9px;
}
.rk-delta {
  font-family: var(--font-data); font-size: var(--t-xs); font-weight: 600;
  padding: 2px 7px; border-radius: var(--r-full); white-space: nowrap;
}
.rk-delta.is-up { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.rk-delta.is-down { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.rk-delta.is-flat, .rk-delta.is-move { color: var(--text-faint); background: var(--bg-raised); }
.rk-pair { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rk-arrow { color: var(--text-faint); font-size: var(--t-sm); }
.rk-lan { font-family: var(--font-data); font-size: var(--t-xs); color: var(--text-faint); }

.rk-head { display: flex; flex-direction: column; gap: var(--s3); }
.rk-head__stats { display: flex; gap: var(--s3); }
.rk-stat {
  flex: 1; background: var(--bg-inset); border-radius: var(--r-md); padding: var(--s3);
  display: flex; flex-direction: column; gap: 2px;
}
.rk-stat b { font-family: var(--font-data); font-size: 1.35rem; color: var(--gold); line-height: 1; }
.rk-stat b i { font-style: normal; font-size: .9rem; color: var(--text-faint); }
.rk-stat span { font-size: var(--t-xs); color: var(--text-muted); }
.rk-head p { font-size: var(--t-sm); }
.rk-head p b { color: var(--gold-soft); }

.rk-game {
  font-family: var(--font-display); font-size: var(--t-h3); font-weight: 600;
  margin: var(--s5) 0 var(--s2);
}
.rk-list { display: flex; flex-direction: column; gap: var(--s2); }
.rk-row {
  position: relative; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s3) 38px var(--s3) var(--s3);
  transition: border-color var(--d-fast), background var(--d-fast);
}
.rk-row:hover { background: var(--bg-raised); border-color: var(--text-faint); }
.rk-row__head { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.rk-row__head b { font-size: var(--t-sm); }
.rk-row__head .faint { font-size: var(--t-xs); }
.rk-row__body { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.rk-row__go { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.rk-row__go .icon { width: 16px; height: 16px; }

/* Sélecteur de jeu puis de classement : rangée de puces qui défile, comme les onglets. */
.rk-picker {
  display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none;
  padding-bottom: var(--s2); margin-bottom: var(--s4);
}
.rk-picker::-webkit-scrollbar { display: none; }
.rk-pick {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; min-height: 38px; border-radius: var(--r-full);
  background: var(--bg-surface); border: 1px solid var(--line);
  color: var(--text-muted); font-size: var(--t-sm); font-weight: 500; white-space: nowrap;
  transition: border-color var(--d-fast), color var(--d-fast), background var(--d-fast);
}
.rk-pick:hover { background: var(--bg-raised); color: var(--text); }
.rk-pick.is-active { border-color: var(--gold); background: var(--gold-dim); color: var(--gold-soft); }
.rk-pick i {
  font-family: var(--font-data); font-style: normal; font-size: 10px;
  background: var(--bg-inset); border-radius: var(--r-full); padding: 1px 6px; color: var(--text-faint);
}
.rk-pick.is-active i { color: var(--gold); }
.rk-hint { font-size: 11px; margin: -4px 0 var(--s3); }
.rk-you {
  font-style: normal; font-family: var(--font-data); font-size: 9px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold); border: 1px solid var(--gold);
  border-radius: var(--r-full); padding: 0 5px; vertical-align: 1px;
}
.rk-prow.is-me { background: var(--gold-dim); border-radius: var(--r-sm); padding-left: 4px; padding-right: 4px; }
.rk-modedel { display: block; margin: var(--s3) auto 0; }

.rk-card__head { display: flex; flex-direction: column; margin-bottom: var(--s3); }
.rk-card__head b { font-size: var(--t-sm); }
.rk-card__head .faint { font-size: var(--t-xs); }
.rk-prow {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  padding: var(--s2) 0; border-bottom: 1px solid var(--line-soft);
}
.rk-prow:last-child { border-bottom: 0; }
.rk-prow__pos {
  font-family: var(--font-data); font-size: var(--t-sm); color: var(--text-faint);
  width: 22px; flex: none; text-align: center;
}
.rk-prow__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rk-prow__who b { font-size: var(--t-sm); }
.rk-prow__who .faint { font-size: var(--t-xs); }
/* Les rangs passent SOUS le nom sur mobile : « Distinguished Master Guardian » ne tient pas à côté
   d'un pin sur 375 px, et une colonne de pastilles non rétractable écrasait celle du pseudo
   (un mot par ligne) tout en débordant de la carte. */
.rk-prow__ranks {
  flex: 1 0 100%; min-width: 0; padding-left: 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
@media (min-width: 600px) {
  .rk-prow__ranks { flex: 0 1 auto; padding-left: 0; justify-content: flex-end; }
}
.rk-missing { display: flex; align-items: center; gap: 4px; margin-top: var(--s3); flex-wrap: wrap; }
.rk-missing .faint { font-size: var(--t-xs); margin-left: var(--s1); }

.rk-move { padding: var(--s2) 0; border-bottom: 1px solid var(--line-soft); }
.rk-move:last-child { border-bottom: 0; }
.rk-move__head { display: flex; align-items: center; gap: 6px; font-size: var(--t-sm); }
.rk-move__head .faint { font-size: var(--t-xs); margin-left: auto; }
.rk-move__body { display: flex; align-items: center; gap: var(--s2); justify-content: space-between; margin-top: 4px; }
.rk-move__body .mono { font-size: var(--t-xs); color: var(--text-muted); }
.rk-note {
  display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--t-sm);
  background: var(--gold-dim); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: var(--r-md); padding: var(--s3); margin-bottom: var(--s4);
}
.rk-note b { color: var(--gold-soft); }
.rk-other { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--text-muted); margin-bottom: var(--s4); }
.rk-band { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--text-muted); margin-top: 6px; min-height: 14px; }
.rk-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.choice__ok { color: var(--ok); margin-left: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .zz tspan { opacity: .6; }
}
