/* ==========================================================================
   LOLLA — direction artistique « Vestiaire »
   Graphite neutre, aplats francs, bleu Lolla en blocs pleins, menthe pour le positif,
   stickers de chambrage pour l'humour. Pas de lueur, pas de dégradé décoratif,
   pas de verre flouté. Données denses et lisibles, façon tracker pro.
   Toutes les valeurs se règlent dans :root.
   ========================================================================== */

:root {
    /* Surfaces (graphite neutre, légèrement froid) */
    --bg: #0c0d10;
    --bg-2: #101115;
    --panel: #15171c;
    --panel-2: #1b1d23;
    --panel-3: #23262e;
    --line: #23262d;
    --line-2: #30343d;

    /* Texte */
    --text: #f2f3f5;
    --text-2: #b6bac4;
    --muted: #7f8592;
    --faint: #555b67;

    /* Marque */
    --brand: #1a46e9;
    --brand-2: #3a63ff;
    --brand-ink: #c9d5ff;
    --mint: #4ff0c8;
    --mint-ink: #04241c;
    --yellow: #ffd23f;
    --pink: #ff7ab8;

    /* Résultats (convention op.gg : bleu = victoire, rouge = défaite) */
    --win: #4d7cff;
    --win-bg: #18213a;
    --win-bg-2: #1d2848;
    --loss: #ff5465;
    --loss-bg: #2b1a20;
    --loss-bg-2: #351f26;
    --remake: #7f8592;
    --gold: #f2c14e;
    --orange: #ff8f3d;

    --t-iron: #8f8681; --t-bronze: #c4835a; --t-silver: #a9b8c8; --t-gold: #f0c35a; --t-platinum: #3ed2c0;
    --t-emerald: #2ee59d; --t-diamond: #7aa0ff; --t-master: #c879ff; --t-grandmaster: #ff5d5d; --t-challenger: #ffd36a;

    --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --r-xs: 4px;
    --r-sm: 6px;
    --r: 8px;
    --r-lg: 12px;
    --side-w: 232px;
    --top-h: 56px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --hard: 3px 3px 0 #000;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 450 14px/1.5 var(--f-sans);
    font-variation-settings: "wdth" 100;
    -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
small { font-size: .82em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Titres « expanded » : la signature typographique */
.x, .page-head h1, .riot-id, .squad-name, .match-verdict, .landing-title, .section-head h2, .cta-band h2,
.auth-card h1, .auth-art blockquote, .invite-card h1, .error-page h1, .feature h3, .steps3 h3, .quest-head h2 {
    font-family: var(--f-display);
    font-variation-settings: normal;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -.03em;
}
.mono { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.kpi-label, .side-label, .panel-hint, .rank-card-queue, .hero-stats dt, .vs-label, .sumbar-block h3,
.sb th, .side-title, .label {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
}

.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 15px; height: 15px; }
.ico-xs { width: 12px; height: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.d-block { display: block; }
.c-win { color: var(--win); }
.c-loss { color: var(--loss); }
.c-mint { color: var(--mint); }
.c-gold { color: var(--gold); }
.only-mobile { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 16px;
    border: 1px solid var(--line-2); border-radius: var(--r-sm);
    background: var(--panel-2); color: var(--text);
    font: 700 13px/1 var(--f-sans); letter-spacing: .01em;
    cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--panel-3); border-color: #3d424d; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-mint { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn-mint:hover { background: #7af5d6; border-color: #7af5d6; }
.btn-ghost, .btn-glass { background: transparent; }
.btn-glass { background: rgba(12, 13, 16, .7); border-color: rgba(255,255,255,.16); }
.btn-danger { background: transparent; border-color: rgba(255, 84, 101, .5); color: #ff8b97; }
.btn-danger:hover { background: rgba(255, 84, 101, .12); border-color: var(--loss); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .ico { animation: spin .8s linear infinite; }
.btn-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--text-2); font-weight: 600; font-size: 13px;
}
.btn-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.btn-link-danger { color: #ff8b97; }
.icon-btn {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    border-radius: var(--r-sm); border: 1px solid transparent; background: transparent;
    color: var(--muted); cursor: pointer; transition: .15s;
}
.icon-btn:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 7px; border-radius: var(--r-xs);
    font: 600 10.5px/1.6 var(--f-body); letter-spacing: 0; text-transform: none;
    background: var(--panel-3); color: var(--text-2);
}
.badge-mint { background: rgba(79, 240, 200, .12); color: var(--mint); }
.badge-blue { background: rgba(77, 124, 255, .16); color: #9bb5ff; }
.badge-red { background: rgba(255, 84, 101, .14); color: #ff8b97; }
.badge-gold { background: rgba(242, 193, 78, .14); color: var(--gold); }

/* Sticker : le chambrage, imprimé et collé de travers */
.sticker {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px 2px;
    background: var(--yellow); color: #111;
    border: 1.5px solid #000; border-radius: 3px;
    box-shadow: 2px 2px 0 #000;
    font: 800 11px/1.3 var(--f-sans); font-variation-settings: "wdth" 115; text-transform: none; letter-spacing: 0;
    transform: rotate(-2.5deg);
    white-space: nowrap;
}
.sticker:nth-of-type(2n) { transform: rotate(2deg); }
.sticker-mint { background: var(--mint); }
.sticker-pink { background: var(--pink); }
.sticker-blue { background: var(--brand); color: #fff; }
.sticker-red { background: var(--loss); color: #fff; }
.sticker-white { background: #fff; }
.sticker-lg { font-size: 15px; padding: 5px 12px 4px; box-shadow: 3px 3px 0 #000; }

kbd {
    display: inline-block; padding: 0 5px; border-radius: 3px;
    border: 1px solid var(--line-2);
    font: 500 10.5px/1.7 var(--f-mono); color: var(--muted); background: var(--bg);
}

/* ---------- Coquille : sidebar / topbar / tabbar ---------- */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
    display: flex; flex-direction: column; gap: 14px;
    padding: 18px 12px 12px;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    overflow-y: auto; scrollbar-width: thin;
}
.brand { padding: 2px 8px 4px; }
.brand img { width: 104px; height: auto; }

.squad-pill {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel);
    transition: border-color .15s;
}
.squad-pill:hover { border-color: #444a56; }
.squad-pill-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.squad-pill-txt small { font: 500 10px/1.4 var(--f-body); text-transform: none; color: var(--muted); }
.squad-pill-txt strong { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squad-pill > .ico { color: var(--muted); }
.squad-pill form, .squad-pill select, .stretched { position: absolute; inset: 0; }
.squad-pill select { opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-label { margin: 12px 10px 4px; font-size: 10px; color: var(--faint); }
.side-nav a, .side-nav .soon {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: var(--r-sm);
    color: var(--text-2); font-weight: 550; font-size: 13.5px;
    transition: background .12s, color .12s;
}
.side-nav a .ico { color: var(--muted); }
.side-nav a:hover { background: var(--panel); color: var(--text); }
.side-nav a.is-active { background: var(--panel-2); color: #fff; }
.side-nav a.is-active::before {
    content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; background: var(--brand-2);
}
.side-nav a.is-active .ico { color: var(--brand-2); }
.side-nav .count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font: 700 10.5px/18px var(--f-mono); text-align: center; }
.side-nav .count.is-hot { background: var(--loss); }
.side-nav .soon { color: var(--faint); cursor: default; }
.side-nav .soon em { margin-left: auto; font: 500 9.5px var(--f-body); font-style: normal; text-transform: none; color: var(--faint); }

.side-me {
    margin-top: auto;
    padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
}
.side-me-top { display: flex; align-items: center; gap: 10px; }
.side-me-top > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-me-top strong { font-size: 13.5px; }
.side-me-top small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.side-me .xp { margin-top: 10px; }

.shell { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 12px;
    height: var(--top-h); padding: 0 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.brand-sm { display: none; }
.brand-sm img { width: 76px; height: auto; }
.cmdk-trigger {
    display: flex; align-items: center; gap: 10px;
    width: min(380px, 100%); height: 34px; padding: 0 8px 0 12px;
    border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel);
    color: var(--muted); cursor: pointer; text-align: left; transition: border-color .15s;
}
.cmdk-trigger:hover { border-color: var(--line-2); color: var(--text-2); }
.cmdk-trigger span { flex: 1; font-size: 13px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-switch {
    position: relative; display: flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel);
}
.top-switch select { appearance: none; -webkit-appearance: none; background: none; border: 0; min-height: 0; padding: 0; font-weight: 700; font-size: 13px; max-width: 140px; cursor: pointer; }
.top-switch select:focus { box-shadow: none; }
.top-switch option { background: var(--panel); }
.top-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
    border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel);
    font: 600 12px var(--f-mono); color: var(--text-2);
}
.top-pill .ico { color: var(--gold); }
.top-pill:hover { border-color: var(--line-2); }
.topbar-me .avatar { outline: 1px solid var(--line-2); outline-offset: 2px; }

.main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 24px 48px; flex: 1; }

.tabbar { display: none; }

.nprogress {
    position: fixed; top: 0; left: 0; z-index: 100; height: 2px; width: 0;
    background: var(--brand-2);
    transition: width .6s var(--ease), opacity .3s;
}
.nprogress.is-on { width: 75%; }

/* ---------- Avatars / logos ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-3); }
.avatar-xs { width: 22px; height: 22px; }
.avatar-sm { width: 30px; height: 30px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 80px; height: 80px; }
.avatar-xl { width: 92px; height: 92px; }
.avatar-letter {
    display: inline-grid; place-items: center;
    background: hsl(var(--hue) 55% 42%);
    color: #fff; font: 800 13px/1 var(--f-sans); text-transform: uppercase;
}
.avatar-md.avatar-letter { font-size: 16px; }
.avatar-lg.avatar-letter { font-size: 32px; }
.avatar-xl.avatar-letter { font-size: 38px; }
.avatars { display: inline-flex; }
.avatars > * { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.avatars > *:first-child { margin-left: 0; }
.squad-logo { border-radius: var(--r); object-fit: cover; flex: none; }
.squad-logo-xs { width: 20px; height: 20px; border-radius: 4px; }
.squad-logo-sm { width: 32px; height: 32px; }
.squad-logo-md { width: 48px; height: 48px; border-radius: 10px; }
.squad-logo-lg { width: 96px; height: 96px; border-radius: 14px; }
.squad-logo-xs.avatar-letter { font-size: 9px; }
.squad-logo-sm.avatar-letter { font-size: 12px; }
.squad-logo-md.avatar-letter { font-size: 17px; }
.squad-logo-lg.avatar-letter { font-size: 34px; }

/* ---------- Panneaux ---------- */
.panel, .card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 18px;
}
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush > .panel-head { padding: 14px 18px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 {
    display: flex; align-items: center; gap: 9px; min-width: 0;
    font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
    font-variation-settings: "wdth" 112;
}
.panel-head h2::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--brand-2); }
.panel-head h2 small { font: 500 11px var(--f-mono); text-transform: none; letter-spacing: 0; color: var(--muted); }
.panel-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.panel-link:hover { color: var(--text); }

.grid-dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 16px; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

.empty {
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    padding: 28px 16px; color: var(--muted); font-size: 13.5px;
    border: 1px dashed var(--line-2); border-radius: var(--r);
    background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.015) 8px 16px);
}
.panel > .empty:only-child, .panel-head + .empty { margin: 0; }
.empty .ico { width: 26px; height: 26px; color: var(--faint); }
.eyebrow { display: block; margin-bottom: 8px; font: 600 13px/1.3 var(--f-body); color: var(--text-2); }
.eyebrow a:hover { text-decoration: underline; }

/* ---------- Titre de page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: .95; }
.page-head h1 small { font-size: .45em; color: var(--muted); font-variation-settings: "wdth" 100; }
.page-head p.lead { margin-top: 8px; color: var(--text-2); max-width: 60ch; }

/* ---------- Bandeau héros (splash art) ---------- */
.hero-banner {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg); border: 1px solid var(--line);
    background: var(--panel);
    isolation: isolate;
}
.hero-banner::before {
    content: ""; position: absolute; inset: 0 0 0 30%; z-index: -2;
    background: var(--splash) center 20% / cover no-repeat;
    filter: saturate(.85);
}
.hero-banner::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(circle at 1px 1px, rgba(0,0,0,.55) 1px, transparent 1.4px) 0 0 / 4px 4px,
        linear-gradient(90deg, var(--panel) 30%, rgba(21,23,28,.75) 55%, rgba(21,23,28,.2) 100%);
}
.hero-banner-inner {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 26px 24px 22px; min-height: 220px;
}
.hero-id { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.pfp { position: relative; flex: none; }
.pfp > img, .pfp > .avatar {
    width: 92px; height: 92px; border-radius: var(--r-lg); object-fit: cover;
    border: 2px solid var(--bg);
    outline: 1px solid var(--line-2);
}
.pfp-lvl {
    position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
    padding: 0 7px; border-radius: 3px;
    background: var(--bg); border: 1px solid var(--line-2);
    font: 600 11px/1.6 var(--f-mono);
}
.riot-id { font-size: clamp(30px, 4.6vw, 52px); line-height: .9; word-break: break-word; }
.riot-id span { font-size: .42em; color: var(--muted); margin-left: 6px; font-variation-settings: "wdth" 100; letter-spacing: 0; text-transform: none; }
.hero-sub { margin-top: 10px; color: var(--text-2); max-width: 46ch; }
.hero-form { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.hero-form-txt { font-size: 12.5px; color: var(--text-2); }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-ranks { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stickers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hero-stats {
    display: grid; grid-template-columns: repeat(5, auto); justify-content: start;
    margin: 0; padding: 12px 24px 14px;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}
.hero-stats > div { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border: 0; }
.hero-stats dd { margin: 3px 0 0; font: 800 22px/1.1 var(--f-sans); font-variation-settings: "wdth" 110; }
.hero-stats small { color: var(--muted); font-size: 11.5px; }
.hero-stats-champs dd { display: flex; gap: 6px; margin-top: 4px; }

/* ---------- Rangs ---------- */
.rank { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: 12.5px; }
.rank-emblem { width: 20px; height: 20px; }
.rank-name { color: var(--tc, var(--text-2)); }
.rank-lp, .rank-wr { color: var(--muted); font-weight: 500; }
.tier-iron { --tc: var(--t-iron); } .tier-bronze { --tc: var(--t-bronze); } .tier-silver { --tc: var(--t-silver); }
.tier-gold { --tc: var(--t-gold); } .tier-platinum { --tc: var(--t-platinum); } .tier-emerald { --tc: var(--t-emerald); }
.tier-diamond { --tc: var(--t-diamond); } .tier-master { --tc: var(--t-master); } .tier-grandmaster { --tc: var(--t-grandmaster); }
.tier-challenger { --tc: var(--t-challenger); } .tier-unranked { --tc: var(--muted); }
small[class^="tier-"] { color: var(--tc); }

.rank-card {
    display: flex; align-items: center; gap: 12px;
    min-width: 210px; padding: 10px 14px 10px 10px;
    border-radius: var(--r); border: 1px solid var(--line-2);
    background: var(--bg-2);
    border-top: 2px solid var(--tc);
}
.rank-card-emblem { width: 52px; height: 52px; }
.rank-card-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.rank-card-queue { font-size: 10px; }
.rank-card-tier { font: 800 17px/1.1 var(--f-sans); font-variation-settings: "wdth" 115; text-transform: uppercase; color: var(--tc); }
.rank-card-tier.is-unranked { color: var(--text-2); }
.rank-card-lp { font-size: 12px; color: var(--text-2); }
.rank-card-lp b { color: var(--text); }
.rank-card-wr { font: 500 11px var(--f-mono); color: var(--muted); }
.hot { color: var(--orange); display: inline-flex; align-items: center; gap: 2px; }
.wrbar { display: block; height: 4px; margin: 5px 0 3px; background: var(--loss); }
.wrbar span { display: block; height: 100%; width: var(--w); background: var(--win); }

/* ---------- Forme (V/D) ---------- */
.form-strip { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.form-strip i {
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px;
    font: 700 10.5px/1 var(--f-mono); font-style: normal;
}
.form-strip .is-win { background: var(--win); color: #fff; }
.form-strip .is-loss { background: var(--loss); color: #fff; }
.form-strip .is-remake { background: var(--panel-3); color: var(--muted); }

/* ---------- Jauges, XP, niveaux ---------- */
.donut { position: relative; width: 120px; height: 120px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 12; }
.donut-track { stroke: var(--loss); opacity: .9; }
.donut-val { stroke: var(--win); stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s var(--ease); }
.donut.is-in .donut-val { stroke-dasharray: var(--p) 100; }
.donut-val.is-loss { stroke: var(--win); }
.donut-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-txt b { font: 800 28px/1 var(--f-sans); font-variation-settings: "wdth" 115; }
.donut-txt small { font: 500 10px var(--f-body); color: var(--muted); text-transform: none; margin-top: 3px; }

.lvl {
    display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px;
    background: var(--brand); color: #fff; border-radius: 3px;
    font: 700 11px/1 var(--f-mono);
}
.lvl-lg { min-width: 44px; height: 36px; font-size: 16px; }
.xp { display: flex; flex-direction: column; gap: 4px; }
.xp-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 500 10.5px var(--f-mono); color: var(--muted); }
.xp-top b { color: var(--text); font-weight: 600; }
.xp-bar { height: 6px; background: var(--panel-3); border-radius: 1px; overflow: hidden; }
.xp-bar span { display: block; height: 100%; width: var(--w); background: var(--mint); transition: width 1s var(--ease); }
.meter { height: 6px; background: var(--panel-3); overflow: hidden; }
.meter > span { display: block; height: 100%; width: var(--w); background: var(--brand-2); }

.kpis { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.kpi { display: flex; flex-direction: column; min-width: 0; }
.kpi-wide { grid-column: 1 / -1; gap: 6px; }
.kpi-value { display: flex; align-items: baseline; gap: 4px; font: 800 30px/1.15 var(--f-sans); font-variation-settings: "wdth" 115; }
.kpi-value i { font-style: normal; color: var(--faint); }
.kpi-value small { font-size: .5em; color: var(--muted); }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpi-sub a { color: var(--text-2); text-decoration: underline; }
.ico-flame { width: 22px; height: 22px; color: var(--orange); }
.squad-sum-body { display: flex; align-items: center; gap: 26px; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.statgrid > div { background: var(--panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.statgrid b { font: 800 22px/1.1 var(--f-sans); font-variation-settings: "wdth" 112; }

/* ---------- Cartes de games en groupe ---------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gcard {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2);
    transition: border-color .15s, transform .15s;
}
.gcard:hover { border-color: var(--st, var(--line-2)); transform: translateY(-2px); }
.gcard-art { display: flex; height: 150px; }
.gcard-champ {
    position: relative; flex: 1; min-width: 0;
    background: var(--art) center 18% / cover no-repeat;
    transition: flex .3s var(--ease);
}
.gcard-champ + .gcard-champ { border-left: 2px solid var(--bg); }
.gcard-champ:hover { flex: 1.5; }
.gcard-champ::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,13,16,.95) 0, transparent 60%); }
.gcard-pl { position: absolute; z-index: 1; left: 8px; right: 6px; bottom: 6px; display: flex; flex-direction: column; line-height: 1.2; }
.gcard-pl b { font-size: 13px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-pl small { font: 500 11px var(--f-mono); color: var(--text-2); }
.gcard-foot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--stbg, var(--panel)); }
.gcard.is-win { --st: var(--win); --stbg: var(--win-bg); }
.gcard.is-loss { --st: var(--loss); --stbg: var(--loss-bg); }
.gcard-result { font: 800 12.5px/1 var(--f-sans); font-variation-settings: "wdth" 115; text-transform: uppercase; color: var(--st, var(--remake)); }
.gcard-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-cta { margin-left: auto; }

/* ---------- Classement ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ladder li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ladder li:last-child { border-bottom: 0; }
.ladder li.is-me { background: var(--panel-2); margin: 0 -6px; padding-left: 12px; padding-right: 12px; }
.ladder-pos { width: 18px; text-align: center; font: 700 13px/1 var(--f-mono); color: var(--faint); }
.ladder li.is-first .ladder-pos { color: var(--gold); }
.ladder-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ladder-who b { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; }
.ladder-who small { color: var(--muted); font-weight: 500; }
.ladder-bar { display: block; height: 3px; margin-top: 5px; background: var(--panel-3); overflow: hidden; }
.ladder-bar span { display: block; height: 100%; width: 0; background: var(--brand-2); transition: width 1s var(--ease); }
.ladder.is-in .ladder-bar span { width: var(--w); }
.ladder-emblem { width: 32px; height: 32px; }
.ladder-val { font: 700 13px var(--f-mono); }
.crown { color: var(--gold); display: inline-flex; }
.ladder-invite {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px;
    padding: 9px; border-radius: var(--r); border: 1px dashed var(--line-2);
    color: var(--text-2); font-weight: 650; font-size: 13px; transition: .15s;
}
.ladder-invite:hover { border-color: var(--mint); color: var(--mint); }
.ladder-invite small { color: var(--muted); }

/* ---------- Mains ---------- */
.mains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.main-card {
    position: relative; aspect-ratio: 3 / 4.3; overflow: hidden;
    border-radius: var(--r); border: 1px solid var(--line);
    background: var(--art) center 15% / cover no-repeat;
}
.main-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,13,16,.95), transparent 55%); }
.main-rank {
    position: absolute; z-index: 1; top: 6px; left: 6px;
    width: 20px; height: 20px; display: grid; place-items: center; border-radius: 3px;
    background: var(--bg); font: 700 11px/1 var(--f-mono);
}
.main-card:first-child .main-rank { background: var(--gold); color: #2a1b00; }
.main-txt { position: absolute; z-index: 1; left: 7px; right: 6px; bottom: 6px; display: flex; flex-direction: column; line-height: 1.2; }
.main-txt b { font-size: 12.5px; font-weight: 750; }
.main-txt small { font: 500 10px var(--f-mono); color: var(--text-2); }

/* ---------- Fil d'activité ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.feed-item:last-child { border-bottom: 0; }
.feed-dot {
    flex: none; width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: 4px; background: var(--panel-3); color: var(--text-2);
}
.feed-item.is-win .feed-dot { background: var(--win); color: #fff; }
.feed-item.is-loss .feed-dot { background: var(--loss); color: #fff; }
.feed-item.is-mint .feed-dot { background: var(--mint); color: var(--mint-ink); }
.feed-item.is-gold .feed-dot { background: var(--gold); color: #2a1b00; }
.feed-item p { color: var(--text-2); }
.feed-item strong { color: var(--text); font-weight: 700; }
.feed-item time { font: 500 10.5px var(--f-mono); color: var(--faint); }

/* ---------- Champions / sorts / objets ---------- */
.champ { position: relative; display: inline-block; flex: none; }
.champ img { border-radius: var(--r); object-fit: cover; }
.champ-lg img { width: 48px; height: 48px; border-radius: 50%; }
.champ-md img { width: 34px; height: 34px; border-radius: 50%; }
.champ-sm img { width: 28px; height: 28px; border-radius: 50%; }
.champ-sq img { border-radius: var(--r-sm); }
.champ-lvl {
    position: absolute; right: -3px; bottom: -3px;
    min-width: 17px; height: 17px; padding: 0 3px; display: grid; place-items: center;
    border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2);
    font: 600 9.5px/1 var(--f-mono);
}
.champ-sm .champ-lvl { min-width: 14px; height: 14px; font-size: 8.5px; }
.spells { display: flex; flex-direction: column; gap: 2px; }
.spells img, .spells .slot { width: 22px; height: 22px; border-radius: 4px; }
.slot { display: inline-block; background: rgba(0,0,0,.25); border-radius: 4px; }

/* ---------- Lignes de match (op.gg) ---------- */
.mlist { display: flex; flex-direction: column; gap: 6px; container: mlist / inline-size; }
.panel .mlist { padding: 10px; }
.mlist-gap { gap: 6px; }

.mrow { --st: var(--remake); --stbg: var(--panel-2); --stbg2: var(--panel-3); position: relative; background: var(--stbg); border-radius: var(--r-sm); overflow: hidden; }
.mrow.is-win { --st: var(--win); --stbg: var(--win-bg); --stbg2: var(--win-bg-2); }
.mrow.is-loss { --st: var(--loss); --stbg: var(--loss-bg); --stbg2: var(--loss-bg-2); }
.mrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--st); }
.mrow[hidden] { display: none; }
.mrow-main {
    display: grid; align-items: center;
    grid-template-columns: 96px auto 92px 100px auto minmax(150px, 1fr) 32px;
    gap: 16px;
    padding: 10px 8px 10px 18px;
}
.mrow-meta { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--muted); }
.mrow-queue { font-weight: 750; color: var(--st); font-size: 12px; }
.mrow-sep { width: 40px; height: 1px; background: rgba(255,255,255,.1); margin: 4px 0; }
.mrow-result { font-size: 12.5px; font-weight: 750; color: var(--text); }
.mrow-champ { display: flex; align-items: center; gap: 4px; }
.mrow-kda { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.kda { font: 800 16px/1.2 var(--f-sans); font-variation-settings: "wdth" 108; white-space: nowrap; }
.kda i { color: var(--faint); font-style: normal; margin: 0 2px; font-weight: 400; }
.kda-ratio { font: 600 11.5px var(--f-mono); color: var(--text-2); }
.kda-good { color: #33c9a3 !important; }
.kda-great { color: #5b8cff !important; }
.kda-legend { color: var(--orange) !important; }
.kda-low { color: var(--loss) !important; }
.mrow-stats { margin: 0; display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.06); }
.mrow-stats div { display: flex; justify-content: space-between; gap: 8px; }
.mrow-stats dt { color: var(--muted); }
.mrow-stats dd { margin: 0; font-weight: 650; }
.mrow-stats small { color: var(--muted); font-weight: 500; }
.mrow-items { display: grid; grid-template-columns: repeat(4, 24px); gap: 2px; }
.mrow-items img, .mrow-items .slot { width: 24px; height: 24px; border-radius: 4px; }
.mrow-items .trinket { border-radius: 50%; }
.mrow-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.mrow-teams ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mrow-teams li { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); min-width: 0; }
.mrow-teams li img { width: 15px; height: 15px; border-radius: 3px; }
.mrow-teams li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow-teams li.is-me { color: var(--text); font-weight: 700; }
.mrow-teams li.is-mate { color: var(--mint); font-weight: 700; }
.mrow-toggle {
    align-self: stretch; display: grid; place-items: center;
    border: 0; border-radius: var(--r-xs); background: var(--stbg2); color: var(--st); cursor: pointer;
}
.mrow-toggle:hover { filter: brightness(1.25); }
.mrow-toggle .ico { transition: transform .2s var(--ease); }
.mrow.is-open .mrow-toggle .ico { transform: rotate(180deg); }
.mrow .badge, .mrow .sticker { margin-top: 3px; }

.mrow-detail { padding: 2px 10px 12px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mrow-detail[hidden] { display: none; }
.mini-sb { border-radius: var(--r-sm); background: var(--bg-2); padding: 6px; min-width: 0; }
.mini-sb-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 6px; font-size: 11.5px; color: var(--muted); }
.mini-sb-head b { font-size: 12px; font-weight: 800; text-transform: none; color: var(--remake); }
.mini-sb.is-win .mini-sb-head b { color: var(--win); }
.mini-sb.is-loss .mini-sb-head b { color: var(--loss); }
.mini-sb-row {
    display: grid; grid-template-columns: 30px minmax(0, 1fr) 60px 70px 44px auto; align-items: center; gap: 8px;
    padding: 3px 4px; border-radius: 4px; font-size: 11.5px;
}
.mini-sb-row.is-me { background: rgba(255,255,255,.05); }
.mini-sb-row.is-mate { background: rgba(79,240,200,.07); }
.mini-sb-name { display: flex; flex-direction: column; min-width: 0; }
.mini-sb-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mini-sb-name em { font-style: normal; color: var(--mint); font-size: 10.5px; font-weight: 700; }
.mini-sb-kda { display: flex; flex-direction: column; font-weight: 700; text-align: center; }
.mini-sb-kda small { font: 500 10px var(--f-mono); color: var(--muted); }
.mini-sb-dmg { display: flex; flex-direction: column; gap: 3px; }
.mini-sb-dmg small { color: var(--text-2); font-family: var(--f-mono); font-size: 10px; }
.mini-sb-cs small { color: var(--muted); }
.mini-sb-items { display: flex; gap: 2px; }
.mini-sb-items img, .mini-sb-items .slot { width: 19px; height: 19px; border-radius: 3px; }
.bar { display: block; height: 5px; background: var(--panel-3); overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--w); background: var(--win); }
.is-loss .bar > span { background: var(--loss); }
.mrow-more { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 12px; color: var(--text-2); }
.mrow-more:hover { color: var(--text); }

@container mlist (max-width: 1000px) {
    .mini-sb-items { display: none; }
    .mini-sb-row { grid-template-columns: 30px minmax(0, 1fr) 58px 64px 40px; }
}
@container mlist (max-width: 780px) {
    .mrow-main { grid-template-columns: 92px auto 92px 100px auto 32px; }
    .mrow-teams { display: none; }
    .mrow-detail { grid-template-columns: 1fr; }
}
@container mlist (max-width: 620px) {
    .mrow-main { grid-template-columns: auto auto 1fr 30px; gap: 10px 12px; padding: 10px 8px 10px 16px; }
    .mrow-meta { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .mrow-sep { display: none; }
    .mrow-result { order: -1; }
    .mrow-stats { display: none; }
    .mrow-kda { align-items: flex-start; text-align: left; }
    .mrow-items { grid-column: 1 / -1; grid-template-columns: repeat(7, 24px); }
    .mrow-toggle { grid-row: 2; grid-column: 4; }
    .mrow-detail { padding: 2px 8px 10px 14px; }
    .mini-sb-row { grid-template-columns: 28px minmax(0, 1fr) 58px 40px; }
    .mini-sb-dmg { display: none; }
}

/* ---------- Onglets, filtres ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seg, .tabs {
    display: inline-flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.seg { padding: 3px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.seg a, .seg button {
    padding: 6px 12px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer;
    font-weight: 650; font-size: 13px; color: var(--muted); white-space: nowrap; transition: .12s;
}
.seg a:hover, .seg button:hover { color: var(--text); }
.seg .is-active { background: var(--panel-3); color: var(--text); }
.tabs a, .tabs button {
    position: relative; padding: 10px 14px; border: 0; background: none; cursor: pointer;
    font-weight: 650; font-size: 13.5px; color: var(--muted); white-space: nowrap;
}
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { color: var(--text); }
.tabs .is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent;
    color: var(--text-2); font-weight: 650; font-size: 12.5px; cursor: pointer; transition: .12s;
}
.chip:hover { border-color: #454a56; color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip img { width: 16px; height: 16px; }
.count-pill { font: 500 12px var(--f-mono); color: var(--muted); }

.sumbar { display: grid; grid-template-columns: auto 1fr 1.3fr; gap: 26px; align-items: center; }
.sumbar .donut { width: 100px; height: 100px; }
.sumbar .donut-txt b { font-size: 22px; }
.sumbar-block h3 { margin-bottom: 8px; }
.sumbar-kda { font: 800 28px/1 var(--f-sans); font-variation-settings: "wdth" 115; }
.sumbar-kda small { display: block; font: 500 12px/1.7 var(--f-mono); color: var(--muted); }
.champ-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.champ-stats li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.champ-stats li img { width: 28px; height: 28px; border-radius: 50%; }
.champ-stats b { font-weight: 700; }
.champ-stats .muted { margin-left: auto; white-space: nowrap; font-family: var(--f-mono); font-size: 11px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; color: var(--muted); font: 500 12px var(--f-mono); }

/* ---------- Page match ---------- */
.match-hero .hero-banner-inner { min-height: 200px; }
.match-verdict { font-size: clamp(44px, 7vw, 80px); line-height: .85; }
.match-verdict.is-win { color: var(--win); }
.match-verdict.is-loss { color: var(--loss); }
.match-verdict.is-remake { color: var(--remake); }
.match-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.match-me { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.match-me .kda { font-size: 28px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px 14px; }
.vs-label { text-align: center; min-width: 80px; }
.vs-side { display: flex; align-items: center; gap: 10px; }
.vs-side.left { flex-direction: row-reverse; }
.vs-side b { font: 700 14px/1 var(--f-mono); min-width: 52px; }
.vs-side.left b { text-align: right; }
.vs-bar { flex: 1; height: 10px; background: var(--panel-3); display: flex; }
.vs-side.left .vs-bar { justify-content: flex-end; }
.vs-bar span { display: block; height: 100%; width: 0; transition: width 1s var(--ease); }
.vs.is-in .vs-bar span { width: var(--w); }
.vs-side.blue .vs-bar span { background: var(--win); }
.vs-side.red .vs-bar span { background: var(--loss); }
.vs-team { font-weight: 900; font-variation-settings: "wdth" 120; text-transform: uppercase; font-size: 14px; }
.vs-team.blue { color: var(--win); text-align: right; }
.vs-team.red { color: var(--loss); }

.scoreboard { margin-top: 14px; }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.sb-head h2 { font-size: 15px; font-weight: 900; text-transform: uppercase; font-variation-settings: "wdth" 118; }
.scoreboard.is-win .sb-head { background: var(--win-bg); }
.scoreboard.is-loss .sb-head { background: var(--loss-bg); }
.scoreboard.is-win .sb-head h2 { color: var(--win); }
.scoreboard.is-loss .sb-head h2 { color: var(--loss); }
.sb-head h2 span { color: var(--muted); font-size: .8em; }
.objectives { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.objectives b { color: var(--text); font: 700 14px/1 var(--f-mono); margin-right: 2px; }
.table-scroll { overflow-x: auto; }
.sb, .table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sb { min-width: 780px; }
.sb th, .table th { padding: 8px 12px; text-align: left; }
.table th { font: 500 11px var(--f-body); text-transform: none; color: var(--muted); letter-spacing: 0; border-bottom: 1px solid var(--line); }
.sb td, .table td { padding: 7px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.sb tbody tr:hover td, .table tbody tr:hover td { background: rgba(255,255,255,.02); }
.sb tr.is-me td { background: rgba(255,255,255,.045); }
.sb tr.is-mate td { background: rgba(79,240,200,.05); }
.sb tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--text); }
.sb tr.is-mate td:first-child { box-shadow: inset 3px 0 0 var(--mint); }
.sb-player { display: flex; align-items: center; gap: 8px; min-width: 220px; }
.spells-v { gap: 2px; }
.spells-v img { width: 17px; height: 17px; border-radius: 3px; }
.sb-name { display: flex; flex-direction: column; min-width: 0; }
.sb-name b { font-weight: 650; white-space: nowrap; }
.sb-name b small { color: var(--muted); font-weight: 400; }
.tag-mate { align-self: flex-start; font: 600 10px var(--f-body); color: var(--mint); text-transform: none; }
.sb-kda b { font-size: 13px; }
.sb-kda small { display: block; color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; }
.sb-dmg { min-width: 120px; }
.sb-dmg .bar { margin-top: 4px; }
.sb-items { display: flex; gap: 2px; }
.sb-items img, .sb-items .slot { width: 22px; height: 22px; border-radius: 3px; }
.pill { padding: 3px 10px; border-radius: var(--r-xs); background: var(--panel-3); font-weight: 650; font-size: 12px; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-inline { flex-direction: row; align-items: flex-end; gap: 8px; }
.form-inline .field { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 12.5px; font-weight: 650; color: var(--text-2); padding: 0; }
.field legend { margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 450; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=url], input[type=datetime-local], input[type=date], textarea, select {
    width: 100%; min-height: 40px; padding: 9px 12px;
    border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg);
    font-size: 14px; transition: border-color .12s, box-shadow .12s;
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(58, 99, 255, .25); }
input[type=file] { font-size: 12.5px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button {
    margin-right: 10px; padding: 7px 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
    background: var(--panel-2); color: var(--text); font-weight: 650; cursor: pointer;
}
input[type=range] { accent-color: var(--brand-2); width: 100%; }
.input-code { font: 700 20px/1 var(--f-mono) !important; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--brand-2); width: 16px; height: 16px; }
.chip-toggle { position: relative; cursor: pointer; display: flex; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle span {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px 7px 9px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
    font-weight: 650; font-size: 13px; color: var(--text-2); transition: .12s;
}
.chip-toggle span img { width: 20px; height: 20px; opacity: .45; transition: .12s; }
.chip-toggle:hover span { border-color: #454a56; }
.chip-toggle input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-toggle input:checked + span img { opacity: 1; filter: brightness(2); }
.chip-toggle input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.champ-picker { display: flex; flex-direction: column; gap: 8px; }
.champ-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.champ-chips:empty { display: none; }
.champ-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 3px 5px 3px 3px;
    border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 650; font-size: 13px;
}
.champ-chip img { width: 24px; height: 24px; border-radius: 4px; }
.champ-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; }
.champ-chip button:hover { background: rgba(255,84,101,.15); color: var(--loss); }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-edit > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Notes 1 à 5 */
.rating { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label { width: 22px; height: 22px; cursor: pointer; background: var(--panel-3); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.rating label:hover, .rating label:hover ~ label, .rating input:checked ~ label { background: var(--yellow); }
.stars { font-family: var(--f-mono); color: var(--yellow); letter-spacing: 1px; }

.copy-field { display: flex; gap: 6px; }
.copy-field input { min-height: 34px; font-size: 12.5px; color: var(--text-2); font-family: var(--f-mono); }
.invite-code { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg); border: 1px dashed var(--line-2); }
.invite-code b { font: 700 22px/1 var(--f-mono); letter-spacing: .12em; color: var(--mint); }
.danger-zone { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: #ff8b97; font-weight: 650; font-size: 13px; }
.danger-zone .form { margin-top: 12px; }
.leave { text-align: center; }

/* ---------- Listes génériques (features) ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row > .grow, .grow { flex: 1; min-width: 0; }
.list-row b { font-weight: 700; }
a.list-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tile {
    display: flex; flex-direction: column; gap: 8px; padding: 14px;
    border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
    transition: border-color .12s, transform .12s;
}
a.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile h3 { font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.split > * { background: var(--panel); padding: 14px; }

/* Modale / feuille */
.modal { position: fixed; inset: 0; z-index: 105; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.modal-box { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; animation: pop .18s var(--ease); }

/* ---------- Toasts / XP ---------- */
.toasts { position: fixed; top: 66px; right: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 11px 10px 11px 12px;
    border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel-2);
    box-shadow: 0 16px 40px -12px #000;
    font-size: 13px; font-weight: 550;
    animation: toast-in .35s var(--ease) both;
}
.toast > span:nth-child(2) { flex: 1; padding-top: 2px; }
.toast-ico { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: var(--panel-3); }
.toast-success { border-left: 3px solid var(--mint); }
.toast-success .toast-ico { background: var(--mint); color: var(--mint-ink); }
.toast-error { border-left: 3px solid var(--loss); }
.toast-error .toast-ico { background: var(--loss); color: #fff; }
.toast-info, .toast-warning { border-left: 3px solid var(--brand-2); }
.toast-info .toast-ico, .toast-warning .toast-ico { background: var(--brand); color: #fff; }
.toast-xp { border-left: 3px solid var(--yellow); }
.toast-xp .toast-ico { background: var(--yellow); color: #111; }
.toast-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 3px; border-radius: 4px; }
.toast-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.toast.is-leaving { animation: toast-out .2s ease-in both; }
.xp-pop {
    position: fixed; z-index: 130; left: 50%; top: 40%; transform: translate(-50%, -50%);
    pointer-events: none; animation: xp-pop 1.6s var(--ease) forwards;
}
.confetti { position: fixed; inset: 0; z-index: 125; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; animation: fall linear forwards; }

/* ---------- Tooltip ---------- */
.tip {
    position: fixed; z-index: 120; pointer-events: none; top: 0; left: 0;
    padding: 5px 8px; border-radius: 4px;
    background: #fff; color: #111; font-size: 11.5px; font-weight: 650;
    opacity: 0; transition: opacity .12s; white-space: nowrap;
}
.tip.is-on { opacity: 1; }

/* ---------- Palette de commandes ---------- */
.cmdk { position: fixed; inset: 0; z-index: 110; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.cmdk-box {
    position: relative; width: min(540px, 100%);
    border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel);
    box-shadow: 0 40px 80px -20px #000;
    overflow: hidden; animation: pop .15s var(--ease);
}
.cmdk-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-search input { border: 0 !important; background: none !important; box-shadow: none !important; min-height: 52px; padding: 0; font-size: 16px; color: var(--text); }
.cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.cmdk-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-weight: 550; }
.cmdk-list li a em { margin-left: auto; font: 500 10.5px var(--f-body); font-style: normal; text-transform: none; color: var(--faint); }
.cmdk-list li.is-sel a { background: var(--brand); color: #fff; }
.cmdk-list li.is-sel a em { color: var(--brand-ink); }
.cmdk-list .cmdk-none { padding: 18px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 6px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }

/* ---------- Quête de départ ---------- */
.quest { margin-top: 16px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.quest-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.quest-head h2 { font-size: 20px; }
.quest-progress { font: 600 13px var(--f-mono); color: var(--muted); }
.quest-progress b { color: var(--mint); }
.quest-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quest-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.quest-steps li.is-current { border-color: var(--brand-2); }
.quest-steps li.is-done { opacity: .55; }
.quest-steps strong { font-size: 15px; }
.quest-steps p { font-size: 13px; color: var(--text-2); flex: 1; }
.quest-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--panel-3); font: 700 13px var(--f-mono); }
.is-current .quest-n { background: var(--brand); color: #fff; }
.is-done .quest-n { background: var(--mint); color: var(--mint-ink); }

/* ---------- Groupes ---------- */
.squad-banner .hero-banner-inner { min-height: 210px; }
.squad-name { font-size: clamp(32px, 5vw, 60px); line-height: .9; }
.squad-facts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pcard {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    min-height: 260px; border-radius: var(--r); border: 1px solid var(--line);
    background: var(--panel-2); isolation: isolate;
    transition: border-color .15s, transform .15s;
}
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art, none) center 12% / cover no-repeat; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--panel) 34%, rgba(21,23,28,.15) 80%); }
.pcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pcard-body { margin-top: auto; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.pcard-body > .avatar { margin-bottom: 6px; outline: 2px solid var(--panel); }
.pcard-name { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 900; font-variation-settings: "wdth" 118; text-transform: uppercase; }
.pcard-riot { font: 500 11px var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-roles { display: flex; gap: 4px; margin-top: 6px; }
.pcard-roles img { width: 22px; height: 22px; padding: 3px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
.pcard .rank { margin-top: 4px; }
.pcard .lvl { position: absolute; top: 8px; left: 8px; z-index: 2; }
.pcard-kick { position: absolute; top: 6px; right: 6px; z-index: 2; }
.pcard-kick .icon-btn { width: 28px; height: 28px; background: rgba(12,13,16,.8); }
.pcard-kick .icon-btn:hover { color: var(--loss); }
.pcard-me { position: absolute; top: 34px; left: 8px; z-index: 2; }
.pcard-empty {
    min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); font-weight: 650; text-align: center; padding: 16px;
    background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.015) 8px 16px); cursor: pointer; transition: .15s;
}
.pcard-empty .ico { width: 26px; height: 26px; }
.pcard-empty:hover { border-color: var(--mint); color: var(--mint); }

.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 18px; }
.squad-card {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 14px;
    border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
    transition: border-color .15s;
}
.squad-card:hover { border-color: var(--line-2); }
.squad-card > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.squad-card strong { font-size: 16px; font-weight: 800; }
.squad-card small { color: var(--muted); }

.invite-card {
    max-width: 480px; margin: 40px auto; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 36px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel);
}
.invite-card h1 { font-size: 40px; line-height: .95; }
.invite-card p { color: var(--text-2); }
.invite-members { list-style: none; margin: 10px 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.invite-members li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }

/* ---------- Profil ---------- */
.role-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.role-pick .chip-toggle span { flex-direction: column; justify-content: center; padding: 12px 6px; width: 100%; font-size: 11.5px; }
.role-pick .chip-toggle span img { width: 28px; height: 28px; }
.masteries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.masteries li { display: flex; align-items: center; gap: 10px; }
.masteries img { width: 40px; height: 40px; border-radius: 50%; }
.masteries span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.masteries b { font-size: 13.5px; font-weight: 700; }
.masteries small { color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; }
.masteries .bar { width: 100%; margin-top: 5px; }
.masteries .bar > span { background: var(--brand-2); }
.side-title { margin: 16px 0 8px; display: block; }

/* ---------- Liaison Riot ---------- */
.stepper { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 0; flex-wrap: wrap; }
.stepper li { list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; color: var(--muted); }
.stepper li + li::before { content: ""; width: 24px; height: 1px; background: var(--line-2); }
.stepper .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: var(--panel-3); font: 700 12px var(--f-mono); }
.stepper .is-current { color: var(--text); }
.stepper .is-current .n { background: var(--brand); color: #fff; }
.stepper .is-done .n { background: var(--mint); color: var(--mint-ink); }
.link-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.riot-input { position: relative; display: block; }
.riot-input input { padding-left: 40px; font-size: 16px; font-weight: 650; min-height: 48px; }
.riot-input .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.verify { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.verify-frame { position: relative; width: 140px; height: 140px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.verify-frame img { width: 112px; height: 112px; border-radius: var(--r); border: 3px solid var(--mint); }
.verify-frame::after { content: "À ÉQUIPER"; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg); padding: 2px 8px; background: var(--mint); color: var(--mint-ink); border: 1.5px solid #000; box-shadow: 2px 2px 0 #000; font: 800 11px var(--f-sans); }
.verify-lead { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.verify-lead strong { color: var(--mint); }
.howto { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: h; display: flex; flex-direction: column; gap: 8px; }
.howto li { counter-increment: h; display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.howto li::before { content: counter(h); flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: var(--panel-3); font: 700 11px var(--f-mono); color: var(--text); }
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font: 500 12px var(--f-mono); color: var(--text-2); }
.timer b { color: var(--mint); }
.why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.why li { padding-left: 12px; border-left: 2px solid var(--accent); font-size: 14px; line-height: 1.45; color: var(--text-2); }
.why b { color: var(--text); display: block; }

/* ---------- Pages invité ---------- */
.gnav {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px clamp(16px, 4vw, 40px);
    background: var(--bg); border-bottom: 1px solid var(--line);
}
.gnav img { width: 92px; height: auto; }
.gnav nav { display: flex; align-items: center; gap: 12px; }

.landing-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px;
    padding: 72px clamp(16px, 5vw, 64px) 64px; max-width: 1360px; margin: 0 auto;
}
.landing-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font: 500 12px var(--f-body); color: var(--text-2); text-transform: none; }
.landing-kicker b { background: var(--mint); color: var(--mint-ink); padding: 2px 7px; border-radius: 3px; font-weight: 700; }
.landing-title { font-size: clamp(50px, 7.4vw, 104px); line-height: .86; }
.landing-title .stroke { color: var(--brand-2); }
.landing-title .rot { display: inline-block; background: var(--mint); color: var(--mint-ink); padding: 0 .12em; transform: rotate(-1.5deg); }
.landing-title .rot.is-swap { animation: swap .4s var(--ease); }
.landing-sub { margin: 26px 0 28px; max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.landing-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.landing-proof { display: flex; gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); width: fit-content; }
.landing-proof div { display: flex; flex-direction: column; padding: 12px 20px; border-right: 1px solid var(--line); }
.landing-proof div:last-child { border: 0; }
.landing-proof b { font: 800 26px/1 var(--f-sans); font-variation-settings: "wdth" 118; }
.landing-proof span { font: 500 11px var(--f-body); color: var(--muted); text-transform: none; margin-top: 4px; }

.mock { position: relative; }
.mock-window { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; box-shadow: 16px 16px 0 var(--brand); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-3); }
.mock-bar span { margin-left: 8px; font: 500 11px var(--f-mono); color: var(--faint); }
.mock-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-body .gcard-art { height: 140px; }
.mock-body .mrow-main { grid-template-columns: 84px auto 84px 1fr; gap: 12px; }
.mock-float { position: absolute; z-index: 2; }
.mock-float.f1 { left: -22px; bottom: 34px; }
.mock-float.f2 { right: -12px; top: -14px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 12px 0; }
.marquee-track { display: flex; gap: 8px; width: max-content; animation: marquee 90s linear infinite; }
.marquee-track img { width: 48px; height: 48px; border-radius: 50%; filter: grayscale(1); opacity: .55; transition: .2s; }
.marquee-track img:hover { filter: none; opacity: 1; }

.section { padding: 80px clamp(16px, 5vw, 64px); max-width: 1360px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: .9; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.feature {
    position: relative; overflow: hidden; grid-column: span 4;
    padding: 22px; min-height: 250px; border-radius: var(--r-lg); border: 1px solid var(--line);
    background: var(--panel);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
    isolation: isolate; transition: border-color .15s;
}
.feature:hover { border-color: var(--line-2); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--art, none) center 20% / cover; opacity: .28; filter: grayscale(.4); transition: opacity .3s, filter .3s; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--panel) 40%, rgba(21,23,28,.4)); }
.feature:hover::before { opacity: .5; filter: none; }
.feature.wide { grid-column: span 8; }
.feature h3 { font-size: 24px; line-height: .95; }
.feature p { color: var(--text-2); max-width: 46ch; }
.feature .sticker { position: absolute; top: 16px; right: 16px; }
.feature-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--brand); color: #fff; margin-bottom: 6px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps3 div { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.steps3 div::before { counter-increment: s; content: "0" counter(s); display: block; font: 700 13px var(--f-mono); color: var(--mint); margin-bottom: 16px; }
.steps3 h3 { font-size: 20px; margin-bottom: 8px; }
.steps3 p { color: var(--text-2); }
.cta-band {
    margin: 0 auto 72px; max-width: calc(1360px - 2 * clamp(16px, 5vw, 64px)); padding: 56px clamp(20px, 5vw, 56px);
    border-radius: var(--r-lg); background: var(--brand); position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 1.4px) 0 0 / 6px 6px; pointer-events: none; }
