:root {
  --bg: #0b0b0e;
  --bg-2: #121217;
  --card: #16161c;
  --card-2: #1d1d25;
  --line: #26262f;
  --text: #ececf1;
  --muted: #9a9aa8;
  --dim: #6c6c79;
  --accent: #ff7a1a;
  --accent-2: #e8381c;
  --grad: linear-gradient(120deg, #ffb01f 0%, #ff7a1a 45%, #e8381c 100%);
  --win: #3ddc84;
  --lose: #ff5a5a;
  --gold: #ffc53d;
  --silver: #c9d1dc;
  --bronze: #e08a4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 60px; }

/* ── Barre du haut ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 14, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: .2px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.brand span { font-weight: 600; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active { color: var(--text); background: var(--card-2); box-shadow: inset 0 -2px 0 var(--accent); }

.search { position: relative; margin-left: auto; width: 240px; }
.search input {
  width: 100%; height: 38px; padding: 0 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; outline: none;
  transition: border-color .15s;
}
.search input:focus { border-color: var(--accent); }
.search-results {
  position: absolute; top: 44px; left: 0; right: 0; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.search-results a, .search-results p { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0; }
.search-results a:hover, .search-results a.focus { background: var(--line); }
.search-results p { color: var(--muted); font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* ── Éléments communs ── */
.head { width: 32px; height: 32px; border-radius: 7px; background: var(--card-2); image-rendering: pixelated; flex: none; }
.head.lg { width: 44px; height: 44px; border-radius: 9px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 38px 0 14px; }
.section-title h2 { margin: 0; font-size: 21px; }
.section-title a { color: var(--accent); font-weight: 600; font-size: 14px; }
.page-title { margin: 6px 0 4px; font-size: 32px; letter-spacing: -.5px; }
.page-sub { margin: 0 0 22px; color: var(--muted); }
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  background: var(--card-2); border: 1px solid var(--line);
}
.badge.ranked { color: var(--accent); border-color: rgba(255, 122, 26, .4); background: rgba(255, 122, 26, .1); }
.badge.online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 8px var(--win); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 0;
  background: var(--grad); color: #1a0d00; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(232, 56, 28, .3);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(232, 56, 28, .4); }
.btn.ghost { background: var(--card-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.empty, .error { padding: 40px 20px; text-align: center; color: var(--muted); }
.error { color: var(--lose); }
.loading { padding: 50px 0; display: grid; place-items: center; }
.loading::after {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Accueil ── */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; margin-top: 4px;
  background: #160a04; border: 1px solid rgba(255, 122, 26, .25); isolation: isolate;
}
/* Bannière floutée : seulement ses couleurs, son logo est déjà à droite */
.hero-bg {
  position: absolute; inset: -40px; z-index: -2;
  background: url("/img/banner.png") center / cover no-repeat; filter: blur(22px) saturate(1.25);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(10, 6, 4, .94) 0%, rgba(10, 6, 4, .78) 45%, rgba(10, 6, 4, .25) 100%);
}
.hero-inner { position: relative; padding: 56px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -2px; font-weight: 800; }
.hero h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 18px 0 26px; color: #d8d2cc; font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-logo { justify-self: center; width: min(300px, 100%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.ip-copy { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; color: #e9e2db; font-weight: 600; }
.online-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--win); box-shadow: 0 0 10px var(--win); }
.online-pill.off i { background: var(--dim); box-shadow: none; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat { padding: 20px 22px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; align-items: start; }

/* ── Classements ── */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg button, .pill {
  border: 0; background: none; cursor: pointer; padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 14px;
}
.seg button.on { background: var(--grad); color: #1a0d00; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--card); border: 1px solid var(--line); }
.pill:hover { color: var(--text); }
.pill.on { color: var(--text); border-color: var(--accent); background: rgba(255, 122, 26, .12); }

.rows { overflow: hidden; }
.row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 18px; border-top: 1px solid var(--line); transition: background .12s;
}
.row:first-child { border-top: 0; }
a.row:hover { background: var(--card-2); }
.row .who { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; }
.row .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .val { font-weight: 800; font-variant-numeric: tabular-nums; }
.row .val small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.rank { font-weight: 800; color: var(--dim); font-variant-numeric: tabular-nums; text-align: center; }
.rank.r1, .rank.r2, .rank.r3 {
  width: 32px; height: 32px; margin: 0 auto; border-radius: 9px; display: grid; place-items: center; color: #17110a;
}
.rank.r1 { background: var(--gold); box-shadow: 0 0 16px rgba(255, 197, 61, .35); }
.rank.r2 { background: var(--silver); }
.rank.r3 { background: var(--bronze); }
/* Classement : badge incliné à gauche (numéro + buste), teinte or / argent / bronze discrète pour le podium */
.row.lb-row { grid-template-columns: 124px 1fr auto; gap: 16px; padding: 7px 18px 7px 20px; }
.lb-badge { --c: var(--dim); position: relative; height: 44px; display: flex; align-items: center; isolation: isolate; }
.lb-badge.r1 { --c: var(--gold); }
.lb-badge.r2 { --c: var(--silver); }
.lb-badge.r3 { --c: var(--bronze); }
.lb-badge::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg); border-radius: 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 85%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); border-right-color: transparent;
}
.lb-badge.r1::before, .lb-badge.r2::before, .lb-badge.r3::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 24%, transparent), color-mix(in srgb, var(--c) 4%, transparent) 90%);
  border-color: color-mix(in srgb, var(--c) 45%, transparent); border-right-color: transparent;
  box-shadow: inset 3px 0 0 var(--c);
}
.lb-badge i {
  padding-left: 14px; font-size: 19px; font-weight: 800; font-style: italic; letter-spacing: -.3px;
  color: var(--c); font-variant-numeric: tabular-nums;
}
.lb-badge:not(.r1):not(.r2):not(.r3) i { color: var(--muted); }
.lb-badge.long i { font-size: 15px; }
.lb-bust { position: absolute; right: 16px; bottom: 0; width: 40px; height: 40px; overflow: hidden; }
.lb-bust img { display: block; width: 40px; height: 80px; image-rendering: pixelated; }
a.lb-row:hover .lb-badge::before { border-color: color-mix(in srgb, var(--c) 60%, transparent); border-right-color: transparent; }
/* Hover du podium : ligne teintée, badge qui s'allume, reflet qui balaie, buste qui se soulève */
.lb-top.r1 { --c: var(--gold); } .lb-top.r2 { --c: var(--silver); } .lb-top.r3 { --c: var(--bronze); }
.row.lb-top { position: relative; transition: background .25s ease; }
.row.lb-top::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c);
  transform: scaleY(0); transition: transform .25s ease; box-shadow: 0 0 12px var(--c);
}
a.row.lb-top:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 55%); }
a.row.lb-top:hover::after { transform: scaleY(1); }
.lb-top .lb-badge::before { transition: box-shadow .3s ease, border-color .3s ease, background .3s ease; }
.lb-top .lb-badge::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg); border-radius: 6px; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 140% 0; opacity: 0;
}
a.lb-top:hover .lb-badge::after { opacity: 1; background-position: -40% 0; transition: background-position .7s ease, opacity .2s; }
a.lb-top:hover .lb-badge::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 38%, transparent), color-mix(in srgb, var(--c) 8%, transparent) 90%);
  border-color: color-mix(in srgb, var(--c) 75%, transparent); border-right-color: transparent;
  box-shadow: inset 3px 0 0 var(--c), 0 0 18px color-mix(in srgb, var(--c) 35%, transparent);
}
.lb-top .lb-badge i { transition: transform .25s ease, text-shadow .25s ease; }
a.lb-top:hover .lb-badge i { transform: translateX(2px) scale(1.08); text-shadow: 0 0 12px color-mix(in srgb, var(--c) 70%, transparent); }
.lb-top .lb-bust { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), filter .3s; }
a.lb-top:hover .lb-bust { transform: translateY(-3px); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.lb-top .who span { transition: color .25s ease; }
a.lb-top:hover .who span { color: var(--c); }
@media (prefers-reduced-motion: reduce) {
  .row.lb-top, .row.lb-top::after, .lb-top .lb-badge::before, .lb-top .lb-badge i, .lb-top .lb-bust { transition: none; }
  a.lb-top:hover .lb-badge::after { display: none; }
  a.lb-top:hover .lb-badge i, a.lb-top:hover .lb-bust { transform: none; }
}
@media (max-width: 560px) {
  .row.lb-row { grid-template-columns: 104px 1fr auto; gap: 10px; padding: 7px 12px 7px 14px; }
  .lb-badge { height: 40px; }
  .lb-badge i { font-size: 17px; padding-left: 11px; }
  .lb-bust { right: 12px; width: 36px; height: 36px; }
  .lb-bust img { width: 36px; height: 72px; }
}
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 16px; align-items: center; }
.pager span { color: var(--muted); font-weight: 600; min-width: 80px; text-align: center; }

/* ── Matchs ── */
.match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 12px 18px; border-top: 1px solid var(--line);
}
.match:first-child { border-top: 0; }
.side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side.right { justify-content: flex-end; text-align: right; }
.side a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a:hover { color: var(--accent); }
.side .elo { font-size: 13px; font-weight: 800; }
.side.win .elo { color: var(--win); }
.side.lose .elo { color: var(--lose); }
.side.win a::before { content: "🏆 "; }
.mid { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 120px; }
.mid b { font-size: 14px; }
.mid time { font-size: 12px; color: var(--dim); }
.vs { color: var(--dim); font-weight: 800; font-size: 12px; }

