/* Valunity Tracker : complète base.css (même charte que valunity.org) */

:root { --win: #2fbf7f; --loss: #ff4655; --draw: #9aa3b2; }
.small { font-size: 13px; }
.mt { margin-top: 20px; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
@media (max-width: 700px) { .hide-sm { display: none !important; } }

/* ---------- En-tête ---------- */
.vt-head { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand small { font-size: 13px; letter-spacing: .14em; color: var(--text-2); margin-left: 4px; font-weight: 700; }
.head-search { flex: 1; max-width: 460px; margin-left: 12px; }
.vt-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.vt-nav a:hover { color: var(--text); }
.vt-nav .me { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.vt-nav .me svg { width: 18px; height: 18px; }
.lang { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 5px 9px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang button.on { background: var(--accent); color: #fff; }
@media (max-width: 760px) {
  .vt-head { gap: 10px; }
  .brand span { font-size: 17px; }
  .brand small { display: none; }
  .head-search { margin-left: 0; min-width: 0; }
  .head-search .vt-search { padding-left: 8px; }
  .head-search .vt-search .ico { display: none; }
  .vt-search input { min-width: 0; }
}
@media (max-width: 560px) {
  /* Sur la page profil, on garde le logo seul pour laisser la place à la recherche */
  body[data-page="profile"] .brand span { display: none; }
  .vt-nav { gap: 8px; }
}

/* ---------- Recherche ---------- */
.vt-search { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 4px 4px 4px 12px; }
.vt-search:focus-within { border-color: var(--accent); }
.vt-search .ico { display: grid; color: var(--muted); }
.vt-search .ico svg { width: 18px; height: 18px; }
.vt-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; padding: 8px 10px; outline: none; }
.vt-search .btn { padding: 8px 12px; }
.vt-search .btn svg { width: 16px; height: 16px; }
.vt-search.big { padding: 6px 6px 6px 18px; border-radius: 14px; max-width: 640px; margin: 0 auto; box-shadow: 0 20px 60px -30px var(--accent-glow); }
.vt-search.big input { font-size: 17px; padding: 14px 12px; }
.vt-search.big .btn { padding: 14px 26px; font-size: 15px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; z-index: 50; text-align: left; }
.suggest a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-weight: 600; }
.suggest a:hover { background: var(--surface-2); }
.suggest small { color: var(--muted); margin-left: 2px; font-weight: 500; }
.vbadge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; margin-left: 8px; vertical-align: middle; }
.vbadge svg { width: 11px; height: 11px; stroke-width: 3.5; }

.demo-bar { background: repeating-linear-gradient(135deg, #3a2a0c 0 12px, #33240a 12px 24px); color: #ffd48a; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; border-bottom: 1px solid #5c4413; }
.demo-note { font-size: 13px; color: #ffd48a; background: #33240a; border: 1px solid #5c4413; padding: 8px 12px; border-radius: 8px; }

/* ---------- Accueil ---------- */
.t-hero { position: relative; text-align: center; padding: 70px 0 60px; background: radial-gradient(ellipse at 50% 0%, #3a1016 0%, var(--bg) 62%); overflow: hidden; }
.t-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.015) 40px 41px); pointer-events: none; }
.t-logo { margin: 0 auto 18px; filter: drop-shadow(0 0 30px rgba(255,49,49,.45)); }
.t-hero .eyebrow { justify-content: center; }
.t-hero h1 { font-size: clamp(40px, 7vw, 76px); text-transform: uppercase; margin-bottom: 14px; }
.t-hero h1 em { font-style: normal; color: var(--accent); }
.t-hero .lead { color: var(--text-2); max-width: 620px; margin: 0 auto 30px; font-size: 17px; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.player-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; transition: .15s; }
.player-card:hover { border-color: rgba(255,49,49,.5); transform: translateY(-2px); }
.pc-av { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.pc-av img { width: 100%; height: 100%; object-fit: cover; }
.pc-name { min-width: 0; flex: 1; }
.pc-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-name small { color: var(--muted); }
.pc-tier { width: 30px; height: 30px; }

/* ---------- En-tête du profil ---------- */
.p-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--border); overflow: hidden; }
.p-banner { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, #2a0d11, #151920); }
.p-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(11,13,17,.82) 45%, rgba(11,13,17,.35) 100%); }
.p-hero-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: end; padding-top: 120px; padding-bottom: 26px; }
.p-hero.small .p-hero-in { padding-top: 80px; }
.p-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.p-avatar { width: 104px; height: 104px; border-radius: 18px; overflow: hidden; background: var(--surface-3); border: 3px solid rgba(255,255,255,.12); flex-shrink: 0; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7); }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-id h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 8px; overflow-wrap: anywhere; }
.p-id h1 span { color: var(--muted); font-size: .6em; margin-left: 4px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.p-ranks { display: flex; gap: 12px; flex-wrap: wrap; }
.rank-box { display: flex; align-items: center; gap: 10px; background: rgba(11,13,17,.7); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 16px 10px 10px; backdrop-filter: blur(6px); }
.rank-box img, .rank-ph { width: 52px; height: 52px; }
.rank-ph { border-radius: 50%; background: var(--surface-3); }
.rank-box small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.rank-box b { display: block; font-family: var(--f-title); font-size: 22px; line-height: 1.1; }
.rank-box span { font-size: 13px; color: var(--text-2); }
.p-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.p-actions .btn svg { width: 16px; height: 16px; }
.btn.spin svg { animation: spin .8s linear infinite; }
@media (max-width: 800px) {
  .p-hero-in { grid-template-columns: 1fr; padding-top: 90px; }
  .p-avatar { width: 78px; height: 78px; border-radius: 14px; }
}

/* ---------- Sous-navigation ---------- */
.p-subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(11,13,17,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.p-subnav .container { display: flex; align-items: center; gap: 12px; }
.p-tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.p-tabs a { padding: 14px 12px; font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.p-tabs a:hover { color: var(--text); border-bottom-color: var(--accent); }
.mode-pick select { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 600; }
.p-body { padding-top: 26px; padding-bottom: 20px; }
.p-sec { scroll-margin-top: calc(var(--header-h) + 60px); margin-bottom: 46px; }
.sec-t { font-size: 30px; text-transform: uppercase; margin-bottom: 16px; }

/* ---------- Tuiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.tile span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile b { display: block; font-family: var(--f-title); font-size: 26px; line-height: 1.2; }
.tile small { color: var(--text-2); font-size: 12px; }
.tile.big { background: linear-gradient(160deg, rgba(255,49,49,.12), var(--surface) 60%); border-color: rgba(255,49,49,.25); }
.tile.big b { font-size: 34px; }
.tile.multi { padding-bottom: 10px; }
.mk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.mk b { font-size: 20px !important; }
.mk div { background: var(--surface-2); border-radius: 8px; padding: 6px; text-align: center; }
.mk b { font-size: 22px; }
.mk small { text-transform: uppercase; font-weight: 700; color: var(--muted); }
.mk .ace { background: var(--accent-soft); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Panneaux et graphiques ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-h h3 { font-size: 20px; text-transform: uppercase; margin: 0; }
.streak { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--surface-2); }
.streak.win { color: var(--win); } .streak.loss { color: var(--loss); }
.wl { display: flex; flex-wrap: wrap; gap: 5px; }
.wl a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; font-size: 12px; font-weight: 800; color: #0b0d11; }
.wl a.win { background: var(--win); } .wl a.loss { background: var(--loss); } .wl a.draw { background: var(--draw); }
.wl a:hover { outline: 2px solid var(--text); }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .dot.win { fill: var(--win); } .chart .dot.loss { fill: var(--loss); }
.chart .dot.on { r: 7; }
.chart .avg { stroke: var(--text-2); stroke-dasharray: 4 5; stroke-width: 1.5; }
.chart .avg-l { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; fill: var(--text-2); font-size: 11px; font-family: var(--f-body); font-weight: 600; }
.chart .cross { stroke: var(--text-2); stroke-width: 1; }
.chart .bar path { fill: var(--accent); opacity: .85; }
.chart .bar.win path { fill: var(--win); } .chart .bar.loss path { fill: var(--loss); }
.chart .bar.on path { opacity: 1; filter: brightness(1.15); }
.chart-tip { position: fixed; z-index: 700; pointer-events: none; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-100%); transition: opacity .1s; max-width: 240px; }
.chart-tip.show { opacity: 1; }
.chart-tip b { display: block; font-size: 16px; }
.chart-tip span { font-size: 12px; color: var(--text-2); }

/* ---------- Bonhomme ---------- */
.body-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.figure { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; }
.fig-l line { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.fig-l .fv { fill: var(--text); font-family: var(--f-title); font-weight: 700; font-size: 20px; }
.fig-l .fk { fill: var(--muted); font-size: 12px; font-family: var(--f-body); text-transform: uppercase; letter-spacing: .08em; }
.body-picks { display: flex; flex-direction: column; gap: 8px; }
.body-picks button { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; text-align: left; font-weight: 600; font-size: 14px; }
.body-picks button img { width: 64px; height: 26px; object-fit: contain; }
.body-picks button span { flex: 1; }
.body-picks button small { color: var(--accent); font-weight: 700; }
.body-picks button.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 520px) { .body-wrap { grid-template-columns: 1fr; } }

/* ---------- Armes ---------- */
.wcell { display: flex; align-items: center; gap: 12px; }
.wcell img { width: 80px; height: 30px; object-fit: contain; flex-shrink: 0; }
.wcell b { white-space: nowrap; }
.wtable td { white-space: nowrap; }
.wcell img.round { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.wcell img.tier { width: 22px; height: 22px; }
.wcell small { color: var(--muted); margin-left: 2px; }
.wtable td.hs { color: #ff8a8a; font-weight: 700; }
.sharebar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; min-width: 70px; margin-bottom: 4px; }
.sharebar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ---------- Parties ---------- */
.mlist { display: flex; flex-direction: column; gap: 8px; }
.m-row { border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); overflow: hidden; border-left: 4px solid var(--draw); scroll-margin-top: calc(var(--header-h) + 60px); }
.m-row.win { border-left-color: var(--win); } .m-row.loss { border-left-color: var(--loss); }
.m-main { width: 100%; display: grid; grid-template-columns: 110px 44px 1.4fr 1fr 1.2fr .7fr .7fr 60px; align-items: center; gap: 12px; padding: 8px 14px 8px 0; background: none; border: 0; text-align: left; color: inherit; }
.m-main:hover { background: var(--surface-2); }
.m-main b { display: block; font-size: 15px; }
.m-main small { color: var(--muted); font-size: 12px; }
.m-map { height: 52px; overflow: hidden; }
.m-map img { width: 100%; height: 100%; object-fit: cover; opacity: .75; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.m-agent img { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-3); }
.m-row.win .m-res b { color: var(--win); } .m-row.loss .m-res b { color: var(--loss); }
.m-rr .up { color: var(--win); } .m-rr .down { color: var(--loss); }
.m-detail { display: none; padding: 4px 14px 16px; gap: 16px; grid-template-columns: 1fr 1fr; }
.m-row.open .m-detail { display: grid; }
.board { min-width: 0; font-size: 13px; }
.board th, .board td { padding: 8px 10px; }
.board tr.me td { background: var(--accent-soft); }
.board a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .m-main { grid-template-columns: 44px 1.3fr 1fr 1.2fr 50px; padding-left: 10px; }
  .m-map { display: none; }
  .m-detail { grid-template-columns: 1fr; overflow-x: auto; }
}
@media (max-width: 520px) {
  .m-main { grid-template-columns: 38px 1fr 1fr 44px; gap: 8px; }
  .m-agent img { width: 38px; height: 38px; }
  .m-kda { display: none; }
}

/* ---------- Cartes ---------- */
.maps { display: flex; flex-direction: column; gap: 8px; }
.map-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.map-row img { width: 120px; height: 58px; object-fit: cover; }
.mr-in { flex: 1; padding-right: 14px; }
.mr-in b { display: block; }
.mr-in small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 4px; }

/* ---------- Fenêtres ---------- */
.modal-box h2 { font-size: 28px; text-transform: uppercase; margin-bottom: 6px; padding-right: 36px; }
.claim-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.claim-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.claim-steps li > b { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-family: var(--f-title); font-size: 18px; }
.claim-card { display: flex; align-items: center; gap: 12px; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px; }
.claim-card img { width: 64px; height: 150px; object-fit: cover; border-radius: 6px; }
.claim-card span { font-weight: 700; }
.claim-msg { color: #ff8a8a; font-size: 14px; min-height: 20px; }
.welcome { text-align: center; }
.w-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--accent-soft); }
.w-ico svg { width: 30px; height: 30px; color: #fff; stroke-width: 3; }
.w-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; text-align: left; }
.w-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.w-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.w-go { min-width: 200px; }

