/* Butamax · communauté (Arena, Vestiaires, Pronostics, Classements, Profils, Notifications).
   S'appuie sur /assets/ds.css (tokens et composants communs) : ici seulement la mise en page et les
   composants propres à la communauté. */

html{scrollbar-color:var(--line) var(--bg);scroll-padding-top:80px}
::selection{background:rgba(166,255,58,.28);color:var(--fg)}
body.ds{min-height:100vh;caret-color:var(--accent)}
body.ds.has-tabbar{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
.ds img{max-width:100%}
.num,.tnum{font-variant-numeric:tabular-nums}
.ds button{font:inherit}
.ds a:not(.btn){text-underline-offset:3px}
.ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ico.sm{width:15px;height:15px}
.ico.lg{width:22px;height:22px}

/* ---------- en-tête de secours (si /assets/nav.js est absent) ---------- */
.c-fallback{position:sticky;top:0;z-index:50;background:rgba(9,9,11,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.c-fallback-in{max-width:1180px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.c-fallback img{height:34px;width:auto;display:block}
.c-fallback nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;flex:1}
.c-fallback nav a{padding:7px 12px;border-radius:999px;color:var(--muted);text-decoration:none;font-weight:700;font-size:.88rem;white-space:nowrap}
.c-fallback nav a[aria-current="page"]{color:var(--fg);background:var(--surface-2)}
.c-fallback nav a:hover{color:var(--fg)}

/* ---------- gabarit ---------- */
.c-shell{max-width:1180px;margin:0 auto;padding:var(--space-5) max(16px,env(safe-area-inset-left,0px)) var(--space-8);display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:var(--space-6);align-items:start}
.c-shell.single{grid-template-columns:minmax(0,760px);justify-content:center}
.c-main{min-width:0;display:flex;flex-direction:column;gap:var(--space-4)}
.c-rail{position:sticky;top:76px;display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
@media (max-width:980px){.c-shell{grid-template-columns:minmax(0,1fr)}.c-rail{position:static}}
.c-title{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap}
.c-title h1{font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;text-transform:uppercase;font-size:clamp(1.6rem,1.2rem + 1.4vw,2.2rem);line-height:1;letter-spacing:-.01em}
.c-title p{color:var(--muted);font-size:.92rem;margin-top:6px;max-width:60ch}
.c-section-h{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin:var(--space-2) 0 calc(-1 * var(--space-1))}
.c-section-h h2{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:800}
.c-section-h a{font-size:.84rem;font-weight:700;text-decoration:none}
.c-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:var(--space-4)}
.c-panel>h2{font-size:.95rem;font-weight:800;margin-bottom:var(--space-3);display:flex;align-items:center;justify-content:space-between;gap:8px}
.c-panel>h2 a{font-size:.82rem;font-weight:700;text-decoration:none}

/* ---------- bandeau invité ---------- */
.c-guest{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;padding:var(--space-4) var(--space-5);border-radius:var(--radius);border:1px solid rgba(166,255,58,.3);background:linear-gradient(120deg,rgba(166,255,58,.08),rgba(47,217,79,.03) 60%),var(--surface)}
.c-guest strong{display:block;font-size:1rem}
.c-guest span{color:var(--muted);font-size:.9rem}

/* ---------- avatar ---------- */
.av{--s:40px;width:var(--s);height:var(--s);border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;background:var(--surface-2);border:1px solid var(--line);color:var(--fg);font-weight:800;font-size:calc(var(--s) * .38);text-transform:uppercase;text-decoration:none;user-select:none}
.av img{width:100%;height:100%;object-fit:cover}
.av.sm{--s:30px}.av.lg{--s:72px}.av.xl{--s:96px}
.av.prem{box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px var(--accent-2)}
.lvl{display:inline-flex;align-items:center;padding:0 6px;border-radius:6px;background:var(--surface-2);border:1px solid var(--line);font-size:.7rem;font-weight:800;color:var(--muted);line-height:1.6;font-variant-numeric:tabular-nums}
.prem-tag{display:inline-flex;align-items:center;padding:0 6px;border-radius:6px;background:var(--grad);color:var(--on-accent);font-size:.66rem;font-weight:900;letter-spacing:.04em;line-height:1.7;text-transform:uppercase}

/* ---------- composeur ---------- */
.composer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-3);padding:var(--space-4);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.composer textarea{width:100%;min-height:64px;max-height:320px;resize:none;border:0;background:transparent;color:var(--fg);font:inherit;font-size:1.02rem;line-height:1.5;padding:8px 0;outline:none}
.composer textarea::placeholder{color:#6E6E78}
.composer:focus-within{border-color:#3A3A42}
.composer .cmp-bar{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;border-top:1px solid var(--line);padding-top:var(--space-3);margin-top:var(--space-2)}
.composer .cmp-bar .spacer{flex:1}
.composer .count{font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.composer .count.over{color:var(--danger);font-weight:700}
.cmp-tool{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-radius:999px;color:var(--accent);font-size:.84rem;font-weight:700;cursor:pointer}
.cmp-tool:hover{background:rgba(166,255,58,.08)}
.cmp-tool:focus-visible{box-shadow:var(--focus)}
.cmp-tool[aria-disabled="true"]{color:var(--muted);cursor:pointer}
.cmp-tool .lock{font-size:.7rem}
.cmp-attach{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-2)}
.cmp-thumb{position:relative;width:88px;height:88px;border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.cmp-thumb img{width:100%;height:100%;object-fit:cover}
.cmp-thumb button{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(0,0,0,.72);color:#fff;cursor:pointer;display:grid;place-items:center}
.cmp-match{display:flex;align-items:center;gap:8px;margin-top:var(--space-2)}
.cmp-match .chip-x{all:unset;cursor:pointer;color:var(--muted);display:grid;place-items:center;width:24px;height:24px;border-radius:50%}
.cmp-match .chip-x:hover{color:var(--fg);background:var(--surface-2)}
.cmp-scope{font-size:.82rem;color:var(--muted);display:flex;align-items:center;gap:6px}
.cmp-scope select{background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:8px;padding:4px 8px;font:inherit;font-size:.82rem}

/* ---------- publication ---------- */
.feed{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.feed>.post+.post{border-top:1px solid var(--line)}
.post{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-3);padding:var(--space-4);position:relative;transition:background .15s}
.post:hover{background:rgba(255,255,255,.015)}
.post.is-new{animation:c-new .9s ease-out}
@keyframes c-new{from{background:rgba(166,255,58,.09)}to{background:transparent}}
.post-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;font-size:.9rem;line-height:1.3}
.post-head .who{font-weight:800;color:var(--fg);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:22ch}
.post-head .who:hover{text-decoration:underline}
.post-head time,.post-head .dot{color:var(--muted);font-size:.84rem}
.post-head .menu-btn{margin-left:auto}
.post-meta-top{font-size:.78rem;color:var(--muted);display:flex;align-items:center;gap:6px;margin-bottom:4px;font-weight:600}
.post-meta-top a{color:var(--muted);text-decoration:none}
.post-meta-top a:hover{color:var(--fg)}
.post-body{margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.98rem;line-height:1.55}
.post-body .hidden-note{color:var(--muted);font-style:italic}
.post-body.clamped{display:-webkit-box;-webkit-line-clamp:10;-webkit-box-orient:vertical;overflow:hidden}
.post-more{margin-top:4px}
.post-imgs{display:grid;gap:4px;margin-top:var(--space-3);border-radius:14px;overflow:hidden;border:1px solid var(--line)}
.post-imgs.n2,.post-imgs.n4{grid-template-columns:1fr 1fr}
.post-imgs.n3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}
.post-imgs.n3 a:first-child{grid-row:1/3}
.post-imgs a{display:block;background:var(--surface-2);aspect-ratio:16/10;overflow:hidden}
.post-imgs.n1 a{aspect-ratio:auto;max-height:520px}
.post-imgs.n3 a{aspect-ratio:auto}
.post-imgs img{width:100%;height:100%;object-fit:cover;display:block}
.post-quote{margin-top:var(--space-3);border:1px solid var(--line);border-radius:14px;padding:var(--space-3);font-size:.92rem}
.post-quote .post-head{font-size:.84rem}
.post-actions{display:flex;align-items:center;gap:2px;margin-top:var(--space-3);margin-left:-8px;flex-wrap:wrap}
.act{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px;border-radius:999px;color:var(--muted);font-size:.84rem;font-weight:700;cursor:pointer;font-variant-numeric:tabular-nums;transition:color .15s,background .15s}
.act:hover{color:var(--fg);background:var(--surface-2)}
.act:focus-visible{box-shadow:var(--focus)}
.act[aria-pressed="true"]{color:var(--accent)}
.act.like[aria-pressed="true"]{color:var(--danger)}
.act[disabled]{opacity:.45;cursor:not-allowed}
.react-wrap{position:relative;display:inline-flex}
.react-pop{position:absolute;bottom:calc(100% + 6px);left:0;z-index:30;display:flex;gap:2px;padding:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow);animation:ds-pop .14s ease-out}
.react-pop button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-size:.8rem;font-weight:700;color:var(--muted)}
.react-pop button:hover,.react-pop button:focus-visible{background:var(--line);color:var(--fg)}
.react-pop button[aria-pressed="true"]{color:var(--accent)}
.react-sum{display:inline-flex;gap:4px;margin-left:4px;flex-wrap:wrap}
.react-sum span{display:inline-flex;align-items:center;gap:3px;font-size:.76rem;color:var(--muted);font-weight:700;font-variant-numeric:tabular-nums}
.post-menu{position:absolute;right:12px;top:44px;z-index:30;min-width:200px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:4px;display:flex;flex-direction:column;animation:ds-pop .14s ease-out}
.post-menu button{all:unset;cursor:pointer;display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;font-size:.88rem;font-weight:600}
.post-menu button:hover,.post-menu button:focus-visible{background:var(--line)}
.post-menu button.danger{color:var(--danger)}
.post-edit textarea{width:100%;min-height:90px;background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;font:inherit;resize:vertical}
.post-edit .row{justify-content:flex-end;margin-top:var(--space-2)}
.pin-tag{color:var(--accent);font-weight:800}

/* ---------- commentaires ---------- */
.comments{margin-top:var(--space-3);display:flex;flex-direction:column;gap:var(--space-3);border-top:1px solid var(--line);padding-top:var(--space-3)}
.cmt{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px}
.cmt .bubble{background:var(--surface-2);border-radius:4px 14px 14px 14px;padding:8px 12px;min-width:0}
.cmt .bubble .post-head{font-size:.84rem}
.cmt .bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92rem;margin-top:2px}
.cmt .cmt-acts{display:flex;gap:10px;margin:4px 0 0 4px}
.cmt .cmt-acts button{all:unset;cursor:pointer;font-size:.78rem;font-weight:700;color:var(--muted)}
.cmt .cmt-acts button:hover,.cmt .cmt-acts button:focus-visible{color:var(--fg);text-decoration:underline}
.cmt .replies{grid-column:2;display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-2)}
.cmt-form{display:flex;gap:8px;align-items:flex-end}
.cmt-form textarea{flex:1;min-height:40px;max-height:160px;resize:none;background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:20px;padding:9px 14px;font:inherit;font-size:.92rem;line-height:1.4}
.cmt-form textarea:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(166,255,58,.18)}

