/* byThomas LoL — même ADN que bythomas.art / jeux.bythomas.art : Fraunces + Poppins, saisons, pilules, papier. */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #fff5e1; }
@property --paper { syntax: '<color>'; inherits: true; initial-value: #fbe7c2; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #2b0e11; }
@property --deep { syntax: '<color>'; inherits: true; initial-value: #48151b; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #c4504f; }
@property --accent-ink { syntax: '<color>'; inherits: true; initial-value: #fff5e1; }
@property --accent-text { syntax: '<color>'; inherits: true; initial-value: #ad3e3d; }
@property --soft { syntax: '<color>'; inherits: true; initial-value: #f6dc9e; }
@property --logo-blob { syntax: '<color>'; inherits: true; initial-value: #f3d99f; }
@property --logo-t { syntax: '<color>'; inherits: true; initial-value: #c0555a; }
@property --logo-b { syntax: '<color>'; inherits: true; initial-value: #48161b; }

:root {
  --bg: #fff5e1; --paper: #fbe7c2; --ink: #2b0e11; --deep: #48151b; --accent: #c4504f; --accent-ink: #fff5e1; --accent-text: #ad3e3d; --soft: #f6dc9e;
  --logo-blob: #f3d99f; --logo-t: #c0555a; --logo-b: #48161b;
  --ink-2: color-mix(in srgb, var(--ink) 66%, transparent);
  --ink-3: color-mix(in srgb, var(--ink) 42%, transparent);
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --on-deep: color-mix(in srgb, var(--bg) 94%, white);
  --on-deep-2: color-mix(in srgb, var(--on-deep) 66%, transparent);
  --on-deep-line: color-mix(in srgb, var(--on-deep) 14%, transparent);

  /* identités joueurs — fixes quelle que soit la saison */
  --teo: #137a76; --teo-l: #63c7bd;
  --thomas: #c4504f; --thomas-l: #f29482;
  --win: #f1bd18; --win-ink: #2b2206;

  --f-body: 'Poppins', system-ui, sans-serif; --f-display: 'Fraunces', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 26px; --gut: clamp(16px, 4vw, 44px); --maxw: 1240px;
  transition: --bg 1s var(--ease-io), --paper 1s var(--ease-io), --ink 1s var(--ease-io), --deep 1s var(--ease-io), --accent 1s var(--ease-io),
    --accent-ink 1s var(--ease-io), --accent-text 1s var(--ease-io), --soft 1s var(--ease-io), --logo-blob 1s var(--ease-io), --logo-t 1s var(--ease-io), --logo-b 1s var(--ease-io);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; min-height: 100svh; overflow-x: clip; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 3000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 650; letter-spacing: -.025em; line-height: .95; }

/* ── Logo TB ─────────────────────────────────────────── */
.logo { position: relative; display: inline-block; aspect-ratio: 416 / 391; width: 44px; flex: none; }
.logo--s { width: 34px; }
.l-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.l-blobv { fill: var(--logo-blob); } .l-T, .l-dot { fill: var(--logo-t); } .l-B { fill: var(--logo-b); } .l-outline { fill: none; stroke: var(--logo-blob); stroke-width: 4; }

/* ── Header ──────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 12px var(--gut); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: box-shadow .4s; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; }
.brand .logo { transition: transform .8s var(--spring); }
.brand:hover .logo { transform: rotate(-10deg) scale(1.08); }
.brand-t { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 650; font-size: 1.3rem; letter-spacing: -.02em; }
.brand-t em { font-style: italic; font-weight: 400; color: var(--accent-text); }
.brand-col { display: grid; justify-items: start; gap: 1px; line-height: 1.1; }
.brand-t { white-space: nowrap; line-height: 1.05; }
.spons { font-size: .64rem; color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.spons b { font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }

.rail { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.rail a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1.15rem; border-radius: 999px; font-weight: 500; font-size: .92rem; color: var(--ink-2); transition: color .35s; }
.rail a[aria-current="page"] { color: var(--bg); }
.rail a:hover { color: var(--ink); } .rail a[aria-current="page"]:hover { color: var(--bg); }
.rail-pill { position: absolute; z-index: 0; top: 5px; left: 0; height: 40px; width: 0; border-radius: 999px; background: var(--ink); transition: left .6s var(--ease), width .6s var(--ease), background-color .5s; }
.rail[data-on="teo"] .rail-pill { background: var(--teo); }
.rail[data-on="thomas"] .rail-pill { background: var(--thomas); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--teo { background: var(--teo); } .dot--thomas { background: var(--thomas); }
.rail a[aria-current="page"] .dot { background: currentColor; }

.top-r { justify-self: end; display: flex; align-items: center; gap: 14px; }
/* présence : qui a la page ouverte */
.online { position: relative; }
.on-btn { display: inline-flex; align-items: center; gap: .5rem; height: 34px; padding: 0 .8rem 0 .7rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; white-space: nowrap; }
.on-btn:hover, .on-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.on-txt { display: inline-flex; align-items: center; gap: .4rem; }
.on-txt .who { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); }
.on-txt .who + .who::before { content: "·"; margin-right: .1rem; color: var(--ink-3); }
.on-txt .plus { color: var(--ink-3); }
.on-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: 240px; padding: 14px; border-radius: 20px; background: var(--bg); box-shadow: 0 24px 50px -18px rgba(0,0,0,.4), 0 0 0 1px var(--line); display: grid; gap: 12px; }
.on-menu .kick { display: block; margin-bottom: 6px; }
.on-list { display: grid; gap: 6px; font-size: .84rem; }
.on-list li { display: flex; align-items: center; gap: .5rem; }
.on-list li .ink-3 { margin-left: auto; font-size: .72rem; }
.on-list li.is-on .ink-3 { color: #2f8f55; font-weight: 500; }
.on-me { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.on-me button { height: 34px; border-radius: 12px; font-size: .78rem; font-weight: 500; background: color-mix(in srgb, var(--ink) 6%, transparent); transition: background .3s, color .3s; }
.on-me button[aria-pressed="true"][data-me="teo"] { background: var(--teo); color: #fff; }
.on-me button[aria-pressed="true"][data-me="thomas"] { background: var(--thomas); color: #fff; }
.on-me button[aria-pressed="true"][data-me=""] { background: var(--ink); color: var(--bg); }
.seasons { display: flex; gap: 8px; }
.seasons button { width: 14px; height: 14px; border-radius: 50%; background: var(--c); position: relative; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 26%, transparent); transition: transform .4s var(--spring), box-shadow .3s; }
.seasons button::after { content: ""; position: absolute; inset: -9px; }
.seasons button:hover { transform: scale(1.3); }
.seasons button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }

.add-btn { display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 1.15rem 0 .9rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; transition: transform .45s var(--spring), background-color .3s; }
.add-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .5s var(--spring); }
.add-btn:hover { background: var(--accent); color: var(--accent-ink); }
.add-btn:hover svg { transform: rotate(90deg); }
.add-btn:active { transform: scale(.95); }

.fab { display: none; }

/* ── Layout ──────────────────────────────────────────── */
main { width: min(100%, var(--maxw)); margin: 0 auto; padding: 18px var(--gut) 40px; outline: none; display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }

.card { position: relative; background: var(--paper); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(18px, 2.2vw, 26px); min-width: 0; }
.card--bg { background: color-mix(in srgb, var(--paper) 45%, var(--bg)); }
.deep { background: var(--deep); color: var(--on-deep); box-shadow: none; }
.deep .ink-2 { color: var(--on-deep-2); }

.hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.hd h2 { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 650; font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.015em; line-height: 1.1; }
.hd h2 em { font-style: italic; font-weight: 400; color: var(--accent-text); }
.deep .hd h2 em { color: var(--soft); }
.kick { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.deep .kick { color: var(--on-deep-2); }
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 14px; height: 4px; border-radius: 3px; background: var(--c); }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }

.chip { display: inline-flex; align-items: center; gap: .35rem; height: 26px; padding: 0 .7rem; border-radius: 999px; font-size: .74rem; font-weight: 500; background: color-mix(in srgb, var(--ink) 7%, transparent); white-space: nowrap; }
.deep .chip { background: var(--on-deep-line); }
.chip svg { width: 14px; height: 14px; }

.empty { padding: 28px 12px; text-align: center; color: var(--ink-3); font-size: .9rem; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 48px; padding: 0 1.35rem; border-radius: 999px; font-weight: 500; background: var(--ink); color: var(--bg); transition: transform .45s var(--spring), background-color .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.btn--s { height: 36px; padding: 0 .95rem; font-size: .84rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn { position: relative; }
@keyframes spin { to { rotate: 360deg; } }

/* ── Portraits ───────────────────────────────────────── */
.pp { display: inline-block; vertical-align: middle; width: var(--s, 40px); height: var(--s, 40px); border-radius: calc(var(--s, 40px) * .3); overflow: hidden; flex: none; background: var(--soft); position: relative; }
.pp img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.pp--round { border-radius: 50%; }

/* ── Duel : hero ─────────────────────────────────────── */
.duel-hero { padding: clamp(22px, 3.6vw, 44px); overflow: hidden; isolation: isolate; }
.duel-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 8% 30%, color-mix(in srgb, var(--teo-l) 22%, transparent), transparent 70%),
              radial-gradient(40% 60% at 92% 30%, color-mix(in srgb, var(--thomas-l) 22%, transparent), transparent 70%); }
.dh-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 18px; }
.dh-side { display: grid; gap: .35rem; }
.dh-side--r { text-align: right; justify-items: end; }
.dh-name { display: inline-flex; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-deep-2); }
.dh-name b { color: var(--on-deep); }
.dh-big { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 650; font-size: clamp(3.6rem, 11vw, 8.4rem); line-height: .85; letter-spacing: -.04em; display: flex; align-items: baseline; gap: .1em; }
.dh-side--r .dh-big { justify-content: flex-end; }
.dh-big small { font-size: .26em; font-weight: 500; letter-spacing: 0; color: var(--on-deep-2); font-family: var(--f-body); }
.dh-side--l .dh-big .roll { color: var(--teo-l); }
.dh-side--r .dh-big .roll { color: var(--thomas-l); }
.dh-sub { font-size: .86rem; color: var(--on-deep-2); display: flex; flex-wrap: wrap; gap: 0 .55rem; }
.dh-side--r .dh-sub { justify-content: flex-end; }
.dh-sub > * + *::before { content: "·"; margin-right: .55rem; opacity: .6; }
.dh-sub b { color: var(--on-deep); font-weight: 600; }
.dh-mid { align-self: center; text-align: center; display: grid; gap: .2rem; justify-items: center; padding-bottom: 1rem; }
.dh-mid .vs { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--soft); line-height: 1; }
.dh-mid .ink-2 { font-size: .74rem; max-width: 14ch; line-height: 1.3; }

.track { position: relative; margin-top: clamp(26px, 4vw, 44px); display: grid; gap: 8px; }
.lane { position: relative; --c: var(--teo-l); }
.lane--teo { padding-top: 54px; }
.lane--thomas { --c: var(--thomas-l); padding-bottom: 54px; }
.ticks { display: flex; gap: 1px; height: 34px; align-items: stretch; }
.tick { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--on-deep-line); position: relative; transform-origin: 50% 100%; transition: filter .2s; }
.lane--thomas .tick { transform-origin: 50% 0; }
.tick.v { background: var(--c); }
.tick.p { background: linear-gradient(to top, var(--c) 0 34%, var(--on-deep-line) 34%); }
.lane--thomas .tick.p { background: linear-gradient(to bottom, var(--c) 0 34%, var(--on-deep-line) 34%); }
.tick.is-hot { filter: brightness(1.35); }
.letters { position: relative; height: 16px; font-size: .7rem; font-weight: 600; color: var(--on-deep-2); }
.letters span { position: absolute; top: 0; translate: -50% 0; line-height: 16px; }
.front { position: absolute; top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.lane--thomas .front { top: auto; bottom: 0; grid-auto-flow: row; }
.lane--thomas .front .pp { order: 2; }
.front .pp { --s: 38px; box-shadow: 0 0 0 2.5px var(--c), 0 10px 20px -8px rgba(0,0,0,.6); }
.front::after { content: ''; width: 2px; height: 12px; border-radius: 2px; background: var(--c); }
.lane--thomas .front::after { order: 1; }

.dh-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.dh-foot .left-c { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-foot .chip { height: 32px; padding: 0 .9rem; font-size: .8rem; color: var(--on-deep-2); }
.dh-foot .chip b { color: var(--on-deep); font-weight: 600; }

/* ── Butterfly (face à face) ─────────────────────────── */
.vsrows { display: grid; gap: 8px; }
.vsrow { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) minmax(92px, auto) minmax(0, 1fr) 3.6em; align-items: center; gap: 10px; }
.vsbar { position: relative; height: 26px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 5%, transparent); overflow: hidden; }
.vsbar i { position: absolute; top: 0; bottom: 0; border-radius: 9px; background: var(--c); transform-origin: var(--o) 50%; }
.vsbar--l i { right: 0; --o: 100%; --c: color-mix(in srgb, var(--teo) 26%, transparent); }
.vsbar--r i { left: 0; --o: 0%; --c: color-mix(in srgb, var(--thomas) 26%, transparent); }
.vsbar.is-best--l i { --c: var(--teo); } .vsbar.is-best--r i { --c: var(--thomas); }
.vsv { font-weight: 500; font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.vsv--l { text-align: left; } .vsv--r { text-align: right; }
.vsv.is-best { font-weight: 700; color: var(--ink); }
.vsv--l.is-best::before { content: "★ "; color: var(--teo); font-size: .8em; }
.vsv--r.is-best::after { content: " ★"; color: var(--thomas); font-size: .8em; }
.vslab { text-align: center; font-size: .78rem; font-weight: 500; color: var(--ink-2); line-height: 1.2; }

/* ── Chat (commentaires) ─────────────────────────────── */
.chat { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; overscroll-behavior: contain; scrollbar-width: thin; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.msg .pp { --s: 34px; }
.msg--thomas { margin-left: auto; flex-direction: row-reverse; }
.bub { padding: 9px 14px 10px; border-radius: 18px 18px 18px 6px; background: color-mix(in srgb, var(--teo) 12%, var(--bg)); font-size: .88rem; line-height: 1.4; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teo) 18%, transparent); }
.msg--thomas .bub { border-radius: 18px 18px 6px 18px; background: color-mix(in srgb, var(--thomas) 12%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--thomas) 18%, transparent); }
.bub-h { display: flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; flex-wrap: wrap; }
.bub p { overflow-wrap: anywhere; }

/* W/L */
.wl { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 7px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.wl--w { background: var(--win); color: var(--win-ink); }
.wl--l { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.duo-ic { display: inline-flex; align-items: center; gap: .25rem; font-size: .68rem; color: var(--ink-2); }
.duo-ic svg { width: 15px; height: 15px; }

/* ── Joueur : hero ───────────────────────────────────── */
.p-hero { padding: 0; overflow: hidden; min-height: 380px; display: grid; isolation: isolate; color: #fff; background: var(--deep); }
.p-hero .splash { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.p-hero .splash img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 22%; transform: scale(1.06); }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, color-mix(in srgb, var(--deep) 94%, transparent) 0%, color-mix(in srgb, var(--deep) 70%, transparent) 46%, transparent 80%), linear-gradient(0deg, color-mix(in srgb, var(--deep) 85%, transparent), transparent 55%); }
.ph-in { padding: clamp(22px, 3.4vw, 40px); display: grid; align-content: space-between; gap: 22px; }
.ph-k { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ph-k .chip { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.ph-k .chip--c { background: var(--c); }
.ph-name { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 650; font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: .9; letter-spacing: -.035em; text-shadow: 0 8px 40px rgba(0,0,0,.35); }
.ph-name small { display: block; font-family: var(--f-body); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: .7rem; text-shadow: none; }
.ph-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-acts .btn { height: 54px; padding: 0 1.5rem; font-size: 1rem; }
.btn--win { background: var(--win); color: var(--win-ink); }
.btn--win:hover { background: #fff; color: var(--win-ink); }
.btn--loss { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--loss:hover { background: rgba(255,255,255,.24); color: #fff; }
.ph-next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: rgba(255,255,255,.72); }
.ph-next .pp { --s: 30px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.ph-next button { display: inline-flex; align-items: center; gap: .45rem; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: .78rem; transition: background .3s; }
.ph-next button:hover { background: rgba(255,255,255,.22); }
.ph-next button .pp { --s: 24px; box-shadow: none; }

/* anneau de progression */
.ringcard { display: grid; align-content: space-between; gap: 18px; }
.ring-top { display: flex; align-items: center; gap: 18px; }
.ring-top h2 { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 650; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.015em; }
.ring-top h2 em { font-style: italic; font-weight: 400; color: var(--accent-text); }
.ring-top p { font-size: .8rem; color: var(--ink-2); margin-top: 4px; }
.ring { position: relative; width: clamp(118px, 11vw, 140px); aspect-ratio: 1; flex: none; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring .bgc { fill: none; stroke: color-mix(in srgb, var(--ink) 8%, transparent); }
.ring .fgc { fill: none; stroke: var(--c); stroke-linecap: round; }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c b { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 650; font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.03em; }
.ring-c small { font-size: .7rem; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.kpi { padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 70%, transparent); display: grid; gap: 1px; }
.kpi > small { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kpi > b { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 650; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.02em; }
.kpi > span { font-size: .72rem; color: var(--ink-2); }

/* forme récente */
.form { display: flex; gap: 3px; flex-wrap: wrap; }
.form i { width: 14px; height: 24px; border-radius: 5px; background: var(--c); transform-origin: 50% 100%; }
.form i.l { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }

/* ── Mosaïque ────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 .85rem; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.seg button[aria-pressed="true"] { color: var(--bg); }
.seg .seg-pill { position: absolute; z-index: 0; top: 4px; left: 0; width: 0; height: 32px; border-radius: 999px; background: var(--ink); transition: left .5s var(--ease), width .5s var(--ease); }
.search { position: relative; flex: 1 1 180px; max-width: 280px; }
.search input { width: 100%; height: 40px; border: 0; border-radius: 999px; padding: 0 14px 0 38px; background: color-mix(in srgb, var(--ink) 6%, transparent); outline: none; transition: box-shadow .3s, background .3s; }
.search input:focus { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-top: 16px; }
.mz { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--soft); transition: transform .45s var(--spring), box-shadow .3s; }
.mz img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: filter .5s, opacity .5s, transform .6s var(--ease); }
.mz:hover { transform: translateY(-3px) scale(1.04); z-index: 2; box-shadow: 0 14px 24px -12px color-mix(in srgb, var(--ink) 70%, transparent); }
.mz:hover img { transform: scale(1.2); }
.mz.s-todo img { filter: grayscale(1) contrast(.85); opacity: .38; }
.mz.s-prog { box-shadow: inset 0 0 0 0 transparent; }
.mz.s-prog::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--c); }
.mz.s-prog img { filter: saturate(.55); opacity: .8; }
.mz .badge { position: absolute; z-index: 2; right: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font-size: .62rem; font-weight: 700; background: var(--c); color: #fff; }
.mz.s-done .badge { background: var(--win); color: var(--win-ink); }
.mz .badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mz.is-cur { outline: 3px solid var(--c); outline-offset: 2px; }
.mz.is-hidden { display: none; }

/* ── Journal ─────────────────────────────────────────── */
.log { display: grid; gap: 6px; margin-top: 14px; }
.row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 62%, transparent); transition: background .3s; text-align: left; width: 100%; }
.row:hover { background: var(--bg); }
.row .pp { --s: 42px; }
.row-n { font-size: .7rem; color: var(--ink-3); width: 2.2em; text-align: right; }
.row-m { min-width: 0; display: grid; gap: 1px; }
.row-m b { font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.row-m p { font-size: .82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-r { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--ink-3); }
.role-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.more { margin: 12px auto 0; display: flex; }

/* ── Charts ──────────────────────────────────────────── */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis-t { fill: var(--ink-3); font-size: 11px; font-family: var(--f-body); }
.chart .lbl { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--f-body); }
.chart .lbl-2 { fill: var(--ink-2); font-size: 11px; font-family: var(--f-body); }
.chart .xh { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .bar { transition: opacity .2s; }
.chart .bar.dim { opacity: .35; }
.rolebars { display: grid; gap: 12px; }
.rb { display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; align-items: center; gap: 12px; }
.rb-l { display: flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 500; }
.rb-l .role-ic { width: 18px; height: 18px; color: var(--ink-2); }
.rb-t { position: relative; height: 26px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 5%, transparent); display: flex; gap: 2px; overflow: hidden; }
.rb-t i { height: 100%; border-radius: 9px; transform-origin: 0 50%; }
.rb-t i.w { background: var(--c); }
.rb-t i.l { background: color-mix(in srgb, var(--c) 28%, transparent); }
.rb-v { text-align: right; font-weight: 600; font-size: .9rem; }
.rb-v small { display: block; font-weight: 400; font-size: .68rem; color: var(--ink-3); line-height: 1; }

.tough { display: grid; gap: 8px; }
.tg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.tg .pp { --s: 36px; }
.tg-b { display: grid; gap: 4px; min-width: 0; }
.tg-b b { font-size: .86rem; font-weight: 600; }
.tg-b span { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; display: flex; gap: 2px; }
.tg-b span i { height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--c) 30%, transparent); transform-origin: 0 50%; }
.tg-b span i.w { background: var(--win); }
.tg-v { font-family: var(--f-display); font-weight: 650; font-size: 1.3rem; }
.tg-v small { font-family: var(--f-body); font-size: .66rem; font-weight: 400; color: var(--ink-3); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.duo-c { padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 66%, transparent); display: grid; gap: 4px; }
.duo-c small { font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: .4rem; }
.duo-c small svg { width: 15px; height: 15px; }
.duo-c b { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 650; font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; }
.duo-c span { font-size: .76rem; color: var(--ink-2); }
.duo-c .meter { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; margin-top: 6px; }
.duo-c .meter i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 3px; transform-origin: 0 50%; }
.duo-note { margin-top: 12px; font-size: .78rem; color: var(--ink-2); }

.kda { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.kda div { padding: 12px 6px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 66%, transparent); }
.kda small { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.kda b { display: block; font-family: var(--f-display); font-weight: 650; font-size: 1.7rem; line-height: 1.15; }

/* ── Chiffres qui roulent ────────────────────────────── */
.roll { display: inline-flex; overflow: hidden; line-height: 1; height: 1em; vertical-align: baseline; }
.roll .d { display: inline-block; height: 1em; overflow: hidden; }
.roll .d > span { display: flex; flex-direction: column; transition: transform 1.1s var(--ease); }
.roll .d > span > span { height: 1em; line-height: 1; display: block; }
.roll .c { display: inline-block; }

/* ── Tooltip ─────────────────────────────────────────── */
.tip { position: fixed; z-index: 400; left: 0; top: 0; pointer-events: none; min-width: 120px; max-width: 240px; padding: 9px 12px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: .78rem; line-height: 1.4; box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); transition: opacity .15s; }
.tip b { font-weight: 600; }
.tip .t-row { display: flex; align-items: center; gap: .45rem; }
.tip .t-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.tip .t-k { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin-bottom: 2px; }

/* ── Sheet (saisie) ──────────────────────────────────── */
.sheet, .drawer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.sheet-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 48%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet-card { position: relative; width: min(560px, 100%); max-height: min(92svh, 860px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; border-radius: 30px; background: var(--bg); box-shadow: 0 40px 90px -30px rgba(0,0,0,.55), inset 0 0 0 1px var(--line); padding: 22px clamp(18px, 4vw, 28px) 22px; display: grid; gap: 18px; }
.sheet-card > *, .fld > * { min-width: 0; }
.sheet-card:focus { outline: none; }
.sh-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-h h2 { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 650; font-size: 1.7rem; line-height: 1; letter-spacing: -.02em; }
.x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .3s, transform .5s var(--spring); flex: none; }
.x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); transform: rotate(90deg); }
.x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fld { display: grid; gap: 8px; }
.fld > label, .fld > .lab { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.who button { height: 46px; border-radius: 16px; font-weight: 600; background: color-mix(in srgb, var(--ink) 6%, transparent); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background .3s, color .3s, transform .4s var(--spring); }
.who button[aria-pressed="true"][data-p="teo"] { background: var(--teo); color: #fff; }
.who button[aria-pressed="true"][data-p="thomas"] { background: var(--thomas); color: #fff; }
.who button[aria-pressed="true"] .dot { background: #fff; }
.who button:active { transform: scale(.96); }
.champ-pick { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-align: left; width: 100%; transition: box-shadow .3s; }
.champ-pick:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.champ-pick .pp { --s: 52px; }
.champ-pick b { display: block; font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 650; font-size: 1.35rem; line-height: 1.1; }
.champ-pick span { font-size: .76rem; color: var(--ink-2); }
.champ-pick .chev { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.picker { display: grid; gap: 10px; }
.picker .search { max-width: none; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 2px; overscroll-behavior: contain; }
.pick-grid button { display: grid; justify-items: center; gap: 4px; padding: 6px 4px; border-radius: 14px; font-size: .68rem; line-height: 1.15; text-align: center; transition: background .25s; }
.pick-grid button:hover, .pick-grid button:focus-visible { background: var(--paper); }
.pick-grid button .pp { --s: 46px; }
.pick-grid button.s-done .pp img { filter: grayscale(.2); }
.pick-grid button.s-done .pp::after { content: "✓"; position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--win); color: var(--win-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res button { height: 64px; border-radius: 20px; font-weight: 600; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: color-mix(in srgb, var(--ink) 6%, transparent); transition: background .3s, color .3s, transform .45s var(--spring), box-shadow .3s; }
.res button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.res button[data-w="1"][aria-pressed="true"] { background: var(--win); color: var(--win-ink); box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--win) 90%, black); }
.res button[data-w="0"][aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.res button:active { transform: scale(.96); }
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.roles button { display: grid; justify-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 16px; font-size: .72rem; font-weight: 500; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink-2); transition: background .3s, color .3s, transform .4s var(--spring); }
.roles button .role-ic { width: 22px; height: 22px; }
.roles button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.roles button.is-usual:not([aria-pressed="true"])::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-top: -2px; }
.roles button:active { transform: scale(.94); }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 5%, transparent); cursor: pointer; }
.tgl span { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .92rem; }
.tgl span svg { width: 20px; height: 20px; }
.sw { position: relative; width: 48px; height: 28px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background .35s; flex: none; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .45s var(--spring); }
.tgl[aria-checked="true"] .sw { background: var(--c, var(--accent)); }
.tgl[aria-checked="true"] .sw::after { transform: translateX(20px); }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.inp, textarea.inp { width: 100%; border: 0; outline: none; border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); transition: box-shadow .3s, background .3s; resize: none; }
.inp:focus { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--accent); }
textarea.inp { min-height: 76px; line-height: 1.45; }
.kda-in { display: flex; align-items: center; gap: 6px; }
.kda-in input { width: 54px; text-align: center; padding: 12px 4px; }
.kda-in span { color: var(--ink-3); font-weight: 600; }
.sh-f { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sh-f .btn:last-child { flex: 1 1 200px; }
.warn { font-size: .78rem; color: var(--accent-text); display: flex; gap: .4rem; align-items: center; }
.hold { position: relative; overflow: hidden; }
.hold::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 30%, transparent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.hold > span { position: relative; }

/* drawer champion */
.drawer { place-items: stretch end; padding: 12px; }
.drawer-card { position: relative; width: min(440px, 100%); height: 100%; overflow: auto; border-radius: 28px; background: var(--bg); box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); display: grid; align-content: start; }
.dr-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--deep); }
.dr-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; }
.dr-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 55%); }
.dr-hero .x { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.75); z-index: 2; }
.dr-in { padding: 0 22px 24px; margin-top: -48px; position: relative; z-index: 1; display: grid; gap: 16px; }
.dr-in h3 { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 650; font-size: 2.6rem; line-height: .95; letter-spacing: -.03em; }
.dr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ── Toast, confetti, célébration ────────────────────── */
.toasts { position: fixed; z-index: 500; left: 50%; bottom: 24px; translate: -50% 0; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: .7rem 1.15rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .88rem; box-shadow: 0 16px 30px -10px rgba(0,0,0,.4); display: inline-flex; align-items: center; gap: .55rem; pointer-events: auto; }
.toast .pp { --s: 24px; }
.toast button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.confetti { position: fixed; inset: 0; z-index: 600; pointer-events: none; width: 100vw; height: 100vh; }
.celebrate { position: fixed; inset: 0; z-index: 550; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--deep) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; text-align: center; cursor: pointer; }
.cel-in { display: grid; justify-items: center; gap: 14px; }
.cel-img { width: min(300px, 70vw, calc((100svh - 230px) * .55)); aspect-ratio: 308 / 560; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -24px rgba(0,0,0,.7), 0 0 0 3px var(--win); position: relative; }
.cel-img img { width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; left: 50%; top: 18%; translate: -50% 0; rotate: -9deg; padding: .2rem 1rem; border-radius: 14px; border: 3px solid var(--win); color: var(--win); font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; letter-spacing: .06em; background: rgba(0,0,0,.35); backdrop-filter: blur(3px); }
.cel-in h2 { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 650; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.cel-in p { color: rgba(255,255,255,.75); font-size: .9rem; }

/* loader initial */
.boot { min-height: 60svh; display: grid; place-items: center; }
.boot .logo { width: 70px; animation: bob 1.2s var(--ease-io) infinite alternate; }
@keyframes bob { to { transform: translateY(-8px) rotate(-6deg); } }
.skel { border-radius: var(--r); background: linear-gradient(100deg, var(--paper) 30%, color-mix(in srgb, var(--paper) 50%, var(--bg)) 50%, var(--paper) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ── Footer ──────────────────────────────────────────── */
.foot { width: min(100%, var(--maxw)); margin: 0 auto; padding: 24px var(--gut) 40px; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .8rem; color: var(--ink-2); }
.foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.foot .legal { font-size: .66rem; color: var(--ink-3); max-width: 70ch; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .top { gap: 12px; }
  .top-r { gap: 10px; }
  .on-txt .name { display: none; }
  .on-txt .who + .who::before { content: none; }
  .add-btn { width: 44px; padding: 0; justify-content: center; }
  .add-btn span { display: none; }
}
@media (max-width: 860px) and (min-width: 761px) {
  .spons { display: none; }
  .rail a { padding: 0 .85rem; }
}
@media (max-width: 980px) {
  .g-hero, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .g-3 > .span-2 { grid-column: auto; }
}
@media (max-width: 760px) {
  body { padding-bottom: 92px; }
  /* pas de backdrop-filter ici : il ferait du header le bloc conteneur du rail fixé en bas */
  .top { grid-template-columns: 1fr auto; padding-block: 10px; backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .brand-t { font-size: 1.15rem; }
  .brand { gap: .5rem; }
  .spons { font-size: .58rem; }
  .top-r { gap: 10px; }
  .on-btn { height: 30px; padding: 0 .6rem; font-size: .72rem; gap: .4rem; }
  .on-txt .name { display: none; }
  .on-txt .who + .who::before { content: none; }
  .on-menu { right: -60px; }
  .logo { width: 38px; }
  .add-btn { display: none; }
  .rail { position: fixed; z-index: 60; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); translate: -50% 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -14px rgba(0,0,0,.35); margin-left: -34px; }
  .rail a { height: 46px; padding: 0 1rem; }
  .rail-pill { height: 46px; }
  .fab { display: grid; place-items: center; position: fixed; z-index: 61; right: max(14px, calc(50% - 190px)); bottom: max(14px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--bg); box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); transition: transform .45s var(--spring), background-color .3s; }
  .fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .fab:active { transform: scale(.92); }
  .g-2 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .dh-top { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dh-sub { flex-direction: column; font-size: .78rem; line-height: 1.45; }
  .dh-side--r .dh-sub { align-items: flex-end; }
  .dh-sub > * + *::before { content: none; }
  .duel-hero { padding: 20px 18px; }
  .ticks { gap: 0; height: 28px; }
  .lane--teo { padding-top: 46px; } .lane--thomas { padding-bottom: 46px; }
  .tick { border-radius: 0; box-shadow: inset -.5px 0 0 color-mix(in srgb, var(--deep) 60%, transparent); }
  .dh-foot { justify-content: center; }
  .card { border-radius: 22px; }
  .dh-mid { display: none; }
  .p-hero { min-height: 460px; }
  .p-hero::after { background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 96%, transparent) 10%, color-mix(in srgb, var(--deep) 55%, transparent) 60%, transparent); }
  .ph-in { align-content: end; }
  .ph-acts .btn { flex: 1 1 0; }
  .vsrow { grid-template-columns: 3.2em minmax(0, 1fr) 74px minmax(0, 1fr) 3.2em; gap: 6px; }
  .vsv { font-size: .82rem; }
  .vslab { font-size: .7rem; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .row-n { display: none; }
  .msg { max-width: 94%; }
  .sheet { place-items: end stretch; padding: 0; }
  .sheet-card { width: 100%; border-radius: 28px 28px 0 0; max-height: 94svh; padding-bottom: max(22px, env(safe-area-inset-bottom)); gap: 16px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .kda-in input { flex: 1 1 0; width: auto; min-width: 0; }
  .roles button { font-size: .66rem; }
  .res button { height: 58px; }
  .drawer { padding: 0; place-items: end stretch; }
  .drawer-card { width: 100%; height: auto; max-height: 92svh; border-radius: 28px 28px 0 0; }
  .toasts { bottom: 96px; }
  .letters span.m-hide { display: none; }
  .front .pp { --s: 30px; }
}
@media (max-width: 420px) {
  .seasons { gap: 6px; }
  .rb { grid-template-columns: 78px minmax(0, 1fr) 46px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
