/* Polices embarquées (licence OFL, voir fonts/) : l'appli reste belle hors ligne */
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(../fonts/unbounded-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(../fonts/unbounded-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(../fonts/unbounded-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
/* chiffres : le zéro barré d'Atkinson ressemble à « Ø » ; on prend les chiffres d'une police système */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("Roboto"), local("Liberation Sans"); unicode-range: U+0030-0039; }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Liberation Sans Bold"); unicode-range: U+0030-0039; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(../fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }
/* Cheess — « Néon nocturne » : une ville la nuit, des enseignes, une route à suivre.
   Une seule chose audacieuse : les enseignes néon des quartiers et la route lumineuse. Tout le reste reste calme. */
:root {
  --night: #0a0b1a; --bg: #0a0b1a; --surface: #14162d; --surface-2: #1d2040; --surface-3: #272b52;
  --fg: #e9ecff; --muted: #8d93c2; --line: #2a2e55; --line-2: #3a3f72;
  --cyan: #2ef2ff; --magenta: #ff3dcf; --amber: #ffc94a; --mint: #5dffb1; --red: #ff5a6e;
  --accent: var(--cyan); --accent-fg: #04121a; --accent-soft: rgba(46, 242, 255, .12);
  --ok: var(--mint); --ko: var(--red); --hint: #59a8ff; --arrow: #ffb547;
  --c-brilliant: #2ef2c8; --c-great: #59a8ff; --c-best: #6fe08a; --c-excellent: #9be36b; --c-good: #a5b3c9; --c-book: #c9a27a;
  --c-inacc: #ffd34d; --c-mistake: #ff9a3d; --c-miss: #ff6f8a; --c-blunder: #ff3d5a;
  --graph-w: #dfe4ff; --graph-b: #22264a;
  --sq-l: #3a3f6e; --sq-d: #23264a;
  --glow-c: 0 0 0 1px rgba(46, 242, 255, .55), 0 0 18px rgba(46, 242, 255, .35);
  --glow-m: 0 0 0 1px rgba(255, 61, 207, .55), 0 0 18px rgba(255, 61, 207, .35);
  --f-display: "Unbounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px; --nav-h: 66px;
  color-scheme: dark;
}
:root[data-board="neon"] { --sq-l: #3a3f6e; --sq-d: #23264a; }
:root[data-board="nuit"] { --sq-l: #3a4058; --sq-d: #22263a; }
:root[data-board="lagon"] { --sq-l: #2c6b78; --sq-d: #153a48; }
:root[data-board="synthwave"] { --sq-l: #6b3d86; --sq-d: #2c1a4a; }
:root[data-board="braise"] { --sq-l: #7a4a3a; --sq-d: #3b2026; }
:root[data-board="aurore"] { --sq-l: #3f7a6a; --sq-d: #1e3f45; }
:root[data-board="or"] { --sq-l: #8a7444; --sq-d: #3d3220; }
:root[data-board="bois"] { --sq-l: #ecd9b9; --sq-d: #b58863; }
:root[data-board="vert"] { --sq-l: #eeeed2; --sq-d: #769656; }
:root[data-board="bleu"] { --sq-l: #dee3e6; --sq-d: #8ca2ad; }
:root[data-board="gris"] { --sq-l: #c9cfd3; --sq-d: #6b7a85; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--fg); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(255, 61, 207, .10), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(46, 242, 255, .07), transparent 60%), var(--night); background-attachment: fixed; }
:root { padding-top: env(safe-area-inset-top, 0px); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 5.4vw, 42px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
b { font-weight: 700; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--f-mono); font-size: 14px; }
[hidden] { display: none !important; }

/* ── coque ── */
#app { min-height: 100%; }
#main { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px); }
#nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(10, 11, 26, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  padding: 4px max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px)); }
.nav-i { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 7px; text-decoration: none; color: var(--muted); font-size: 11px; }
.nav-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.nav-i[data-id="more"] svg { stroke-width: 3.2; }
.nav-i.on { color: var(--cyan); }
.nav-i.on svg { filter: drop-shadow(0 0 6px rgba(46, 242, 255, .7)); }
.brand { display: none; }
@media (min-width: 900px) {
  #nav { top: 0; right: auto; width: 96px; grid-template-columns: 1fr; grid-auto-rows: min-content; gap: 6px; border-top: 0; border-right: 1px solid var(--line); padding: calc(18px + env(safe-area-inset-top, 0px)) 0 0 env(safe-area-inset-left, 0px); }
  .brand { display: block; text-align: center; font: 700 17px/1 var(--f-display); color: var(--cyan); text-shadow: 0 0 12px rgba(46, 242, 255, .6); margin-bottom: 18px; text-decoration: none; }
  #main { margin-left: 96px; padding-bottom: 32px; }
}

/* ── pages ── */
.page { max-width: 980px; margin: 0 auto; padding-block: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 18px; }
.page-head { display: grid; gap: 8px; }
.lede { color: var(--muted); max-width: 62ch; font-size: 17px; }
.eyebrow { font-size: 13px; color: var(--muted); }
.sec { margin-top: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; min-width: 0; text-decoration: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.col { display: grid; gap: 8px; }
.tight { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--cyan); background: var(--cyan); color: var(--accent-fg); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 0 22px rgba(46, 242, 255, .28); transition: transform .12s ease, box-shadow .2s; }
.btn:hover { box-shadow: 0 0 30px rgba(46, 242, 255, .45); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); font-weight: 500; box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.danger { border-color: var(--red); }
.btn.ghost.danger { color: var(--red); }
.btn.danger:not(.ghost) { background: var(--red); color: #fff; box-shadow: none; }
.btn.on { border-color: var(--cyan); color: var(--cyan); }
.btn.magenta { background: var(--magenta); border-color: var(--magenta); color: #1a0414; box-shadow: 0 0 22px rgba(255, 61, 207, .35); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-size: 14px; }
.chip.sm { padding: 3px 9px; font-size: 12px; background: var(--surface-2); border-color: transparent; }
.chip.alt { background: transparent; }
.chip:hover { border-color: var(--cyan); }
.chip-grid, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pct { font: 600 11px var(--f-mono); padding: 1px 6px; border-radius: 6px; }
.pct.g { background: rgba(93, 255, 177, .16); color: var(--mint); }
.pct.m { background: rgba(255, 211, 77, .16); color: var(--c-inacc); }
.pct.b { background: rgba(255, 90, 110, .16); color: var(--red); }
.input, select { min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); min-width: 0; flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; cursor: pointer; border-radius: 999px; color: var(--muted); }
.seg button.on { background: var(--cyan); color: var(--accent-fg); font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 16px; }
.opt { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.opt-pieces { flex-basis: 100%; }
.note { color: var(--ok); font-size: 14px; }

/* tuiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.tile:hover { border-color: var(--cyan); }
.tile b { font: 600 16px var(--f-display); }
.tile-k { font: 600 12px var(--f-mono); color: var(--cyan); }
.list { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.list-i { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t g" "d g"; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.list-i:last-child { border-bottom: 0; }
.list-i b { grid-area: t; } .list-i .muted { grid-area: d; font-size: 14px; } .list-i .go { grid-area: g; align-self: center; color: var(--muted); }

/* accueil (anciennes classes, encore utilisées par Progrès et Plus) */
.hero { display: grid; gap: 10px; padding-top: 8px; }
.hero .soft { color: var(--muted); font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.stat b { font: 600 22px var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.plan { display: grid; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; }
.plan-i { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.plan-i .pl { display: grid; } .plan-i .pl .muted { font-size: 14px; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--accent-fg); }
.done .tick { background: var(--mint); border-color: var(--mint); color: #062018; }
.plan-i.done b { text-decoration: line-through; text-decoration-color: var(--muted); }
.plan-i .go, .resume .muted { color: var(--cyan); }
.resume { border-color: var(--cyan); background: var(--accent-soft); }
.onboard { max-width: 720px; }
.onboard h1 { font-size: clamp(46px, 12vw, 80px); color: var(--cyan); text-shadow: 0 0 24px rgba(46, 242, 255, .55); }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.level { text-align: left; cursor: pointer; }
.level:hover { border-color: var(--cyan); }

/* bots */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bot-card { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; min-width: 0; }
.bot-card:hover { border-color: var(--magenta); }
.bot-card.reco { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 700 20px var(--f-display); color: #fff; background: var(--c, #556); }
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.avatar.you { background: var(--surface-3); color: var(--fg); font: 600 11px var(--f-body); }
.bot-meta { display: grid; min-width: 0; }
.bot-name { font: 600 16px var(--f-display); display: flex; gap: 8px; align-items: baseline; }
.elo { font: 600 12px var(--f-mono); color: var(--muted); }
.bot-tag { font-size: 14px; }
.bot-rec { font-size: 12px; color: var(--muted); }
.reco .bot-rec { color: var(--cyan); font-weight: 700; }
.custom { grid-template-columns: 1fr; }
@media (min-width: 640px) { .custom { grid-template-columns: 1fr 1.3fr auto; align-items: center; } }
input[type=range] { accent-color: var(--cyan); width: 100%; }

/* ── scène échiquier ── */
.stage { display: grid; gap: 14px; padding-block: 12px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); max-width: 1240px; margin: 0 auto; align-items: start; }
@media (min-width: 900px) { .stage { grid-template-columns: minmax(0, 1fr) 370px; padding: 20px 24px; } }
.board-col { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.board-col > * { width: min(100%, calc(100dvh - 200px)); }
@media (min-width: 900px) { .board-col > * { width: min(100%, calc(100dvh - 140px)); } }
.board-row { display: flex; gap: 6px; }
.board-row .board-wrap { flex: 1; min-width: 0; }
.board-wrap { position: relative; }
.side { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 0 8px; }
@media (min-width: 900px) { .side { position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow: auto; padding: 0 4px 0 0; } }
.side-title { font-size: 22px; }
.sub { font-size: 14px; color: var(--muted); font-family: var(--f-body); }
.back { font-size: 14px; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; justify-self: start; }
.back:hover { color: var(--cyan); }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.controls.nav { justify-content: center; }
.controls.nav .btn { min-width: 46px; padding: 0 12px; }
.player { display: flex; align-items: center; gap: 10px; min-height: 40px; position: relative; }
.player.top { justify-content: flex-start; }
.player.rush { justify-content: space-between; }
.bubble { margin-left: auto; max-width: 60%; font-size: 13px; padding: 7px 11px; border-radius: 12px 12px 12px 3px; background: var(--surface-2); border: 1px solid var(--line-2); }
.bubble.pop { animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.9); opacity: .4; } }
.big-score { font: 700 24px var(--f-display); font-variant-numeric: tabular-nums; }
.clock.flash { color: var(--red); }

/* échiquier : cadre lumineux discret */
.board { position: relative; width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 5px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 0 0 1px rgba(46, 242, 255, .28), 0 0 34px -6px rgba(46, 242, 255, .28), 0 24px 50px -24px rgba(0, 0, 0, .8); }
.sq-layer { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
.sq { position: relative; }
.sq.l { background: var(--sq-l); } .sq.d { background: var(--sq-d); }
.sq.last::after, .sq.sel::after, .sq.mark::after, .sq.good::after, .sq.bad::after, .sq.hint::after, .sq.danger::after, .sq.pick::after { content: ""; position: absolute; inset: 0; }
.sq.last::after { background: rgba(46, 242, 255, .2); box-shadow: inset 0 0 0 2px rgba(46, 242, 255, .35); }
.sq.sel::after { background: rgba(46, 242, 255, .35); }
.sq.mark::after { background: color-mix(in srgb, var(--mark, var(--cyan)) 45%, transparent); }
.sq.good::after { background: rgba(93, 255, 177, .45); }
.sq.bad::after { background: rgba(255, 90, 110, .55); }
.sq.hint::after { background: rgba(89, 168, 255, .6); animation: pulse 1s ease infinite alternate; }
.sq.danger::after { background: repeating-linear-gradient(45deg, rgba(255, 90, 110, .28) 0 6px, rgba(255, 90, 110, .1) 6px 12px); }
.sq.pick::after { box-shadow: inset 0 0 0 4px var(--amber); background: rgba(255, 201, 74, .18); }
.sq.star::before { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6vmin; font-size: min(5vmin, 30px); color: var(--amber); text-shadow: 0 0 10px rgba(255, 201, 74, .9); z-index: 2; animation: twinkle 1.6s ease-in-out infinite alternate; }
@keyframes twinkle { to { transform: scale(.86); opacity: .8; } }
@keyframes pulse { to { opacity: .35; } }
.sq.check { background: radial-gradient(circle, rgba(255, 61, 90, .95) 0%, rgba(255, 61, 90, .5) 40%, transparent 72%), var(--sq-l); }
.sq.d.check { background: radial-gradient(circle, rgba(255, 61, 90, .95) 0%, rgba(255, 61, 90, .5) 40%, transparent 72%), var(--sq-d); }
.sq.dest::before { content: ""; position: absolute; inset: 37%; border-radius: 50%; background: rgba(46, 242, 255, .55); box-shadow: 0 0 10px rgba(46, 242, 255, .7); z-index: 2; }
.sq.cap::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(46, 242, 255, .6); z-index: 2; }
.sq.over { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .75); }
.co { position: absolute; font: 700 10px var(--f-body); pointer-events: none; opacity: .75; }
.co.f { right: 3px; bottom: 1px; } .co.r { left: 3px; top: 2px; }
.sq.l .co { color: var(--sq-d); } .sq.d .co { color: var(--sq-l); }
:root[data-board^="n"] .sq .co, :root[data-board="lagon"] .sq .co, :root[data-board="synthwave"] .sq .co, :root[data-board="braise"] .sq .co, :root[data-board="aurore"] .sq .co, :root[data-board="or"] .sq .co { color: rgba(233, 236, 255, .55); }
.pc-layer { position: absolute; inset: 0; pointer-events: none; }
.pc { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; transition: transform .18s ease; will-change: transform; z-index: 3; }
.pc.noanim, .pc.dragging { transition: none; }
.pc.dragging { z-index: 10; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.promo { position: absolute; inset: 0; background: rgba(6, 7, 18, .78); display: grid; grid-template-columns: repeat(2, 30%); place-content: center; gap: 4%; z-index: 20; }
.promo-btn { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--cyan); background: var(--surface-2); cursor: pointer; padding: 10%; }
.promo-btn img { width: 100%; }
.promo-x { grid-column: span 2; border: 0; background: transparent; color: #fff; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pc { transition: none; } .bubble.pop, .sq.hint::after, .sq.star::before { animation: none; } }

/* barre d'éval */
.evalbar { flex: none; width: 14px; border-radius: 4px; background: #15172e; border: 1px solid var(--line-2); position: relative; overflow: hidden; display: flex; flex-direction: column-reverse; }
.evalbar-w { background: #e9ecff; transition: height .4s ease; height: 50%; }
.evalbar.flip { flex-direction: column; }
.evalbar-t { position: absolute; left: 0; right: 0; bottom: 2px; font: 600 8px var(--f-mono); text-align: center; color: #333; }
.evalbar-t.dark { bottom: auto; top: 2px; color: #eee; }
.evalbar.flip .evalbar-t { bottom: auto; top: 2px; } .evalbar.flip .evalbar-t.dark { top: auto; bottom: 2px; }

/* listes de coups */
.movelist { margin: 0; padding: 8px 8px 8px 36px; max-height: 260px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font: 14px var(--f-mono); }
.movelist li { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 2px 0; }
.movelist li::marker { color: var(--muted); }
.mv { border: 0; background: transparent; text-align: left; padding: 3px 6px; border-radius: 6px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; font: inherit; }
.mv.cur { background: var(--accent-soft); color: var(--cyan); }
.movelist.review { max-height: 300px; }
.cls { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 3px; border-radius: 6px; font: 700 11px var(--f-mono); color: #0a0b1a; background: var(--k); }
.cls.big { min-width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.opening { font-size: 14px; }
.op-hist { line-height: 1.8; }
.op-hist .n { color: var(--muted); margin: 0 2px 0 6px; }

/* revue */
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transition: width .3s; }
.summary { display: grid; gap: 10px; }
.acc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; }
.acc b { display: block; font: 700 28px var(--f-display); font-variant-numeric: tabular-nums; }
.acc-l { font-size: 12px; color: var(--muted); }
.cls-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cls-table td { padding: 3px 4px; }
.cls-table td.n, .tbl td.n { text-align: center; font-variant-numeric: tabular-nums; font-family: var(--f-mono); }
.graph { width: 100%; height: 90px; border-radius: 8px; cursor: pointer; display: block; }
.detail { display: grid; gap: 8px; }
.det-head { display: flex; gap: 10px; align-items: center; }
.ok { color: var(--ok); } .ko { color: var(--ko); }

/* puzzles */
.pz-status { padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; font-weight: 700; }
.pz-status.ok { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 18px -6px var(--mint); }
.pz-status.ko { border-color: var(--red); color: var(--red); }
.turn { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--muted); display: inline-block; vertical-align: -2px; margin-right: 4px; }
.turn.w { background: #f6f7f9; box-shadow: 0 0 8px rgba(46, 242, 255, .8); } .turn.b { background: #15151b; box-shadow: 0 0 8px rgba(255, 61, 207, .8); }
.pz-info { display: grid; gap: 8px; }
.pz-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.up { color: var(--ok); font-weight: 700; } .down { color: var(--ko); font-weight: 700; }
.result h3 { font-size: 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td { padding: 7px 4px; border-top: 1px solid var(--line); }
.tbl tr:first-child td { border-top: 0; }
.res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font: 700 12px var(--f-mono); color: #0a0b1a; }
.res.r2 { background: var(--mint); } .res.r1 { background: var(--muted); } .res.r0 { background: var(--red); }
.empty { text-align: left; }

/* leçons */
.progress-card { grid-template-columns: 1fr auto; align-items: center; }
@media (max-width: 560px) { .progress-card { grid-template-columns: 1fr; } }
.chapter { display: grid; gap: 8px; margin-top: 6px; }
.chapter-head { display: flex; gap: 10px; align-items: center; }
.lesson-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.lesson { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.lesson span:last-child { display: grid; } .lesson .muted { font-size: 14px; }
.lesson:hover { border-color: var(--cyan); }
.lesson-text { display: grid; gap: 12px; font-size: 16.5px; max-width: 62ch; }
.lesson-text ol, .lesson-text ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.lesson-text .prompt { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.lesson-text .explain { padding: 12px 14px; border-left: 3px solid var(--cyan); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.lesson-text .key { padding: 12px 14px; border: 1px solid var(--amber); border-radius: 12px; background: rgba(255, 201, 74, .07); }
.lesson-text .key::before { content: "À retenir"; display: block; font: 600 12px var(--f-display); color: var(--amber); margin-bottom: 4px; }
.vals { border-collapse: collapse; } .vals td { padding: 4px 18px 4px 0; border-bottom: 1px solid var(--line); } .vals td:last-child { font-family: var(--f-mono); }
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dots span { width: 20px; height: 5px; border-radius: 3px; background: var(--line-2); }
.dots .past { background: var(--muted); } .dots .on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ouvertures */
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.op h3 { font-size: 16px; }
.op-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.eco { font: 600 12px var(--f-mono); padding: 2px 6px; border-radius: 5px; background: var(--surface-2); }
.conts { display: grid; gap: 4px; }
.cont { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; }
.cont:hover { border-color: var(--cyan); }
.tip { border-color: var(--cyan); }

/* analyse */
.pv-lines { display: grid; gap: 4px; }
.pv { display: grid; grid-template-columns: 56px 1fr; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; }
.pv .ev { font-family: var(--f-mono); }

/* progrès */
.chart { width: 100%; height: 160px; display: block; }
.heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; justify-content: start; overflow-x: auto; }
.hm { width: 14px; height: 14px; border-radius: 3px; background: var(--surface-2); }
.hm.l1 { background: rgba(46, 242, 255, .3); } .hm.l2 { background: rgba(46, 242, 255, .6); } .hm.l3 { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.set { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.set:last-child { border-bottom: 0; }
.set select { flex: 0 1 auto; }
.set input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--cyan); }

/* coordonnées */
.coord-box { position: relative; }
.coord-target { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 700 clamp(60px, 17vw, 130px) var(--f-display); color: rgba(255, 255, 255, .9); text-shadow: 0 0 26px rgba(46, 242, 255, .9); z-index: 8; }
.coord-target.pop { animation: pop .25s ease; }

/* modale, toast */
.modal-back { position: fixed; inset: 0; background: rgba(4, 5, 14, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; width: min(440px, 100%); display: grid; gap: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); max-height: calc(100dvh - 32px); overflow: auto; }
.modal .row, .modal .col { margin-top: 6px; }
.end h2 { font-size: 28px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 14px); transform: translate(-50%, 20px); opacity: 0; background: var(--surface-3); color: var(--fg); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; transition: .25s; z-index: 60; pointer-events: none; font-size: 14px; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* profils et synchro */
.pchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 700; }
.avatar.xs { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.sync-dot.ok { background: var(--mint); } .sync-dot.busy { background: var(--c-inacc); } .sync-dot.error { background: var(--red); } .sync-dot.idle { background: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.swatch.on { border-color: var(--surface); box-shadow: 0 0 0 2px var(--fg); }
.profile-i { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.profile-i:last-child { border-bottom: 0; }
.profile-i.on { background: var(--accent-soft); }
.profile-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; cursor: pointer; padding: 4px 0; }
.profile-main .pl { display: grid; } .profile-main .muted { font-size: 13px; }
.list-link { grid-template-columns: 1fr; text-decoration: none; }
.list-link:hover { border-color: var(--cyan); }
.h1-small { font-size: clamp(26px, 6vw, 38px) !important; color: var(--fg) !important; text-shadow: none !important; }

/* parties en ligne */
.friend-card { display: flex; gap: 12px; align-items: center; border-color: var(--magenta); }
.friend-card:hover { background: rgba(255, 61, 207, .08); }
.wrap-seg { flex-wrap: wrap; border-radius: 18px; }
.code-in { font: 700 22px var(--f-mono); letter-spacing: .3em; text-transform: uppercase; max-width: 160px; text-align: center; }
.big-code { font: 700 40px var(--f-display); letter-spacing: .2em; color: var(--cyan); text-shadow: 0 0 18px rgba(46, 242, 255, .6); }
.invite { border-color: var(--cyan); }
.invite .mono { word-break: break-all; font-size: 12px; }
.clock-box { margin-left: auto; font: 700 18px var(--f-mono); font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); min-width: 72px; text-align: center; }
.clock-box.run { background: var(--fg); color: var(--night); }
.clock-box.low.run { background: var(--red); color: #fff; }
.player .bubble + .clock-box { margin-left: 8px; }
.emotes { display: flex; gap: 6px; flex-wrap: wrap; }
.emote { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 16px; }

/* choix du jeu de pièces */
.set.col { display: grid; align-items: stretch; }
.piece-sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .piece-sets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.piece-set { display: grid; gap: 2px; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--fg); font: inherit; }
.piece-set.on { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.ps-row { display: flex; background: var(--sq-l); border-radius: 6px; padding: 2px; margin-bottom: 4px; }
.ps-row img { width: 25%; aspect-ratio: 1; }
.piece-set .small { font-size: 11px; line-height: 1.3; }

/* différentiel matériel */
.pname { display: grid; line-height: 1.25; min-width: 0; }
.mat { display: flex; align-items: center; min-height: 18px; font: 700 12px var(--f-mono); color: var(--muted); }
.mat .grp { display: inline-flex; margin-right: 6px; }
.mat img { width: 20px; height: 20px; margin-right: -10px; }
.mat img:last-child { margin-right: 0; }
.mat b { margin-left: 2px; }
.pname .sync-dot { display: inline-block; vertical-align: middle; }

/* revoir les coups pendant une partie */
.histnav { display: grid; gap: 6px; justify-items: center; }
.histnav .controls.nav .btn { min-width: 52px; }
.live-badge { border: 1px solid var(--cyan); background: var(--accent-soft); color: var(--fg); border-radius: 999px; padding: 4px 12px; font: 600 13px var(--f-body); cursor: pointer; }
.boot { padding: 40px 16px; text-align: center; color: var(--muted); }

/* ═════════════════════════ Le Voyage ═════════════════════════ */
.c-cyan { --hue: var(--cyan); --hue-a: rgba(46, 242, 255, .5); }
.c-magenta { --hue: var(--magenta); --hue-a: rgba(255, 61, 207, .5); }
.c-amber { --hue: var(--amber); --hue-a: rgba(255, 201, 74, .5); }
.c-mint { --hue: var(--mint); --hue-a: rgba(93, 255, 177, .5); }

.journey { gap: 22px; max-width: 760px; }
.j-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.j-who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.j-who-t { display: grid; line-height: 1.2; } .j-who-t .muted { font-size: 13px; }
.j-meters { display: flex; align-items: center; gap: 8px; }
.j-level { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.j-level b { color: var(--fg); font: 600 14px var(--f-display); }
.j-bar { width: 70px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.j-bar span { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.j-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 600 14px var(--f-display); }
.j-chip svg { width: 15px; height: 15px; fill: #ff8a3d; }
.j-chip.amber svg { fill: var(--amber); }

/* la prochaine étape, en grand */
.j-hero { position: relative; display: grid; gap: 16px; padding: 22px 20px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hue) 16%, var(--surface)) 0%, var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--hue) 45%, var(--line)); }
.j-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--hue-a), transparent 70%); opacity: .5; pointer-events: none; }
.j-hero-t { display: grid; gap: 6px; position: relative; z-index: 1; }
.j-hero-k { font: 600 13px var(--f-display); color: var(--hue); text-shadow: 0 0 10px var(--hue-a); }
.j-hero h1 { font-size: clamp(26px, 6vw, 36px); }
.j-go { justify-self: start; position: relative; z-index: 1; min-height: 50px; padding: 0 28px; font-size: 17px; }
@media (min-width: 640px) { .j-hero { grid-template-columns: 1fr auto; align-items: end; padding: 28px; } }
.j-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.j-pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; background: var(--surface); }
.j-pill:hover { border-color: var(--cyan); color: var(--cyan); }

.j-daily { display: grid; gap: 8px; }
.j-daily h2 { font-size: 15px; color: var(--muted); font-weight: 500; }
.j-daily ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.j-daily li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "t l" "t n"; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.25; }
.j-daily .q-tick { grid-area: t; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.j-daily .q-n { grid-area: n; font-size: 12px; }
.j-daily li.done { border-color: rgba(93, 255, 177, .35); }
.j-daily li.done .q-tick { background: var(--mint); border-color: var(--mint); color: #052016; }
@media (max-width: 520px) { .j-daily ul { grid-template-columns: 1fr; } .j-daily li { grid-template-areas: "t l n"; grid-template-columns: auto 1fr auto; } }

/* quartiers */
.j-map { display: grid; gap: 10px; }
.district { position: relative; padding-top: 70px; }
.skyline-wrap { position: absolute; left: -16px; right: -16px; top: 0; height: 90px; pointer-events: none; overflow: hidden; }
.skyline { width: 100%; height: 100%; display: block; }
.skyline .bld { fill: #12142a; }
.skyline .win { fill: var(--hue); opacity: .55; }
.district.locked .skyline .win { opacity: .08; }
.sign { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 0 8px 4px; }
.sign-step { font-size: 13px; color: var(--muted); }
.sign-name { font: 700 clamp(34px, 9vw, 52px)/1 var(--f-display); letter-spacing: .01em; color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--hue), 0 0 28px var(--hue), 0 0 52px var(--hue-a); }
.sign-theme { font: 500 15px var(--f-display); color: var(--hue); }
.sign-story { max-width: 46ch; font-size: 15px; }
.sign-stars { display: inline-flex; align-items: center; gap: 4px; font: 600 13px var(--f-display); color: var(--muted); }
.sign-stars svg { width: 14px; height: 14px; fill: var(--amber); }
.district.locked .sign-name { color: #4a4f80; text-shadow: none; }
.district.locked .sign-theme { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .district:not(.locked) .sign-name { animation: flicker 7s infinite; } }
@keyframes flicker { 0%, 93%, 97%, 100% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: .85; } }

.route { position: relative; margin: 6px 0 24px; }
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-line path { fill: none; stroke-width: 4; stroke-linecap: round; }
.route-line path.dim { stroke: var(--line-2); stroke-dasharray: 2 9; }
.route-line path.lit { stroke: var(--hue); filter: drop-shadow(0 0 5px var(--hue)); }
.node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; z-index: 2; }
.node-disc { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line-2); transition: transform .15s ease; }
.node-disc svg { width: 28px; height: 28px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.node.t-game .node-disc svg { fill: currentColor; stroke: none; color: var(--muted); }
.node.open .node-disc { border-color: var(--hue); background: var(--surface); }
.node.open .node-disc svg { stroke: var(--hue); }
.node.open.t-game .node-disc svg { color: var(--hue); }
.node.done .node-disc { background: color-mix(in srgb, var(--hue) 22%, var(--surface)); box-shadow: 0 0 16px -2px var(--hue-a); }
.node.t-boss .node-disc { width: 78px; height: 78px; border-radius: 22px; transform: rotate(45deg); }
.node.t-boss .node-disc svg { transform: rotate(-45deg); width: 34px; height: 34px; }
.node.t-boss.open .node-disc { border-color: var(--magenta); }
.node.t-boss.open .node-disc svg { stroke: var(--magenta); }
.node.t-boss.direct .node-disc { border-style: dashed; }
.node.current .node-disc { box-shadow: 0 0 0 6px color-mix(in srgb, var(--hue) 20%, transparent), 0 0 26px var(--hue-a); }
@media (prefers-reduced-motion: no-preference) { .node.current .node-disc { animation: beacon 1.8s ease-in-out infinite; } .node.t-boss.current .node-disc { animation: none; } }
@keyframes beacon { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--hue) 0%, transparent), 0 0 34px var(--hue-a); } }
.node:hover .node-disc, .node:focus-visible .node-disc { transform: scale(1.06); }
.node.t-boss:hover .node-disc { transform: rotate(45deg) scale(1.06); }
.node.closed { cursor: default; }
.node.closed .node-disc { opacity: .6; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 15px; height: 15px; fill: var(--surface-3); }
.stars svg.on { fill: var(--amber); filter: drop-shadow(0 0 4px rgba(255, 201, 74, .8)); }
.node.closed .stars { visibility: hidden; }
.node-label { position: absolute; transform: translateY(-50%); display: grid; gap: 1px; max-width: 40%; font-size: 14px; line-height: 1.25; pointer-events: none; z-index: 1; }
.node-label.to-left { text-align: right; justify-items: end; }
.node-label b { font-weight: 700; }
.node-label .muted { font-size: 12px; }
.node-now { margin-top: 4px; font: 600 11px var(--f-display); color: var(--night); background: var(--hue); padding: 2px 8px; border-radius: 999px; justify-self: start; }
.node-label.to-left .node-now { justify-self: end; }
.district.locked .node-label { opacity: .45; }

/* fiche d'étape, intro, récompense */
.sheet { display: grid; gap: 10px; }
.sheet h2 { font-size: 22px; }
.sheet .eyebrow { color: var(--hue); }
.sheet-note { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--magenta); font-size: 14px; }
.intro-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 10px; }
.intro-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.intro-list svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linejoin: round; }
.reward { display: grid; gap: 8px; text-align: center; justify-items: center; }
.reward h2 { font-size: 26px; }
.reward-stars { display: flex; gap: 6px; margin: 6px 0 4px; }
.big-star { width: 54px; height: 54px; fill: var(--surface-3); }
.big-star:nth-child(2) { width: 66px; height: 66px; margin-top: -10px; }
.big-star.on { fill: var(--amber); filter: drop-shadow(0 0 12px rgba(255, 201, 74, .8)); }
@media (prefers-reduced-motion: no-preference) { .big-star.on { animation: starIn .5s cubic-bezier(.2, 1.6, .4, 1) both; } }
@keyframes starIn { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.reward-xp { font: 700 20px var(--f-display); color: var(--cyan); text-shadow: 0 0 12px rgba(46, 242, 255, .6); }
.reward-up { font: 600 15px var(--f-display); color: var(--amber); }
.reward-unlock { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hue); background: color-mix(in srgb, var(--hue) 10%, transparent); width: 100%; }
.reward .col { width: 100%; }
.reward.failed h2 { color: var(--muted); }

/* affiche de boss */
.boss-page { max-width: 560px; }
.boss-poster { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 30px 20px; border-radius: 26px; border: 1px solid var(--magenta);
  background: radial-gradient(400px 260px at 50% 0%, rgba(255, 61, 207, .2), transparent 70%), var(--surface); box-shadow: 0 0 40px -10px rgba(255, 61, 207, .5); }
.boss-k { font: 600 13px var(--f-display); color: var(--magenta); }
.boss-av { width: 92px; height: 92px; border-radius: 28px; font-size: 40px; box-shadow: 0 0 0 2px var(--magenta), 0 0 30px rgba(255, 61, 207, .6); }
.boss-av.glyph { display: grid; place-items: center; background: var(--surface-2); }
.boss-av.glyph svg { width: 48px; height: 48px; fill: none; stroke: var(--magenta); stroke-width: 1.6; stroke-linejoin: round; }
.boss-poster h1 { font-size: clamp(30px, 8vw, 44px); text-shadow: 0 0 18px rgba(255, 61, 207, .6); }
.boss-title { font: 500 16px var(--f-display); }
.btn.big { min-height: 54px; padding: 0 30px; font-size: 17px; margin-top: 6px; }

/* mini-jeux et séries */
.mg-hud { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; font-size: 15px; }
.mg-hud b { font: 600 18px var(--f-display); color: var(--cyan); }
.mg-goal { font-size: 16px; }
.mg-goal b { color: var(--cyan); }
.mg-levels { display: flex; gap: 6px; flex-wrap: wrap; }
.mg-levels span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.mg-levels .on { border-color: var(--cyan); color: var(--cyan); }
.mg-levels .past { border-color: transparent; background: rgba(255, 201, 74, .14); color: var(--amber); }
.series-head { display: grid; gap: 6px; }
.series-pips span { min-width: 30px; text-align: center; }
.series-pips .past.ok { background: rgba(93, 255, 177, .16); color: var(--mint); }
.series-pips .past.ko { background: rgba(255, 90, 110, .16); color: var(--red); }
.v-bars { display: grid; gap: 8px; }
.v-bar { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; text-decoration: none; font-size: 14px; }
.v-name { font: 600 13px var(--f-display); color: var(--hue); }
.v-bar.locked .v-name { color: var(--muted); }
.v-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.v-track span { display: block; height: 100%; background: var(--hue); box-shadow: 0 0 8px var(--hue-a); }
.v-n { text-align: right; font-size: 12px; }
.boss-banner { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--magenta); background: rgba(255, 61, 207, .08); box-shadow: 0 0 20px -8px rgba(255, 61, 207, .6); }
.boss-banner b { font: 600 14px var(--f-display); color: var(--magenta); }