.cta-band img { width: 120px; height: auto; margin-bottom: 18px; }
.cta-band h2 { font-size: clamp(36px, 5vw, 68px); line-height: .9; margin-bottom: 12px; }
.cta-band p { color: var(--brand-ink); font-size: 16px; }
.cta-band .btn-mint { position: relative; z-index: 1; height: 52px; padding: 0 26px; font-size: 16px; box-shadow: var(--hard); border: 1.5px solid #000; }

.auth-wrap { min-height: calc(100vh - 61px); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; border-right: 1px solid var(--line); }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--splash) center 20% / cover no-repeat; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1px 1px, rgba(0,0,0,.5) 1px, transparent 1.4px) 0 0 / 4px 4px, linear-gradient(0deg, var(--bg) 8%, rgba(12,13,16,.25) 60%); }
.auth-art blockquote { margin: 0; font-size: clamp(32px, 3.4vw, 50px); line-height: .9; max-width: 14ch; }
.auth-art blockquote em { font-style: normal; background: var(--mint); color: var(--mint-ink); padding: 0 .1em; }
.auth-art cite { display: block; margin-top: 14px; font: 500 12px var(--f-body); color: var(--text-2); font-style: normal; text-transform: none; }
.auth-side { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 42px; line-height: .9; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); margin-bottom: 24px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.guest .toasts { top: 72px; }

