/* Scan Membres – page Classement. Couleurs du thème via --sm-accent / --sm-card / --sm-text. */
.sm-lb { --sm-line: color-mix(in srgb, var(--sm-text) 12%, transparent); --sm-soft: color-mix(in srgb, var(--sm-text) 6%, transparent); --sm-muted: color-mix(in srgb, var(--sm-text) 60%, transparent);
	--gold: #f5b83a; --silver: #c3c8d4; --bronze: #e2813a; box-sizing: border-box; width: 100%; max-width: 1100px; margin: 0 auto 30px; color: var(--sm-text); font-family: inherit; }
.sm-lb *, .sm-lb *::before, .sm-lb *::after { box-sizing: border-box; }
.sm-lb a { text-decoration: none; color: inherit; }
.sm-lb [hidden] { display: none !important; }
.sm-lb svg { flex: none; }

.sm-lb-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 38px 32px; margin-bottom: 22px; border: 1px solid var(--sm-line);
	background: linear-gradient(135deg, color-mix(in srgb, var(--sm-accent) 55%, #000), color-mix(in srgb, var(--sm-accent) 12%, var(--sm-card))); }
.sm-lb-hero::before { content: ""; position: absolute; inset: 0; background: var(--lb-img, none) center / cover; opacity: .55; }
.sm-lb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .15)); }
.sm-lb-hero > * { position: relative; z-index: 1; }
.sm-lb-hero h2 { margin: 0 0 10px; font-size: clamp(30px, 6vw, 54px); line-height: 1.05; font-weight: 900; font-style: italic; color: #fff; letter-spacing: -.01em; }
.sm-lb-hero p { margin: 0; max-width: 560px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.sm-lb-empty { padding: 30px; text-align: center; color: var(--sm-muted); }

/* Podium */
.sm-lb-podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sm-lb-podium .sm-lb-pod { flex: 1 1 0; min-width: 0; max-width: 360px; }
.sm-lb-podium .sm-lb-pod.is-1 { flex-grow: 1.12; max-width: 400px; }
.sm-lb-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 44px 18px 18px; border-radius: 20px; text-align: center; min-width: 0;
	border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 24%, var(--sm-card)), var(--sm-card) 78%); transition: transform .18s, box-shadow .18s; }