/* ---------- match ---------- */
.mchip{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-top:var(--space-3);border:1px solid var(--line);border-radius:14px;background:var(--bg);text-decoration:none;color:var(--fg);min-width:0;transition:border-color .15s}
.mchip:hover{border-color:#3A3A42}
.mchip .teams{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.mchip .t{display:flex;align-items:center;gap:8px;font-weight:700;font-size:.9rem;min-width:0}
.mchip .t span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tdot{width:10px;height:10px;border-radius:3px;flex:none;background:var(--muted);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.mchip .side{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:.78rem;color:var(--muted);text-align:right;flex:none}
.mchip .score{font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;font-size:1.05rem;color:var(--fg);font-variant-numeric:tabular-nums}
.live{display:inline-flex;align-items:center;gap:5px;color:var(--danger);font-weight:800;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em}
.live::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;animation:c-pulse 1.4s ease-in-out infinite}
@keyframes c-pulse{50%{opacity:.35}}
.mlist{display:flex;flex-direction:column}
.mrow{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 4px;text-decoration:none;color:var(--fg);border-top:1px solid var(--line)}
.mrow:first-child{border-top:0}
.mrow:hover .mrow-teams b{text-decoration:underline}
.mrow-time{font-size:.78rem;color:var(--muted);line-height:1.25;font-variant-numeric:tabular-nums}
.mrow-time b{display:block;color:var(--fg);font-size:.88rem}
.mrow-teams{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:.88rem}
.mrow-teams b{font-weight:700;display:flex;align-items:center;gap:7px;min-width:0}
.mrow-teams b span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mrow-meta{font-size:.74rem;color:var(--muted);text-align:right;line-height:1.35}

/* ---------- pronostic 1N2 ---------- */
.pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.pick button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;padding:6px 8px;border-radius:12px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);text-align:center;transition:box-shadow .15s,background .15s}
.pick button:hover{box-shadow:inset 0 0 0 1px var(--muted)}
.pick button:focus-visible{box-shadow:var(--focus)}
.pick button b{font-size:.92rem;font-weight:800;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick button small{font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}
.pick button[aria-pressed="true"]{background:var(--grad);box-shadow:none;color:var(--on-accent)}
.pick button[aria-pressed="true"] small{color:rgba(6,18,0,.75)}
.pick button[disabled]{cursor:not-allowed;opacity:.55}
.pick button[disabled][aria-pressed="true"]{opacity:1}
.score-in{display:flex;align-items:center;gap:8px;margin-top:var(--space-3);font-size:.86rem;color:var(--muted);flex-wrap:wrap}
.score-in input{width:56px;min-height:36px;text-align:center;background:var(--bg);color:var(--fg);border:1px solid var(--line);border-radius:10px;font:inherit;font-weight:800;font-variant-numeric:tabular-nums}
.score-in input:focus-visible{outline:none;border-color:var(--accent)}
.split{display:flex;height:10px;border-radius:999px;overflow:hidden;background:var(--surface-2);gap:2px}
.split i{display:block;height:100%;min-width:2px}
.split i:nth-child(1){background:var(--accent)}
.split i:nth-child(2){background:#5B5B66}
.split i:nth-child(3){background:var(--info)}
.split-legend{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.split-legend b{color:var(--fg)}
.st{font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.st.won{color:var(--ok)}.st.lost{color:var(--danger)}.st.pending{color:var(--muted)}.st.void{color:var(--warn)}

/* ---------- carte prono (liste) ---------- */
.pcard{padding:var(--space-4);border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:var(--space-4);align-items:center}
.pcard:first-child{border-top:0}
@media (max-width:640px){.pcard{grid-template-columns:minmax(0,1fr)}}
.pcard .pc-info{min-width:0}
.pcard .pc-comp{font-size:.76rem;color:var(--muted);font-weight:700;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pcard .pc-teams{font-weight:800;font-size:1rem;margin-top:4px;display:flex;flex-direction:column;gap:3px}
.pcard .pc-teams span{display:flex;align-items:center;gap:8px;min-width:0}
.pcard .pc-foot{display:flex;gap:12px;margin-top:6px;font-size:.8rem;color:var(--muted);flex-wrap:wrap}
.pcard .pc-foot a{color:var(--muted)}
.pcard .pc-foot a:hover{color:var(--fg)}

/* ---------- filtres ---------- */
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.chips::-webkit-scrollbar{display:none}
.chips button{all:unset;flex:none;cursor:pointer;padding:7px 13px;border-radius:999px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);font-size:.84rem;font-weight:700;color:var(--muted);white-space:nowrap}
.chips button:hover{color:var(--fg)}
.chips button[aria-pressed="true"]{color:var(--fg);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--accent)}
.chips button:focus-visible{box-shadow:var(--focus)}
.feed-tabs{position:sticky;top:60px;z-index:20;display:flex;background:rgba(9,9,11,.9);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.feed-tabs button{all:unset;flex:1;text-align:center;cursor:pointer;padding:12px 8px;font-weight:800;font-size:.92rem;color:var(--muted);position:relative}
.feed-tabs button[aria-selected="true"]{color:var(--fg)}
.feed-tabs button[aria-selected="true"]::after{content:"";position:absolute;left:50%;bottom:0;width:56px;height:3px;border-radius:3px 3px 0 0;transform:translateX(-50%);background:var(--grad)}
.feed-tabs button:hover{background:rgba(255,255,255,.02)}
.feed-tabs button:focus-visible{box-shadow:inset var(--focus)}

/* ---------- listes génériques ---------- */
.ulist{display:flex;flex-direction:column}
.urow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);min-width:0}
.urow:first-child{border-top:0}
.urow .u-main{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.urow .u-main a,.urow .u-main b{font-weight:800;color:var(--fg);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.urow .u-main a:hover{text-decoration:underline}
.urow .u-main small{color:var(--muted);font-size:.8rem}
.rank{width:28px;text-align:center;font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;font-size:1rem;color:var(--muted);font-variant-numeric:tabular-nums;flex:none}
.rank.r1{color:var(--accent)}.rank.r2{color:#D7DCE3}.rank.r3{color:#E0A266}
.pts{font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;font-variant-numeric:tabular-nums;white-space:nowrap}
.pts small{font-family:var(--f-body);font-stretch:100%;font-style:normal;font-weight:700;font-size:.72rem;color:var(--muted);margin-left:3px}
.me-row{background:rgba(166,255,58,.05);border-radius:10px;padding-inline:8px;margin-inline:-8px}

/* ---------- podium classement ---------- */
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3);align-items:end}
.podium .pod{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:var(--space-4) var(--space-2);border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);min-width:0;text-decoration:none;color:var(--fg)}
.podium .pod.p1{order:2;padding-top:var(--space-6);border-color:rgba(166,255,58,.4);background:linear-gradient(180deg,rgba(166,255,58,.09),transparent 70%),var(--surface)}
.podium .pod.p2{order:1}.podium .pod.p3{order:3}
.podium .pod b{font-weight:800;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.podium .pod .place{font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;font-size:1.5rem;line-height:1}
.podium .pod.p1 .place{color:var(--accent)}

/* ---------- profil / vestiaire (en-tête) ---------- */
.hero{position:relative;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.hero-band{height:96px;background:radial-gradient(120% 140% at 0% 0%,rgba(166,255,58,.22),transparent 55%),radial-gradient(100% 120% at 100% 0%,rgba(47,217,79,.14),transparent 60%),var(--surface-2);border-bottom:1px solid var(--line)}
.hero-in{padding:0 var(--space-5) var(--space-5);display:flex;flex-direction:column;gap:var(--space-3)}
.hero-top{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-3);margin-top:-40px;flex-wrap:wrap}
.hero-top .av{border:4px solid var(--surface)}
.hero h1{font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;text-transform:uppercase;font-size:1.6rem;line-height:1.05;overflow-wrap:anywhere}
.hero .sub{color:var(--muted);font-size:.9rem;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.hero .bio{font-size:.95rem;max-width:65ch;white-space:pre-wrap;overflow-wrap:anywhere}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.stats>div{background:var(--surface);padding:12px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.stats b{font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;font-size:1.3rem;line-height:1.1;font-variant-numeric:tabular-nums}
.stats span{font-size:.74rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.xp{display:flex;flex-direction:column;gap:6px}
.xp-bar{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.xp-bar i{display:block;height:100%;background:var(--grad);border-radius:999px}
.xp-meta{display:flex;justify-content:space-between;font-size:.78rem;color:var(--muted);font-variant-numeric:tabular-nums}
.badges{display:flex;flex-wrap:wrap;gap:8px}
.bdg{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:.82rem;font-weight:700}
.bdg i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--grad);color:var(--on-accent)}
.bdg.locked{opacity:.45}
.bdg.locked i{background:var(--line);color:var(--muted)}

/* ---------- vestiaires ---------- */
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:var(--space-3)}
.vcard{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4);border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);text-decoration:none;color:var(--fg);transition:border-color .15s,transform .15s;min-width:0}
.vcard:hover{border-color:#3A3A42}
.vcard .v-top{display:flex;align-items:center;gap:12px;min-width:0}
.vcard .v-top b{font-weight:800;font-size:1rem;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vcard .v-top small{color:var(--muted);font-size:.8rem}
.vcard p{color:var(--muted);font-size:.88rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.vcard .v-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.8rem;color:var(--muted)}
.vlogo{--s:44px;width:var(--s);height:var(--s);border-radius:12px;flex:none;display:grid;place-items:center;overflow:hidden;background:var(--grad);color:var(--on-accent);font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;font-size:calc(var(--s) * .42);text-transform:uppercase}
.vlogo img{width:100%;height:100%;object-fit:cover}
.vlogo.lg{--s:80px;border-radius:20px;border:4px solid var(--surface)}
.credits{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-variant-numeric:tabular-nums}
.credits .ico{color:var(--warn)}
.fict{font-size:.76rem;color:var(--muted);display:flex;align-items:flex-start;gap:6px;line-height:1.4}
.fict .ico{margin-top:1px;color:var(--warn)}

/* ---------- duels ---------- */
.duel{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4);border-top:1px solid var(--line)}
.duel:first-child{border-top:0}
.duel-vs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--space-3)}
.duel-vs .side{display:flex;align-items:center;gap:10px;min-width:0}
.duel-vs .side.b{flex-direction:row-reverse;text-align:right}
.duel-vs .side b{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.duel-vs .side a{color:var(--fg);text-decoration:none;min-width:0}
.duel-vs .side a:hover b{text-decoration:underline}
.duel-vs .mid{display:flex;flex-direction:column;align-items:center;gap:2px}
.duel-vs .mid .sc{font-family:var(--f-head);font-stretch:125%;font-weight:900;font-style:italic;font-size:1.4rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.duel-vs .mid small{font-size:.7rem;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.duel-meta{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap;font-size:.82rem;color:var(--muted)}
.duel-meta .row{gap:8px}
.winner b{color:var(--accent)}

/* ---------- notifications ---------- */
.nrow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:flex-start;padding:var(--space-4);border-top:1px solid var(--line);text-decoration:none;color:var(--fg);position:relative}
.nrow:first-child{border-top:0}
.nrow:hover{background:rgba(255,255,255,.02)}
.nrow.unread{background:rgba(166,255,58,.04)}
.nrow.unread::after{content:"";position:absolute;right:16px;top:22px;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.nrow .n-ico{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--accent);border:1px solid var(--line)}
.nrow .n-main b{font-weight:800;font-size:.94rem;display:block}
.nrow .n-main p{color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}
.nrow time{font-size:.78rem;color:var(--muted);white-space:nowrap;padding-right:18px}

/* ---------- divers ---------- */
.loadmore{display:flex;justify-content:center;padding:var(--space-4)}
.sentinel{height:1px}
.post-sk{display:grid;grid-template-columns:40px 1fr;gap:12px;padding:var(--space-4)}
.post-sk .skeleton.av-sk{width:40px;height:40px;border-radius:50%}
.backlink{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-weight:700;font-size:.88rem}
.backlink:hover{color:var(--fg)}
.kv{display:flex;flex-direction:column;gap:8px;font-size:.88rem}
.kv>div{display:flex;justify-content:space-between;gap:12px}
.kv dt,.kv span:first-child{color:var(--muted)}
.c-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:var(--space-5);background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.c-dialog::backdrop{background:rgba(0,0,0,.66);backdrop-filter:blur(3px)}
.c-dialog h2{font-size:1.1rem;font-weight:800;margin-bottom:var(--space-2)}
.c-dialog .dlg-actions{display:flex;justify-content:flex-end;gap:var(--space-3);margin-top:var(--space-5);flex-wrap:wrap}
.c-dialog .stack{gap:var(--space-3)}
.radio-list{display:flex;flex-direction:column;gap:6px}
.radio-list label{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;font-weight:600;font-size:.9rem}
.radio-list label:has(input:checked){border-color:var(--accent);background:rgba(166,255,58,.05)}
.radio-list input{accent-color:var(--accent-2);width:16px;height:16px;margin:0}
.check-list{display:flex;flex-direction:column;max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.check-list label{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid var(--line);cursor:pointer;font-size:.88rem}
.check-list label:first-child{border-top:0}
.check-list label small{color:var(--muted);margin-left:auto;white-space:nowrap}
.check-list input{accent-color:var(--accent-2);width:16px;height:16px;margin:0;flex:none}
.upsell{display:flex;gap:12px;align-items:flex-start;padding:var(--space-4);border-radius:var(--radius-sm);border:1px solid rgba(166,255,58,.3);background:rgba(166,255,58,.05);font-size:.9rem}
.upsell .ico{color:var(--accent);margin-top:2px}
.upsell b{display:block}
.upsell .btn{margin-top:var(--space-3)}
.inline-err{color:var(--danger);font-size:.85rem;font-weight:600}
.inline-err:empty{display:none}
.lightbox{padding:0;border:0;background:transparent;max-width:min(1100px,96vw);max-height:92vh}
.lightbox::backdrop{background:rgba(0,0,0,.88)}
.lightbox img{max-width:100%;max-height:88vh;border-radius:12px;display:block}
.lightbox button{position:fixed;top:16px;right:16px;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:grid;place-items:center}
@media (max-width:560px){
  .c-shell{padding-top:var(--space-4);gap:var(--space-4)}
  .post{padding:var(--space-3) var(--space-3) var(--space-3) var(--space-3)}
  .feed,.feed-tabs{border-radius:0;border-inline:0;margin-inline:-16px}
  .composer{border-radius:0;border-inline:0;margin-inline:-16px}
  .hero-in{padding:0 var(--space-4) var(--space-4)}
  .podium{gap:6px}
}
@media (prefers-reduced-motion:reduce){
  .post.is-new,.live::before,.react-pop,.post-menu{animation:none}
  *{transition-duration:0s!important}
}

/* Les liens-blocs gardent la couleur du texte (ds.css colore tous les liens .ds a en vert). */
.ds a.mrow,.ds a.mchip,.ds a.vcard,.ds a.pod,.ds a.nrow,.ds .post-head a.who,.ds .urow .u-main a,.ds .duel-vs .side a,.ds .pc-teams{color:var(--fg)}
.mrow{grid-template-columns:64px minmax(0,1fr) auto}
.mrow-meta{max-width:42%}
.post-quote .menu-btn{display:none}
.post-quote .post{grid-template-columns:30px minmax(0,1fr);gap:10px}
.post-quote .post .av{--s:30px}
@media (max-width:560px){
  .post-head .lvl{display:none}
  .composer .cmp-scope{order:5;flex:1 1 100%}
  .composer .cmp-scope select{flex:1;min-width:0}
}
.ds a.btn{color:var(--fg)}
.ds a.btn-primary{color:var(--on-accent)}
.mrow-meta{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:560px){
  .duel-vs .side,.duel-vs .side.b{flex-direction:column;text-align:center;gap:6px}
  .duel-vs .side b{white-space:normal;overflow-wrap:anywhere}
}

/* paliers et équipe (badges partagés dans /assets/nav.css) */
.av.vip{box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px #E0B04A}
.cmt.is-hidden,.post[data-status="hidden"]{opacity:.55}

/* logos des clubs (repli : pastille de couleur) */
.tlogo{flex:none;object-fit:contain;filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}
