/* UPawn web — design system « Salle Noire » (hérité de Whatch) : trois noirs, or laiton, ivoire, Bebas Neue pour titres et chiffres. */
@font-face { font-family: 'Bebas Neue'; src: url('/assets/fonts/BebasNeue-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #000; --page: #050505; --card: #0e0e0e; --deep: #0c0c0c; --surface: #141414; --raised: #1d1d1d; --track: #262626; --muted: #2a2a2a;
  --gold: #d4af37; --ink: #e8c96b; --gold-light: #f2de93; --gold-deep: #8a6d1f;
  --ivory: #f2efe9; --text2: #c8c4bc; --meta: #a8a39a; --faint: #8a8579; --disabled: #6e6a62;
  --green: #3dffa0; --red: #e5484d; --red-text: #ff8a8d; --red-fill: #c93a40;
  --hair: rgba(255,255,255,.07); --ring: rgba(255,255,255,.12); --gold-ring: rgba(212,175,55,.42);
  --display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 14px; --side: 248px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ivory); font: 15px/1.45 var(--text); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

/* ---------- Coquille : barre latérale (bureau) / barre d'onglets (mobile) ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 26px 16px; border-right: 1px solid var(--hair); background: var(--page); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; text-decoration: none; color: var(--ivory); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font: 30px/1 var(--display); letter-spacing: 1.5px; }
.brand b span { color: var(--gold); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--meta); text-decoration: none; font-weight: 650; letter-spacing: .2px; }
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: var(--surface); color: var(--ivory); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--hair); }
.nav a[aria-current="page"] svg { color: var(--gold); }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--faint); }
.side-foot .stat-row { display: flex; gap: 14px; margin-bottom: 10px; }
.side-foot .stat-row div { display: flex; flex-direction: column; }
.side-foot .stat-row b { font: 24px/1 var(--display); color: var(--ivory); letter-spacing: .5px; }
.main { min-width: 0; padding: 30px clamp(18px, 4vw, 56px) 80px; }
.page { max-width: 1120px; margin: 0 auto; }
.page.narrow { max-width: 720px; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px 104px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 30; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(5,5,5,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 650; color: var(--faint); text-decoration: none; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  .shell.focus .tabbar { display: none; }
}
.shell.focus { grid-template-columns: 1fr; }
.shell.focus .side { display: none; }

/* ---------- Typographie ---------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: 1px; line-height: .95; margin: 0; }
h1.display { font-size: clamp(38px, 5vw, 54px); }
h2.display { font-size: 30px; }
h3.display { font-size: 23px; }
.over { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); }
.meta { color: var(--meta); font-size: 13.5px; }
.faint { color: var(--faint); }
.muted { color: var(--text2); }
.num { font-family: var(--display); letter-spacing: .5px; }
.green { color: var(--green); } .red { color: var(--red-text); } .gold { color: var(--gold); }
.ink { color: var(--ink); }
.card.soft-gold { background: linear-gradient(180deg, #17140d, #0e0e0e 60%); box-shadow: inset 0 0 0 1px var(--gold-ring); }
p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head .display { font-size: 26px; }
.section-head .link { margin-left: auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--meta); margin-top: 8px; max-width: 620px; }

/* ---------- Cartes « ticket » (coupe : coins arrondis / biseautés) ---------- */
.card { position: relative; background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: inset 0 0 0 1px var(--hair); }
.card.surface { background: var(--surface); }
.card.raised { background: var(--raised); }
.card.flat { box-shadow: none; }
.card.click { cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; text-align: left; border: 0; width: 100%; display: block; color: inherit; text-decoration: none; }
.card.click:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring); }
.card.selected { box-shadow: inset 0 0 0 1.5px var(--gold); }
@supports (corner-shape: bevel) { .ticket { corner-shape: round bevel round bevel; border-radius: 18px; } }
.perf { position: relative; }
.perf::before, .perf::after { content: ''; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); }
.perf::before { left: -8px; } .perf::after { right: -8px; }