.sm-lb-pod:hover { transform: translateY(-3px); box-shadow: 0 12px 30px color-mix(in srgb, var(--c) 25%, transparent); }
.sm-lb-pod.is-1 { --c: var(--gold); padding-top: 52px; padding-bottom: 22px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent), 0 14px 38px color-mix(in srgb, var(--gold) 22%, transparent); }
.sm-lb-pod.is-2 { --c: var(--silver); }
.sm-lb-pod.is-3 { --c: var(--bronze); }
.sm-lb-rk { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: var(--c); background: color-mix(in srgb, var(--c) 16%, #000); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.sm-lb-rk svg { width: 14px; height: 14px; }
.sm-lb-go { position: absolute; top: 14px; right: 14px; color: var(--sm-muted); }
.sm-lb-pav { display: block; width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 30%, #000)); box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.sm-lb-pod.is-1 .sm-lb-pav { width: 112px; height: 112px; }
.sm-lb-pav img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--sm-card); border: 3px solid var(--sm-card); }
.sm-lb-nm { margin-top: 8px; font-size: 17px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-lb-hd { font-size: 12px; color: var(--sm-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-lb-lv { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 13px; }
.sm-lb-lv b { color: var(--c); font-weight: 900; }
.sm-lb-lv i { font-style: normal; color: var(--sm-muted); padding-left: 8px; border-left: 1px solid var(--sm-line); }
.sm-lb-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.sm-lb-st > span { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--sm-line); min-width: 0; }
.sm-lb-st small { font-size: 10px; color: var(--sm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-lb-st b { font-size: 14px; font-weight: 800; }

.sm-lb-how { text-align: center; margin: 0 0 18px; }
.sm-lb-howbtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--sm-accent) 55%, transparent); background: color-mix(in srgb, var(--sm-accent) 14%, transparent); transition: .15s; }
.sm-lb-howbtn:hover { background: color-mix(in srgb, var(--sm-accent) 28%, transparent); }

/* Liste */
.sm-lb-list { border: 1px solid var(--sm-line); border-radius: 20px; background: var(--sm-card); padding: 16px; margin-bottom: 16px; }
.sm-lb-lh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 6px 14px; font-size: 12px; color: var(--sm-muted); }
.sm-lb-lh b { color: var(--sm-text); font-size: 12.5px; }
.sm-lb-rows { display: flex; flex-direction: column; gap: 8px; }
.sm-lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--sm-line); background: var(--sm-soft); transition: .15s; min-width: 0; }
.sm-lb-row:hover { border-color: color-mix(in srgb, var(--sm-accent) 55%, transparent); background: color-mix(in srgb, var(--sm-accent) 9%, transparent); }
.sm-lb-row.is-me { border-color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 14%, transparent); }
.sm-lb-n { flex: none; min-width: 44px; padding: 6px 8px; text-align: center; border-radius: 9px; font-size: 12px; font-weight: 900; color: var(--sm-muted); background: rgba(0, 0, 0, .25); }
.sm-lb-row img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--sm-soft); }
.sm-lb-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sm-lb-who b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-lb-who small { font-size: 11.5px; color: var(--sm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-lb-lvl { flex: none; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 15%, transparent); }
.sm-lb-cols { flex: none; display: grid; grid-template-columns: 82px 96px 74px; gap: 6px; text-align: right; }
.sm-lb-cols > span { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.sm-lb-cols small { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-muted); }
.sm-lb-cols small svg { width: 11px; height: 11px; color: var(--sm-accent); }
.sm-lb-cols b { font-size: 14.5px; font-weight: 800; }
.sm-lb-more { display: block; margin: 14px auto 2px; padding: 9px 22px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--sm-text); background: var(--sm-soft); border: 1px solid var(--sm-line); }
.sm-lb-more:hover { border-color: var(--sm-accent); }

/* Ma position */
.sm-lb-me { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 34px; border-radius: 16px; border: 1px solid var(--sm-line); background: color-mix(in srgb, var(--sm-text) 4%, var(--sm-card)); }
.sm-lb-me > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-lb-me b { font-size: 14.5px; }
.sm-lb-me small { font-size: 12px; color: var(--sm-muted); }
.sm-lb-mi { flex: none; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 16%, transparent); }
.sm-lb-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--sm-text); background: var(--sm-soft); border: 1px solid var(--sm-line); }
.sm-lb-btn.is-main { background: var(--sm-accent); border-color: var(--sm-accent); color: #fff; }

/* Guide */
.sm-lb-guide { text-align: center; }
.sm-lb-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 900; letter-spacing: .1em; color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sm-accent) 40%, transparent); }
.sm-lb-guide h3 { margin: 12px 0 8px; font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--sm-text); }
.sm-lb-guide > p { max-width: 520px; margin: 0 auto 22px; font-size: 13.5px; color: var(--sm-muted); }
.sm-lb-gc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; text-align: left; }
.sm-lb-g { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--sm-line); background: var(--sm-card); }
.sm-lb-gi { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 14%, transparent); margin-bottom: 8px; }
.sm-lb-g em { position: absolute; top: 16px; right: 16px; font-style: normal; font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 999px; color: var(--sm-accent); border: 1px solid color-mix(in srgb, var(--sm-accent) 45%, transparent); background: color-mix(in srgb, var(--sm-accent) 10%, transparent); }
.sm-lb-g b { font-size: 15px; font-weight: 800; }
.sm-lb-g p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sm-muted); }
.sm-lb-g small { margin-top: auto; padding-top: 8px; font-size: 11px; color: var(--sm-muted); border-top: 1px solid var(--sm-line); }
.sm-lb-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.sm-lb-notes span { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--sm-line); background: var(--sm-card); font-size: 12.5px; line-height: 1.5; color: var(--sm-muted); }
.sm-lb-notes svg { color: var(--sm-accent); margin-top: 2px; }