/* ── Profil ── */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 26px; align-items: center; overflow: hidden; position: relative; }
.profile::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, .18), transparent 70%); pointer-events: none;
}
.profile .body { justify-self: center; height: 220px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.profile h1 { margin: 0; font-size: 36px; letter-spacing: -.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.group { font-size: 13px; padding: 4px 11px; border-radius: 8px; font-weight: 800; letter-spacing: .4px; border: 1px solid currentColor; background: rgba(255, 255, 255, .04); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); margin: 10px 0 18px; font-size: 14px; }
.meta b { color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.hl b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mode { padding: 16px 18px; }
.mode-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mode-head h3 { margin: 0; font-size: 17px; }
.mode-head b { font-size: 20px; color: var(--accent); }
.mode-head b small { font-size: 12px; color: var(--muted); margin-left: 3px; }
.wl { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; font-size: 13px; color: var(--muted); align-items: center; }
.bar { height: 6px; border-radius: 999px; background: rgba(255, 90, 90, .35); overflow: hidden; }
.bar.none { background: var(--line); }
.bar i { display: block; height: 100%; background: var(--win); border-radius: 999px; }
.wl .n { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Staff ── */
.staff-group { margin-bottom: 26px; }
.staff-group h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.staff-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px 14px; transition: border-color .15s, transform .15s; }
.member:hover { border-color: var(--accent); transform: translateY(-2px); }
.member b { display: block; }
.member span { color: var(--muted); font-size: 12px; }

/* ── Pied de page ── */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand b { display: block; font-size: 17px; }
.footer-brand span, .footer-links, .footer-note { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links b { color: var(--text); }
.footer-note { margin: 0 0 0 auto; color: var(--dim); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--card-2); border: 1px solid var(--accent); padding: 10px 18px; border-radius: 12px; font-weight: 700;
  transition: opacity .2s, transform .2s; z-index: 50; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Icônes d'items ── */
.icon { image-rendering: pixelated; flex: none; }
.title-icon { display: inline-block; vertical-align: -6px; margin-right: 12px; }

/* ── Onglets des modes (classements, matchs) ── */
.lb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.tabs { position: relative; display: flex; align-items: stretch; margin: 6px 0 18px; border-bottom: 1px solid var(--line); }
.tabs-track { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; flex: 1; }
.tabs-track::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 16px 12px; background: none; border: 0; cursor: pointer; color: var(--dim); font-weight: 700; font-size: 14px;
  position: relative; scroll-snap-align: start; transition: color .15s, background .15s;
}
.tab .icon { filter: grayscale(1) brightness(.55); transition: filter .15s, transform .15s; }
.tab:hover { color: var(--muted); }
.tab:hover .icon { filter: grayscale(.4) brightness(.85); }
.tab.on { color: var(--text); background: linear-gradient(180deg, transparent, rgba(255, 122, 26, .08)); }
.tab.on .icon { filter: none; transform: scale(1.08); }
.tab.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }
.tabs-arrow { flex: none; width: 34px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.tabs-arrow:hover { color: var(--text); }

/* ── Matchs : ligne cliquable ── */
a.match { transition: background .12s; }
a.match:hover { background: var(--card-2); }
.side b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side.win b::before { content: "🏆 "; }
.mid-mode { display: inline-flex; align-items: center; gap: 6px; }

/* ── Profil ── */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.paside { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 6px; position: sticky; top: 90px; }
.paside .seen { color: var(--dim); font-size: 13px; }
.paside h1 { margin: 0; font-size: 26px; letter-spacing: -.3px; word-break: break-all; }
.paside .body { width: 140px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.grade { padding: 6px 16px; border-radius: 999px; color: #0b0b0e; font-weight: 800; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.facts { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); width: 100%; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }

.pcard { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); isolation: isolate; background: #120c08; }
.pcard-bg { position: absolute; inset: -40px; z-index: -2; background: url("/img/banner.png") center / cover; filter: blur(26px) saturate(1.1); opacity: .55; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 10, 8, .55), rgba(14, 10, 8, .9)); }
.pcard-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 1.5px; font-size: 13px; color: #d9d2cb; }
.more { color: var(--accent); font-weight: 700; font-size: 14px; }
.more:hover { text-decoration: underline; }
.pcard-grid { display: grid; grid-template-columns: 1.6fr 1fr; }
.pcell { padding: 20px 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.pcell.side { border-left: 1px solid rgba(255, 255, 255, .08); justify-content: center; }
.pcell.bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.label { color: #a59d95; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.big { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.big.sm { font-size: 46px; }
.rankline { font-size: 18px; color: #e9e2db; margin: 2px 0 14px; }
.ladders { display: flex; flex-wrap: wrap; gap: 4px 0; }
.ladder { display: flex; align-items: center; gap: 10px; padding: 4px 18px 4px 0; margin-right: 18px; border-right: 1px solid rgba(255, 255, 255, .1); }
.ladder:last-child { border-right: 0; }
.ladder span { display: block; font-size: 11px; color: #a59d95; font-weight: 700; letter-spacing: .8px; }
.ladder b { font-size: 15px; }
.empty-l { color: var(--dim); }
.record { display: flex; align-items: baseline; gap: 6px; }
.record b { font-size: 40px; font-weight: 800; }
.record small { color: #a59d95; font-weight: 700; }
.record i { color: var(--dim); font-style: normal; margin: 0 6px; }
.ratio { color: #d9d2cb; font-weight: 700; }

.activity { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.act { display: grid; grid-template-columns: 96px 32px 1fr auto 76px; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); transition: background .12s; }
.act:hover { background: var(--card); }
.result { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-align: center; padding: 6px 0; border-radius: 7px; border: 1px solid; }
.result.w { color: var(--win); border-color: rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .08); }
.result.l { color: var(--lose); border-color: rgba(255, 90, 90, .35); background: rgba(255, 90, 90, .08); }
.act-what b { display: flex; align-items: center; gap: 8px; }
.act-what span { color: var(--muted); font-size: 13px; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 2px 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.act-elo { font-weight: 800; font-size: 14px; }
.act-elo.up { color: var(--win); }
.act-elo.down { color: var(--lose); }
.act time { color: var(--dim); font-size: 12px; text-align: right; display: flex; flex-direction: column; }

.friends { width: 100%; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.friends-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.friends-head span { color: var(--muted); font-weight: 700; }
.friends-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.friends-grid .head { width: 100%; height: auto; aspect-ratio: 1; border-radius: 5px; transition: transform .12s; }
.friends-grid a:hover .head { transform: scale(1.12); }
.friends p { margin: 0; font-size: 14px; }

/* ── Page statistiques ── */
.stats-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.stats-head h1 { margin: 0; font-size: 28px; }
.back { font-size: 24px; color: var(--muted); padding: 0 6px; }
.back:hover { color: var(--text); }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.mcard { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0; cursor: pointer; transition: border-color .15s, transform .15s; }
.mcard:hover { border-color: rgba(255, 122, 26, .5); transform: translateY(-2px); }
.mcard.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mcard-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mcard-head b { flex: 1; font-size: 16px; }
.mcard-head i { color: var(--dim); font-style: normal; font-size: 20px; }
.mcard-body { display: grid; grid-template-columns: 1fr 1fr; }
.mcard-body > div { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.mcard-body > div + div { border-left: 1px solid var(--line); }
.mcard-body b { font-size: 15px; }
.mcard-body small { color: var(--muted); font-size: 12px; }

.chart-card { display: grid; grid-template-columns: 220px 1fr; margin-top: 18px; }
.chart-side { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.chart-side .big { font-size: 52px; }
.chart-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chart-modes .pill, .ranges .pill { padding: 5px 11px; font-size: 12px; }
.chart-main { padding: 16px 18px 12px; min-width: 0; }
.ranges { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 6px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--dim); font-size: 11px; font-weight: 600; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .cursor { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 3 3; }
.chart .dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart-tip { position: absolute; top: -6px; transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }

/* ── Page match ── */
.mhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; padding: 4px 0 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.mfact { display: flex; align-items: center; gap: 14px; padding: 0 28px; border-right: 1px solid var(--line); }
.mfact:last-child { border-right: 0; }
.mfact b { display: block; font-size: 16px; }
.mfact-ico { font-style: normal; font-size: 24px; width: 34px; text-align: center; }
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mplayer { display: flex; align-items: center; gap: 18px; padding-left: 8px; }
.head.xl { width: 72px; height: 72px; border-radius: 12px; }
.mname { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; }
.winner { font-size: 11px; letter-spacing: .8px; color: var(--win); border: 1px solid rgba(61, 220, 132, .45); background: rgba(61, 220, 132, .1); padding: 3px 10px; border-radius: 999px; }
.melo { font-size: 22px; font-weight: 800; margin-top: 4px; }
.melo span { color: var(--muted); font-weight: 700; }
.melo.up { color: var(--win); }
.melo.down { color: var(--lose); }
.melo.muted { font-size: 15px; }
.inv { display: grid; gap: 8px; }
.inv-grid, .inv-armor { display: grid; grid-template-columns: repeat(9, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #101015; }
.inv-armor { grid-template-columns: repeat(4, 1fr); width: calc(4 / 9 * 100%); }
.slot { aspect-ratio: 1; position: relative; display: grid; place-items: center; border-right: 1px solid #1c1c24; border-bottom: 1px solid #1c1c24; background: linear-gradient(180deg, #17171e, #121218); }
.inv-grid .slot:nth-child(9n) { border-right: 0; }
.inv-armor .slot:last-child { border-right: 0; }
.slot img { width: 62%; height: 62%; image-rendering: pixelated; }
.slot b { position: absolute; right: 4px; bottom: 1px; font-size: 13px; font-weight: 800; text-shadow: 2px 2px 0 #3a3a3a; }
.slot.ench::after {
  content: ""; position: absolute; inset: 18%; pointer-events: none; mix-blend-mode: screen; border-radius: 3px;
  background: linear-gradient(115deg, transparent 20%, rgba(170, 110, 255, .55) 40%, transparent 60%) 0 0 / 300% 300%;
  animation: glint 3s linear infinite;
}
@keyframes glint { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.hotbar { margin-top: 4px; }
.mstats { padding: 16px 18px; }
.mstats h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.mstat { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.mstat b { color: var(--text); }
.hearts { display: inline-flex; gap: 3px; }
.heart { width: 15px; height: 13px; background: #3a3a45; clip-path: path("M7.5 13 L1 6.5 A3.6 3.6 0 0 1 7.5 2 A3.6 3.6 0 0 1 14 6.5 Z"); }
.heart.full { background: #ff3b3b; }
.heart.half { background: linear-gradient(90deg, #ff3b3b 50%, #3a3a45 50%); }
.effects { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .paside { position: static; }
  .pcard-grid { grid-template-columns: 1fr; }
  .pcell.side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .chart-card { grid-template-columns: 1fr; }
  .chart-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .mcols { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 36px 24px; }
  .hero-logo { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; text-align: left; }
  .profile .body { height: 160px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .act { grid-template-columns: 78px 28px 1fr auto; }
  .act time { display: none; }
  .mfact { padding: 0 14px; }
  .big { font-size: 48px; }
  .menu-btn { display: block; margin-left: auto; }
  .search { order: 3; width: 100%; margin: 0; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .nav { display: none; order: 4; width: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .stats { grid-template-columns: 1fr; }
  .match { grid-template-columns: 1fr; gap: 6px; }
  .side.right { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .mid { align-items: flex-start; flex-direction: row; gap: 10px; }
  .footer-note { margin: 0; }
}

/* ── Cartes à collectionner : verre dépoli, reflet qui suit la souris, holo pour les plus rares ── */
.r-common    { --rc: #e08a4f; --rc-2: #7a3f1d; }
.r-rare      { --rc: #d6dee8; --rc-2: #6b7584; }
.r-epic      { --rc: #ffc53d; --rc-2: #a86a00; }
.r-legendary { --rc: #c77dff; --rc-2: #5b1fa8; }
.r-icon      { --rc: #6ff0ff; --rc-2: #2a6dff; }

.tcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; width: 210px; aspect-ratio: 5 / 7; border-radius: 20px;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
  isolation: isolate; user-select: none;
}
.tcard.hover { transition: transform .08s linear, box-shadow .3s; }
.tcard[role="button"] { cursor: pointer; }
.tcard:focus-visible { outline: 2px solid var(--rc); outline-offset: 4px; }
/* halo coloré derrière le verre */
.tc-glow {
  position: absolute; inset: 8% 6%; z-index: -1; border-radius: 30px;
  background: radial-gradient(60% 50% at 50% 40%, var(--rc), transparent 70%);
  filter: blur(28px); opacity: .45; transition: opacity .3s;
}
.tcard.hover .tc-glow { opacity: .8; }
.tc-body {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; padding: 14px 14px 12px;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 45%, rgba(0, 0, 0, .25));
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .45);
}
/* bordure dégradée à la couleur de la rareté */
.tc-body::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(150deg, var(--rc), rgba(255, 255, 255, .15) 40%, var(--rc-2) 75%, var(--rc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tc-top { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; }
.tc-rating { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tc-rating b {
  font-size: 34px; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(180deg, #fff, var(--rc)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tc-rating span { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--rc); margin-top: 3px; }
.tc-coll {
  font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; margin-top: 2px;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, rgba(0, 0, 0, .35)); border: 1px solid color-mix(in srgb, var(--cc) 40%, transparent);
}
.tc-art img.tc-item { height: auto; width: 46%; max-height: none; }
.tc-art { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: center; margin-top: -26px; }
.tc-art img {
  height: 100%; max-height: 150px; width: auto; image-rendering: pixelated;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 18px color-mix(in srgb, var(--rc) 45%, transparent));
}
.tc-silhouette {
  width: 46%; height: 82%; border-radius: 40% 40% 12px 12px / 30% 30% 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.tc-name {
  width: 100%; text-align: center; font-weight: 900; font-size: 18px; letter-spacing: .3px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.tc-title { font-size: 11px; color: var(--rc); font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 8px; }
.tc-desc {
  width: 100%; margin: 0; padding: 0 4px; text-align: center; font-size: 11.5px; line-height: 1.4; color: rgba(255, 255, 255, .72);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(11.5px * 1.4 * 3);
}
.tcard.locked .tc-desc { color: rgba(255, 255, 255, .3); }
.tc-copies {
  position: absolute; bottom: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .15);
}
/* reflet de lumière */
.tc-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 45%);
  opacity: .5; transition: opacity .3s;
}
.tcard.hover .tc-shine { opacity: 1; }
.tc-holo { display: none; }
/* arc-en-ciel holographique : légendaire et icône */
.r-legendary .tc-holo, .r-icon .tc-holo {
  display: block; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: color-dodge; opacity: .22;
  background:
    repeating-linear-gradient(115deg, #ff7ad9 0%, #7af7ff 7%, #fff27a 14%, #a17aff 21%, #ff7ad9 28%),
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .5), transparent 50%);
  background-size: 300% 300%, 100% 100%;
  background-position: var(--mx) var(--my), center;
  transition: opacity .3s;
}
.tcard.hover .tc-holo { opacity: .45; }
.r-icon .tc-body { background-color: rgba(120, 220, 255, .06); }
.r-icon.tcard:not(.locked) { animation: icon-float 4s ease-in-out infinite; }
@keyframes icon-float { 50% { translate: 0 -4px; } }

.tcard.locked .tc-body { background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); }
.tcard.locked .tc-glow { opacity: .12; }
.tcard.locked .tc-name { color: rgba(255, 255, 255, .35); }
.tcard.locked .tc-rating b { background: none; color: rgba(255, 255, 255, .3); }

.tcard.mini { width: 132px; border-radius: 15px; }
.tcard.mini .tc-body { padding: 10px 9px 9px; }
.tcard.mini .tc-rating b { font-size: 24px; }
.tcard.mini .tc-rating span { font-size: 8px; }
.tcard.mini .tc-coll { display: none; }
.tcard.mini .tc-art { margin-top: -16px; }
.tcard.mini .tc-art img { max-height: 92px; }
.tcard.mini .tc-name { font-size: 12px; padding-top: 4px; }
.tcard.mini .tc-title { font-size: 9px; margin-bottom: 0; }

/* étagère du profil */
.shelf {
  margin-top: 18px; padding: 20px 24px 24px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 0% 0%, rgba(199, 125, 255, .10), transparent 60%),
              radial-gradient(70% 100% at 100% 100%, rgba(111, 240, 255, .08), transparent 60%), var(--card);
}
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.shelf-count { font-size: 14px; color: var(--muted); margin-top: 4px; }
.shelf-count b { font-size: 22px; color: var(--text); }
.shelf-cards { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 14px; margin: -8px -4px -14px; scrollbar-width: thin; }
.shelf-cards .tcard { flex: none; }
.shelf-empty { margin: 0; }

/* page collection */
.coll-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
  padding: 24px 28px; border-radius: 18px; border: 1px solid var(--line); margin-bottom: 18px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(199, 125, 255, .14), transparent 55%),
              radial-gradient(70% 120% at 100% 100%, rgba(111, 240, 255, .10), transparent 60%), var(--card);
}
.coll-hero .big small { font-size: 26px; color: var(--muted); letter-spacing: 0; }
.coll-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); margin: 14px 0; overflow: hidden; }
.coll-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c77dff, #6ff0ff); }
.coll-hero p { margin: 0; max-width: 520px; }
.coll-rarities { display: grid; gap: 8px; }
.coll-r { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.coll-r i { width: 10px; height: 10px; border-radius: 3px; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.coll-r span { font-weight: 700; color: var(--rc); }
.coll-r b { font-variant-numeric: tabular-nums; }
.coll-filters { margin-bottom: 22px; flex-wrap: wrap; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 20px; justify-items: center; padding: 6px 0 20px; }

/* carte agrandie */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 5, 8, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .2s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; max-width: 760px; width: 100%;
  padding: 28px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(80% 100% at 0% 50%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 65%), rgba(22, 22, 28, .85);
  max-height: calc(100vh - 32px); overflow: auto;
}
.modal-inner .tcard { width: 260px; }
.modal-inner .tc-art img { max-height: 190px; }
.modal-info h2 { margin: 6px 0 2px; font-size: 30px; }
.modal-info p { margin: 0 0 12px; }
.modal-info .modal-bio { margin: 14px 0 18px; }
.modal-bio { font-size: 15px; line-height: 1.6; }
.rar { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--rc); }
.dim { color: var(--dim); font-size: 13px; }

@media (max-width: 760px) {
  .coll-hero { grid-template-columns: 1fr; padding: 20px; }
  .coll-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; }
  .coll-grid .tcard { width: 100%; max-width: 210px; }
  .modal-inner { grid-template-columns: 1fr; justify-items: center; padding: 20px; gap: 20px; }
  .modal-inner .tcard { width: 220px; }
  .modal-info { width: 100%; }
  .shelf { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tcard, .r-icon.tcard:not(.locked) { animation: none; transition: none; }
}

.tcard[hidden], .series[hidden] { display: none; }

/* collections (séries) */
.series { margin-top: 30px; }
.series-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 0 0 12px 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--cc);
}
.series-head h2 { margin: 0; font-size: 22px; color: var(--cc); }
.series-head p { margin: 2px 0 0; font-size: 14px; }
.series-count { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.series-rar { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.series-rar span { display: inline-flex; align-items: center; gap: 6px; }
.series-rar i, .ency-odds i { width: 9px; height: 9px; border-radius: 3px; background: var(--rc); box-shadow: 0 0 8px var(--rc); }

/* encyclopédie */
.ency-hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 30px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 0% 0%, rgba(199, 125, 255, .16), transparent 55%),
              radial-gradient(70% 120% at 100% 100%, rgba(111, 240, 255, .12), transparent 60%), var(--card);
}
.ency-hero h1 { margin: 8px 0 8px; font-size: 34px; letter-spacing: -.5px; }
.ency-hero p { margin: 0; color: var(--muted); max-width: 560px; }
.ency-stats { display: flex; gap: 26px; margin-top: 20px; }
.ency-stats b { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ency-stats span { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.ency-how { padding: 18px 20px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.ency-how h3 { margin: 0 0 8px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ency-how ol { margin: 0 0 14px; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.ency-odds { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.ency-odds div { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); font-size: 13px; }
.ency-odds span { color: var(--rc); font-weight: 700; }
.ency-odds b { font-variant-numeric: tabular-nums; }
.ency-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 22px 0 4px; }
.ency-bar .ranges { flex-wrap: wrap; }
.ency-search {
  margin-left: auto; min-width: 220px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit;
}
.ency-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.modal-story { font-size: 14px; line-height: 1.65; color: #cfcfd8; }

@media (max-width: 760px) {
  .ency-hero { grid-template-columns: 1fr; padding: 20px; }
  .ency-hero h1 { font-size: 26px; }
  .ency-search { margin-left: 0; width: 100%; }
}

/* ── Compte ── */
.account { position: relative; flex: none; }
.login-btn {
  display: inline-flex; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px;
  background: var(--grad); color: #160c05;
}
.login-btn:hover { filter: brightness(1.08); }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.account-btn .head { border-radius: 50%; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 180px; padding: 6px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid;
}
.account-menu[hidden] { display: none; }
.account-menu a, .account-menu button {
  text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--text);
}
.account-menu a:hover, .account-menu button:hover { background: rgba(255, 255, 255, .06); }

.auth { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 360px); gap: 24px; justify-content: center; padding-top: 20px; }
.auth-card {
  padding: 30px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 0% 0%, rgba(255, 122, 26, .12), transparent 60%), var(--card);
}
.auth-card h1 { margin: 8px 0 20px; font-size: 28px; }
.auth-form { display: grid; gap: 14px; }
.auth-form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn-primary {
  display: inline-flex; justify-content: center; padding: 12px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--grad); color: #160c05; font-weight: 800; font-size: 15px;
}
.btn-primary:disabled { opacity: .6; cursor: wait; }
.link-btn { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 700; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.form-error { margin: 0; min-height: 1em; color: var(--lose); font-size: 14px; }
.form-ok { margin: 0; color: var(--win); font-size: 14px; }
.form-error:empty, .form-ok:empty { display: none; }
.meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: -6px; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lose); transition: width .2s, background .2s; }
.meter[data-level="mid"] i { background: var(--gold); }
.meter[data-level="high"] i { background: var(--win); }
.auth-who { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 18px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.auth-who .head { border-radius: 8px; }
.auth-who b { display: block; }
.auth-who span { font-size: 13px; color: var(--muted); }
.auth-help { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); align-self: start; }
.auth-help h3 { margin: 0 0 10px; font-size: 16px; }
.auth-help ol, .auth-help ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.auth-help code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
.auth-help p { margin: 0; font-size: 14px; }

@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; padding-top: 0; }
  .auth-card, .auth-help { padding: 20px; }
  .account-btn span { display: none; }
  .account-btn { padding: 4px; }
}

/* ── Admin ── */
.admin-tabs { margin-bottom: 20px; }
.admin-cards { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-cards aside { display: grid; gap: 12px; position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.admin-cards .ency-search { margin: 0; min-width: 0; width: 100%; }
.admin-list { display: grid; gap: 14px; }
.admin-group { display: grid; gap: 4px; }
.admin-group > b { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--cc); padding-left: 2px; }
.admin-row {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; text-align: left; font-size: 14px;
}
.admin-row i { width: 9px; height: 9px; border-radius: 3px; background: var(--rc); }
.admin-row small { color: var(--dim); font-size: 11px; }
.admin-row:hover { border-color: rgba(255, 255, 255, .18); }
.admin-row.on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 10%, var(--card)); }
.admin-row.off span { color: var(--dim); text-decoration: line-through; }
.admin-editor { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-side { position: sticky; top: 86px; display: grid; gap: 10px; justify-items: center; }
.admin-preview { display: grid; gap: 8px; justify-items: center; }
.admin-preview .tcard { width: 220px; }
.admin-meta { font-size: 12px; text-align: center; margin: 0; }
.admin-form { display: grid; gap: 14px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.admin-form.narrow { max-width: 520px; }
.admin-form p.muted { margin: 0; font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.field select, .field textarea {
  padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; resize: vertical;
}
.field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[type="color"] { padding: 3px; height: 44px; cursor: pointer; }
.field input[readonly] { opacity: .6; }
.field span { display: flex; justify-content: space-between; gap: 8px; }
.field .count { font-weight: 600; color: var(--dim); font-size: 11px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.admin-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill.danger { color: var(--lose); border-color: color-mix(in srgb, var(--lose) 40%, var(--line)); }
.pill.danger:hover { background: color-mix(in srgb, var(--lose) 12%, var(--card)); }
.admin-colls { display: grid; gap: 16px; max-width: 900px; }
.admin-colls h3 { margin: 14px 0 0; }
.admin-coll { display: grid; gap: 12px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--cc); background: var(--card); }
.admin-log { display: grid; gap: 6px; max-width: 900px; }
.admin-log > div {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line); font-size: 14px;
}
.admin-log time { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-log span { color: var(--accent); font-weight: 700; }
.admin-log code { font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--bg-2); }
.admin-log small { color: var(--muted); }

@media (max-width: 900px) {
  .admin-cards, .admin-editor { grid-template-columns: 1fr; }
  .admin-cards aside, .admin-side { position: static; max-height: none; }
}

/* ── Dashboard admin ── */
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: start; }
.dash-nav {
  position: sticky; top: 86px; display: grid; gap: 2px; padding: 14px 10px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 122, 26, .06), transparent 40%), var(--card);
}
.dash-brand { font-size: 18px; font-weight: 700; padding: 4px 10px 12px; letter-spacing: .3px; }
.dash-brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.dash-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 14px; text-align: left;
}
.dash-link i { width: 20px; text-align: center; font-style: normal; opacity: .8; }
.dash-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.dash-link.on { background: rgba(255, 122, 26, .14); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash-head h1 { margin: 0; font-size: 26px; }
.dash-stack { display: grid; gap: 18px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.dash-stat { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); position: relative; overflow: hidden; }
.dash-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line); }
.dash-stat.good::before { background: var(--win); }
.dash-stat.warn::before { background: var(--gold); }
.dash-stat.bad::before { background: var(--lose); }
.dash-stat span { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.dash-stat b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-stat small { color: var(--dim); font-size: 12px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.dash-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.dash-card { display: grid; gap: 12px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); align-content: start; }
.dash-card h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dash-card p { margin: 0; font-size: 14px; }
.dash-card.current { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.warn-card { border-color: color-mix(in srgb, var(--lose) 45%, var(--line)); background: linear-gradient(180deg, rgba(255, 90, 90, .06), transparent 60%), var(--card); }
.dash-search { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-search .ency-search { margin: 0; flex: 1; min-width: 200px; }
.dash-player { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.dash-player .head { border-radius: 10px; }
.dash-player h2 { margin: 0; font-size: 22px; }
.dash-player p { margin: 2px 0 0; font-size: 13px; }
.dash-player .pill { margin-left: auto; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.pchip:hover { border-color: rgba(255, 255, 255, .2); }
.pchip .head { border-radius: 50%; }
.pchip small { color: var(--dim); font-weight: 500; }
.pchip-x { display: inline-flex; align-items: center; gap: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-x { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.tag-x small { font-weight: 500; color: var(--muted); }
.tag-x.bad { border-color: color-mix(in srgb, var(--lose) 50%, var(--line)); color: var(--lose); }
button.x { border: 0; background: rgba(255, 255, 255, .06); color: var(--muted); width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 11px; padding: 0 6px; }
button.x:hover { background: rgba(255, 90, 90, .2); color: var(--lose); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select {
  padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; min-width: 0;
}
.inline-form input { flex: 1; min-width: 120px; }
.inline-form input[type="number"] { flex: 0 0 110px; }
.btn-primary.sm { padding: 9px 14px; font-size: 14px; }
.hist { display: grid; gap: 6px; margin-top: 8px; max-height: 280px; overflow: auto; }
.hist > div { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--bg-2); }
.hist small { color: var(--dim); }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.dash-actions { display: grid; gap: 6px; }
.dash-actions > div { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 9px; background: var(--bg-2); font-size: 13px; }
.dash-actions i { font-style: normal; font-weight: 900; text-align: center; }
.dash-actions .good i { color: var(--win); }
.dash-actions .bad i { color: var(--lose); }
.dash-actions .wait i { color: var(--gold); }
.dash-actions small { display: block; color: var(--muted); margin-top: 2px; }
.dash-actions time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.dash-table { display: grid; gap: 6px; }
.dash-table .row { display: grid; grid-template-columns: 1.3fr .6fr 1.6fr 1fr .8fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.dash-table.acc .row { grid-template-columns: 1.3fr 1.4fr .8fr .6fr .8fr auto; }
.dash-table .row.head { background: none; border: 0; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); padding-top: 0; padding-bottom: 0; }
.season-top { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.season-top li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.level { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.level:has(input:checked) { border-color: var(--accent); background: rgba(255, 122, 26, .08); }
.level input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.level b { display: block; font-size: 14px; }
.level small { color: var(--muted); font-size: 12px; }
.check.big { font-size: 14px; }
.narrowf { max-width: 360px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; padding: 8px; }
  .dash-brand { display: none; }
  .dash-link { flex: none; }
  .dash-link span { white-space: nowrap; }
  .dash-cols, .dash-grid2 { grid-template-columns: 1fr; }
  .dash-table .row, .dash-table.acc .row { grid-template-columns: 1fr 1fr; }
  .dash-table .row.head { display: none; }
}

/* ── Graphiques du dashboard ── */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .tick { fill: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .1; }
.chart .end-dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.chart .cross { stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.chart .ref { stroke: var(--gold); stroke-width: 1; opacity: .55; }
.chart .ref-label, .chart .bar-label { fill: var(--muted); font-size: 11px; font-weight: 700; }
.chart .bar { fill: var(--accent); opacity: .55; transition: opacity .12s; }
.chart .bar.today { opacity: 1; }
.chart .bar.on { opacity: .9; }
.chart-tip {
  position: absolute; pointer-events: none; display: grid; gap: 2px; padding: 8px 11px; border-radius: 9px; min-width: 130px;
  background: var(--card-2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px;
}
.chart-tip[hidden] { display: none; }
.chart-tip small { color: var(--muted); font-size: 12px; }
.dash-table.peaks .row { grid-template-columns: 1.4fr .6fr .8fr .8fr; }
.dash-table[hidden] { display: none; }

.tc-art img.tc-logo {
  width: 68%; height: auto; max-height: 62%; object-fit: contain; image-rendering: auto; border-radius: 14px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 18px color-mix(in srgb, var(--rc) 40%, transparent));
}
.tcard.mini .tc-art img.tc-logo { width: 62%; }

/* ── Bannière Discord (accueil) ── */
.nav a.nav-discord { color: #aab3ff; }
.nav a.nav-discord:hover { color: #fff; background: rgba(88, 101, 242, .18); }
.discord {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 18px; border-radius: 18px;
  display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; padding: 20px 24px;
  background: linear-gradient(120deg, #1a1d3d 0%, #13152b 60%, #0f1020 100%); border: 1px solid rgba(88, 101, 242, .35);
}
.dc-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px 160px at 0% 50%, rgba(88, 101, 242, .4), transparent 70%), radial-gradient(300px 140px at 100% 50%, rgba(235, 69, 158, .16), transparent 70%); }
.dc-logo { display: block; flex: none; }
.dc-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #5865f2; color: #fff; flex: none;
  box-shadow: 0 8px 22px rgba(88, 101, 242, .45); }
.dc-intro { flex: 1; min-width: 220px; }
.discord h2 { margin: 0; font-size: 21px; letter-spacing: -.3px; }
.discord h2 b { color: #aab3ff; }
.dc-intro p { margin: 3px 0 0; color: #b4b8d4; font-size: 14px; }
.dc-intro code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: #fff; background: rgba(88, 101, 242, .28); padding: 1px 6px; border-radius: 6px; }
.dc-counts { display: flex; gap: 20px; }
.dc-count b { display: flex; align-items: center; gap: 7px; font-size: 19px; line-height: 1.1; }
.dc-count span { color: #9a9fc0; font-size: 12.5px; }
.dc-count.live i { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; box-shadow: 0 0 10px #23a55a; animation: dc-pulse 2s ease-in-out infinite; }
@keyframes dc-pulse { 50% { opacity: .45; } }
.dc-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 12px; flex: none;
  background: #5865f2; color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(88, 101, 242, .4); transition: transform .15s, background .15s;
}
.dc-btn:hover { background: #4752c4; transform: translateY(-2px); }
@media (max-width: 640px) {
  .dc-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-count.live i { animation: none; }
}

/* ── Langue ── */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.lang-switch button { border: 0; background: none; padding: 5px 10px; border-radius: 7px; font-weight: 800; font-size: 12px; color: var(--muted); cursor: pointer; }
.lang-switch button.on { background: var(--card-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* ── Forum ── */
.fhero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 34px 36px; border-radius: 22px;
  border: 1px solid rgba(255, 122, 26, .25); margin-bottom: 26px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(255, 122, 26, .2), transparent 60%), radial-gradient(60% 100% at 100% 100%, rgba(232, 56, 28, .12), transparent 60%), var(--card);
}
.fhero h1 { margin: 8px 0 6px; font-size: clamp(36px, 5vw, 52px); letter-spacing: -1.5px; line-height: 1; }
.fhero p { margin: 0; color: var(--muted); max-width: 560px; }
.fhero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.flayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.fsection h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.fsection + .fsection { margin-top: 22px; }
.flist { overflow: hidden; }
.fcat, .fthread {
  display: grid; align-items: center; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); transition: background .15s;
}
.fcat { grid-template-columns: 46px minmax(0, 1fr) 70px minmax(0, 210px); }
.fcat:first-child, .fthread:first-child { border-top: 0; }
.fcat:hover, .fthread:hover { background: var(--card-2); }
.fcat-ico {
  --c: #ff7a1a;
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; color: var(--c);
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 24%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px color-mix(in srgb, var(--c) 14%, transparent);
  transition: transform .15s;
}
.fcat:hover .fcat-ico { transform: scale(1.06) rotate(-3deg); }
.fcat-ico svg { display: block; }
.ftitle-ico { display: flex; align-items: center; gap: 12px; }
.fside-title { display: flex; align-items: center; gap: 8px; }
.fside-title svg { color: #7aa2ff; }
.fhero-actions .btn svg, .eyebrow svg { flex: none; }
.fcat-ico.big { width: 58px; height: 58px; font-size: 28px; border-radius: 16px; }
.fcat-main b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.fcat-main p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.flock { font-size: 12px; opacity: .8; }
.fcat-count { text-align: center; }
.fcat-count b { display: block; font-size: 18px; }
.fcat-count span { color: var(--dim); font-size: 12px; }
.fcat-last { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fcat-last .head { border-radius: 6px; flex: none; }
.fcat-last > div { min-width: 0; }
.fcat-title { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcat-last small, .fthread small { color: var(--muted); font-size: 12.5px; }
.fside { display: grid; gap: 14px; }
.fside-card { padding: 18px; }
.fside-card h3 { margin: 0 0 12px; font-size: 15px; }
.fside-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.fside-appeal { background: radial-gradient(90% 90% at 100% 0%, rgba(255, 122, 26, .14), transparent 60%), var(--card); }
.frecent { display: flex; gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; }
.frecent:hover { background: var(--card-2); }
.frecent .head { border-radius: 6px; flex: none; }
.frecent div { min-width: 0; }
.frecent b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frecent small { color: var(--muted); font-size: 12px; }
.fhint { padding: 16px 18px; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.fhint a { color: var(--accent); font-weight: 700; }
.fhint code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.fcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.fcrumbs a { color: var(--accent); font-weight: 600; }
.fcrumbs b { color: var(--text); font-weight: 600; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.fcat-head > div { flex: 1; min-width: 0; }
.fcat-head .page-sub { margin: 0; }
.fthread { grid-template-columns: 38px minmax(0, 1fr) auto 70px 120px; }
.fthread .head { border-radius: 8px; }
.fthread.pinned { background: rgba(255, 122, 26, .05); }
.fthread-main b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpin { margin-right: 6px; }
.fthread-last { display: grid; text-align: right; }
.fbadge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.fbadge.st-open { color: var(--gold); border-color: rgba(255, 197, 61, .4); background: rgba(255, 197, 61, .08); }
.fbadge.st-ok { color: var(--win); border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); }
.fbadge.st-no { color: var(--lose); border-color: rgba(255, 90, 90, .4); background: rgba(255, 90, 90, .08); }
.fthread-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.fthread-head .page-title { margin: 0; overflow-wrap: anywhere; }
.fmod { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; border: 1px dashed rgba(255, 122, 26, .4); font-size: 13px; color: var(--muted); }
.btn.sm, .btn-primary.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger, .link-btn.danger { color: var(--lose); }
.fposts { display: grid; gap: 12px; }
.fpost { display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; }
.fpost.first { border-color: rgba(255, 122, 26, .3); }
.fpost-author { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; text-align: center; background: var(--bg-2); border-right: 1px solid var(--line); }
.fpost-author .head { border-radius: 10px; }
.fpost-name { font-weight: 800; overflow-wrap: anywhere; }
.fpost-name:hover { color: var(--accent); }
.fgrade { padding: 2px 9px; border-radius: 999px; color: #0b0b0e; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.fpost-main { padding: 16px 20px; min-width: 0; display: flex; flex-direction: column; }
.fpost-meta { font-size: 12.5px; color: var(--dim); margin-bottom: 10px; }
.fpost-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; flex: 1; }
.fpost-body a { color: var(--accent); text-decoration: underline; }
.fpost-actions { display: flex; gap: 16px; margin-top: 12px; }
.fpost-actions .link-btn { margin: 0; font-size: 13px; }
.ftext, .finput {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; resize: vertical;
}
.ftext:focus, .finput:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.finput.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 4px; text-transform: uppercase; font-size: 20px; text-align: center; }
.fedit { display: grid; gap: 10px; }
.fedit-actions { display: flex; gap: 10px; }
.freply, .fnew { display: grid; gap: 12px; padding: 20px; margin-top: 16px; }
.freply h3 { margin: 0; font-size: 16px; }
.freply .btn-primary, .fnew .btn-primary { justify-self: start; }
@media (max-width: 900px) {
  .flayout { grid-template-columns: 1fr; }
  .ffoot { grid-template-columns: 1fr; }
  .ffoot-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcat { grid-template-columns: 42px minmax(0, 1fr) 56px; }
  .fcat-last { display: none; }
  .fthread { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .fthread .fcat-count, .fthread-last { display: none; }
}
@media (max-width: 640px) {
  .fhero { padding: 24px 20px; }
  .fpost { grid-template-columns: 1fr; }
  .fpost-author { flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .fpost-author .head { width: 34px; height: 34px; }
  .fcat-head { flex-wrap: wrap; }
}

/* ── Forum : smileys, stickers, GIF, barre d'outils ── */
.smiley { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; image-rendering: pixelated; margin: 0 1px; }
.sticker { display: block; width: 150px; height: 120px; margin: 6px 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.fgif { display: block; max-width: min(100%, 360px); max-height: 300px; margin: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.fcompose { display: grid; gap: 0; }
.fcompose .ftext { border-top-left-radius: 0; border-top-right-radius: 0; }
.ftools {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0; background: var(--card-2);
}
.ftool {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: none;
  color: var(--muted); font-weight: 800; font-size: 13px; cursor: pointer;
}
.ftool:hover, .ftool.on { background: var(--bg-2); color: var(--text); }
.ftool.on { box-shadow: inset 0 -2px 0 var(--accent); }
.ftool.right { margin-left: auto; }
.ftool .smiley { width: 20px; height: 20px; vertical-align: 0; }
.fpanel { border: 1px solid var(--line); border-bottom: 0; background: var(--bg-2); padding: 10px; max-height: 260px; overflow-y: auto; }
.femoji, .fsmileys { display: flex; flex-wrap: wrap; gap: 2px; }
.femoji button, .fsmileys button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 22px; display: grid; place-items: center; }
.femoji button:hover, .fsmileys button:hover { background: var(--card-2); }
.fsmileys .smiley { width: 28px; height: 28px; margin: 0; vertical-align: 0; }
.fstickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.fstickers button { border: 0; border-radius: 10px; background: none; padding: 4px; cursor: pointer; transition: transform .12s, background .12s; }
.fstickers button:hover { background: var(--card-2); transform: scale(1.06) rotate(-2deg); }
.fstickers img { width: 100%; height: auto; }
.fgifs { display: grid; gap: 8px; }
.fgifs .muted { margin: 0; font-size: 13px; }
.fgif-row { display: flex; gap: 8px; }
.fgif-row .finput { flex: 1; }
.fgif-look .fgif { max-height: 180px; }
.fgifs .btn-primary { justify-self: start; }
.fpreview { margin-top: 8px; padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--line); background: var(--bg-2); }

.modal-title { margin: -4px 0 6px; color: var(--rc); font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; font-size: 13px; }
.tcard:not(.mini) .tc-title { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: 1px; margin-bottom: 6px; }

/* ── Trophées du profil ── */
.trophies { margin-top: 26px; }
.trophies .section-title { margin-top: 0; }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.trophy {
  --tc: #f0a46a;
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tc) 14%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--tc) 35%, var(--line));
}
.trophy.p1 { --tc: #ffd86b; }
.trophy.p2 { --tc: #c9d1dc; }
.trophy.major { grid-column: span 2; padding: 16px 18px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 30%, transparent), 0 10px 30px color-mix(in srgb, var(--tc) 18%, transparent); }
.trophy.major b { font-size: 18px; }
.trophy-svg { flex: none; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--tc) 40%, transparent)); }
.trophy b { display: block; font-size: 15px; }
.trophy span { color: var(--muted); font-size: 13px; }
.trophy .trophy-mode { margin-left: auto; opacity: .9; }
@media (max-width: 640px) { .trophy.major { grid-column: auto; } }

/* ── Classic / Modern ── */
.elo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.elo-pair .label { display: inline-flex; align-items: center; gap: 6px; }
.elo-pair .big.sm { font-size: 44px; }
.section-title .seg.sm { margin-left: auto; margin-right: 12px; }
.seg.sm button { padding: 5px 12px; font-size: 13px; }

/* ── Sélecteur Modern (1.21) / Classic (1.8) ── */
.vtoggle-row { display: flex; margin: 0 0 14px; }
.vtoggle-row.center { justify-content: center; margin: 4px 0 24px; }
.vtoggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 18px; isolation: isolate;
  background: linear-gradient(180deg, #19191f, #111115);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 30px rgba(0, 0, 0, .35);
}
.vt-ind {
  position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 13px;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(232, 56, 28, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s cubic-bezier(.3, .9, .3, 1);
}
.vtoggle[data-active="classic"] .vt-ind { transform: translateX(100%); }
.vtoggle button {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; padding: 12px 22px;
  border: 0; border-radius: 13px; background: none; cursor: pointer;
  color: var(--muted); font: 700 15px/1 inherit; letter-spacing: .2px; transition: color .25s;
}
.vtoggle button:hover:not(.on) { color: var(--text); }
.vtoggle button:hover:not(.on) .vt-ico { filter: none; opacity: .9; }
.vt-ico { image-rendering: pixelated; filter: grayscale(.7); opacity: .55; transition: filter .25s, opacity .25s, transform .25s; }
.vtoggle button.on { color: #1a0d00; }
.vtoggle button.on .vt-ico { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); opacity: 1; transform: scale(1.08); }
.vt-ver {
  padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .4px;
  color: var(--dim); background: rgba(255, 255, 255, .06); transition: color .25s, background .25s;
}
.vtoggle button.on .vt-ver { color: rgba(26, 13, 0, .75); background: rgba(255, 255, 255, .28); }
.vtoggle.sm { padding: 4px; border-radius: 14px; }
.vtoggle.sm .vt-ind { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; }
.vtoggle.sm button { min-width: 0; gap: 7px; padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.vtoggle.sm .vt-ver { font-size: 10px; padding: 2px 6px; }
@media (max-width: 480px) {
  .vtoggle { display: grid; width: 100%; }
  .vtoggle button { min-width: 0; padding: 11px 8px; gap: 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-ind, .vt-ico { transition: none; }
}

/* ───────────── Wiki staff ───────────── */
.wiki { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.wiki-side { position: sticky; top: 86px; display: grid; gap: 16px; max-height: calc(100vh - 110px); overflow: auto; }
.wiki-cat { display: grid; gap: 2px; }
.wiki-cat b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.wiki-link { padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none; }
.wiki-link:hover { background: var(--card); }
.wiki-link.on { background: var(--card-2); box-shadow: inset 2px 0 0 var(--accent); }
.wiki-main { min-width: 0; }
.wiki-home > p { color: var(--muted); margin-top: 0; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wiki-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.wiki-card:hover { border-color: var(--accent); }
.wiki-card small { color: var(--accent); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.wiki-card span { font-size: 12px; }
.wiki-article { max-width: 820px; }
.wiki-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.wiki-title { margin: 10px 0 6px; font-size: 30px; line-height: 1.15; text-wrap: balance; }
.wiki-body { line-height: 1.65; font-size: 15px; }
.wiki-body p, .wiki-body li { max-width: 72ch; }
.wiki-body h2 { margin: 34px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 22px; }
.wiki-body h3 { margin: 24px 0 6px; font-size: 18px; }
.wiki-body h4 { margin: 22px 0 4px; font-size: 16px; }
.wiki-body h5 { margin: 18px 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wiki-body a { color: var(--accent); }
.wiki-body code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.wiki-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.wiki-body li { margin: 4px 0; }
.wiki-body li.task { list-style: none; position: relative; }
.wiki-body li.task::before { content: "☐"; position: absolute; left: -20px; color: var(--accent); }
.wiki-body li.task.done::before { content: "☑"; }
.wiki-code { position: relative; margin: 12px 0; border-radius: 10px; background: #08080b; border: 1px solid var(--line); overflow-x: auto; }
.wiki-code pre { margin: 0; padding: 14px 90px 14px 16px; font: 13.5px/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #ffd9b8; white-space: pre; }
.wiki-code pre .c { color: var(--muted); }
.wiki-code button { position: absolute; top: 8px; right: 8px; font: 700 12px inherit; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); cursor: pointer; }
.wiki-code button:hover { border-color: var(--accent); }
.wiki-note { margin: 14px 0; padding: 10px 16px; border-radius: 0 10px 10px 0; border-left: 3px solid var(--accent); background: rgba(255, 122, 26, .08); }
.wiki-note.warn { border-left-color: #f5c542; background: rgba(245, 197, 66, .08); }
.wiki-note p { margin: 4px 0; }
.wiki-table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }
.wiki-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.wiki-table th, .wiki-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wiki-table th { background: var(--card-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.wiki-table tr:last-child td { border-bottom: 0; }
.wiki-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.wiki-src { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; font-size: 13px !important; min-height: 420px; }
.wiki-preview { padding: 6px 16px; border-radius: 10px; border: 1px dashed var(--line); background: var(--bg-2); max-height: 620px; overflow: auto; }
@media (max-width: 900px) {
  .wiki, .wiki-split { grid-template-columns: 1fr; }
  .wiki-side { position: static; max-height: none; }
}

/* ───────────── Console (Owner) ───────────── */
.console { display: grid; gap: 10px; }
.console-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.console-status.live::before { content: "●"; color: #3ddc84; margin-right: 6px; }
.console-log {
  margin: 0; height: min(62vh, 640px); overflow: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #060608; color: #d6d6de; font: 12.5px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; word-break: break-word;
}
.console-log .warn { color: #f5c542; }
.console-log .err { color: #ff6b5b; }
.console-log .me { color: #ffb36b; }
.console-form { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.console-prompt { color: var(--accent); font: 700 15px ui-monospace, Consolas, monospace; }
.console-input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 14px ui-monospace, "Cascadia Mono", Consolas, monospace; outline: none; }

/* ───────────── Schematics ───────────── */
.schem { display: grid; gap: 18px; max-width: 980px; }
.schem-h { margin: 0; }
.schem-list { display: grid; gap: 16px; }
.schem-folder h3 { margin: 0 0 8px; font-size: 16px; }
.schem-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); margin-bottom: 6px; font-size: 14px; }
.schem-row code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.schem-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ───────────── Actualités ───────────── */
.news { margin-top: 44px; }
.news-head-title { text-align: center; margin-bottom: 22px; }
.news-head-title h2 { margin: 0; font-size: 28px; letter-spacing: -.4px; }
.news-head-title p { margin: 4px 0 0; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; }
.news-side { display: flex; flex-direction: column; gap: 14px; }
.news-big { position: relative; display: block; min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow); isolation: isolate; }
.news-big-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.news-big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 14, 0) 25%, rgba(11, 11, 14, .92) 100%); }
.news-big:hover .news-big-img { transform: scale(1.03); }
.news-big-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; }
.news-big h3 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.4px; }
.news-big p { margin: 8px 0 12px; color: #d4d4de; }
.news-small { display: flex; min-height: 150px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card);
  transition: border-color .15s ease, transform .15s ease; }
.news-small:hover { border-color: rgba(255, 122, 26, .55); transform: translateY(-1px); }
.news-small-img { width: 40%; max-width: 180px; object-fit: cover; flex: none; }
.news-small-text { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-small h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.news-date { color: var(--muted); font-size: 12.5px; }
.news-by { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.news-by b { color: var(--text); font-weight: 600; }
.news-head { border-radius: 4px; }
.news-all { display: grid; place-items: center; min-height: 58px; border-radius: var(--radius); border: 1px dashed rgba(255, 122, 26, .5);
  color: var(--accent); font-weight: 700; transition: background .15s ease; }
.news-all:hover { background: rgba(255, 122, 26, .08); }
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.news-article { max-width: 860px; margin: 0 auto; }
.news-back { display: inline-block; margin: 10px 0 6px; color: var(--accent); font-weight: 600; }
.news-article h1 { margin: 6px 0 10px; font-size: 40px; line-height: 1.1; letter-spacing: -.6px; }
.news-cover { width: 100%; margin: 18px 0 22px; border-radius: var(--radius); border: 1px solid var(--line); object-fit: cover; }
.news-article .wiki-body { font-size: 16px; }
.news-copy { margin-top: 26px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; font-weight: 600; }
.news-copy:hover { border-color: rgba(255, 122, 26, .55); }
.news-admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.news-admin-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
.news-admin-row img { width: 120px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.news-admin-row > div:nth-child(2) { flex: 1; min-width: 0; }
.news-admin-row .badge { margin-left: 8px; }
.news-pin input { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-big { min-height: 300px; }
  .news-big h3 { font-size: 24px; }
  .news-article h1 { font-size: 30px; }
  .news-list { grid-template-columns: 1fr; }
}

/* ───────────── Modes de jeu (accueil, /modes) ───────────── */
.modes-section { margin: 34px 0; }
.modes-section .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.modes-sub { margin: -4px 0 14px; font-size: 14px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mode-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  min-height: 150px; padding: 14px 14px 12px; border-radius: 14px; color: var(--text); text-decoration: none;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tint) 38%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--tint) 14%, var(--card)), var(--card) 70%);
  border: 1px solid color-mix(in srgb, var(--tint) 30%, var(--line));
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.mode-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tint) 70%, var(--line));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tint) 22%, transparent); }
.mode-bg {
  position: absolute; right: -14px; top: -10px; width: 120px; height: 120px; image-rendering: pixelated;
  opacity: .16; filter: blur(1.5px) saturate(1.3); transform: rotate(-12deg); pointer-events: none;
}
.mode-top { position: relative; display: flex; align-items: center; gap: 9px; }
.mode-top b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.mode-ver {
  margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px;
  background: rgba(0,0,0,.35); color: var(--muted);
}
.mode-desc { position: relative; margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mode-players { position: relative; margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; }
.mode-chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 8px 2px 3px; border-radius: 99px;
  background: rgba(0,0,0,.38); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mode-chip i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.1); font-style: normal; font-size: 10px; font-weight: 700; color: var(--text); }
.mode-chip.first { color: #ffd86b; }
.mode-chip.first i { background: rgba(255,216,107,.2); color: #ffd86b; }
.mode-none { font-size: 11.5px; color: var(--muted); opacity: .7; }
@media (max-width: 560px) {
  .mode-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .mode-card { min-height: 0; padding: 11px; }
  .mode-top b { font-size: 15px; }
  .mode-desc { font-size: 12px; -webkit-line-clamp: 4; }
  .mode-ver { display: none; }
}
@media (max-width: 380px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-more { position: relative; margin-top: auto; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--tint) 70%, #fff); }

/* /modes/<mode> : guide d'un mode */
.mode-guide { max-width: 900px; margin: 22px auto 40px; }
.mode-guide .back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: 14px; }
.mode-guide .back-link:hover { color: var(--text); }
.guide-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 16px;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--tint) 40%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--tint) 16%, var(--card)), var(--card) 75%);
  border: 1px solid color-mix(in srgb, var(--tint) 35%, var(--line));
}
.guide-hero .mode-bg { width: 200px; height: 200px; right: -20px; top: -30px; }
.guide-hero .guide-icon { position: relative; flex: none; image-rendering: pixelated; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.guide-hero > div { position: relative; }
.guide-hero h1 { margin: 0 0 4px; font-size: 32px; letter-spacing: -.02em; }
.guide-hero p { margin: 0 0 10px; color: var(--muted); }
.guide-tags .mode-ver { margin: 0; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.guide-block { padding: 16px 18px; }
.guide-block.wide { grid-column: 1 / -1; }
.guide-block h2 { margin: 0 0 8px; font-size: 16px; color: color-mix(in srgb, var(--tint) 65%, #fff); }
.guide-block p { margin: 0; line-height: 1.55; }
.guide-list { margin: 0; padding-left: 18px; line-height: 1.55; }
.guide-list li + li { margin-top: 4px; }
.guide-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 640px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-hero { padding: 16px; gap: 12px; }
  .guide-hero h1 { font-size: 24px; }
  .guide-hero .guide-icon { width: 40px; height: 40px; }
}

/* Pied du forum : qui est en ligne et statistiques */
.ffoot { margin-top: 26px; padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 26px; align-items: start; }
.ffoot h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ffoot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
.ffoot-who p { margin: 0 0 10px; font-size: 14px; }
.ffoot-who p b { color: var(--text); }
.ffoot-members { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ffoot-member { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.ffoot-member:hover { border-color: var(--accent); }
.ffoot-member .head { border-radius: 50%; }
.ffoot-game { color: var(--muted); }
.ffoot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ffoot-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); min-width: 0; }
.ffoot-stat b { font-size: 22px; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ffoot-stat span { font-size: 13px; color: var(--text); font-weight: 600; }
.ffoot-stat small { font-size: 12px; color: var(--dim); }
.ffoot-newest div { display: flex; align-items: center; gap: 7px; margin: 4px 0 2px; font-weight: 700; min-width: 0; }
.ffoot-newest div a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffoot-newest .head { border-radius: 5px; }

/* ── Encyclopédie des légendes (/cartes) ── */
.lw { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.lw-side { position: sticky; top: 86px; display: grid; gap: 14px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.lw-search {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-size: 14px;
}
.lw-search:focus { outline: none; border-color: var(--accent); }
.lw-nav { display: grid; gap: 2px; }
.lw-nav h4 { margin: 14px 0 4px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.lw-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); font-weight: 600;
}
.lw-nav-link span { flex: 1; min-width: 0; }
.lw-nav-link:hover { background: var(--card); color: var(--text); }
.lw-nav-link.on { background: rgba(255, 122, 26, .12); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.lw-nav-link i { width: 9px; height: 9px; border-radius: 3px; background: var(--cc, var(--rc)); }
.lw-nav-link small { color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 600; }
.lw-az { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.lw-az a, .lw-az span { text-align: center; padding: 5px 0; border-radius: 6px; font-size: 13px; font-weight: 700; }
.lw-az a { background: var(--card); color: var(--muted); }
.lw-az a:hover, .lw-az a.on { color: var(--text); background: rgba(255, 122, 26, .16); }
.lw-az span { color: #3a3a45; }
.lw-note { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 122, 26, .35); background: rgba(255, 122, 26, .07); }
.lw-note b { display: block; font-size: 14px; color: #ffb27a; margin-bottom: 4px; }
.lw-note p { margin: 0; font-size: 14px; color: var(--text); }
.lw-note.short p { font-size: 12.5px; color: var(--muted); }
.lw-content { min-width: 0; }
.lw-hero { padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, #2a1a12 0%, var(--card) 55%); margin-bottom: 16px; }
.lw-hero h1 { margin: 8px 0 8px; font-size: 34px; letter-spacing: -.5px; }
.lw-hero p { margin: 0; color: var(--muted); max-width: 640px; }
.lw-h2 { margin: 30px 0 12px; font-size: 20px; }
.lw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lw-tile {
  display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--cc); transition: transform .15s, border-color .15s;
}
.lw-tile:hover { transform: translateY(-2px); border-color: var(--cc); }
.lw-tile b { font-size: 17px; color: var(--cc); }
.lw-tile p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lw-tile small { color: var(--dim); font-weight: 700; }
.lw-tile-heads { display: flex; gap: 4px; margin-bottom: 4px; }
.lw-tile-heads .lw-thumb { width: 30px; height: 30px; }
.lw-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; justify-items: center; }
.lw-thumb {
  width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--card-2); display: grid; place-items: center; overflow: hidden;
}
.lw-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lw-thumb.head img { image-rendering: pixelated; }
.lw-thumb i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.lw-list { display: grid; gap: 6px; }
.lw-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 190px 104px 40px; align-items: center; gap: 14px;
  padding: 9px 14px 9px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--rc); transition: background .15s, transform .15s;
}
.lw-row:hover { background: var(--card-2); transform: translateX(2px); }
.lw-main { display: grid; min-width: 0; }
.lw-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-main small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-meta { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: 12px; white-space: nowrap; overflow: hidden; }
.lw-col { color: var(--cc); font-weight: 700; }
.lw-era { color: var(--dim); font-variant-numeric: tabular-nums; }
.lw-rar { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--rc); white-space: nowrap; }
.lw-rar i { width: 8px; height: 8px; border-radius: 2px; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.lw-score { font-size: 20px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: var(--rc); }
.lw-crumb { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.lw-crumb a { color: var(--muted); }
.lw-crumb a:hover { color: var(--accent); }
.lw-head { margin-bottom: 14px; }
.lw-head h1 { margin: 0 0 4px; font-size: 30px; color: var(--cc, var(--text)); }
.lw-head p { margin: 0 0 10px; }
.lw-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lw-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.lw-article { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.lw-card .tcard { width: 260px; }
.lw-body h1 { margin: 6px 0 2px; font-size: 34px; letter-spacing: -.5px; }
.lw-subtitle { margin: 0 0 14px; color: var(--rc); font-weight: 700; }
.lw-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0 0 18px; }
.lw-facts div { padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.lw-facts dt { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.lw-facts dd { margin: 2px 0 0; font-weight: 700; }
.lw-lead { font-size: 16px; line-height: 1.65; margin: 0 0 12px; }
.lw-story { margin: 0 0 12px; color: #cfcfd8; line-height: 1.65; }
.lw-why { margin-top: 16px; }
.lw-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.lw-prevnext a { display: grid; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.lw-prevnext a:hover { border-color: var(--accent); }
.lw-prevnext a.next { text-align: right; }
.lw-prevnext small { color: var(--dim); }
.lw-how { margin-top: 26px; padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.lw-how summary { cursor: pointer; font-weight: 700; }
.lw-how ol { font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 900px) {
  .lw { grid-template-columns: 1fr; }
  .lw-side { position: static; max-height: none; overflow: visible; }
  .lw-side .lw-note.short { display: none; }
  .lw-nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lw-nav h4, .lw-az { grid-column: 1 / -1; }
  .lw-az { grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); }
  .lw-article { grid-template-columns: 1fr; justify-items: center; padding: 18px; }
  .lw-body { width: 100%; }
}
@media (max-width: 640px) {
  .lw-row { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .lw-meta, .lw-row .lw-rar { display: none; }
  .lw-hero { padding: 20px; }
  .lw-hero h1, .lw-body h1 { font-size: 27px; }
}

/* ── Boutique ── */
.shop-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 10px;
  padding: 30px 38px; border-radius: 22px; border: 1px solid rgba(255, 176, 31, .22);
  background:
    radial-gradient(60% 90% at 78% 45%, rgba(255, 150, 30, .28) 0%, rgba(255, 120, 26, .08) 45%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, rgba(232, 56, 28, .16) 0%, transparent 60%),
    linear-gradient(160deg, #1b1410 0%, #120f0e 55%, #0e0d10 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}
/* Grille de pixels discrète, façon Minecraft */
.shop-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(80% 90% at 30% 50%, #000 0%, transparent 85%);
}
.shop-hero-text { position: relative; z-index: 2; }
.shop-hero h1 { margin: 10px 0 10px; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.02; letter-spacing: -1.4px; font-weight: 900; }
.shop-grad { background: linear-gradient(100deg, #ffe08a 0%, #ffb01f 35%, #ff7a1a 70%, #e8381c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 140, 30, .35)); }
.shop-lead { margin: 0 0 18px; max-width: 500px; color: #c9c3bd; font-size: 15.5px; line-height: 1.55; }
.shop-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 20px; }
.shop-hero-cta .btn { height: 42px; padding: 0 20px; font-size: 14.5px; }
.shop-from { color: var(--muted); font-size: 14px; }
.shop-from b { color: #ffc53d; font-size: 17px; }
.shop-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 540px; }
.shop-trust li { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
.shop-trust i { font-style: normal; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; font-size: 16px;
  background: linear-gradient(140deg, rgba(255, 176, 31, .22), rgba(232, 56, 28, .14)); color: #ffc53d; }
.shop-trust span { display: grid; line-height: 1.25; min-width: 0; }
.shop-trust b { font-size: 13.5px; }
.shop-trust small { color: var(--dim); font-size: 12px; }
.shop-hero-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.shop-hero-art img { position: relative; z-index: 2; width: min(100%, 340px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(255, 160, 40, .25));
  animation: shop-float 6s ease-in-out infinite; }
.shop-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 60, .55) 0%, rgba(255, 120, 26, .18) 40%, transparent 70%);
  filter: blur(10px); animation: shop-pulse 4s ease-in-out infinite; }
.shop-rays { position: absolute; width: 120%; aspect-ratio: 1; opacity: .35;
  background: repeating-conic-gradient(from 0deg, rgba(255, 200, 90, .5) 0deg 6deg, transparent 6deg 24deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 55%); animation: shop-spin 60s linear infinite; }
.shop-spark { position: absolute; z-index: 3; width: 6px; height: 6px; background: #ffd46b; box-shadow: 0 0 10px #ffb01f;
  left: calc(12% + var(--i) * 8%); top: calc(18% + (var(--i) * 37 % 60) * 1%); opacity: 0;
  animation: shop-spark 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.33s); }
.shop-spark:nth-child(odd) { width: 4px; height: 4px; }
@keyframes shop-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes shop-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes shop-spin { to { transform: rotate(360deg); } }
@keyframes shop-spark { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .shop-hero-art img, .shop-glow, .shop-rays, .shop-spark { animation: none; } .shop-spark { display: none; } }
@media (max-width: 900px) {
  .shop-hero { grid-template-columns: 1fr; padding: 28px 22px; text-align: left; }
  .shop-hero-art { order: -1; min-height: 0; margin: -10px 0 -6px; }
  .shop-hero-art img { width: min(70%, 320px); }
}
@media (max-width: 520px) { .shop-trust { grid-template-columns: 1fr; } }
.shop-ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; align-items: stretch; scroll-margin-top: 90px; }
.shop-rank {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 18px 18px; border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rk) 10%, var(--card)) 0%, var(--card) 45%);
  border: 1px solid color-mix(in srgb, var(--rk) 35%, var(--line));
}
.shop-rank.best { border-color: var(--rk); box-shadow: 0 0 0 1px var(--rk), 0 18px 40px rgba(255, 197, 61, .12); }
.shop-rank.platine { border-color: #8fb8ff; box-shadow: 0 18px 40px rgba(143, 184, 255, .12); }
.shop-rank.platine h2, .shop-rank.platine .shop-sym {
  background: linear-gradient(100deg, #bdf3ff 0%, #8fb8ff 50%, #d3b8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px;
  background: var(--rk); color: #1a1205; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.shop-rank-head { display: flex; align-items: baseline; gap: 8px; }
.shop-sym { font-size: 22px; color: var(--rk); }
.shop-rank h2 { margin: 0; font-size: 24px; color: var(--rk); }
.shop-dur { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); }
.shop-price b { font-size: 28px; font-weight: 800; }
.shop-price .muted { font-size: 14px; }
.shop-pitch { margin: 0; font-size: 14px; color: var(--muted); }
.shop-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; flex: 1; align-content: start; }
.shop-perks li { padding-left: 20px; position: relative; }
.shop-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--rk); font-weight: 800; }
.shop-perks li.inherit { color: var(--muted); font-style: italic; }
.shop-perks li.inherit::before { content: "↳"; }
.shop-perks b { color: var(--rk); }
.shop-buy { justify-content: center; text-align: center; width: 100%; }
.shop-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.shop-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--card); }
.shop-table th, .shop-table td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.shop-table th:first-child, .shop-table td:first-child { text-align: left; }
.shop-table thead th { font-size: 15px; font-weight: 800; background: var(--bg-2); position: sticky; top: 0; }
.shop-table tr.sec td { background: var(--bg-2); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.shop-table tbody tr:not(.sec):hover td { background: rgba(255, 255, 255, .02); }
.shop-yes { color: var(--win); font-weight: 800; font-size: 16px; }
.shop-no { color: var(--dim); }
.shop-val { font-weight: 700; }
.shop-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.shop-box { padding: 18px 20px; }
.shop-box h3 { margin: 0 0 10px; font-size: 16px; }
.shop-box p, .shop-box ol { margin: 0 0 8px; font-size: 14px; }
.shop-box ol { padding-left: 20px; display: grid; gap: 4px; }
.shop-foot { text-align: center; margin-top: 22px; }
@media (max-width: 1000px) { .shop-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } .shop-extra { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .shop-ranks { grid-template-columns: 1fr; } .shop-hero h1 { font-size: 30px; } }
.shop-cancel { padding: 12px 16px; margin-bottom: 8px; border-color: rgba(255, 90, 90, .4); }
.shop-price small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.shop-modal {
  position: relative; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  display: grid; gap: 14px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--rk);
}
.shop-modal h2 { margin: 0; font-size: 26px; color: var(--rk); }
.shop-modal h2 small { color: var(--muted); font-size: 14px; font-weight: 600; }
.shop-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer; }
.shop-label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.shop-input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; }
.shop-input:focus { outline: none; border-color: var(--rk); }
.shop-quote { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); font-size: 14px; }
.shop-quote > div:not(.shop-total) { display: grid; flex: 1; }
.shop-quote small { color: var(--muted); }
.shop-head { border-radius: 6px; image-rendering: pixelated; }
.shop-total { margin-left: auto; text-align: right; display: grid; }
.shop-total b { font-size: 22px; }
.shop-total s { color: var(--dim); font-size: 13px; }
.shop-warn { color: #ffb27a; }
.shop-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.shop-provider { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.shop-provider b { color: var(--text); }
.shop-provider small { color: var(--dim); font-weight: 500; }
.shop-provider.on { border-color: var(--rk); box-shadow: inset 0 0 0 1px var(--rk); }
.shop-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.shop-check input { margin-top: 3px; accent-color: var(--accent); }
.shop-check a { color: var(--accent); }
.shop-error { margin: 0; color: var(--lose); font-size: 14px; }
/* Achat en 3 étapes */
.co-page { position: relative; display: grid; gap: 16px; padding: 26px 28px; border-color: color-mix(in srgb, var(--rk) 45%, var(--line)); }
.co-backlink { justify-self: start; font-size: 13px; font-weight: 600; color: var(--muted); }
.co-backlink:hover { color: var(--text); }
.co-head { display: flex; align-items: center; gap: 16px; }
.co-head h1 { margin: 2px 0 0; font-size: 30px; color: var(--rk); }
.co-head h1 small { color: var(--muted); font-size: 15px; font-weight: 600; }
.co-page .co-providers { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.co-page .co-provider { min-height: 84px; }
@media (max-width: 560px) { .co-page { padding: 20px 16px; } .co-head h1 { font-size: 24px; } }
.co-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.co-step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--dim); min-width: 0; }
.co-step b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-step span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); transition: background .25s, color .25s, border-color .25s;
}
.co-step.on { color: var(--text); }
.co-step.on span { background: var(--rk); border-color: var(--rk); color: #17110a; box-shadow: 0 0 14px color-mix(in srgb, var(--rk) 45%, transparent); }
.co-step.done span { background: color-mix(in srgb, var(--rk) 18%, var(--bg-2)); border-color: color-mix(in srgb, var(--rk) 55%, transparent); color: var(--rk); }
.co-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.co-bar i {
  display: block; height: 100%; border-radius: 99px; transition: width .4s ease;
  background: repeating-linear-gradient(135deg, var(--rk) 0 10px, color-mix(in srgb, var(--rk) 75%, #fff) 10px 20px);
  background-size: 28px 28px; animation: co-stripes 1s linear infinite;
}
@keyframes co-stripes { to { background-position: 28px 0; } }
.co-body { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.co-title { margin: 8px 0 0; font-size: 17px; color: var(--text); }
.co-p { margin: -6px 0 0; font-size: 14px; }
.co-providers { display: grid; gap: 10px; }
.co-provider {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 16px 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, transform .15s, box-shadow .2s;
}
.co-provider div:first-child { display: grid; gap: 3px; }
.co-provider b { color: var(--text); font-size: 16px; }
.co-provider small { color: var(--dim); }
.co-provider:hover, .co-provider.on { border-color: var(--rk); box-shadow: 0 0 0 1px var(--rk); transform: translateY(-1px); }
.co-marks { display: flex; gap: 6px; flex: none; }
.co-mark { padding: 5px 8px; border-radius: 6px; font-size: 11px; font-weight: 900; font-style: italic; letter-spacing: .3px; color: #fff; }
.co-mark.m-cb { background: linear-gradient(135deg, #1b8a4a, #1a3f8f); font-style: normal; }
.co-mark.m-visa { background: #1a1f71; }
.co-mark.m-mc { background: linear-gradient(90deg, #eb001b 0 50%, #f79e1b 50%); font-style: normal; }
.co-mark.m-paypal { background: #fff; color: #003087; }
.co-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.co-link:hover { text-decoration: underline; }
.co-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.co-nav .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.co-nav .shop-pay { width: auto; flex: 1; max-width: 300px; }
.co-recap { display: grid; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.co-line:first-child { border-top: 0; }
.co-line span { color: var(--muted); }
.co-line b { text-align: right; overflow-wrap: anywhere; }
.co-line.total { font-size: 16px; background: color-mix(in srgb, var(--rk) 8%, transparent); }
.co-line.total b { color: var(--rk); }
.co-secure { margin: 0; font-size: 12px; color: #4cc26a; }
@media (max-width: 560px) {
  .co-step b { display: none; }
  .co-step { justify-content: center; }
  .co-provider { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .co-bar i { animation: none; transition: none; } }
.shop-pay { justify-content: center; width: 100%; height: 46px; font-size: 16px; }
.shop-pay:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.shop-thanks { max-width: 560px; margin: 40px auto; padding: 34px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.shop-thanks h1 { margin: 0; }
.shop-done { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--rk); border: 2px solid var(--rk); box-shadow: 0 0 30px color-mix(in srgb, var(--rk) 40%, transparent); }
.cgv { max-width: 820px; margin: 0 auto; padding: 30px 34px; }
.cgv h1 { margin: 0 0 4px; }
.cgv h2 { font-size: 17px; margin: 22px 0 6px; }
.cgv p { margin: 0 0 8px; color: #cfcfd8; }
.lw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; justify-items: center; padding: 4px 0 10px; }
.lw-grid.mini { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.lw-grid .tcard { cursor: pointer; }

/* ── Pages légales ── */
.legal-wrap { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-nav a { padding: 7px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.legal-nav a.on, .legal-nav a:hover { color: var(--text); border-color: var(--accent); }
.legal-card { padding: 30px 36px; }
.legal h1 { margin: 0 0 4px; font-size: 30px; }
.legal-meta { color: var(--dim); font-size: 13px; margin: 0 0 10px; }
.legal h2 { font-size: 17px; margin: 26px 0 8px; color: #ffb27a; }
.legal p, .legal li { color: #d2d2da; line-height: 1.65; font-size: 15px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 4px; }
.legal a { color: var(--accent); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 12px; }
.legal-table th, .legal-table td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: #d2d2da; }
.legal-table th { background: var(--bg-2); color: var(--text); }
@media (max-width: 640px) { .legal-card { padding: 20px 18px; } .legal-table { display: block; overflow-x: auto; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

/* ── Admin boutique ── */
.shop-st { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; color: var(--st); background: color-mix(in srgb, var(--st) 14%, transparent); }
.shop-orders tbody tr { cursor: pointer; }
.shop-orders td { text-align: left !important; }
.shop-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shop-log li { padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border-left: 3px solid var(--line); display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; font-size: 13px; }
.shop-log li p { grid-column: 1 / -1; margin: 0; color: #cfcfd8; word-break: break-word; }
.shop-log time { color: var(--dim); font-variant-numeric: tabular-nums; }
.shop-log li.k-paid, .shop-log li.k-delivery_queued { border-left-color: var(--win); }
.shop-log li.k-refunded, .shop-log li.k-disputed, .shop-log li.k-dispute_opened, .shop-log li.k-amount_mismatch { border-left-color: var(--lose); }
.shop-log li.k-note { border-left-color: var(--accent); }
.shop-note { height: auto; padding: 10px 12px; resize: vertical; }

#comparer { scroll-margin-top: 90px; }


/* ── Objectif du mois ── */
.shop-goal {
  position: relative; max-width: 540px; padding: 16px 18px 14px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 176, 31, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 176, 31, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.shop-goal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-goal-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #ffd27a; }
.shop-goal-title i { font-style: normal; }
.shop-goal-days { font-size: 12px; font-weight: 700; color: var(--muted); padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .05); }
.shop-goal-label { margin: 6px 0 8px; color: #cfc8c1; font-size: 14px; }
.shop-goal-amounts { display: flex; align-items: baseline; gap: 2px; margin-bottom: 8px; }
.shop-goal-amounts b { font-size: 26px; font-weight: 900; background: linear-gradient(100deg, #ffe08a, #ffb01f 60%, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-goal-amounts span { color: var(--muted); font-weight: 700; font-size: 15px; }
.shop-goal-amounts em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 15px; color: #ffc53d; }
.shop-goal-bar {
  position: relative; height: 14px; border-radius: 99px; overflow: visible;
  background: rgba(0, 0, 0, .45); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05);
}
.shop-goal-fill {
  position: relative; height: 100%; width: var(--pct); border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, #e8381c 0%, #ff7a1a 45%, #ffb01f 80%, #ffe08a 100%);
  box-shadow: 0 0 16px rgba(255, 140, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: goal-grow 1.6s cubic-bezier(.2, .8, .2, 1) both;
}
/* Rayures qui défilent */
.shop-goal-fill::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px);
  animation: goal-stripes 1.2s linear infinite;
}
.shop-goal-shine { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: goal-shine 2.8s ease-in-out infinite 1.6s; }
.shop-goal-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.shop-goal-tick.on { background: rgba(255, 240, 200, .55); }
.shop-goal-foot { margin: 9px 0 0; font-size: 12.5px; color: var(--muted); }
.shop-goal.done .shop-goal-fill { background: linear-gradient(90deg, #1fa968, #3ddc84, #9dffc8); box-shadow: 0 0 18px rgba(61, 220, 132, .6); }
.shop-goal.done .shop-goal-foot { color: var(--win); font-weight: 700; }
@keyframes goal-grow { from { width: 0; } }
@keyframes goal-stripes { to { background-position: 22.6px 0; } }
@keyframes goal-shine { 0% { left: -45%; } 60%, 100% { left: 110%; } }

/* ── Cartes des grades ── */
.shop-rank { overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.shop-rank::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--rk), transparent);
}
.shop-rank::after {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; top: -90px; right: -70px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rk) 30%, transparent), transparent 70%);
}
.shop-rank:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0, 0, 0, .45), 0 0 0 1px var(--rk), 0 0 40px color-mix(in srgb, var(--rk) 25%, transparent); }
.shop-rank-top { display: flex; align-items: flex-start; justify-content: space-between; }
.shop-rank-ico {
  width: 66px; height: 66px; display: grid; place-items: center; border-radius: 16px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rk) 35%, transparent), color-mix(in srgb, var(--rk) 8%, var(--bg-2)) 70%);
  border: 1px solid color-mix(in srgb, var(--rk) 45%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--rk) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.rank-ico { width: 42px; height: 42px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)) drop-shadow(0 0 10px color-mix(in srgb, var(--rk) 60%, transparent));
  transition: transform .25s ease; }
.shop-rank:hover .rank-ico { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.shop-rank.best .shop-rank-ico { animation: ico-glow 2.4s ease-in-out infinite; }
@keyframes ico-glow { 50% { box-shadow: 0 8px 30px color-mix(in srgb, var(--rk) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12); } }
.shop-rank-head { margin-top: 2px; }
.shop-rank h2 { font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
.shop-rank .shop-buy { position: relative; overflow: hidden; }
.shop-rank .shop-buy::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .5s ease;
}
.shop-rank:hover .shop-buy::after { left: 130%; }
@media (prefers-reduced-motion: reduce) {
  .shop-goal-fill, .shop-goal-fill::before, .shop-goal-shine, .shop-rank.best .shop-rank-ico { animation: none; }
  .shop-rank:hover { transform: none; }
}
/* Le badge « Le plus choisi » dans la carte (la carte coupe ce qui dépasse) */
.shop-rank .shop-badge { top: 18px; transform: translateX(-50%); }

/* Objectif du mois, version compacte (2 lignes) */
.shop-goal { padding: 10px 14px 12px; border-radius: 12px; max-width: 500px; }
.shop-goal-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.shop-goal-title { font-size: 11.5px; }
.shop-goal-amounts { display: inline; margin: 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.shop-goal-amounts b { font-size: 16px; }
.shop-goal-days { margin-left: auto; padding: 2px 8px; font-size: 11.5px; white-space: nowrap; }
.shop-goal-bar { height: 9px; }
.shop-goal-tick { top: -2px; bottom: -2px; }
/* Vrais objets Minecraft : pixels nets */
.rank-ico { width: 44px; height: 44px; image-rendering: pixelated; }
.shop-goal-ico { width: 18px; height: 18px; image-rendering: pixelated; align-self: center; filter: drop-shadow(0 0 6px rgba(255, 176, 31, .45)); }
.shop-goal-head { align-items: center; }
.shop-dur { color: #fff; background: rgba(255, 255, 255, .12); }

/* Cartes sans image (teams sans logo) : les initiales dans un écusson */
.tc-initials {
  width: 62%; aspect-ratio: 1 / 1.1; max-height: 82%; display: grid; place-items: center;
  border-radius: 18px 18px 46% 46% / 18px 18px 38% 38%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 38%, #1a1a22), color-mix(in srgb, var(--rc) 10%, #0e0e13));
  border: 2px solid color-mix(in srgb, var(--rc) 70%, transparent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .45), 0 0 22px color-mix(in srgb, var(--rc) 35%, transparent), inset 0 2px 0 rgba(255, 255, 255, .18);
  font-weight: 900; font-size: 46px; letter-spacing: 1px; color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .45), 0 0 14px color-mix(in srgb, var(--rc) 80%, transparent);
}
.tc-initials.long { font-size: 34px; }
.tcard.mini .tc-initials { font-size: 30px; border-width: 1.5px; }
.tcard.mini .tc-initials.long { font-size: 22px; }
.lw-thumb.ini { font-weight: 900; font-size: 15px; color: #fff; background: linear-gradient(160deg, #3a2a1c, #1d1d25); }
.admin-look { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.admin-look .field[hidden] { display: none; }
.shop-goal-level { font-size: 11px; font-weight: 800; color: #1a1205; background: linear-gradient(100deg, #ffe08a, #ffb01f); padding: 1px 7px; border-radius: 99px; }
.shop-goal-tiers { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.shop-goal-tiers span { font-size: 11px; font-weight: 700; color: var(--dim); padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .08); }
.shop-goal-tiers span.cur { color: #ffd27a; border-color: rgba(255, 176, 31, .5); background: rgba(255, 176, 31, .1); }
.shop-goal-tiers span.ok { color: var(--win); border-color: rgba(61, 220, 132, .35); }

/* ── Admin : menus par catégorie ── */
.dash-nav { gap: 4px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.dash-group { display: grid; gap: 2px; }
.dash-group-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  color: var(--text); font-weight: 800; font-size: 13px; letter-spacing: .3px; text-align: left;
}
.dash-group-head i { width: 20px; text-align: center; font-style: normal; color: var(--accent); }
.dash-group-head span { flex: 1; }
.dash-group-head:hover { background: rgba(255, 255, 255, .04); }
.dash-caret { color: var(--dim); font-size: 16px; transition: transform .2s; }
.dash-group.open .dash-caret { transform: rotate(90deg); }
.dash-group-items { display: none; gap: 2px; padding-left: 12px; margin-left: 19px; border-left: 1px solid var(--line); }
.dash-group.open .dash-group-items { display: grid; }
.dash-group.active > .dash-group-head { color: #ffd27a; }
.dash-group-items .dash-link { padding: 7px 10px; font-size: 13.5px; }

/* ── Admin : boutique ── */
.shop-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.shop-kpi { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.shop-kpi span { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); }
.shop-kpi b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.shop-kpi small { color: var(--muted); font-size: 12px; }
.shop-kpi.hot { border-color: rgba(255, 176, 31, .45); background: linear-gradient(160deg, rgba(255, 176, 31, .12), var(--card)); }
.shop-kpi.hot b { color: #ffc53d; }
.shop-kpi.bad b { color: var(--lose); }
.shop-chart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 4px; align-items: end; height: 170px; }
.shop-bar { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; }
.shop-bar i { align-self: end; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #ffb01f, #e8381c); box-shadow: 0 0 10px rgba(255, 122, 26, .3); }
.shop-bar small { font-size: 9.5px; color: var(--dim); text-align: center; }
.shop-bar:hover i { filter: brightness(1.25); }
.shop-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shop-rankbar { display: grid; grid-template-columns: 70px 1fr auto 34px; align-items: center; gap: 10px; font-size: 14px; }
.shop-rankbar span { font-weight: 800; }
.shop-rankbar div { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.shop-rankbar div i { display: block; height: 100%; border-radius: 99px; }
.shop-mini { display: grid; gap: 6px; }
.shop-mini button { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; text-align: left; font-size: 13px; }
.shop-mini button small { grid-column: 1 / -1; }
.shop-mini button:hover { border-color: var(--accent); }
.shop-who { display: inline-flex; align-items: center; gap: 8px; }
.shop-who img { border-radius: 5px; image-rendering: pixelated; }
.shop-set-card { display: grid; gap: 12px; align-content: start; }
.shop-set-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.shop-set-card .field { display: grid; gap: 6px; }
.shop-set-card .field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.shop-sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-sec-head .pill { margin-left: auto; }
.shop-hook { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.shop-hook code { flex: 1; font-size: 12px; word-break: break-all; }
.shop-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.shop-set-save { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; bottom: 12px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); }
@media (max-width: 760px) { .shop-set-grid { grid-template-columns: 1fr; } }
.shop-set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.shop-set-row:last-of-type { border-bottom: 0; }
.shop-set-row > span { color: var(--muted); }
.shop-set-row code { font-size: 12px; word-break: break-all; }
@media (max-width: 900px) { .shop-two { grid-template-columns: 1fr; } .shop-chart { height: 120px; gap: 2px; } .shop-bar small { display: none; } }
.restart-box { display: grid; gap: 6px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid rgba(255, 122, 26, .35); background: linear-gradient(160deg, rgba(255, 122, 26, .08), var(--card)); }
.restart-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.restart-delay { height: 34px; padding: 0 10px; }
.restart-reason { height: 34px; flex: 1; min-width: 200px; }
/* L'étoile du Nether à la place de ✦ */
.ns-star { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; image-rendering: pixelated; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .35)); }
.eyebrow .ns-star { width: 18px; height: 18px; }
.dash-link i .ns-star { width: 15px; height: 15px; }

/* Collections secondaires d'une carte (admin) et liste des collections (page de légende) */
.admin-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.admin-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--cc, #888) 45%, transparent); background: color-mix(in srgb, var(--cc, #888) 10%, transparent); font-size: 13px; }
.admin-tag input { margin: 0; accent-color: var(--cc, #888); }
.admin-tag[hidden] { display: none; }
.lw-colls { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }

/* Version texte de la page (pour les moteurs de recherche), remplacée dès que l'application démarre */
.seo { max-width: 860px; color: var(--muted, #a1a1aa); line-height: 1.6; }
.seo h1, .seo h2 { color: var(--text, #f4f4f5); margin: 18px 0 8px; }
.seo a { color: inherit; text-decoration: underline; }
.seo ul, .seo ol { padding-left: 20px; }
.seo dt { font-weight: 700; }
.seo dd { margin: 0 0 6px; }
.seo table { border-collapse: collapse; }
.seo td, .seo th { padding: 2px 10px 2px 0; text-align: left; }

/* ───── Forum : citations ───── */
.fquote { position: relative; white-space: pre-wrap; margin: 8px 0; padding: 10px 14px 10px 16px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 122, 26, .08), rgba(255, 122, 26, .02) 60%), var(--bg-2);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); color: #d4d4dc; }
.fquote.nested { background: rgba(255, 255, 255, .025); border-left-color: var(--dim); }
.fquote-head { display: flex; align-items: center; gap: 6px; white-space: normal; font-size: 13px; margin-bottom: 4px; }
.fquote-mark { color: var(--accent); font-size: 24px; line-height: 1; margin-right: 2px; font-family: Georgia, serif; }
.fpost-body .fquote-name { color: var(--text); font-weight: 700; text-decoration: none; }
.fpost-body .fquote-name:hover { color: var(--accent); }
.fpost-body .fquote-jump { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  color: var(--muted); text-decoration: none; background: var(--card-2); font-weight: 700; }
.fpost-body .fquote-jump:hover { color: var(--accent); }
.fquote-body { font-size: 14px; line-height: 1.55; }
.fquote.fold .fquote-body { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.fquote-more { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fpost.flash { animation: fflash 1.6s ease; }
@keyframes fflash { 0%, 30% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* ───── Forum : aperçus de liens (YouTube, TikTok, X…) ───── */
.fembed { --c: var(--accent); display: flex; white-space: normal; width: min(100%, 440px); margin: 10px 0; overflow: hidden;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: inset 3px 0 0 var(--c); }
.fembed.e-youtube { --c: #ff3b3b; }
.fembed.e-tiktok { --c: #25f4ee; }
.fembed.e-instagram { --c: #e1306c; }
.fembed.e-twitch { --c: #a970ff; }
.fembed.e-streamable { --c: #2f8cff; }
.fembed.fx { --c: #e7e9ea; }
.fembed-thumb { position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; align-self: center; margin: 8px 0 8px 11px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center; color: var(--c);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), var(--bg-2); }
.fembed.vertical .fembed-thumb { width: 74px; aspect-ratio: 9 / 14; }
.fembed-thumb[role=button] { cursor: pointer; }
.fembed-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fembed-thumb.has-img .fembed-logo { display: none; }
.fembed-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); transition: transform .15s, background .15s; }
.fembed-thumb:hover .fembed-play, .fembed-thumb:focus-visible .fembed-play { transform: scale(1.12); background: var(--c); color: #111; }
.fembed-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; }
.fembed-src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.fembed-src svg { color: var(--c); flex: none; }
.fembed-src b { color: var(--text); font-weight: 700; }
.fembed-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fembed-by:not(:empty)::before { content: "· "; }
.fembed-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fembed-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; }
.fpost-body .fembed-open, .fpreview .fembed-open { margin-left: auto; color: var(--muted); text-decoration: none; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.fpost-body .fembed-open:hover, .fpreview .fembed-open:hover { color: var(--text); border-color: var(--c); }
.fembed.playing { flex-direction: column; width: min(100%, 520px); }
.fembed.playing.vertical { width: min(100%, 330px); }
.fembed-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.fembed.vertical .fembed-frame { aspect-ratio: 9 / 16; }
.fembed.e-instagram .fembed-frame { aspect-ratio: auto; height: 560px; background: #fff; }
.fembed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fembed-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 12px; color: var(--muted); }
.fembed-bar svg { color: var(--c); }
.fembed-bar b { color: var(--text); }
.fembed-bar .grow { flex: 1; }
.fembed-bar .fembed-open { margin-left: 0; }
.fembed-close { border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-size: 12px; }
.fembed-close:hover { color: var(--text); }
/* Post X */
.fembed.fx { flex-direction: column; gap: 8px; padding: 12px 14px 10px 16px; }
.fx-head { display: flex; align-items: center; gap: 10px; }
.fx-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); flex: none; }
.fx-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fx-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-who span { font-size: 12.5px; color: var(--muted); }
.fx-logo { margin-left: auto; color: var(--text); opacity: .85; }
.fx-text { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.fx-media { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.fx-media img { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.fx .fembed-foot .muted { white-space: nowrap; }
.fpost-body a.fext::after { content: " ↗"; font-size: .8em; text-decoration: none; display: inline-block; }

/* ───── Page « Tu quittes CTLServ » ───── */
.exit { display: grid; place-items: center; padding: 30px 0; }
.exit-card { width: min(100%, 560px); padding: 30px 30px 26px; text-align: center; position: relative; overflow: hidden; }
.exit-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.exit.risky .exit-card::before { background: var(--lose); }
.exit-ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; color: var(--accent);
  background: rgba(255, 122, 26, .12); border: 1px solid rgba(255, 122, 26, .3); font-size: 28px; font-weight: 900; }
.exit.risky .exit-ico { color: var(--lose); background: rgba(255, 90, 90, .12); border-color: rgba(255, 90, 90, .35); }
.exit-card h1 { margin: 0 0 6px; font-size: 24px; }
.exit-card > .muted { margin: 0 auto 16px; max-width: 440px; font-size: 14px; }
.exit-url { padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left; overflow-wrap: anywhere; color: var(--dim); max-height: 7.5em; overflow: auto; }
.exit-url b { color: var(--text); font-size: 15px; }
.exit-http { color: var(--lose); font-weight: 700; }
.exit-risks { margin-top: 14px; padding: 12px 14px; text-align: left; border-radius: 10px; background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 90, 90, .35); font-size: 13.5px; }
.exit-risks b { color: var(--lose); }
.exit-risks ul { margin: 6px 0 0; padding-left: 18px; }
.exit-tips { margin: 16px 0 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.exit-tips li { padding-left: 22px; position: relative; }
.exit-tips li::before { content: "🛡️"; position: absolute; left: 0; font-size: 12px; }
.exit-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.exit-actions a { overflow-wrap: anywhere; }
.btn.danger { color: var(--lose); border-color: rgba(255, 90, 90, .4); }

/* ───── Encyclopédie : propositions des joueurs ───── */
.lw-nav-link.lw-propose { color: var(--accent); font-weight: 700; }
.lw-nav-link.lw-propose:hover, .lw-nav-link.lw-propose.on { background: rgba(255, 122, 26, .1); }
.lw-hero-cta { margin-top: 16px; display: inline-flex; }
.lw-suggest { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lw-suggest > .btn + .muted { font-size: 13px; }
.lw-suggest h3 { margin: 6px 0 0; }
.lw-suggest > .muted, .lw-suggest > p { margin: 0; }
.lw-suggest .sugg-form { width: 100%; }
.sugg-form { display: grid; gap: 12px; padding: 18px; }
.sugg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.sugg-field { display: grid; gap: 5px; margin: 0; }
.sugg-field > span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sugg-field textarea { resize: vertical; }
.sugg-count { margin-left: auto; font-weight: 500; color: var(--dim); font-size: 11.5px; }
.sugg-count.near { color: var(--gold); }
.sugg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sugg-actions .muted { font-size: 13px; }
.sugg-done { padding: 16px 18px; border-color: rgba(61, 220, 132, .35); color: var(--text); }
.sugg-hero .sugg-rules { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.sugg-mine { margin-top: 10px; }
.sugg-list { display: grid; gap: 10px; }
.sugg-item { padding: 12px 16px; }
.sugg-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sugg-item-head small { margin-left: auto; }
.sugg-note { margin: 8px 0 0; font-size: 14px; padding: 8px 12px; border-radius: 8px; background: var(--bg-2); border-left: 3px solid var(--accent); }
.sugg-admin { padding: 16px 18px; display: grid; gap: 12px; }
.sugg-admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sugg-admin-head .fbadge a { color: inherit; }
.sugg-msg { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); white-space: pre-wrap; font-size: 14px; }
.sugg-sources { font-size: 13px; overflow-wrap: anywhere; }
.sugg-sources a { color: var(--accent); margin-right: 10px; }
.sugg-changed { font-style: normal; font-size: 11px; font-weight: 800; color: var(--gold); padding: 1px 7px; border-radius: 999px; background: rgba(255, 197, 61, .1); }
.sugg-cur { font-size: 12.5px; color: var(--dim); white-space: pre-wrap; max-height: 6em; overflow: auto; padding: 6px 10px; border-radius: 6px; background: var(--bg-2); }
.sugg-decide { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sugg-decide .finput { flex: 1; min-width: 220px; }

/* ═════════════ Admin (refonte) ═════════════ */
body.is-admin main.wrap { max-width: 1520px; padding-top: 20px; }
body.is-admin .footer { display: none; }
.adm { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 28px; align-items: start; }
.adm-nav { position: sticky; top: 78px; max-height: calc(100vh - 92px); overflow-y: auto; scrollbar-width: thin; display: grid; gap: 14px;
  padding: 16px 12px 12px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 122, 26, .07), transparent 180px), var(--card); }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 19px; font-weight: 700; }
.adm-brand img { border-radius: 8px; }
.adm-brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.adm-pulse { display: flex; align-items: center; gap: 8px; margin: 0 4px; padding: 7px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.adm-pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.adm-pulse.up i { background: var(--win); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); animation: admPulse 2s infinite; }
.adm-pulse.down i { background: var(--lose); }
.adm-pulse.down { color: var(--lose); }
@keyframes admPulse { 50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); } }
.adm-console { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, rgba(255, 176, 31, .18), rgba(232, 56, 28, .14)); border: 1px solid rgba(255, 122, 26, .45); transition: transform .12s, box-shadow .12s; }
.adm-console:hover, .adm-console.on { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 122, 26, .18); }
.adm-console-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #060608; color: var(--accent); font-size: 18px; font-weight: 900; border: 1px solid rgba(255, 122, 26, .4); }
.adm-console div { display: grid; line-height: 1.25; flex: 1; }
.adm-console b { font-size: 15px; }
.adm-console small { color: var(--muted); font-size: 12px; }
.adm-console em { font-style: normal; color: var(--accent); font-weight: 900; }
.adm-group { display: grid; gap: 1px; }
.adm-group h4 { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.adm-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.adm-link i { width: 20px; text-align: center; font-style: normal; opacity: .85; }
.adm-link span { flex: 1; }
.adm-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.adm-link.on { background: rgba(255, 122, 26, .14); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.adm-badge { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #111; font-size: 11px; text-align: center; }
.adm-foot { display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.adm-foot .head { width: 22px; height: 22px; border-radius: 5px; }
.adm-foot span { flex: 1; font-weight: 700; }
.adm-foot a { color: var(--muted); font-size: 12px; }
.adm-foot a:hover { color: var(--accent); }
.adm-main { min-width: 0; }
.adm-head { margin-bottom: 22px; }
.adm-crumb { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.adm-head h1 { margin: 0; font-size: 30px; line-height: 1.15; }
.adm-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 760px; }
.adm-main .dash-card { padding: 20px 22px; gap: 14px; border-radius: 16px; }
.adm-main .dash-card h3 { font-size: 16px; }
.adm-main .dash-stack { gap: 20px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-card-head h3 { margin: 0; }
.adm-card-head .finput { max-width: 240px; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-cols.even { grid-template-columns: 1fr 1fr; }
.dash-stats.two { grid-template-columns: 1fr 1fr; }
/* Accueil */
.adm-status { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; padding: 22px 26px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(circle at 0 0, rgba(61, 220, 132, .12), transparent 45%), var(--card); }
.adm-status.down { background: radial-gradient(circle at 0 0, rgba(255, 90, 90, .14), transparent 45%), var(--card); }
.adm-status-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 260px; }
.adm-status-main b { display: block; font-size: 22px; }
.adm-status-main small { color: var(--muted); font-size: 13.5px; }
.adm-status-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 6px rgba(61, 220, 132, .15); flex: none; }
.adm-status.down .adm-status-dot { background: var(--lose); box-shadow: 0 0 0 6px rgba(255, 90, 90, .15); }
.adm-status-nums { display: flex; gap: 34px; }
.adm-status-nums div { display: grid; text-align: center; }
.adm-status-nums b { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.adm-status-nums span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.adm-mem { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.adm-mem i { display: block; height: 100%; background: var(--grad); }
.adm-quicks { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-quick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.adm-quick i { font-style: normal; color: var(--accent); }
.adm-quick:hover { border-color: rgba(255, 122, 26, .5); background: var(--card-2); }
.adm-quick.primary { background: var(--grad); color: #160b04; border-color: transparent; }
.adm-quick.primary i { color: #160b04; }
.adm-todo { display: grid; gap: 6px; }
.adm-todo a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.adm-todo a:hover { border-color: rgba(255, 122, 26, .45); }
.adm-todo i { font-style: normal; width: 22px; text-align: center; }
.adm-todo span { flex: 1; }
.adm-todo em { font-style: normal; color: var(--accent); }
.adm-tail { margin: 0; height: 210px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: #060608; border: 1px solid var(--line);
  font: 12px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #c9c9d2; white-space: pre-wrap; word-break: break-word; }
.adm-tail .warn { color: #f5c542; }
.adm-tail .err { color: #ff6b5b; }
/* Console plus grande */
body.is-admin .console-log { height: calc(100vh - 360px); min-height: 360px; max-height: none; }
/* MOTD & icône */
.mc-list { display: grid; gap: 8px; justify-items: center; padding: 26px 18px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #1b1612 0 12px, #1e1915 12px 24px); }
.mc-row { display: flex; gap: 10px; width: min(100%, 640px); padding: 6px; border: 1px solid #8b8b8b; background: rgba(0, 0, 0, .55); }
.mc-icon { width: 64px; height: 64px; image-rendering: pixelated; flex: none; background: #333; }
.mc-body { flex: 1; min-width: 0; font: 600 16px/1.35 "Courier New", ui-monospace, monospace; letter-spacing: .2px; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.mc-top { display: flex; justify-content: space-between; color: #fff; }
.mc-top b { font-weight: 600; }
.mc-count { color: #aaa; display: flex; align-items: center; gap: 2px; }
.mc-count i { font-style: normal; color: #aaa; }
.mc-bars { display: inline-flex; align-items: flex-end; gap: 1px; margin-left: 8px; height: 14px; }
.mc-bars i { width: 2px; background: #3ddc84; box-shadow: 1px 1px 0 rgba(0, 0, 0, .5); }
.mc-bars i:nth-child(1) { height: 4px; } .mc-bars i:nth-child(2) { height: 6px; } .mc-bars i:nth-child(3) { height: 8px; } .mc-bars i:nth-child(4) { height: 11px; } .mc-bars i:nth-child(5) { height: 14px; }
.mc-motd { white-space: pre; overflow: hidden; }
.mc-text .b { font-weight: 900; }
.mc-text .i { font-style: italic; }
.motd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.motd-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-right: 6px; }
.motd-swatches button { width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .12); background: var(--c); cursor: pointer; padding: 0; }
.motd-swatches button:hover { transform: scale(1.12); border-color: #fff; }
.motd-input { font: 13.5px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.motd-warn { margin: 0; color: var(--gold); font-size: 13px; min-height: 0; }
.motd-warn:empty { display: none; }
.motd-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.motd-icon { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.motd-icon-big { width: 128px; height: 128px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); background: repeating-conic-gradient(#222 0 25%, #2b2b2b 0 50%) 0 0 / 16px 16px; }
.motd-icon-actions { display: grid; gap: 8px; justify-items: start; }
/* Grades */
.rk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.rk-list { display: grid; gap: 6px; position: sticky; top: 78px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.rk-new { margin-bottom: 6px; }
.rk-item { display: grid; gap: 3px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); }
.rk-item:hover { border-color: rgba(255, 122, 26, .4); }
.rk-item.on { border-color: var(--accent); background: linear-gradient(90deg, rgba(255, 122, 26, .12), var(--card) 70%); }
.rk-item-top { font: 600 14px "Courier New", ui-monospace, monospace; min-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rk-item-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.rk-item-meta span { color: var(--dim); font-size: 11.5px; font-family: ui-monospace, monospace; }
.rk-item-meta small { color: var(--muted); margin-left: auto; }
.rk-item-meta i { font-style: normal; font-size: 11px; }
.rk-panel { display: grid; gap: 18px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.rk-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rk-head h2 { margin: 0; font-size: 24px; }
.rk-head-prefix { padding: 10px 14px; border-radius: 10px; background: #0d0d10; border: 1px solid var(--line); font: 600 17px "Courier New", ui-monospace, monospace; }
.rk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.rk-tabs button { padding: 9px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rk-tabs button:hover { color: var(--text); }
.rk-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.rk-title { margin: 0; }
.rk-form { display: grid; gap: 16px; }
.finput.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.rk-chat { padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); font: 600 15px "Courier New", ui-monospace, monospace; }
.rk-parents { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rk-chip small { color: var(--dim); }
.rk-chip.on { border-color: var(--accent); color: var(--text); background: rgba(255, 122, 26, .14); }
.rk-chip.on::before { content: "✓ "; color: var(--accent); }
.rk-danger { margin-top: 22px; display: grid; gap: 8px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 90, 90, .35); background: rgba(255, 90, 90, .05); }
.rk-danger b { color: var(--lose); }
.rk-danger p { margin: 0; font-size: 13.5px; }
.rk-locked { margin-top: 18px; font-size: 13px; }
.rk-perm-wrap { display: grid; gap: 16px; }
.rk-add { display: grid; gap: 10px; }
.rk-add-row { display: flex; gap: 10px; }
.rk-add-row .finput { flex: 1; }
.rk-scope summary, .rk-inh summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.rk-scope .sugg-row { margin-top: 10px; }
.rk-perms { display: grid; gap: 4px; }
.rk-perm { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
.rk-perm code { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.rk-perm small { flex: 1; font-size: 12px; }
.rk-perm.neg code { color: var(--lose); }
.rk-perm.inh { opacity: .7; background: transparent; }
.rk-inh { display: grid; gap: 4px; margin-top: 8px; }
.rk-inh[open] summary { margin-bottom: 6px; }
@media (max-width: 1100px) {
  .adm-cols, .adm-cols.even { grid-template-columns: 1fr; }
  .rk { grid-template-columns: 1fr; }
  .rk-list { position: static; max-height: 300px; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; gap: 16px; }
  .adm-nav { position: static; max-height: none; grid-template-columns: 1fr 1fr; }
  .adm-brand, .adm-pulse, .adm-console, .adm-foot { grid-column: 1 / -1; }
  .adm-head h1 { font-size: 24px; }
  .adm-status-nums { gap: 20px; }
  .dash-stats.two { grid-template-columns: 1fr; }
}

/* MOTD : éditeur visuel (on écrit dans l'aperçu) */
.motd-card { gap: 16px; }
.motd-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.motd-steps span { display: inline-flex; align-items: center; gap: 8px; }
.motd-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #160b04; font-size: 12px; }
.motd-bar { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.motd-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.motd-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.motd-swatch { width: 26px; height: 26px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .14); background: var(--c); cursor: pointer; padding: 0; transition: transform .1s; }
.motd-swatch:hover { transform: scale(1.15); border-color: #fff; }
.motd-grad { padding: 5px 10px; border-radius: 8px; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; color: #111;
  background: linear-gradient(90deg, var(--a), var(--b)); }
.motd-grad:hover { filter: brightness(1.15); }
.motd-style { min-width: 32px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.motd-style:hover { border-color: var(--accent); }
.motd-style.b { font-weight: 900; }
.motd-style.i { font-style: italic; }
.motd-style.u { text-decoration: underline; }
.motd-style.clear { font-size: 12.5px; color: var(--muted); }
.mc-line { min-height: 21px; white-space: pre; overflow: hidden; outline: none; color: #aaa; caret-color: #fff; border-radius: 3px; cursor: text; }
.mc-line:hover { background: rgba(255, 255, 255, .04); }
.mc-line:focus { background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.mc-line.empty::before { content: attr(data-ph); color: #555; pointer-events: none; }
.mc-line .b, .mc-line b, .mc-line [style*="font-weight: bold"] { font-weight: 900; }
.mc-line .i, .mc-line i { font-style: italic; }
.mc-icon-btn { padding: 0; border: 0; background: none; cursor: pointer; position: relative; flex: none; }
.mc-icon-btn:hover::after { content: "✎"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; }
.motd-card .mc-list { padding: 22px 14px; }
.motd-card .mc-row { width: min(100%, 700px); }

/* ───── Barre du haut : menu Communauté et Boutique mise en avant ───── */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 10px; background: none; color: var(--muted);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: color .15s, background .15s; }
.nav-drop-btn i { font-style: normal; font-size: 11px; transition: transform .15s; }
.nav-drop:hover .nav-drop-btn, .nav-drop.open .nav-drop-btn { color: var(--text); background: var(--card); }
.nav-drop.active .nav-drop-btn { color: var(--text); background: var(--card-2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-drop:hover .nav-drop-btn i, .nav-drop.open .nav-drop-btn i { transform: rotate(180deg); }
.nav-menu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px; padding: 6px; margin-top: 6px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card-2); box-shadow: var(--shadow); display: none; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-menu, .nav-drop.open .nav-menu, .nav-drop:focus-within .nav-menu { display: grid; gap: 2px; }
.nav .nav-menu a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; }
.nav .nav-menu a b { color: var(--text); font-size: 14px; }
.nav .nav-menu a small { color: var(--dim); font-size: 12px; font-weight: 500; }
.nav .nav-menu a:hover { background: var(--card); }
.nav .nav-menu a.active { background: rgba(255, 122, 26, .12); box-shadow: inset 3px 0 0 var(--accent); }
.nav a.nav-store { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 8px 16px; background: var(--grad); color: #160b04; font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 122, 26, .28); }
.nav a.nav-store i { font-style: normal; }
.nav a.nav-store:hover { color: #160b04; background: var(--grad); filter: brightness(1.08); transform: translateY(-1px); }
.nav a.nav-store.active { color: #160b04; background: var(--grad); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 4px 16px rgba(255, 122, 26, .28); }
@media (max-width: 760px) {
  .nav-drop-btn { display: none; }
  .nav-menu { display: grid; position: static; margin: 0; padding: 0; min-width: 0; border: 0; background: none; box-shadow: none; }
  .nav .nav-menu a { display: block; padding: 8px 14px; }
  .nav .nav-menu a small { display: none; }
  .nav .nav-menu a b { color: inherit; font-weight: 600; }
  .nav a.nav-store { margin: 4px 0 0; justify-content: center; }
}

/* ───── Forum : carte « Banni ? » (illustration dans un bandeau en haut de la carte) ───── */
.unban { position: relative; border-radius: 16px; border: 1px solid rgba(255, 90, 60, .32); overflow: hidden; background: var(--card);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.unban-art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid rgba(255, 90, 60, .22);
  background: radial-gradient(60% 90% at 50% 100%, rgba(232, 56, 28, .45), transparent 70%), linear-gradient(180deg, #170e10, #24120f); }
.unban-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 20px); }
.unban-art img { position: relative; height: 128px; width: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.unban:hover .unban-art img { transform: translateY(-3px) rotate(-1.5deg) scale(1.04); }
.unban-body { display: grid; gap: 14px; padding: 18px 20px 20px; }
.unban-tag { display: inline-flex; align-items: center; gap: 6px; justify-self: center; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  color: #ff9a7a; background: rgba(232, 56, 28, .14); border: 1px solid rgba(232, 56, 28, .35); }
.unban h3 { margin: -4px 0 0; text-align: center; font-size: 18px; line-height: 1.3; }
.unban h3 b { display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.unban-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.unban-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.unban-steps li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 12.5px; color: #160b04; background: var(--grad); }
.unban-steps em { font-style: normal; color: var(--text); font-weight: 700; }
.unban-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; padding: 12px 16px; border-radius: 12px; font-weight: 800; font-size: 15px; color: #160b04;
  background: var(--grad); box-shadow: 0 8px 20px rgba(232, 56, 28, .28); transition: transform .15s, filter .15s; }
.unban-btn i { font-style: normal; transition: transform .15s; }
.unban-btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: #160b04; }
.unban-btn:hover i { transform: translateX(3px); }
.unban-note { margin-top: -4px; text-align: center; color: var(--dim); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .unban-art img, .unban-btn, .unban-btn i { transition: none; } }
.unban-report { display: grid; grid-template-columns: 34px 1fr; gap: 10px 12px; align-items: center; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.unban-report-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #ff5a5a; background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .3); }
.unban-report b { display: block; font-size: 14px; }
.unban-report small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.unban-report-btn { grid-column: 1 / -1; display: flex; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px;
  color: var(--text); background: var(--card-2); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.unban-report-btn:hover { border-color: rgba(255, 90, 90, .5); background: rgba(255, 90, 90, .08); color: var(--text); }

/* ───── Boutique : colonne verticale (objectif du mois, soutiens, paiement) ───── */
body.is-shop main.wrap { max-width: 1420px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 34px; }
.shop-layout .shop-ranks { margin-top: 0; }
.shop-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.sside-card { padding: 18px; display: grid; gap: 12px; }
.sside-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #ffd27a; }
.sside-title img { image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(255, 176, 31, .45)); }
.sside-empty { margin: 0; font-size: 13px; }
.sgoal { background: radial-gradient(100% 70% at 100% 0%, rgba(255, 176, 31, .14), transparent 60%), var(--card); border-color: rgba(255, 176, 31, .28); }
.sgoal-amount b { font-size: 30px; font-weight: 900; background: linear-gradient(100deg, #ffe08a, #ffb01f 60%, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sgoal-amount span { color: var(--muted); font-weight: 700; font-size: 15px; }
.sgoal-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.sgoal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb01f, #ff7a1a, #e8381c); box-shadow: 0 0 14px rgba(255, 122, 26, .55); }
.sgoal.done .sgoal-bar i { background: linear-gradient(90deg, #1fa968, #3ddc84); box-shadow: 0 0 14px rgba(61, 220, 132, .5); }
.sgoal-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.sgoal-meta b { color: var(--text); }
.sgoal-tiers { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.sgoal-tiers li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; font-size: 13px; color: var(--dim);
  background: rgba(255, 255, 255, .03); border: 1px solid transparent; }
.sgoal-tiers li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-style: normal; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .06); }
.sgoal-tiers li b { font-weight: 700; }
.sgoal-tiers li.cur { color: #ffd27a; border-color: rgba(255, 176, 31, .4); background: rgba(255, 176, 31, .08); }
.sgoal-tiers li.cur i { background: var(--grad); color: #160b04; }
.sgoal-tiers li.ok { color: var(--win); }
.sgoal-tiers li.ok i { background: rgba(61, 220, 132, .15); }
.sgoal-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.stop-who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 197, 61, .12), transparent); border: 1px solid rgba(255, 197, 61, .3); }
.stop-who img { border-radius: 8px; image-rendering: pixelated; }
.stop-who b { font-size: 16px; }
.srecent { display: grid; gap: 4px; }
.srecent a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.srecent a:hover { background: var(--card-2); }
.srecent a .head { width: 28px; height: 28px; border-radius: 6px; }
.srecent b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srecent small { color: var(--dim); font-size: 11.5px; }
.srecent-rank { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; color: var(--rk); background: color-mix(in srgb, var(--rk) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rk) 40%, transparent); }
.ssafe ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.ssafe .btn { justify-self: start; }
@media (max-width: 1180px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.sside-title img.sside-ec { image-rendering: auto; margin: -4px 0; filter: brightness(1.5) saturate(1.2) drop-shadow(0 0 7px rgba(70, 220, 180, .55)); }

/* Mes achats (/compte/achats) */
.buy-page { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
.buy-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.buy-head h1 { margin: 4px 0 2px; }
.buy-head p { margin: 0; }
.buy-stat { display: grid; padding: 12px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: right; }
.buy-stat span { font-size: 12px; color: var(--muted); font-weight: 700; }
.buy-stat b { font-size: 22px; color: var(--accent); }
.buy-list { display: grid; gap: 12px; }
.buy-card {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid color-mix(in srgb, var(--rk) 50%, var(--line));
}
.buy-card.on { border-left-color: var(--rk); background: linear-gradient(90deg, color-mix(in srgb, var(--rk) 7%, var(--card)), var(--card) 45%); }
.buy-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-2); }
.buy-ico .rank-ico { width: 40px; height: 40px; }
.buy-main { display: grid; gap: 4px; min-width: 0; }
.buy-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.buy-title b { font-size: 16px; color: var(--rk); }
.buy-sub { font-size: 13px; color: var(--muted); }
.buy-dur { font-size: 13px; font-weight: 600; }
.buy-side { display: grid; justify-items: end; gap: 6px; }
.buy-price { font-size: 18px; }
.buy-info h3 { margin: 0 0 6px; }
.buy-info p { margin: 6px 0 0; font-size: 14px; }
.buy-empty { display: grid; justify-items: center; gap: 12px; padding: 34px; }
@media (max-width: 560px) {
  .buy-card { grid-template-columns: 44px 1fr; }
  .buy-ico { width: 44px; height: 44px; }
  .buy-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; }
}