/* Bandeau or : un seul appel à l'action par écran. */
.hero { position: relative; overflow: hidden; display: flex; align-items: stretch; gap: 24px; width: 100%; border: 0; text-align: left; cursor: pointer; padding: 26px 28px; border-radius: 20px; color: #120e04;
  background: radial-gradient(120% 140% at 0% 0%, #f2de93 0%, #d4af37 42%, #a5852a 100%); box-shadow: 0 18px 50px -24px rgba(212,175,55,.7); transition: transform .15s, box-shadow .15s; }
.hero:hover { transform: translateY(-1px); box-shadow: 0 22px 60px -22px rgba(212,175,55,.85); }
.hero .h-over { font-size: 11.5px; font-weight: 850; letter-spacing: 1.8px; opacity: .78; }
.hero .h-title { font: clamp(40px, 6vw, 62px)/.9 var(--display); letter-spacing: 1px; margin-top: 8px; }
.hero .h-hint { margin-top: 12px; font-size: 14.5px; line-height: 1.45; max-width: 560px; color: #2a2008; font-weight: 550; }
.hero .h-right { margin-left: auto; align-self: center; font: 40px/1 var(--display); white-space: nowrap; }
.hero .h-segs { display: flex; gap: 5px; margin-top: 18px; max-width: 420px; }
.hero .h-segs i { flex: 1; height: 5px; border-radius: 3px; background: rgba(18,14,4,.2); }
.hero .h-segs i.on { background: #120e04; }
.hero .h-up { width: 150px; margin: -10px -6px -26px 0; align-self: flex-end; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
@media (max-width: 640px) { .hero { flex-direction: column; gap: 6px; padding: 22px; } .hero .h-right { margin: 0; align-self: flex-start; font-size: 30px; } .hero .h-up { display: none; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 750; letter-spacing: .3px; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, opacity .15s; }
.btn.gold { background: var(--gold); color: #120e04; }
.btn.gold:hover { background: var(--gold-light); }
.btn.dark { background: var(--raised); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--ring); }
.btn.dark:hover { background: var(--muted); }
.btn.ghost { background: transparent; color: var(--ink); padding: 0 8px; min-height: 36px; }
.btn.ghost:hover { color: var(--gold-light); }
.btn.danger { background: transparent; color: var(--red-text); box-shadow: inset 0 0 0 1px rgba(229,72,77,.45); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--raised); cursor: pointer; box-shadow: inset 0 0 0 1px var(--hair); }
.icon-btn:hover { background: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; font-size: 13.5px; }
.link:hover { color: var(--gold-light); }

/* Segments (onglets compacts) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.seg button { border: 0; background: transparent; color: var(--meta); font-weight: 700; font-size: 13px; padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--ring); }

/* Pastilles / badges perforés */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; background: var(--raised); color: var(--text2); box-shadow: inset 0 0 0 1px var(--hair); white-space: nowrap; }
.chip.gold { background: rgba(212,175,55,.12); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold-ring); }
.chip.green { background: rgba(61,255,160,.09); color: var(--green); box-shadow: inset 0 0 0 1px rgba(61,255,160,.3); }
.chip.red { background: rgba(229,72,77,.12); color: var(--red-text); box-shadow: inset 0 0 0 1px rgba(229,72,77,.35); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px 0 12px; border-radius: 5px; font-size: 10.5px; font-weight: 850; letter-spacing: 1.3px; background: var(--raised); color: var(--text2); border-left: 2px dotted var(--bg); position: relative; }

/* Barres et jauges */
.bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.bar.green > i { background: var(--green); }
.segments { display: flex; gap: 4px; }
.segments i { flex: 1; height: 6px; border-radius: 3px; background: var(--raised); }

/* Notifications */
.notice { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); color: var(--text2); }
.notice.error { background: rgba(229,72,77,.08); box-shadow: inset 0 0 0 1px rgba(229,72,77,.35); color: var(--red-text); }
.notice.good { background: rgba(61,255,160,.06); box-shadow: inset 0 0 0 1px rgba(61,255,160,.25); color: var(--green); }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { min-width: 220px; padding: 12px 16px; border-radius: 14px; background: var(--raised); box-shadow: 0 16px 40px -12px #000, inset 0 0 0 1px var(--gold-ring); animation: toast-in .25s ease-out; }
.toast b { display: block; font: 22px/1 var(--display); color: var(--gold); letter-spacing: 1px; }
.toast span { font-size: 13px; color: var(--text2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) { .toasts { right: 12px; left: 12px; bottom: 96px; } }

/* Fenêtres modales */
dialog.sheet { border: 0; padding: 0; background: transparent; color: inherit; max-width: min(560px, calc(100vw - 24px)); width: 100%; }
dialog.sheet::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
dialog.sheet .sheet-body { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: inset 0 0 0 1px var(--ring), 0 30px 80px -20px #000; max-height: calc(100vh - 40px); overflow: auto; }
dialog.sheet .sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* Formulaires */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; color: var(--meta); }
input.input, textarea.input, select.input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 0; background: var(--surface); color: var(--ivory); font: 15px var(--text); box-shadow: inset 0 0 0 1px var(--ring); text-transform: none; letter-spacing: 0; font-weight: 500; }
textarea.input { min-height: 140px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
input.input:focus, textarea.input:focus, select.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold); }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; cursor: pointer; text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); color: inherit; }
.choice:hover { box-shadow: inset 0 0 0 1px var(--ring); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold); background: #17140a; }
.choice .c-title { font-weight: 700; color: var(--ivory); }
.choice .c-sub { font-size: 13px; color: var(--meta); margin-top: 2px; }
.choice .c-dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); flex: none; }
.choice[aria-checked="true"] .c-dot { box-shadow: inset 0 0 0 5px var(--gold); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; border: 0; background: var(--track); cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--gold); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: #120e04; }