@media (max-width: 900px) {
	.sm-lb-gc { grid-template-columns: repeat(2, 1fr); }
	.sm-lb-notes { grid-template-columns: 1fr; }
	.sm-lb-lvl { display: none; }
}
@media (max-width: 720px) {
	.sm-lb-hero { padding: 26px 20px; border-radius: 16px; }
	.sm-lb-podium { flex-direction: column; align-items: stretch; gap: 12px; }
	.sm-lb-podium .sm-lb-pod, .sm-lb-podium .sm-lb-pod.is-1 { max-width: none; }
	.sm-lb-podium .is-1 { order: -1; }
	.sm-lb-pod { padding: 40px 14px 14px; }
	.sm-lb-row { flex-wrap: wrap; gap: 10px; padding: 12px; }
	.sm-lb-who { flex: 1 1 calc(100% - 130px); }
	.sm-lb-cols { grid-template-columns: repeat(3, 1fr); width: 100%; text-align: left; padding-top: 8px; border-top: 1px solid var(--sm-line); }
	.sm-lb-cols > span { align-items: flex-start; }
	.sm-lb-lh { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .sm-lb-gc { grid-template-columns: 1fr; } }

/* Les thèmes forcent souvent une colonne étroite : on garde notre largeur. */
body .sm-lb { width: 100% !important; max-width: 1100px !important; margin-left: auto !important; margin-right: auto !important; }
.sm-lb-st b { white-space: nowrap; }

/* Certains thèmes mettent les blocs d'une page en ligne (flex/grid) : on force une vraie colonne. */
body .sm-lb { display: block !important; float: none !important; }
body .sm-lb > * { float: none !important; clear: both; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
body .sm-lb > .sm-lb-hero, body .sm-lb > .sm-lb-list, body .sm-lb > .sm-lb-me, body .sm-lb > .sm-lb-guide, body .sm-lb > .sm-lb-podium { width: 100% !important; }
body .sm-lb > .sm-lb-podium { display: flex !important; }
body .sm-lb > .sm-lb-hero { display: block !important; }
body .sm-lb > .sm-lb-how { display: block !important; width: 100% !important; text-align: center; }
body .sm-lb > .sm-lb-me { display: flex !important; }

/* Onglets Général / Cette semaine */
.sm-lb-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 999px; border: 1px solid var(--sm-line); background: color-mix(in srgb, var(--sm-text) 4%, var(--sm-card)); }
.sm-lb-tabs a { padding: 9px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--sm-muted); transition: .15s; }
.sm-lb-tabs a:hover { color: var(--sm-text); }
.sm-lb-tabs a.is-on { color: #fff; background: var(--sm-accent); }
.sm-lb-left { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 8px; font-size: 12px; color: var(--sm-muted); }
.sm-lb-left svg { width: 14px; height: 14px; color: var(--sm-accent); }
body .sm-lb > .sm-lb-tabs { display: flex !important; width: fit-content !important; }

/* Missions du jour (page Classement + profil) */
.sm-ms { --sm-line: color-mix(in srgb, var(--sm-text) 12%, transparent); --sm-muted: color-mix(in srgb, var(--sm-text) 60%, transparent); margin: 0 0 24px; padding: 18px; border-radius: 18px; border: 1px solid var(--sm-line); background: var(--sm-card); color: var(--sm-text); box-sizing: border-box; }
.sm-ms * { box-sizing: border-box; }
.sm-ms-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sm-ms-top h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--sm-text); }
.sm-ms-top span { font-size: 12px; color: var(--sm-muted); }
.sm-ms-list { display: flex; flex-direction: column; gap: 10px; }
.sm-ms-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--sm-line); background: color-mix(in srgb, var(--sm-text) 4%, transparent); }
.sm-ms-row.is-done { border-color: color-mix(in srgb, #22c55e 55%, transparent); background: color-mix(in srgb, #22c55e 9%, transparent); }
.sm-ms-ic { flex: none; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; font-weight: 900; color: var(--sm-accent); background: color-mix(in srgb, var(--sm-accent) 15%, transparent); }
.sm-ms-row.is-done .sm-ms-ic { color: #22c55e; background: color-mix(in srgb, #22c55e 18%, transparent); }
.sm-ms-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.sm-ms-main b { font-size: 14px; font-weight: 700; color: var(--sm-text); }
.sm-ms-bar { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--sm-text) 12%, transparent); overflow: hidden; }
.sm-ms-bar i { display: block; height: 100%; border-radius: 99px; background: var(--sm-accent); transition: width .3s; }
.sm-ms-row.is-done .sm-ms-bar i { background: #22c55e; }
.sm-ms-n { flex: none; font-size: 12.5px; font-weight: 800; color: var(--sm-muted); }
.sm-ms-row em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 900; padding: 4px 9px; border-radius: 999px; color: var(--sm-accent); border: 1px solid color-mix(in srgb, var(--sm-accent) 45%, transparent); background: color-mix(in srgb, var(--sm-accent) 10%, transparent); }
.sm-ms-bonus { margin-top: 12px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--sm-muted); }
.sm-ms-bonus.is-done { color: #22c55e; }
.sm-ms svg { width: 16px; height: 16px; }

/* Événement XP */
.sm-event { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: 14px; }
.sm-event b { font-size: 15px; font-weight: 800; }
.sm-event span { flex: 1 1 200px; opacity: .95; }
.sm-event i { font-style: normal; font-weight: 700; background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: 999px; font-size: 12px; }

/* Temple de la renommée */
body .sm-lb .sm-hof-champs h3 { margin: 6px 0 12px; font-size: 16px; font-weight: 800; }
body .sm-lb .sm-hof-cl { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
body .sm-lb .sm-hof-cl a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(245,158,11,.5); background: rgba(245,158,11,.08); color: inherit; text-decoration: none; }
body .sm-lb .sm-hof-cl img, body .sm-lb .sm-hof-w img { border-radius: 50%; object-fit: cover; }
body .sm-lb .sm-hof-cl span { font-weight: 800; color: #f59e0b; }
body .sm-lb .sm-hof-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
body .sm-lb .sm-hof-w { padding: 14px; border-radius: 16px; border: 1px solid rgba(128,128,128,.25); }
body .sm-lb .sm-hof-w h4 { margin: 0 0 10px; font-size: 13px; opacity: .7; }
body .sm-lb .sm-hof-w div { display: flex; flex-direction: column; gap: 6px; }
body .sm-lb .sm-hof-w a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 14px; }
body .sm-lb .sm-hof-w a strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .sm-lb .sm-hof-w a span { font-size: 12px; opacity: .75; }
body .sm-lb .sm-hof-w em { font-style: normal; }
body .sm-lb .sm-hof-champs h3, body .sm-lb .sm-hof-cl a, body .sm-lb .sm-hof-w a, body .sm-lb .sm-hof-w h4 { color: var(--sm-text) !important; }
body .sm-lb .sm-hof-cl a strong, body .sm-lb .sm-hof-w a strong { color: var(--sm-text) !important; }
body .sm-lb .sm-hof-w { background: var(--sm-soft); border-color: var(--sm-line); }

/* Avantages Supporter : halo doré */
.sm-lb .sm-sup-c { display: inline-block; margin-right: 4px; font-size: .9em; filter: drop-shadow(0 0 4px rgba(245,184,58,.7)); }
.sm-lb .sm-lb-row.is-sup { border-color: rgba(245,184,58,.55); background: linear-gradient(90deg, rgba(245,184,58,.1), transparent 60%); }
.sm-lb .sm-lb-row.is-sup img, .sm-lb .sm-lb-pod.is-sup .sm-lb-pav img { box-shadow: 0 0 0 2px #f5b83a, 0 0 14px rgba(245,184,58,.55); }
.sm-lb .sm-lb-pod.is-sup { box-shadow: 0 0 22px rgba(245,184,58,.25); }