.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 16px; }
.error-code { font: 900 clamp(110px, 20vw, 220px)/.8 var(--f-sans); font-variation-settings: "wdth" 125; color: var(--panel-3); }
.error-page h1 { font-size: clamp(26px, 3.6vw, 40px); max-width: 20ch; }

.legal { display: flex; align-items: center; gap: 14px; padding: 20px 24px 28px; max-width: 1240px; width: 100%; margin: 0 auto; color: var(--faint); font-size: 11px; line-height: 1.5; border-top: 1px solid var(--line); }
.legal img { width: 52px; height: auto; opacity: .4; flex: none; }

/* Sélecteur de joueur (mode dev) */
.devbar { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: var(--r); border: 1px dashed var(--yellow); background: rgba(255,210,63,.05); }
.devbar span { font: 600 10px var(--f-body); color: var(--yellow); text-transform: none; }
.devbar select { min-height: 30px; padding: 4px 26px 4px 8px; font-size: 12px; }

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes swap { from { opacity: 0; transform: translateY(30%) rotate(-1.5deg); } }
@keyframes xp-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6) rotate(-6deg); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(-3deg); } 80% { opacity: 1; transform: translate(-50%, -60%) scale(1) rotate(-3deg); } 100% { opacity: 0; transform: translate(-50%, -90%) scale(1) rotate(-3deg); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .grid-dash { grid-template-columns: minmax(0, 1fr) 290px; }
    .hero-stats { grid-template-columns: repeat(3, auto); row-gap: 12px; }
    .hero-stats > div:nth-child(3) { border: 0; }
    .link-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
    .sidebar { display: none; }
    .sidebar.is-open { display: flex; width: min(300px, 86vw); z-index: 60; box-shadow: 20px 0 60px #000; }
    .shell { margin-left: 0; }
    .topbar { padding: 0 14px; gap: 8px; }
    .brand-sm { display: block; }
    .cmdk-trigger { display: none; }
    .only-mobile { display: inline-grid; }
    .main { padding: 16px 14px 100px; }
    .legal { padding-bottom: 100px; }
    .grid-dash { grid-template-columns: 1fr; }
    .tabbar {
        position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
        display: grid; grid-template-columns: repeat(5, 1fr);
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        background: var(--bg-2); border-top: 1px solid var(--line);
    }
    .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; border-radius: var(--r-sm); color: var(--muted); font-size: 10.5px; font-weight: 650; cursor: pointer; }
    .tabbar .is-active { color: var(--text); }
    .tabbar .is-active .ico { color: var(--brand-2); }
    .tabbar .is-active::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 2px; background: var(--brand-2); }
    .tabbar .count { position: absolute; top: 2px; right: 22%; min-width: 15px; height: 15px; border-radius: 8px; background: var(--loss); color: #fff; font: 700 9px/15px var(--f-mono); text-align: center; }
    .toasts { top: 64px; right: 12px; }
    .landing-hero { grid-template-columns: 1fr; padding-top: 44px; }
    .mock { display: none; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .steps3 { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; }
    .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.6); }
}
@media (max-width: 760px) {
    .hero-banner::before { inset: 0; opacity: .5; }
    .hero-banner-inner { padding: 20px 16px 16px; min-height: 0; flex-direction: column; align-items: stretch; }
    .hero-id { align-items: center; gap: 14px; }
    .pfp > img, .pfp > .avatar { width: 68px; height: 68px; }
    .hero-side { align-items: stretch; }
    .hero-ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .rank-card { min-width: 0; padding: 8px; gap: 8px; }
    .rank-card-emblem { width: 36px; height: 36px; }
    .rank-card-tier { font-size: 14px; }
    .hero-stats { grid-template-columns: 1fr 1fr; padding: 12px 16px; row-gap: 12px; }
    .hero-stats > div { margin-right: 0; padding-right: 0; border: 0; }
    .hero-stats dd { font-size: 20px; }
    .squad-sum-body { flex-direction: column; align-items: stretch; }
    .donut { align-self: center; }
    .kpi-value { font-size: 26px; }
    .quest-steps, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .panel, .card { padding: 14px; }
    .panel-flush { padding: 0; }
    .panel-flush > .panel-head { padding: 12px 14px 10px; }
    .panel-head h2 small { display: none; }
    .gcards { grid-template-columns: 1fr; }
    .sumbar { grid-template-columns: auto 1fr; gap: 18px; }
    .sumbar-champs { grid-column: 1 / -1; }
    .verify { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .howto li { text-align: left; }
    .role-pick { grid-template-columns: repeat(3, 1fr); }
    .form-inline { flex-direction: column; align-items: stretch; }
    .features { grid-template-columns: 1fr; }
    .feature, .feature.wide { grid-column: auto; min-height: 210px; }
    .vs-label { min-width: 52px; font-size: 9.5px; }
    .vs-side b { font-size: 12px; min-width: 34px; }
    .roster { grid-template-columns: repeat(2, 1fr); }
    .pcard, .pcard-empty { min-height: 220px; }
    .legal { flex-direction: column; align-items: flex-start; }
    .match-me { flex-wrap: wrap; }
    .landing-proof { width: 100%; }
    .landing-proof div { flex: 1; padding: 10px 12px; }
    .section { padding-top: 56px; padding-bottom: 56px; }
    .split { grid-template-columns: 1fr; }
}

/* ---------- Clips ---------- */
.clips { display: flex; flex-direction: column; gap: 10px; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.clip { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.clip-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--thumb, var(--panel-3)) center / cover; }
.clip-thumb-link { gap: 6px; }
.clip-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; }
.clip-video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.clip figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.clip figcaption b { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip figcaption small { font: 500 10px var(--f-mono); color: var(--muted); }
.clip-add summary { list-style: none; width: fit-content; }
.clip-add summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   v3 — DA « imprimée » : chaque espace a sa couleur, tout ce qui se clique a un contour noir
   et une ombre dure, les titres claquent. Remplace l'ancienne sidebar à liens.
   ========================================================================== */
:root { --sp: var(--brand-2); --sp-ink: #fff; --c-qg: #4ff0c8; --c-games: #3a63ff; --c-arcade: #ff7ab8; --c-cards: #ffd23f; --c-season: #ff8f3d; --c-notebook: #e9e4d6; }
body.space-qg { --sp: var(--c-qg); --sp-ink: #04241c; }
body.space-games { --sp: var(--c-games); --sp-ink: #fff; }
body.space-arcade { --sp: var(--c-arcade); --sp-ink: #2a0718; }
body.space-cards { --sp: var(--c-cards); --sp-ink: #1d1600; }
body.space-season { --sp: var(--c-season); --sp-ink: #2a1100; }
body.space-notebook { --sp: var(--c-notebook); --sp-ink: #16171b; }

/* Sidebar : les 6 espaces en gros boutons */
.spaces { display: flex; flex-direction: column; gap: 6px; }
.space-link {
    --c: var(--brand-2);
    position: relative; display: flex; align-items: center; gap: 10px;
    padding: 8px 10px 8px 8px; border-radius: 10px; border: 2px solid transparent;
    color: var(--text-2); transition: background .15s, transform .15s var(--ease), box-shadow .15s;
}
.space-link.sp-qg { --c: var(--c-qg); --ink: #04241c; }
.space-link.sp-games { --c: var(--c-games); --ink: #fff; }
.space-link.sp-arcade { --c: var(--c-arcade); --ink: #2a0718; }
.space-link.sp-cards { --c: var(--c-cards); --ink: #1d1600; }
.space-link.sp-season { --c: var(--c-season); --ink: #2a1100; }
.space-link.sp-notebook { --c: var(--c-notebook); --ink: #16171b; }
.space-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--panel-2); color: var(--c); border: 2px solid var(--line-2); transition: .15s; }
.space-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.space-txt b { font: 900 15px/1.1 var(--f-sans); font-variation-settings: "wdth" 118; text-transform: uppercase; color: var(--text); }
.space-txt small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.space-link:hover { background: var(--panel); }
.space-link:hover .space-ico { transform: rotate(-6deg); border-color: var(--c); }
.space-link.is-active { background: var(--c); border-color: #000; box-shadow: 4px 4px 0 #000; transform: translate(-2px, -2px); }
.space-link.is-active .space-ico { background: #000; color: var(--c); border-color: #000; }
.space-link.is-active .space-txt b, .space-link.is-active .space-txt small { color: var(--ink); }
.space-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--loss); color: #fff; font: 700 11px/20px var(--f-mono); text-align: center; border: 1.5px solid #000; }
.side-me { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-me .xp-bar { height: 8px; border: 1.5px solid #000; }
.lvl-me { min-width: 36px; height: 36px; font-size: 15px; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
.side-out { padding: 0 4px; }
.side-out .btn-link { font-size: 12px; color: var(--muted); }

.top-space { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--sp); color: var(--sp-ink); font: 900 13px/1 var(--f-sans); font-variation-settings: "wdth" 118; text-transform: uppercase; border: 2px solid #000; }
.top-bell { position: relative; }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--loss); color: #fff; font: 700 9.5px/16px var(--f-mono); text-align: center; }

/* Onglets d'espace */
.space-tabs { position: sticky; top: var(--top-h); z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
.space-tabs-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.space-tabs a {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: 7px 13px; border-radius: 8px; border: 2px solid var(--line-2);
    font-weight: 750; font-size: 13.5px; color: var(--text-2); transition: .12s;
}
.space-tabs a:hover { border-color: var(--sp); color: var(--text); }
.space-tabs a.is-active { background: var(--sp); color: var(--sp-ink); border-color: #000; box-shadow: 3px 3px 0 #000; transform: translate(-1px, -1px); }
.tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--loss); color: #fff; font: 700 10px/18px var(--f-mono); text-align: center; }

/* Boutons imprimés */
.btn-primary, .btn-mint, .btn-danger { border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.btn-primary:hover, .btn-mint:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.btn-primary:active, .btn-mint:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.btn { font-weight: 800; }

/* Titres de page plus présents, accent de l'espace */
.page-head h1 { font-size: clamp(34px, 5vw, 58px); }
.page-head .eyebrow, .hub-head .eyebrow { color: var(--sp); }
.panel-head h2::before { background: var(--sp); width: 10px; height: 10px; border: 1.5px solid #000; }
.panel { border-radius: 14px; }

/* Bulle du coach */
.coach-fab {
    position: fixed; z-index: 45; right: 22px; bottom: 22px;
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px;
    background: var(--mint); color: var(--mint-ink); border: 2px solid #000; border-radius: 40px; box-shadow: 4px 4px 0 #000;
    font: 900 14px/1 var(--f-sans); font-variation-settings: "wdth" 118; text-transform: uppercase;
    transition: transform .15s var(--ease), box-shadow .15s;
}
.coach-fab-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #000; color: var(--mint); }
.coach-fab:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 6px 6px 0 #000; }

/* Hubs */
.hub-head { margin: 0 0 24px; }
.hub-h1 { font-size: clamp(44px, 7vw, 90px); line-height: .85; }
.hub-head .lead { margin-top: 12px; font-size: 16px; color: var(--text-2); max-width: 60ch; }

.cabinets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cab {
    position: relative; grid-column: span 2; display: flex; flex-direction: column; min-height: 330px;
    border: 2px solid #000; border-radius: 16px 16px 10px 10px; background: var(--cab, var(--panel-2)); box-shadow: 6px 6px 0 #000;
    overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s;
}
.cab:hover { transform: translate(-3px, -4px) rotate(-.6deg); box-shadow: 10px 10px 0 #000; }
.cab-quiz, .cab-bets { grid-column: span 3; }
.cab-quiz { --cab: #0f7a62; } .cab-bets { --cab: #b8880e; } .cab-tonight { --cab: #b8306f; } .cab-memes { --cab: #5b6270; } .cab-cards { --cab: #1a46e9; }
.cab-screen { position: relative; flex: 1; margin: 12px 12px 0; border: 2px solid #000; border-radius: 10px; background: var(--art) center 22% / cover no-repeat; min-height: 170px; overflow: hidden; }
.cab-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; transition: opacity .3s; }
.cab:hover .cab-screen::after { opacity: .3; }
.cab-label { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; color: #fff; }
.cab-label b { font-size: clamp(28px, 3vw, 40px); line-height: .9; text-shadow: 2px 2px 0 #000; }
.cab-label > span:last-child { font-size: 13.5px; opacity: .92; max-width: 40ch; }
.cab-k { font: 600 13px var(--f-body); text-transform: none; letter-spacing: 0; }
.cab-live { position: absolute; top: 22px; right: 22px; }

.notebook-quote { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px; margin-bottom: 18px; border-radius: 14px; background: #f4f1e8; color: #16171b; border: 2px solid #000; box-shadow: 5px 5px 0 #000; }
.notebook-quote blockquote { margin: 0; font-size: clamp(22px, 3vw, 34px); line-height: 1; text-transform: none; font-variation-settings: "wdth" 110; }
.nb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nb-page {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 280px; padding: 52px 18px 18px;
    border-radius: 6px 14px 14px 14px; background: #f4f1e8; color: #16171b; border: 2px solid #000; box-shadow: 5px 5px 0 #000;
    background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(26,70,233,.12) 27px 28px);
    transition: transform .18s var(--ease), box-shadow .18s;
}
.nb-page:hover { transform: translate(-2px, -3px) rotate(.6deg); box-shadow: 8px 8px 0 #000; }
.nb-tab { position: absolute; top: -2px; left: -2px; padding: 8px 14px; background: var(--c-notebook); border: 2px solid #000; border-radius: 6px 12px 0 0; font-size: 16px; }
.nb-page:nth-child(1) .nb-tab { background: var(--mint); } .nb-page:nth-child(2) .nb-tab { background: var(--pink); }
.nb-page:nth-child(3) .nb-tab { background: var(--yellow); } .nb-page:nth-child(4) .nb-tab { background: #9bb5ff; }
.nb-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #16171b; color: #f4f1e8; }
.nb-page p { font-size: 14px; line-height: 1.45; flex: 1; }
.nb-n { font: 600 12px var(--f-body); text-transform: none; color: #555; }
.nb-n b { font-size: 30px; color: #16171b; }

/* Pop-up badge */
.badgepop-stack { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 14px 0; }
.badgepop-item { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: slam .55s calc(.2s + var(--d)) cubic-bezier(.2, 1.4, .4, 1) both; }
.badgepop-item p { color: var(--text-2); font-size: 15px; }
.sticker-xl { font-size: clamp(28px, 6vw, 48px); padding: 8px 20px 6px; box-shadow: 6px 6px 0 #000; border-width: 3px; }
@keyframes slam { from { opacity: 0; transform: scale(2.6) rotate(-14deg); } }

@media (max-width: 1100px) {
    .cabinets { grid-template-columns: repeat(2, 1fr); }
    .cab, .cab-quiz, .cab-bets { grid-column: span 1; }
    .cab-cards { grid-column: span 2; }
    .nb-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
    .space-tabs { top: var(--top-h); }
    .space-tabs-in { padding: 8px 14px; }
    .coach-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; padding: 6px; }
    .coach-fab-txt { display: none; }
    .tabbar .is-active { color: var(--text); }
    .tabbar .is-active .ico { color: var(--sp); }
    .tabbar .is-active::before { background: var(--sp); }
}
@media (max-width: 640px) {
    .cabinets { grid-template-columns: 1fr; }
    .cab, .cab-quiz, .cab-bets, .cab-cards { grid-column: auto; min-height: 280px; }
    .nb-grid { grid-template-columns: 1fr; }
    .top-space { display: none; }
}

/* Bandeau Tribunal sur une game */
.trib-strip { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--loss); color: #fff; border: 2px solid #000; box-shadow: 5px 5px 0 #000; }
.trib-strip.is-closed { background: #f4f1e8; color: #16171b; }
.trib-strip-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #000; color: #fff; }
.trib-strip b { font-size: 20px; line-height: 1; }
.trib-strip p { margin-top: 4px; font-size: 14px; opacity: .9; }
.trib-strip .btn-primary { background: #000; border-color: #000; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
@media (max-width: 640px) { .trib-strip { flex-wrap: wrap; } }
.side-me-top > .lvl { flex: none; }

/* Accueil public : éventail de cartes */
.fan { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
.fan .pcd { position: absolute; width: 290px; }
.fan .fan-0 { --rz: -12deg; transform: translateX(-150px) translateY(30px) rotate(var(--rz)) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); z-index: 1; }
.fan .fan-1 { --rz: 0deg; transform: translateY(-14px) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); z-index: 3; }
.fan .fan-2 { --rz: 12deg; transform: translateX(150px) translateY(30px) rotate(var(--rz)) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); z-index: 2; }
.fan .pcd:hover { z-index: 4; }
.landing-hero .landing-title .stroke { color: var(--yellow); }
@media (max-width: 1023px) { .fan { display: flex; height: 420px; transform: scale(.8); margin: -40px 0; } }
@media (max-width: 560px) { .fan { transform: scale(.6); margin: -90px -60px; } }

/* Emotes */
.emote { display: inline-block; object-fit: contain; image-rendering: auto; }
.toast-emote { flex: none; width: 40px; height: 40px; margin: -6px 0 -6px -4px; }
.toast-emote img { width: 40px; height: 40px; }
.empty > .ico { display: none; }
.empty::before { content: ""; width: 72px; height: 72px; background: url('https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/assets/loadouts/summoneremotes/champions/rammus/em_rammus_ok_inventory.png') center / contain no-repeat; }
.mission { padding-right: 120px; }
.mission-emote { position: absolute; right: 16px; bottom: 14px; width: 96px; height: 96px; transform: rotate(6deg); transition: transform .2s var(--ease); }
.mission:hover .mission-emote { transform: rotate(-4deg) scale(1.08); }
.lvlup-emote { width: 110px; height: 110px; animation: lu-num .6s .05s cubic-bezier(.2, 1.6, .4, 1) both; }
.road-rules { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 12px var(--f-mono); color: var(--muted); }
.road-rules b { color: var(--text); font-weight: 600; margin-right: 4px; }
.road-rules a { color: var(--mint); display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 520px) { .mission { padding-right: 16px; padding-top: 70px; } .mission-emote { top: 10px; bottom: auto; width: 64px; height: 64px; } }

/* Confirmation maison */
.confirm .modal-backdrop { background: rgba(0,0,0,.72); }
.confirm-box { width: min(420px, 100%); padding: 24px; border: 2px solid #000; box-shadow: 8px 8px 0 #000; background: #f4f1e8; color: #16171b; animation: confirm-in .22s cubic-bezier(.2, 1.4, .4, 1) both; }
.confirm-q { font: 800 20px/1.2 var(--f-sans); font-variation-settings: "wdth" 110; margin-bottom: 20px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-actions .btn:not(.btn-mint) { background: #fff; color: #16171b; border: 2px solid #000; }
@keyframes confirm-in { from { opacity: 0; transform: scale(.9) rotate(-1.5deg); } }
.sound-btn .snd-on { display: none; } .sound-btn.is-on .snd-on { display: inline; } .sound-btn.is-on .snd-off { display: none; }
.sound-btn.is-on { color: var(--mint); }

/* ==========================================================================
   v4 — passe de sobriété : 90 % calme, 10 % personnalité.
   Typo d'interface normale (non étirée) sur les pages fonctionnelles, gros titres réservés aux moments forts.
   ========================================================================== */
.space-ico img { width: 26px; height: 26px; object-fit: contain; }
.space-ico .avatar { width: 30px; height: 30px; border-radius: 6px; }
.space-link.is-active .space-ico { background: #000; }
.tab-art { display: grid; place-items: center; width: 24px; height: 24px; }
.tab-art img, .tab-art .avatar { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.tabbar a:not(.is-active) .tab-art img { filter: grayscale(1) brightness(.8); }

/* Titres de page : sobres, hiérarchie nette (comme op.gg / blitz) */
.page-head h1, .hub-h1 {
    font-variation-settings: "wdth" 100; font-weight: 800; text-transform: none; letter-spacing: -.025em;
    font-size: clamp(26px, 3.2vw, 36px); line-height: 1.05;
}
.page-head { margin-bottom: 24px; }
.hub-head { margin: 0 0 24px; }
.page-head p.lead, .hub-head .lead { font-size: 15px; color: var(--text-2); max-width: 70ch; }
/* Les moments forts gardent l'étiré */
.match-verdict, .lvlup-n { font-variation-settings: "wdth" 125; text-transform: uppercase; }
.qg-sec-head h2 { font-variation-settings: "wdth" 100; text-transform: none; font-weight: 800; letter-spacing: -.02em; font-size: 22px; }
.panel-head h2 { font-variation-settings: "wdth" 100; text-transform: none; letter-spacing: -.01em; font-size: 15px; }
.cab-label b, .arc b, .mission-title, .nb-tab, .feature h3 { font-variation-settings: "wdth" 112; }

/* Style imprimé réservé : panneaux calmes, ombres dures seulement sur les actions et récompenses */
.btn:not(.btn-primary):not(.btn-mint):not(.btn-danger) { border-width: 1px; }
.q3, .nb-page, .notebook-quote { box-shadow: 3px 3px 0 #000; }
.sticker { box-shadow: 1.5px 1.5px 0 #000; }
.cab { box-shadow: 4px 4px 0 #000; }

/* Page joueur (profil) */
.sheet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.sheet-card { position: sticky; top: calc(var(--top-h) + 70px); }
.sheet-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sheet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sheet-name { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.sheet-ranks { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-rank { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--tc); }
.sheet-rank span { display: flex; flex-direction: column; line-height: 1.2; }
.sheet-rank b { color: var(--tc); font-size: 15px; }
.sheet-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.sheet-curve { grid-column: 1 / -1; }
.radar { width: 100%; max-width: 260px; display: block; margin: 0 auto; }
.radar-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-lbl { fill: var(--muted); font: 600 8.5px var(--f-body); text-transform: none; }
.radar-val { fill: rgba(79, 240, 200, .22); stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; }
.radar-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; }
.radar-legend li { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); }
.radar-legend b { color: var(--text); font-size: 11px; }
.pool td { padding: 6px 12px; }
.pool-champ { display: flex; align-items: center; gap: 8px; }
.pool-champ img { border-radius: 50%; }
.pool-wr { display: inline-block; min-width: 38px; font: 600 12px var(--f-mono); }
.pool-bar { display: inline-block; vertical-align: middle; width: 54px; height: 5px; background: var(--loss); margin-left: 6px; }
.pool-bar span { display: block; height: 100%; width: var(--w); background: var(--win); }
.curve-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.curve-head b { font-size: 18px; }
.curve { width: 100%; height: 140px; display: block; overflow: visible; }
.curve-line { fill: none; stroke: var(--mint); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.curve-dot { fill: var(--bg); stroke: var(--mint); stroke-width: 2; vector-effect: non-scaling-stroke; }
.edit-profile summary { list-style: none; }
.edit-profile summary::-webkit-details-marker { display: none; }
@media (max-width: 1180px) { .sheet { grid-template-columns: 1fr; } .sheet-card { position: static; display: flex; justify-content: center; } }
@media (max-width: 760px) { .sheet-grid { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }

/* ==========================================================================
   v5 — DA « Jeu » : une seule couleur d'accent (menthe), neutres graphite, pas de blocs colorés côte à côte.
   ========================================================================== */
:root { --c-qg: var(--mint); --c-games: var(--mint); --c-arcade: var(--mint); --c-cards: var(--mint); --c-season: var(--mint); --c-notebook: var(--mint); --sp: var(--mint); --sp-ink: var(--mint-ink); }
body.space-qg, body.space-games, body.space-arcade, body.space-cards, body.space-season, body.space-notebook, body.space-none { --sp: var(--mint); --sp-ink: var(--mint-ink); }
.space-link, .space-link[class*="sp-"] { --c: var(--mint); --ink: var(--mint-ink); }
.space-link { padding: 10px; }
.space-link.is-active { background: var(--panel-2); border-color: var(--line-2); box-shadow: none; transform: none; }
.space-link.is-active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mint); }
.space-link.is-active .space-ico { background: var(--panel-3); border-color: var(--mint); }
.space-link.is-active .space-txt b, .space-link.is-active .space-txt small { color: var(--text); }
.space-txt b { font-size: 15px; font-variation-settings: normal; text-transform: none; font-weight: 800; }
.top-space { background: transparent; color: var(--text); border: 0; padding: 0; font-variation-settings: normal; text-transform: none; font-size: 15px; }
.space-tabs a { border: 1px solid transparent; font-weight: 700; }
.space-tabs a:hover { border-color: var(--line-2); }
.space-tabs a.is-active { background: var(--panel-2); color: var(--text); border-color: var(--line-2); box-shadow: inset 0 -2px 0 var(--mint); transform: none; }
.panel-head h2::before { background: var(--mint); border: 0; width: 6px; height: 6px; border-radius: 50%; }
.side-me { padding: 0 2px; }
.side-me .lpb { width: 100%; }
.top-lp { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.top-lp img { width: 22px; height: 22px; object-fit: contain; }
.top-lp b { font-family: var(--f-mono); color: var(--mint); }
.cab, .cab-quiz, .cab-bets, .cab-tonight, .cab-memes, .cab-cards { --cab: var(--panel-2); }
.cab-screen::after { display: none; }
.btn-danger { box-shadow: none; }
@media (max-width: 1023px) {
    .tabbar .is-active .ico { color: var(--mint); }
    .tabbar .is-active::before { background: var(--mint); }
}
@media (max-width: 640px) { .top-lp { font-size: 12px; } .top-lp b + * { display: none; } }
.top-lp { white-space: nowrap; }
@media (max-width: 640px) { .top-lp-l { display: none; } }
.in-game .lvq { display: none !important; }

/* ==========================================================================
   v6 — DA « Client LoL » : bleu nuit, cadres or hextech, accent menthe/hextech.
   ========================================================================== */
:root {
    --bg: #010a13; --bg-2: #061220; --panel: #0a1428; --panel-2: #0f1c33; --panel-3: #16263f;
    --line: #1e2d40; --line-2: #2b3d55;
    --text: #f0e6d2; --text-2: #a8b3c2; --muted: #7b8798; --faint: #4f5b6b;
    --gold: #c8aa6e; --gold-2: #785a28; --gold-3: #f0e6d2;
    --f-client: "Cinzel", "Times New Roman", serif;
    --f-pixel: "Press Start 2P", ui-monospace, monospace;
}
:root { --top-h: 64px; --social-w: 264px; }
body.app { background: var(--bg); }
body.app.cl .shell { margin-left: 0; min-width: 0; }

/* Barre du haut façon client */
.cl-top {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px;
    height: var(--top-h); padding: 0 18px; background: #010a13;
    border-bottom: 1px solid var(--gold-2);
    box-shadow: 0 1px 0 #000;
}
.cl-logo img { width: 86px; height: auto; display: block; }
.cl-play {
    position: relative; display: grid; place-items: center; height: 40px; padding: 0 30px 0 24px;
    background: var(--gold-2); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    transition: transform .15s var(--ease), filter .15s;
}
.cl-play span {
    position: absolute; inset: 1px 1px 1px 1px; display: grid; place-items: center; padding: 0 26px 0 20px;
    background: linear-gradient(180deg, #0f2a35, #071a22); clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
    font: 700 16px/1 var(--f-client); letter-spacing: .1em; text-transform: uppercase; color: var(--mint);
}
.cl-play::after { content: "Jouer"; visibility: hidden; font: 700 16px/1 var(--f-client); letter-spacing: .1em; padding: 0 4px; }
.cl-play:hover { filter: brightness(1.25); }
.cl-play:hover span { color: #fff; }
.cl-play:active { transform: scale(.97); }
.cl-play.is-on { background: var(--mint); }
.cl-nav { display: flex; align-items: stretch; gap: 4px; height: 100%; }
.cl-nav a {
    position: relative; display: flex; align-items: center; gap: 6px; padding: 0 12px;
    font: 700 13px/1 var(--f-client); letter-spacing: .08em; text-transform: uppercase; color: #a09b8c; transition: color .15s;
}
.cl-nav a:hover { color: var(--gold-3); }
.cl-nav a.is-active { color: var(--gold-3); }
.cl-nav a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--gold); }
.cl-n { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--loss); color: #fff; font: 700 10px/17px var(--f-mono); font-style: normal; text-align: center; letter-spacing: 0; }
.cl-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cl-ic { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; transition: .15s; }
.cl-ic:hover { color: var(--gold-3); border-color: var(--gold-2); }
.cl-cur { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--gold-3); transition: border-color .15s; }
.cl-cur:hover { border-color: var(--gold); }
.cl-cur img { width: 22px; height: 22px; object-fit: contain; }
.cl-cur b { font-size: 13px; }
.cl-cur small { font: 600 10px var(--f-mono); color: var(--muted); }
.cl-me { display: block; padding: 2px; border-radius: 50%; border: 2px solid var(--gold-2); transition: border-color .15s; }
.cl-me:hover { border-color: var(--gold); }
.cl-menu { display: none; }

/* Sous-onglets */
.space-tabs { top: var(--top-h); background: rgba(1,10,19,.92); border-bottom: 1px solid var(--line); }
.space-tabs-in { max-width: none; padding: 0 24px; gap: 2px; }
.space-tabs a, .space-tabs a:hover { border: 0; border-radius: 0; background: none; padding: 13px 12px; font: 700 12px/1 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--muted); box-shadow: none; transform: none; }
.space-tabs a:hover { color: var(--gold-3); }
.space-tabs a.is-active { background: none; color: var(--gold-3); box-shadow: inset 0 -2px 0 var(--gold); }

/* Corps : contenu + panneau squad à droite */
.cl-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--social-w); align-items: start; }
.cl-social.sidebar {
    position: sticky; top: var(--top-h); inset: auto; height: calc(100vh - var(--top-h)); width: auto;
    padding: 14px 12px; gap: 10px; background: #050f1b; border-right: 0; border-left: 1px solid var(--line); z-index: 10;
}
.cs-head { position: relative; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cs-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-name small { font: 700 10px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--gold); }
.cs-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-switch { position: relative; display: grid; place-items: center; width: 26px; height: 26px; color: var(--muted); }
.cs-switch select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cs-sec { display: flex; justify-content: space-between; font: 700 10.5px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--muted); padding: 2px 4px; }
.cs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-list a { display: grid; grid-template-columns: 36px minmax(0, 1fr) 26px; align-items: center; gap: 10px; padding: 6px; transition: background .15s; }
.cs-list a:hover { background: var(--panel); }
.cs-av { position: relative; display: block; }
.cs-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--faint); border: 2px solid #050f1b; }
.cs-list .is-live .cs-dot { background: #0acbe6; }
.cs-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cs-who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-who small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-list .is-live small { color: #0acbe6; }
.cs-list .is-me b { color: var(--gold-3); }
.cs-rank { width: 26px; height: 26px; object-fit: contain; }
.cs-invite { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 36px; margin-top: 4px; border: 1px solid var(--gold-2); background: none; color: var(--gold-3); font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.cs-invite:hover { background: var(--panel); border-color: var(--gold); }
.cs-more { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.cs-more a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; font-size: 13px; color: var(--text-2); }
.cs-more a:hover { color: var(--gold-3); background: var(--panel); }

/* Titres et cadres façon client */
.page-head h1, .hub-h1, .home-name, .t-h1, .t-h2 { font-family: var(--f-client); font-weight: 700; letter-spacing: .02em; color: var(--gold-3); text-transform: none; }
.panel, .home-box, .rk2 { border-color: var(--line-2); border-radius: 4px; background: var(--panel); }
.home-box h2, .panel-head h2 { font-family: var(--f-client); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--gold-3); }
.panel-head h2::before { display: none; }
.htile, .home-hero { border-radius: 4px; border-color: var(--gold-2); }
.htile b { font-family: var(--f-client); letter-spacing: .04em; }
.htile:hover { border-color: var(--gold); }
.home-cta { border-radius: 4px; border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold-2); }
.home-cta:hover { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); transform: translateY(-1px); }
.home-cta-go { border-radius: 2px; }
.btn-primary, .btn-mint { border: 1px solid var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold-2); border-radius: 3px; }
.btn-primary:hover, .btn-mint:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold); }
.btn-primary:active, .btn-mint:active { transform: translateY(1px); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold-2); }
.btn-primary { background: #1e2328; color: var(--gold-3); }

@media (max-width: 1279px) {
    .cl-body { grid-template-columns: minmax(0, 1fr); }
    .cl-social.sidebar { display: none; position: fixed; top: 0; right: 0; left: auto; height: 100vh; width: min(300px, 86vw); z-index: 60; box-shadow: -20px 0 60px #000; border-left: 1px solid var(--gold-2); }
    .cl-social.sidebar.is-open { display: flex; }
    .cl-menu { display: grid; }
}
@media (max-width: 1100px) { .cl-nav a { padding: 0 8px; font-size: 12px; } .cl-play { padding: 0 24px 0 18px; } }
@media (max-width: 1023px) {
    .cl-top { gap: 10px; padding: 0 10px; height: 56px; }
    :root { --top-h: 56px; }
    .cl-nav, .cl-play, .cl-right [data-cmdk-open], .cl-right .sound-btn { display: none; }
    .cl-logo img { width: 74px; }
    .cl-cur { height: 30px; padding: 0 8px 0 4px; }
    .tabbar { background: #010a13; border-top: 1px solid var(--gold-2); }
    .tabbar .is-active { color: var(--gold-3); }
    .tabbar .is-active::before { background: var(--gold); }
    .tabbar .tab-play .tab-art { outline: 1px solid var(--gold-2); outline-offset: 2px; }
    .space-tabs-in { padding: 0 10px; }
}
@media (max-width: 380px) { .cl-cur:first-of-type { display: none; } }

/* ==========================================================================
   v7 — DA « Client moderne » (tokens ; le restylage suit plus bas)
   ========================================================================== */
:root {
    --bg: #070a10; --bg-2: #0a0e16; --panel: #0e131c; --panel-2: #131a26; --panel-3: #1a2332;
    --line: #1a2230; --line-2: #263043; --text: #eef2f7; --text-2: #a9b3c3; --muted: #758196; --faint: #4b5567;
    --gold: #e8c26a; --gold-2: #8a6a2c; --gold-3: #f6e7c1;
    --f-display: "Archivo", system-ui, sans-serif;
    --cut: 10px;
}
:root { --f-client: "Archivo Narrow", "Archivo", sans-serif; --f-display: "Archivo Narrow", "Archivo", sans-serif; --gold-3: #eef2f7; --gold-2: #2a3446; }

/* v7 — restylage moderne de la coquille */
body.app { background: var(--bg); }
.cl-top { background: rgba(7,10,16,.96); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35); gap: 20px; }
.cl-play { background: none; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); padding: 0; height: 42px; }
.cl-play::after { display: none; }
.cl-play span { position: static; display: grid; place-items: center; height: 100%; padding: 0 34px; clip-path: none; background: var(--mint); color: var(--mint-ink); font: 800 17px/1 var(--f-display); letter-spacing: .06em; transition: background .15s; }
.cl-play:hover { filter: none; }
.cl-play:hover span { background: #7ff7da; color: var(--mint-ink); }
.cl-play.is-on span { background: #fff; }
.cl-nav a { font: 700 15px/1 var(--f-display); letter-spacing: .06em; color: var(--muted); }
.cl-nav a:hover, .cl-nav a.is-active { color: var(--text); }
.cl-nav a.is-active::after { background: var(--mint); height: 3px; bottom: 0; left: 12px; right: 12px; }
.cl-cur { border-radius: 6px; border-color: var(--line-2); background: var(--panel); color: var(--text); }
.cl-cur:hover { border-color: var(--mint); }
.cl-me { border-color: var(--line-2); }
.cl-me:hover { border-color: var(--mint); }
.cl-ic:hover { color: var(--text); border-color: var(--line-2); }
.space-tabs { background: rgba(7,10,16,.9); }
.space-tabs a, .space-tabs a:hover { font: 700 13.5px/1 var(--f-display); letter-spacing: .06em; }
.space-tabs a:hover { color: var(--text); }
.space-tabs a.is-active { color: var(--text); box-shadow: inset 0 -3px 0 var(--mint); }
.cl-social.sidebar { background: var(--bg-2); }
.cs-name small { color: var(--mint); }
.cs-invite { border-color: var(--line-2); color: var(--text); border-radius: 6px; }
.cs-invite:hover { border-color: var(--mint); }
.cs-more a:hover { color: var(--text); }
.page-head h1, .hub-h1, .home-name, .t-h1, .t-h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--text); line-height: .95; }
.home-box h2, .panel-head h2 { font-family: var(--f-display); font-size: 16px; letter-spacing: .05em; color: var(--text); }
.panel, .home-box, .rk2 { border-radius: 10px; border-color: var(--line); background: var(--panel); }
.htile, .home-hero { border-radius: 12px; border-color: var(--line); }
.htile b { font-family: var(--f-display); font-size: 30px; text-transform: uppercase; letter-spacing: .02em; }
.htile:hover { border-color: var(--mint); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.home-cta { border-radius: 0; border: 0; box-shadow: none; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.home-cta:hover { box-shadow: none; transform: translateY(-2px); filter: brightness(1.06); }
.home-cta b { font-family: var(--f-display); font-size: 28px; text-transform: uppercase; }
.btn-primary, .btn-mint { border: 0; box-shadow: none; border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); font-family: var(--f-display); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.btn-primary:hover, .btn-mint:hover, .btn-primary:active, .btn-mint:active { box-shadow: none; }
.btn-primary { background: var(--panel-3); color: var(--text); }
.btn-primary:hover { background: #22304a; }
.tabbar { background: rgba(7,10,16,.97) !important; border-top: 1px solid var(--line) !important; }
.tabbar .is-active { color: var(--text) !important; }
.tabbar .is-active::before { background: var(--mint) !important; }
.tabbar .tab-play .tab-art { outline: 0 !important; }

/* Ambiance : fond vivant (splash lent + particules), cf. features/atmosphere.js */
.atmo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmo-art { position: absolute; inset: -6%; background: var(--atmo) center 25% / cover no-repeat; opacity: .14; animation: atmo-drift 40s ease-in-out infinite alternate; }
.atmo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,16,.55), var(--bg) 70%); }
.atmo canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
@keyframes atmo-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-2%, 1%); } }
@media (prefers-reduced-motion: reduce) { .atmo-art { animation: none; } }
.main, .cl-body { position: relative; }

/* ==========================================================================
   v8 — DA « Hextech Pop × Arcane » : nuit violette, néons rose/cyan, boutons jaunes en relief.
   ========================================================================== */
:root {
    --bg: #0f0a24; --bg-2: #140e30; --panel: #1c1542; --panel-2: #241b52; --panel-3: #2e2466;
    --line: #2f2763; --line-2: #42379a; --text: #ffffff; --text-2: #cfc9f2; --muted: #9089c4; --faint: #615a96;
    --accent: #ffd23f; --accent-ink: #3a2500; --accent-edge: #d99a00;
    --neon: #ff2d8a; --neon-2: #16e0ff; --mint: #3ff7c9; --mint-ink: #04291f; --reward: #ffcf4a;
    --gold: #ffcf4a; --gold-2: #42379a; --gold-3: #ffffff;
    --f-display: "Lilita One", "Nunito", sans-serif; --f-poster: "Anton", "Archivo Narrow", sans-serif; --f-body: "Nunito", system-ui, sans-serif;
    --f-client: "Lilita One", "Nunito", sans-serif; --f-sans: "Nunito", system-ui, sans-serif;
    --r-card: 18px; --drop: 0 5px 0 rgba(6,3,20,.75);
}
body.app, body.guest { font-family: var(--f-body); background: var(--bg); }
body.app::after, body.guest::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(900px 600px at 105% -10%, rgba(255,45,138,.20), transparent 60%), radial-gradient(800px 600px at -10% 110%, rgba(22,224,255,.16), transparent 60%); }
.atmo-art { opacity: .12; }
.atmo::after { background: linear-gradient(180deg, rgba(15,10,36,.5), rgba(15,10,36,.92) 70%); }

/* Titres */
.page-head h1, .hub-h1, .home-name, .t-h1, .t-h2, .k-h1, .k-h2 { font-family: var(--f-poster); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.home-box h2, .panel-head h2, h2.x, h3.x { font-family: var(--f-display); font-weight: 400; text-transform: none; letter-spacing: .01em; font-size: 20px; color: #fff; }

/* Boutons « jeu mobile » */
.btn-mint, .btn-primary, .cl-play span, .home-cta, .k-play, .tour-next, .t-play {
    font-family: var(--f-display) !important; font-weight: 400 !important; letter-spacing: .02em !important; text-transform: none !important;
}
.btn-mint, .k-play, .tour-next, .t-play, .cl-play span {
    background: var(--accent) !important; color: var(--accent-ink) !important; clip-path: none !important; border: 0 !important; border-radius: 14px !important;
    box-shadow: inset 0 -5px 0 var(--accent-edge), var(--drop) !important; text-shadow: 0 1px 0 rgba(255,255,255,.5);
    transition: transform .12s var(--ease), box-shadow .12s, filter .12s !important;
}
.btn-mint:hover, .k-play:hover, .tour-next:hover, .t-play:hover, .cl-play:hover span { filter: brightness(1.07); transform: translateY(-2px); }
.btn-mint:active, .k-play:active, .tour-next:active, .t-play:active, .cl-play:active span { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--accent-edge), 0 2px 0 rgba(6,3,20,.75) !important; }
.btn-primary { background: var(--neon) !important; color: #fff !important; border: 0 !important; border-radius: 14px !important; clip-path: none !important; box-shadow: inset 0 -5px 0 #b3105c, var(--drop) !important; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn { border-radius: 12px; font-family: var(--f-body); font-weight: 800; }
.btn-ghost, .btn-secondary { background: var(--panel-2); border: 2px solid var(--line-2); color: #fff; box-shadow: var(--drop); }

/* Barre du haut */
.cl-top { background: rgba(15,10,36,.92); border-bottom: 2px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.cl-play { clip-path: none !important; height: 46px; }
.cl-play span { font-size: 20px !important; padding: 0 30px !important; height: 100%; }
.cl-nav a { font: 400 17px/1 var(--f-display); letter-spacing: .02em; text-transform: none; color: var(--text-2); }
.cl-nav a:hover { color: #fff; }
.cl-nav a.is-active { color: #fff; }
.cl-nav a.is-active::after { height: 4px; border-radius: 4px; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.cl-n { background: var(--neon); border: 2px solid var(--bg); box-shadow: 0 0 10px rgba(255,45,138,.6); }
.cl-cur { border-radius: 12px; border: 2px solid var(--line-2); background: var(--panel); font-family: var(--f-display); box-shadow: var(--drop); }
.cl-cur b { font-family: var(--f-display); font-size: 16px; font-weight: 400; }
.cl-cur:hover { border-color: var(--neon-2); box-shadow: var(--drop), 0 0 14px rgba(22,224,255,.35); }
.cl-me { border: 3px solid var(--accent); box-shadow: var(--drop); }
.bell-n { background: var(--neon); }

.space-tabs { background: rgba(15,10,36,.88); border-bottom: 2px solid var(--line); }
.space-tabs a, .space-tabs a:hover { font: 400 16px/1 var(--f-display) !important; text-transform: none !important; letter-spacing: .01em !important; }
.space-tabs a.is-active { color: #fff; box-shadow: inset 0 -4px 0 var(--neon-2); }
.tab-n { background: var(--neon); }

/* Panneau squad */
.cl-social.sidebar { background: rgba(20,14,48,.92); border-left: 2px solid var(--line); }
.cs-name small { color: var(--neon-2); font-family: var(--f-body); }
.cs-name b { font-family: var(--f-display); font-weight: 400; font-size: 17px; }
.cs-list a { border-radius: 12px; }
.cs-list .is-live .cs-dot { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.cs-list .is-live small { color: var(--mint); }
.cs-invite { border-radius: 14px; border: 2px dashed var(--line-2); font-family: var(--f-display); font-weight: 400; font-size: 15px; }
.cs-invite:hover { border-color: var(--accent); color: var(--accent); }

/* Cartes, panneaux, tuiles */
.panel, .home-box, .rk2 { border-radius: var(--r-card); border: 2px solid var(--line); background: var(--panel); box-shadow: var(--drop); }
.htile, .home-hero, .t-tile { border-radius: 22px !important; border: 3px solid rgba(255,255,255,.12) !important; box-shadow: var(--drop) !important; }
.htile:hover, .t-tile:hover { border-color: var(--neon-2) !important; box-shadow: var(--drop), 0 0 24px rgba(22,224,255,.35) !important; transform: translateY(-3px) rotate(-.6deg); }
.htile b, .t-tile b { font-family: var(--f-display) !important; font-weight: 400; text-transform: none !important; font-size: 30px; text-shadow: 0 3px 0 rgba(0,0,0,.6); }
.htile-n { background: var(--neon); color: #fff; border: 3px solid #fff; border-radius: 50%; font-family: var(--f-display); box-shadow: 0 0 12px rgba(255,45,138,.6); }
.home-cta { border-radius: 20px !important; clip-path: none !important; }
.home-cta b { font-family: var(--f-display); font-weight: 400; text-transform: none; font-size: 28px; }
.home-cta-go { background: var(--accent-ink); color: var(--accent); border-radius: 12px; font-family: var(--f-display); font-weight: 400; }
.home-name { font-size: clamp(46px, 6vw, 84px); text-shadow: 4px 4px 0 var(--neon); }
.rk2 b { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.hgames a { border-radius: 14px; }
.hladder li.is-me { background: var(--panel-2); box-shadow: inset 4px 0 0 var(--accent); border-radius: 12px; }

/* Barre mobile */
.tabbar { background: rgba(15,10,36,.97) !important; border-top: 2px solid var(--line) !important; }
.tabbar a span:last-child { font-family: var(--f-display); font-weight: 400; font-size: 12px; }
.tabbar .tab-play .tab-art { background: var(--accent); border-radius: 14px; padding: 4px; box-shadow: inset 0 -3px 0 var(--accent-edge); outline: 0 !important; }
.tabbar .is-active::before { background: var(--neon) !important; box-shadow: 0 0 10px var(--neon); }

/* Visite guidée */
.tour-box { border-radius: 20px; border: 2px solid var(--line-2); background: var(--panel-2); }
.tour-t { font-family: var(--f-display); font-weight: 400; text-transform: none; font-size: 26px; }
.tour-n { color: var(--neon-2); }
.tour-spot { border-radius: 16px; box-shadow: 0 0 0 9999px rgba(8,5,22,.8), 0 0 0 3px var(--accent), 0 0 24px rgba(255,210,63,.5); }
.home-cta { background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: inset 0 -6px 0 var(--accent-edge), var(--drop) !important; }
.home-cta-k { color: var(--accent-ink); }
.cl-logo img { width: 96px; }
.home-today b { color: var(--mint); font-family: var(--f-display); font-weight: 400; }

/* Connexion / inscription : écran de jeu */
.auth2 { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 90px 16px 40px; overflow: hidden; isolation: isolate; }
.auth2-bg { position: absolute; inset: 0; z-index: -1; }
.auth2-bg .lh-bg-img { position: absolute; inset: -4%; background: var(--art) center 20% / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 8s linear; }
.auth2-bg .lh-bg-img.is-on { opacity: .55; transform: scale(1); }
.auth2-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(15,10,36,.35), rgba(15,10,36,.92) 75%), linear-gradient(0deg, var(--bg), transparent 40%); }
.auth2-card { width: min(420px, 100%); padding: 30px 28px 24px; border-radius: 26px; background: rgba(28,21,66,.92); border: 3px solid rgba(255,255,255,.12); box-shadow: 0 8px 0 rgba(6,3,20,.75), 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,45,138,.25); text-align: center; animation: auth2-in .5s var(--ease) both; }
@keyframes auth2-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.auth2-logo { width: 130px; height: auto; margin: 0 auto 14px; display: block; }
.auth2-card h1 { font: 400 clamp(38px, 6vw, 52px)/.95 var(--f-poster); text-transform: uppercase; color: #fff; text-shadow: 4px 4px 0 var(--neon); }
.auth2-sub { margin: 10px 0 22px; color: var(--text-2); font-size: 15px; }
.auth2-card .form { text-align: left; gap: 14px; }
.auth2-card .field > span:first-child { font-family: var(--f-display); font-size: 15px; color: var(--text-2); }
.auth2-card .field small { font-family: var(--f-body); }
.auth2-card input { height: 52px; border-radius: 14px; background: var(--bg-2); border: 2px solid var(--line-2); font-size: 16px; color: #fff; }
.auth2-card input:focus { border-color: var(--neon-2); box-shadow: 0 0 0 4px rgba(22,224,255,.15); }
.auth2-card .btn-block { height: 60px; font-size: 24px; margin-top: 6px; }
.auth2-card .auth-switch { margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth2-card .auth-switch a { color: var(--accent); text-decoration: none; font-family: var(--f-display); font-size: 16px; }
body.guest:has(.auth2) .gfoot { display: none; }
body.guest:has(.auth2) .gnav { position: absolute; background: transparent; border: 0; }

/* ==========================================================================
   v9 — DA « ADN Lolla » : encre bleu-noir, menthe Lolla, Unbounded + Archivo. Adulte, premium.
   ========================================================================== */
:root {
    --bg: #0a0d12; --bg-2: #0e1218; --panel: #121821; --panel-2: #171f2b; --panel-3: #1e2836;
    --line: #1f2a38; --line-2: #2b3a4d; --text: #eef3f8; --text-2: #a7b4c4; --muted: #6f7d90; --faint: #4a5667;
    --mint: #4ff0c8; --mint-ink: #04241c; --accent: #4ff0c8; --accent-ink: #04241c; --accent-edge: #2fc9a3;
    --violet: #8b7cff; --neon: #ff4fa3; --neon-2: #4ff0c8; --gold: #f2c46d; --reward: #f2c46d; --gold-2: #2b3a4d; --gold-3: #eef3f8;
    --f-display: "Unbounded", "Archivo", sans-serif; --f-poster: "Unbounded", "Archivo", sans-serif; --f-body: "Archivo", system-ui, sans-serif;
    --f-client: "Unbounded", "Archivo", sans-serif; --f-sans: "Archivo", system-ui, sans-serif;
    --r-card: 14px; --drop: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px rgba(0,0,0,.28);
}
body.app::after, body.guest::after { background: radial-gradient(900px 500px at 100% -10%, rgba(139,124,255,.10), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(79,240,200,.07), transparent 60%); }
.atmo-art { opacity: .1; filter: saturate(.7); }

/* Titres : Unbounded en casse normale */
.page-head h1, .hub-h1, .home-name, .t-h1, .t-h2, .k-h1, .k-h2, .auth2-card h1 { font-family: var(--f-display) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -.02em !important; text-shadow: none !important; color: var(--text); }
.home-box h2, .panel-head h2, h2.x, h3.x { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; text-transform: none; }

/* Boutons plats */
.btn-mint, .k-play, .tour-next, .t-play, .cl-play span, .home-cta, .btn-primary {
    font-family: var(--f-body) !important; font-weight: 700 !important; letter-spacing: 0 !important; text-shadow: none !important;
    border-radius: 10px !important; box-shadow: none !important; clip-path: none !important; border: 0 !important;
}
.btn-mint, .k-play, .tour-next, .t-play, .cl-play span { background: var(--mint) !important; color: var(--mint-ink) !important; }
.btn-mint:hover, .k-play:hover, .tour-next:hover, .t-play:hover, .cl-play:hover span { background: #7ff6d9 !important; transform: translateY(-1px); filter: none; box-shadow: 0 8px 24px rgba(79,240,200,.25) !important; }
.btn-mint:active, .k-play:active, .tour-next:active, .t-play:active, .cl-play:active span { transform: translateY(0); box-shadow: none !important; }
.btn-primary { background: var(--panel-3) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; }
.btn-primary:hover { border-color: var(--mint) !important; filter: none; }
.btn-ghost, .btn-secondary { background: transparent; border: 1px solid var(--line-2); box-shadow: none; }

/* Barre du haut */
.cl-top { background: rgba(10,13,18,.85); backdrop-filter: saturate(1.2); border-bottom: 1px solid var(--line); box-shadow: none; }
.cl-logo img { width: 84px; }
.cl-play { height: 40px; }
.cl-play span { font-size: 14px !important; padding: 0 22px !important; }
.cl-nav a { font: 500 14.5px/1 var(--f-body); color: var(--text-2); letter-spacing: 0; }
.cl-nav a.is-active { color: var(--text); }
.cl-nav a.is-active::after { height: 2px; border-radius: 2px; background: var(--mint); box-shadow: none; bottom: 0; }
.cl-n, .tab-n, .bell-n, .htile-n { background: var(--neon); border: 0; box-shadow: none; font-family: var(--f-mono); }
.cl-cur { border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: none; font-family: var(--f-body); }
.cl-cur b { font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.cl-cur:hover { border-color: var(--mint); box-shadow: none; }
.cl-me { border: 2px solid var(--line-2); box-shadow: none; }
.cl-me:hover { border-color: var(--mint); }

.space-tabs { background: rgba(10,13,18,.85); border-bottom: 1px solid var(--line); }
.space-tabs a, .space-tabs a:hover { font: 500 14px/1 var(--f-body) !important; }
.space-tabs a.is-active { box-shadow: inset 0 -2px 0 var(--mint); }

/* Panneau squad */
.cl-social.sidebar { background: var(--bg-2); border-left: 1px solid var(--line); }
.cs-name small { color: var(--mint); }
.cs-name b { font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.cs-list .is-live .cs-dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(79,240,200,.15); }
.cs-invite { border-radius: 10px; border: 1px dashed var(--line-2); font-family: var(--f-body); font-weight: 600; font-size: 13px; }
.cs-invite:hover { border-color: var(--mint); color: var(--mint); }

/* Cartes et tuiles */
.panel, .home-box, .rk2 { border-radius: var(--r-card); border: 1px solid var(--line); background: var(--panel); box-shadow: none; }
.htile, .home-hero, .t-tile { border-radius: 16px !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.htile:hover, .t-tile:hover { border-color: var(--mint) !important; box-shadow: 0 16px 40px rgba(0,0,0,.4) !important; transform: translateY(-3px); }
.htile b, .t-tile b { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: 24px; letter-spacing: -.02em; text-shadow: none; }
.home-cta { background: linear-gradient(120deg, rgba(79,240,200,.14), rgba(139,124,255,.12)) !important; color: var(--text) !important; border: 1px solid rgba(79,240,200,.35) !important; }
.home-cta:hover { border-color: var(--mint) !important; transform: translateY(-1px); }
.home-cta-k { color: var(--mint); }
.home-cta b { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.home-cta-go { background: var(--mint); color: var(--mint-ink); border-radius: 8px; font-family: var(--f-body); font-weight: 700; }
.home-name { font-size: clamp(40px, 5vw, 68px) !important; }
.rk2 b { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.home-today b { font-family: var(--f-mono); color: var(--mint); }

.tabbar { background: rgba(10,13,18,.96) !important; border-top: 1px solid var(--line) !important; }
.tabbar a span:last-child { font-family: var(--f-body); font-weight: 600; font-size: 11px; }
.tabbar .tab-play .tab-art { background: var(--mint); border-radius: 10px; box-shadow: none; }
.tabbar .is-active::before { background: var(--mint) !important; box-shadow: none; }

.tour-box { border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); }
.tour-t { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.tour-n { color: var(--mint); }
.tour-spot { border-radius: 12px; box-shadow: 0 0 0 9999px rgba(5,7,10,.8), 0 0 0 2px var(--mint); }
.auth2-bg .lh-bg-img.is-on { opacity: .28; filter: saturate(.6); }
.auth2-bg::after { background: radial-gradient(600px 400px at 50% 40%, rgba(79,240,200,.10), transparent 60%), radial-gradient(ellipse at 50% 50%, rgba(10,13,18,.4), rgba(10,13,18,.94) 75%); }
.auth2-card { border-radius: 18px; background: rgba(18,24,33,.92); border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.auth2-card h1 { font-size: clamp(30px, 4vw, 38px) !important; }
.auth2-card .field > span:first-child { font-family: var(--f-body); font-weight: 600; font-size: 13.5px; }
.auth2-card input { border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); }
.auth2-card input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(79,240,200,.15); }
.auth2-card .btn-block { height: 50px; font-size: 16px; }
.auth2-card .auth-switch a { color: var(--mint); font-family: var(--f-body); font-weight: 700; font-size: 14px; }

/* ==========================================================================
   v10 — DA « Blitz × Meeko » (choix final) : noir chaud, accent flamme, tuiles de catégorie franches.
   ========================================================================== */
:root {
    --bg: #0e0d0f; --bg-2: #131215; --panel: #19181c; --panel-2: #201e24; --panel-3: #29262e;
    --line: #2a272f; --line-2: #383440; --text: #f6f3ef; --text-2: #c4bdb6; --muted: #a39c95; --faint: #8a838d;
    --accent: #ff5b3a; --accent-2: #ff7a55; --accent-ink: #1d0700; --accent-edge: #d9431f;
    --cat-cards: #6d3cf0; --cat-versus: #ff8a1f; --cat-lab: #14b8a6; --cat-rank: #e5484d; --cat-news: #3b82f6;
    --mint: #3ddc97; --mint-ink: #032216; --loss: #ff4d6a; --gold: #f5b941; --reward: #f5b941; --violet: #6d3cf0; --neon: #ff5b3a; --neon-2: #ff7a55;
    --gold-2: #383440; --gold-3: #f6f3ef;
    --f-display: "Bricolage Grotesque", "Archivo", sans-serif; --f-poster: "Bricolage Grotesque", "Archivo", sans-serif; --f-client: "Bricolage Grotesque", "Archivo", sans-serif;
    --f-body: "Archivo", system-ui, sans-serif; --f-sans: "Archivo", system-ui, sans-serif;
    --r-card: 16px;
}
body.app::after, body.guest::after { background: radial-gradient(900px 520px at 100% -10%, rgba(255,91,58,.10), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(255,138,31,.06), transparent 60%); }
.atmo-art { opacity: .08; filter: saturate(.8) sepia(.15); }
.atmo canvas { opacity: .5; }

.page-head h1, .hub-h1, .home-name, .t-h1, .t-h2, .k-h1, .k-h2, .auth2-card h1, .v-h1, .v-h2 { font-family: var(--f-display) !important; font-weight: 800 !important; letter-spacing: -.035em !important; }
.home-box h2, .panel-head h2, h2.x, h3.x { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; }

/* Boutons : accent flamme */
.btn-mint, .k-play, .tour-next, .t-play, .cl-play span { background: var(--accent) !important; color: var(--accent-ink) !important; font-family: var(--f-display) !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
.btn-mint:hover, .k-play:hover, .tour-next:hover, .t-play:hover, .cl-play:hover span { background: var(--accent-2) !important; box-shadow: 0 10px 28px rgba(255,91,58,.3) !important; }
.btn-primary { background: var(--panel-3) !important; border-color: var(--line-2) !important; }
.btn-primary:hover { border-color: var(--accent) !important; }

/* Barre du haut */
.cl-top { background: rgba(14,13,15,.88); }
.cl-nav a { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.cl-nav a.is-active::after { background: var(--accent); }
.cl-n, .tab-n, .bell-n, .htile-n { background: var(--accent); color: #fff; }
.cl-cur:hover, .cl-me:hover { border-color: var(--accent); }
.space-tabs a.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
.space-tabs a, .space-tabs a:hover { font-family: var(--f-display) !important; font-weight: 600 !important; }
.cs-name small { color: var(--accent); }
.cs-invite:hover { border-color: var(--accent); color: var(--accent); }
.tabbar .tab-play .tab-art { background: var(--accent); }
.tabbar .is-active::before { background: var(--accent) !important; }

/* Tuiles de catégorie façon Blitz : fond plein + image en fusion */
.htile, .t-tile { background: var(--cat, var(--panel-2)) !important; }
.htile::before, .t-tile::before { mix-blend-mode: luminosity; opacity: .55; }
.htile::after, .t-tile::after { background: linear-gradient(0deg, rgba(14,13,15,.75) 0%, transparent 60%) !important; }
.htile:hover, .t-tile:hover { border-color: rgba(255,255,255,.35) !important; }
.htile b, .t-tile b { font-family: var(--f-display) !important; font-weight: 800 !important; letter-spacing: -.03em; }
.home-tiles .htile:nth-child(1) { --cat: var(--cat-versus); }
.home-tiles .htile:nth-child(2) { --cat: var(--cat-cards); }
.home-tiles .htile:nth-child(3) { --cat: var(--cat-rank); }

/* Accueil */
.home-hero { background: var(--panel); }
.home-hero::after { background: radial-gradient(500px 300px at 30% 100%, rgba(255,91,58,.22), transparent 60%), linear-gradient(90deg, rgba(14,13,15,.35) 0%, rgba(14,13,15,.8) 45%, rgba(14,13,15,.92) 100%) !important; }
.home-cta { background: linear-gradient(120deg, rgba(255,91,58,.18), rgba(255,138,31,.10)) !important; border: 1px solid rgba(255,91,58,.4) !important; }
.home-cta:hover { border-color: var(--accent) !important; }
.home-cta-k { color: var(--accent); }
.home-cta-go { background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); }
.home-today b { color: var(--mint); }

.tour-n { color: var(--accent); }
.tour-spot { box-shadow: 0 0 0 9999px rgba(8,7,9,.8), 0 0 0 2px var(--accent); }
.auth2-bg::after { background: radial-gradient(600px 400px at 50% 40%, rgba(255,91,58,.12), transparent 60%), radial-gradient(ellipse at 50% 50%, rgba(14,13,15,.4), rgba(14,13,15,.94) 75%); }
.auth2-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,58,.18); }
.auth2-card .auth-switch a { color: var(--accent); }

/* Correctifs mobile */
@media (max-width: 1023px) {
    .lvq { right: 12px !important; bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
    .lvq-btn { padding: 0 !important; width: 44px; height: 44px; justify-content: center; border-radius: 50% !important; }
    .lvq-btn .lvq-txt { display: none; }
    .lvq-btn .lvq-clock:not([hidden]) { position: absolute; right: 50px; padding: 4px 8px; border-radius: 8px; background: var(--panel-2); }
    .page-head { flex-wrap: wrap; gap: 10px; }
    .page-head > * { min-width: 0; }
    .home-card .pcd { width: 240px !important; }
    .main { overflow-x: clip; }
}
@media (max-width: 380px) { .home-card .pcd { width: 220px !important; } }
.btn, button, .cl-ic, .tabbar a { -webkit-tap-highlight-color: transparent; }
.sync { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .sync { width: 100%; } .sync-when { font-size: 12px; color: var(--muted); } }
.diag { padding: 18px; max-width: 720px; }
.diag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.diag-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; background: var(--panel-2); }
.diag-list b { display: block; font-weight: 700; }
.diag-list small { color: var(--text-2); font-size: 13.5px; }
.diag-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(61,220,151,.15); color: var(--mint); }
.is-ko .diag-ico { background: rgba(255,77,106,.15); color: var(--loss); }
.diag-help { margin-top: 14px; font-size: 13.5px; color: var(--text-2); }

/* Panneau squad : lignes dépliables avec actions rapides */
.cs-item summary { list-style: none; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.cs-item summary::-webkit-details-marker { display: none; }
.cs-item summary:hover, .cs-item[open] summary { background: var(--panel-2); }
.cs-who b em { font-style: normal; font: 600 11px var(--f-body); color: var(--accent); margin-left: 4px; }
.cs-right { display: flex; align-items: center; gap: 6px; }
.cs-last { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 2px var(--loss); }
.cs-last.w { box-shadow: 0 0 0 2px var(--mint); }
.cs-card { margin: 4px 4px 8px; padding: 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); animation: cs-open .18s var(--ease); }
@keyframes cs-open { from { opacity: 0; transform: translateY(-4px); } }
.cs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cs-stats span { display: flex; flex-direction: column; gap: 2px; }
.cs-stats small { font-size: 11.5px; color: var(--muted); }
.cs-stats b { font: 700 13.5px var(--f-display); }
.cs-form { display: flex; gap: 3px; font-style: normal; }
.cs-form i { width: 7px; height: 14px; border-radius: 2px; background: var(--loss); }
.cs-form i.w { background: var(--mint); }
.cs-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-acts a { padding: 7px 10px; border-radius: 8px; background: var(--panel-3); font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s; }
.cs-acts a:first-child { background: var(--accent); color: var(--accent-ink); }
.cs-acts a:hover { background: var(--line-2); color: var(--text); }
.cs-acts a:first-child:hover { background: var(--accent-2); color: var(--accent-ink); }
.cs-list .is-me .cs-item summary { box-shadow: inset 3px 0 0 var(--accent); }