/* Listes */
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--hair); }
.list > .item:last-child { border-bottom: 0; }
.list > button.item, .list > a.item { background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer; color: inherit; text-decoration: none; border-radius: 0; }
.list > button.item:hover, .list > a.item:hover { background: rgba(255,255,255,.025); }
.empty { padding: 34px 20px; text-align: center; color: var(--meta); }
.empty .display { color: var(--ivory); font-size: 26px; margin-bottom: 8px; }

/* Statistiques et chiffres */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font: 40px/1 var(--display); letter-spacing: .5px; }
.kpi .v small { font-size: 20px; color: var(--meta); }
.kpi .l { font-size: 11px; letter-spacing: 1.4px; font-weight: 800; color: var(--meta); text-transform: uppercase; }
.week { display: flex; gap: 8px; }
.week span { flex: 1; display: grid; place-items: center; height: 38px; border-radius: 10px; background: var(--surface); font-weight: 800; font-size: 12px; color: var(--faint); box-shadow: inset 0 0 0 1px var(--hair); }
.week span.done { background: rgba(212,175,55,.16); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-ring); }
.week span.today { box-shadow: inset 0 0 0 1.5px var(--ivory); color: var(--ivory); }
svg.spark { width: 100%; height: 80px; display: block; overflow: visible; }

/* ---------- Échiquier ---------- */
.board-wrap { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
.board { position: relative; width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border-radius: 10px; overflow: hidden; user-select: none; touch-action: none; box-shadow: 0 22px 60px -30px #000, 0 0 0 1px rgba(255,255,255,.06); }
.board .sq { position: relative; }
.board .sq .coord { position: absolute; font-size: clamp(8px, 1.4vw, 11px); font-weight: 800; pointer-events: none; opacity: .85; }
.board .sq .coord.file { right: 3px; bottom: 1px; }
.board .sq .coord.rank { left: 3px; top: 2px; }
.board .sq .mark { position: absolute; inset: 0; pointer-events: none; }
.board .sq.last .mark { background: var(--hl); }
.board .sq.sel .mark { background: var(--hl); }
.board .sq.lit .mark { box-shadow: inset 0 0 0 4px var(--green); background: rgba(61,255,160,.22); }
.board .sq.good .mark { background: rgba(61,255,160,.5); }
.board .sq.bad .mark { background: rgba(229,72,77,.6); }
.board .sq.check .mark { background: radial-gradient(circle, rgba(229,72,77,.95) 0%, rgba(229,72,77,.45) 45%, transparent 72%); }
.board .sq .dot { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; margin: -15% 0 0 -15%; border-radius: 50%; background: rgba(0,0,0,.24); pointer-events: none; }
.board .sq .dot.cap { width: 92%; height: 92%; margin: -46% 0 0 -46%; background: transparent; box-shadow: inset 0 0 0 5px rgba(0,0,0,.24); }
.board .pc { position: absolute; width: 12.5%; height: 12.5%; pointer-events: none; z-index: 2; transition: transform 0s; will-change: transform; }
.board .pc img { width: 100%; height: 100%; object-fit: contain; padding: 3%; }
.board .pc.drag { z-index: 10; transition: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.board.disabled { cursor: default; }
.board .veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.62); z-index: 20; text-align: center; padding: 20px; font-weight: 700; }
.promo { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,.6); }
.promo div { display: flex; gap: 8px; padding: 10px; border-radius: 16px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--gold-ring); }
.promo button { width: 72px; height: 72px; border: 0; border-radius: 12px; background: var(--surface); cursor: pointer; }
.promo button:hover { background: var(--muted); }
.promo img { width: 100%; height: 100%; }