.edit-preview { position: relative; height: 120px; border-radius: 12px; overflow: hidden; margin: 12px 0 16px; background: var(--surface-3); display: flex; align-items: flex-end; gap: 12px; padding: 12px; isolation: isolate; }
.ep-banner { position: absolute; inset: 0; z-index: -1; }
.ep-banner img { width: 100%; height: 100%; object-fit: cover; }
.ep-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,13,17,.85), transparent); }
.ep-avatar { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.2); background: var(--surface-2); }
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.edit-preview b { font-family: var(--f-title); font-size: 24px; }
.edit-preview b span { color: var(--muted); font-size: 16px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 44px; height: 24px; border-radius: 12px; background: var(--surface-3); position: relative; flex-shrink: 0; transition: .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch b { display: block; }
.switch small { color: var(--muted); }
.edit-tabs { display: flex; gap: 6px; margin: 16px 0 10px; }
.edit-tabs button { background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 7px 16px; font-weight: 600; font-size: 14px; }
.edit-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.edit-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.edit-tools input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text); font: inherit; font-size: 14px; }
.card-grid { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; padding: 2px; }
.card-grid.avatar { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.card-grid.banner { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.card-grid button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--surface-3); aspect-ratio: 1; }
.card-grid.banner button { aspect-ratio: 452 / 128; }
.card-grid button img { width: 100%; height: 100%; object-fit: cover; }
.card-grid button:hover { border-color: var(--border-strong); }
.card-grid button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.sticky-end { position: sticky; bottom: -28px; background: var(--surface); padding: 14px 0 0; margin-top: 12px; border-top: 1px solid var(--border); }