/* Bande de coups */
.strip { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: baseline; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); min-height: 42px; }
.strip .n { color: var(--faint); font-size: 12.5px; margin-left: 6px; }
.strip button { border: 0; background: none; padding: 2px 5px; border-radius: 6px; cursor: default; color: var(--text2); font-weight: 650; }
.strip button.ctx { color: var(--faint); }
.strip button.at { background: var(--gold); color: #120e04; }
.strip.browse button { cursor: pointer; }
.strip.browse button:hover:not(.at) { background: var(--raised); }
.strip .ask { color: var(--gold); font-weight: 800; padding: 2px 5px; }

/* ---------- Séance ---------- */
.session { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; max-width: 1180px; margin: 0 auto; }
.session .s-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.session .s-top .segments { flex: 1; }
.session .s-board { display: flex; flex-direction: column; gap: 12px; }
.session .s-panel { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.coach { display: flex; gap: 14px; align-items: flex-start; }
.coach img { width: 64px; flex: none; margin-top: -4px; }
.coach .bubble { flex: 1; background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--hair); }
.coach .bubble .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 850; letter-spacing: 1.4px; color: var(--ink); }
.coach .bubble .eyebrow i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px var(--ring); }
.coach .bubble .txt { margin-top: 6px; color: var(--ivory); font-weight: 600; }
.coach .bubble .sub { margin-top: 8px; font-size: 13.5px; color: var(--text2); }
.coach .bubble .sub.g { color: var(--green); } .coach .bubble .sub.b { color: var(--red-text); }
.result { padding: 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring); }
.result .r-label { font: 30px/1 var(--display); letter-spacing: 1px; }
@media (max-width: 1000px) { .session { grid-template-columns: 1fr; gap: 18px; } .session .s-panel { position: static; } }

/* ---------- Divers ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--gold); font: 22px/1 var(--display); box-shadow: inset 0 0 0 1px var(--gold-ring); flex: none; }
.game-row .res { width: 6px; align-self: stretch; border-radius: 3px; flex: none; }
.loader { display: grid; place-items: center; min-height: 60vh; color: var(--meta); gap: 14px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kbd { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--ring); color: var(--meta); }
.tag-line { display: flex; gap: 8px; flex-wrap: wrap; }
hr.sep { border: 0; border-top: 1px solid var(--hair); margin: 18px 0; }
.onb { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; background: radial-gradient(80% 60% at 50% 0%, #17130a 0%, #000 70%); }
.onb .box { width: 100%; max-width: 620px; }
.onb .up { width: 170px; margin: 0 auto 12px; }
.progress-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; }
.progress-dots i { width: 26px; height: 4px; border-radius: 2px; background: var(--track); }
.progress-dots i.on { background: var(--gold); }

/* ---------- Ouvertures : statut des variantes ---------- */
.status-tag { position: relative; display: inline-flex; align-items: center; height: 22px; padding: 0 9px 0 15px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; overflow: hidden; white-space: nowrap; }
.status-tag::before { content: ""; position: absolute; left: -4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--card); }
.status-tag::after { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; border-left: 1.5px dashed rgba(0,0,0,.35); }
.status-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 14px; background: var(--track); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; }
.legend > span { display: flex; align-items: center; gap: 7px; }
.legend > span > i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.inset { padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.04); }
.inset.gold { background: rgba(212,175,55,.08); color: var(--ivory); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps-v { display: flex; flex-direction: column; margin-top: 14px; }
.steps-v .st { display: flex; gap: 12px; }
.steps-v .mk { width: 26px; display: flex; flex-direction: column; align-items: center; }
.steps-v .mk b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--track); color: var(--meta); }
.steps-v .mk b.done { background: var(--gold-deep); color: #000; } .steps-v .mk b.current { background: var(--gold); color: #000; }
.steps-v .mk i { flex: 1; width: 2px; min-height: 14px; margin: 3px 0; background: var(--track); } .steps-v .mk i.done { background: var(--gold-deep); }
.steps-v .tx { flex: 1; min-width: 0; padding: 3px 0 14px; }
.line-text { font-size: 14px; line-height: 1.6; color: var(--text2); margin-top: 12px; }
.line-text .on { color: var(--ink); font-weight: 800; } .line-text .later { color: var(--faint); }
.variant-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 28px; align-items: start; }
.variant-grid #v-board .board-wrap { max-width: 560px; }
@media (max-width: 1000px) { .variant-grid { grid-template-columns: 1fr; } }
.line-text .mv { border: 0; background: none; color: inherit; font: inherit; padding: 1px 2px; border-radius: 4px; cursor: pointer; }
.line-text .mv:hover { background: rgba(255,255,255,.05); }
/* L'échiquier de séance tient dans la hauteur de l'écran (barre de progression et en-tête compris). */
/* Barre de progression, étape et titre sur deux lignes au-dessus : l'échiquier entier reste visible sans défiler. */
.session .s-board .board-wrap { max-width: max(300px, min(640px, calc(100vh - 310px))); margin: 0; }
@media (max-width: 1000px) { .session .s-board .board-wrap { max-width: min(640px, 100%); margin: 0 auto; } }