.vt-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--surface-2); border: 1px solid rgba(61,220,151,.5); padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 800; box-shadow: var(--shadow); }
.vt-toast.show { opacity: 1; transform: translate(-50%, 0); }
.vt-toast.err { border-color: rgba(255,49,49,.6); color: #ff9a9a; }

.empty svg { width: 36px; height: 36px; color: var(--muted); margin-bottom: 8px; }
.empty h2 { font-size: 28px; text-transform: uppercase; }
.vt-search-wrap { margin-top: 20px; }
.vt-foot { margin-top: 40px; padding: 30px 0 24px; }
.vt-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.vt-foot-row nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.vt-foot-row nav a:hover { color: var(--text); }

/* Fenêtres sur mobile : la boîte ne doit jamais dépasser l'écran */
.modal-box { min-width: 0; }
.claim-steps li > * { min-width: 0; }
@media (max-width: 560px) {
  .modal { padding: 10px; }
  .modal-box { padding: 20px 16px; max-height: 94vh; }
  .modal-box h2 { font-size: 22px; }
}

@media (max-width: 560px) {
  .wcell img { width: 56px; }
  .wtable th, .wtable td { padding: 10px 12px; }
}
@media (max-width: 560px) {
  .p-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .p-tabs a { padding: 14px 9px; }
}

/* ---------- Barre de RR (comme en jeu) ---------- */
.rank-box .rb-in { min-width: 0; }
.rr-bar { width: 130px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin: 5px 0 3px; }
.rr-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2fbf7f, #6ef0b5); }
.rank-box em { font-style: normal; font-weight: 700; margin-left: 4px; }
.rank-box em.up { color: #5fe0a6; }
.rank-box em.down { color: #ff7a85; }
.rank-box .lb { display: block; color: #ffd36b; font-weight: 600; }

/* ---------- Équipe Premier ---------- */
.premier { position: relative; overflow: hidden; border-left: 4px solid var(--team, var(--accent)); }
.premier::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--team, #ff4655) 14%, transparent), transparent 55%); pointer-events: none; }
.pr-head { position: relative; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pr-logo { width: 64px; height: 64px; border-radius: 14px; background: color-mix(in srgb, var(--team, #ff4655) 30%, var(--surface-2)); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.pr-logo img { width: 100%; height: 100%; object-fit: cover; }
.pr-logo span { font-family: var(--f-title); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.pr-name small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pr-name b { font-family: var(--f-title); font-size: 28px; line-height: 1.1; }
.pr-name b span { color: var(--muted); font-size: 18px; margin-left: 4px; }
.pr-name em { display: block; font-style: normal; font-size: 13px; color: var(--text-2); }
.pr-stats { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.pr-stats div { background: rgba(11,13,17,.55); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 76px; }
.pr-stats b { display: block; font-family: var(--f-title); font-size: 22px; line-height: 1.1; }
.pr-stats small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pr-members { position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 8px; }
.pr-members small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }
.pr-members a { font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; }
.pr-members a:hover { border-color: var(--team, var(--accent)); }
.pr-members a span { color: var(--muted); font-weight: 500; }
.premier .mb-0 { position: relative; }
@media (max-width: 640px) { .pr-stats { margin-left: 0; width: 100%; } .pr-stats div { flex: 1; min-width: 0; padding: 8px; } }

/* ---------- Profil suspendu ou banni ---------- */
.mod-box { max-width: 560px; margin: 0 auto; border: 1px solid rgba(255,176,46,.35); background: rgba(255,176,46,.06); border-radius: var(--r-lg); }
.mod-box.banned { border-color: rgba(255,70,85,.4); background: rgba(255,70,85,.06); }
.mod-box svg { color: #ffb02e; }
.mod-box.banned svg { color: #ff4655; }
.mod-reason { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; display: inline-block; }

/* ---------- Actus ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-grid.one { grid-template-columns: 1fr; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s, transform .15s; color: var(--text); }
.news-card:hover { border-color: rgba(255,70,85,.5); transform: translateY(-2px); }
.nc-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a0d11, var(--bg-2)); display: grid; place-items: center; overflow: hidden; }
.nc-cover img { width: 100%; height: 100%; object-fit: cover; }
.nc-cover img.nc-logo { width: 72px; height: 72px; object-fit: contain; opacity: .9; }
.nc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.nc-body b { font-family: var(--f-title); font-size: 22px; line-height: 1.15; }
.nc-sum { color: var(--text-2); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.nc-cat { background: var(--accent-soft); color: #ff8a93; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.nc-star { background: rgba(255,207,74,.15); color: #ffcf4a; font-weight: 700; padding: 2px 8px; border-radius: 20px; font-size: 11px; }
.news-card.big { grid-column: 1 / -1; flex-direction: row; }
.news-card.big .nc-cover { flex: 1.3; aspect-ratio: auto; min-height: 280px; }
.news-card.big .nc-body { flex: 1; justify-content: center; padding: 28px; }
.news-card.big .nc-body b { font-size: 34px; }
.news-grid.one .news-card.big { flex-direction: column; }
.news-grid.one .news-card.big .nc-cover { aspect-ratio: 16 / 9; min-height: 0; }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.big { flex-direction: column; }
  .news-card.big .nc-cover { aspect-ratio: 16 / 9; min-height: 0; }
  .news-card.big .nc-body { padding: 18px; }
  .news-card.big .nc-body b { font-size: 26px; }
}
.article-head .back { display: inline-block; color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.article-head .back:hover { color: var(--text); }
.article-head h1 { margin: 12px 0 8px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 28px; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article .body img { max-width: 100%; border-radius: 10px; }
.article .body blockquote { border-left: 3px solid var(--accent); margin: 16px 0; padding: 8px 16px; background: var(--accent-soft); border-radius: 0 8px 8px 0; }

/* ---------- Lien d'activation ---------- */
.activate { text-align: center; }
.activate .w-ico { background: #2fbf7f; box-shadow: 0 0 0 10px rgba(47,191,127,.15); }
.act-account { display: inline-flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px 16px 8px 8px; margin: 4px 0 6px; }
.act-account img { width: 48px; height: 48px; border-radius: 8px; }
.act-account b { font-family: var(--f-title); font-size: 24px; }
.act-account b span { color: var(--muted); font-size: 16px; margin-left: 2px; }
.act-warn { background: rgba(255,176,46,.08); border: 1px solid rgba(255,176,46,.3); border-radius: 10px; padding: 10px 12px; text-align: left; }
.act-msg { color: #ff8a93; min-height: 18px; font-size: 14px; }
.activate .row-end { justify-content: center; }

/* ---------- Liens vers les fiches du site et encart communauté ---------- */
.guide-link { font-weight: 700; color: var(--text); border-bottom: 1px dashed rgba(255,255,255,.25); }
.guide-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.community { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 10px 0 30px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid rgba(88,101,242,.35); background: linear-gradient(110deg, rgba(88,101,242,.16), rgba(255,70,85,.08)); }
.community b { font-family: var(--f-title); font-size: 26px; line-height: 1.1; }
.community p { margin: 6px 0 0; color: var(--text-2); max-width: 620px; }
.community-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.community .btn svg { width: 18px; height: 18px; }
.community .btn-primary { background: #5865f2; border-color: #5865f2; }
