/* =========================================================
   Accueil « Légende » (style Épuré)
   Couverture avec logo et panneau d'état, bandeau d'atouts,
   trois colonnes (actualités · vidéo · classement), bannières.
   ========================================================= */

.is-lg-home {
  --lg-ink: #07090d;
  --lg-gold: #d6a75c;
  --lg-gold-hi: #f1cd8c;
  --lg-red: #c22d1d;
  --lg-red-hi: #e24a2f;
  --lg-text: #f3ecdf;
  --lg-muted: #8d97a6;
  --lg-line: rgba(214, 167, 92, .26);
  --lg-soft: rgba(255, 255, 255, .07);
  --lg-title: "Cinzel", "Trajan Pro", Georgia, serif;
  background: var(--lg-ink);
}
.is-lg-home main.lg { background: var(--lg-ink); }
.lg-wrap { width: min(100% - 40px, 1360px); margin-inline: auto; }

/* ---------- Boutons ---------- */
.lg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px;
  font: 600 14px/1 var(--k-font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--lg-text);
  background: rgba(8, 10, 14, .72); border: 1px solid rgba(214, 167, 92, .55); border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lg-btn:hover { border-color: var(--lg-gold-hi); box-shadow: 0 0 0 1px rgba(241, 205, 140, .25), 0 10px 30px -12px rgba(214, 167, 92, .6); transform: translateY(-1px); color: #fff; }
.lg-btn .ic, .lg-btn svg { flex: none; }
.lg-btn.is-red {
  background: linear-gradient(180deg, #dc4a2e 0%, #a51d10 100%); border-color: #f08a5d;
  box-shadow: 0 14px 34px -12px rgba(194, 45, 29, .9), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff;
}
.lg-btn.is-red:hover { background: linear-gradient(180deg, #ea5636 0%, #b72414 100%); border-color: var(--lg-gold-hi); }
.lg-btn.is-gold {
  width: 100%; height: 50px; color: var(--lg-gold-hi); border-color: var(--lg-gold);
  background: linear-gradient(180deg, rgba(214, 167, 92, .24), rgba(214, 167, 92, .06));
}

/* ---------- Couverture ---------- */
.lg-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -95px; padding-top: 95px;
  background: var(--lg-ink) var(--k-cover) 50% 22% / cover no-repeat;
}
.lg-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 36% 46% at 46% 46%, rgba(7, 9, 13, .78) 0%, rgba(7, 9, 13, .4) 55%, transparent 85%),
    linear-gradient(90deg, rgba(7, 9, 13, .7) 0%, rgba(7, 9, 13, .15) 26%, rgba(7, 9, 13, .15) 66%, rgba(7, 9, 13, .82) 88%),
    linear-gradient(180deg, rgba(7, 9, 13, .85) 0%, rgba(7, 9, 13, .1) 22%, rgba(7, 9, 13, .1) 62%, var(--lg-ink) 100%);
}
.lg-hero .hx-embers { z-index: 0; }
.lg-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; gap: 32px; align-items: center; min-height: 620px; padding: 24px 0 48px; }
.lg-hero-main { grid-column: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }

.lg-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; font: 600 13px/1 var(--lg-title); letter-spacing: .34em; text-transform: uppercase; color: var(--lg-gold-hi); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.lg-kicker span { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--lg-gold)); }
.lg-kicker span:last-child { background: linear-gradient(90deg, var(--lg-gold), transparent); }
.lg-logo { margin: 0; line-height: 0; }
.lg-logo img {
  width: min(560px, 86vw); height: auto;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, .7)) drop-shadow(0 0 26px rgba(225, 45, 35, .3)) !important;
  animation: lg-float 7s ease-in-out infinite;
}
@keyframes lg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .lg-logo img { animation: none; } }
.lg-tagline { margin: 6px 0 0; font: 600 20px/1.3 var(--lg-title); letter-spacing: .24em; text-transform: uppercase; color: var(--lg-text); text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.lg-pitch { margin: 14px 0 0; max-width: 52ch; font-size: 15.5px; line-height: 1.65; color: rgba(243, 236, 223, .78); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.lg-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* panneau d'état */
.lg-status {
  grid-column: 3; position: relative; padding: 22px 22px 20px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(14, 17, 24, .9), rgba(9, 11, 16, .92));
  border: 1px solid var(--lg-line); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lg-status::before { /* filet doré en haut */
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lg-gold-hi), transparent);
}
.lg-status > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--lg-soft); }
.lg-status h2 { margin: 0; font: 600 14px/1 var(--lg-title); letter-spacing: .12em; text-transform: uppercase; color: var(--lg-text); }
.lg-on { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--k-font); letter-spacing: .1em; text-transform: uppercase; color: #4fd18b; }
.lg-on i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(79, 209, 139, .18); animation: lg-pulse 2s infinite; }
.lg-on.is-off { color: #e2574c; }
.lg-on.is-off i { box-shadow: 0 0 0 3px rgba(226, 87, 76, .18); animation: none; }
@keyframes lg-pulse { 50% { box-shadow: 0 0 0 6px rgba(79, 209, 139, 0); } }
.lg-figs { margin: 8px 0 6px; padding: 0 0 8px; border-bottom: 1px solid var(--lg-soft); }
.lg-figs div { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.lg-figs dt { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-muted); }
.lg-figs dt .ic { color: var(--lg-gold); }
.lg-figs dd { margin: 0; font: 600 15px/1 var(--k-font); color: var(--lg-text); font-variant-numeric: tabular-nums; }
.lg-evs { list-style: none; margin: 6px 0 18px; padding: 0; }
.lg-evs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 7px; padding: 9px 0; }
.lg-evs li > i { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.lg-evs li > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--f); border-radius: 4px; background: linear-gradient(90deg, #8f2a12, var(--lg-gold)); }
.lg-evs b { font-weight: 500; font-size: 13px; color: var(--lg-text); }
.lg-evs span { font-size: 12px; color: var(--lg-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lg-evs .cd { color: inherit; font: inherit; }
.lg-evs .cd::first-letter { text-transform: uppercase; }
.lg-evs li:first-child span { color: var(--lg-gold-hi); }
.lg-evs .is-siege > i::after { background: linear-gradient(90deg, #6d1610, var(--lg-red-hi)); }

/* bandeau d'atouts */
.lg-feats {
  position: relative; z-index: 1; border-top: 1px solid var(--lg-soft); border-bottom: 1px solid var(--lg-line);
  background: linear-gradient(180deg, rgba(7, 9, 13, .55), rgba(9, 11, 16, .96));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lg-feats ul { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; margin-block: 0; }
.lg-feats li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 12px; }
.lg-feats li + li { border-left: 1px solid var(--lg-soft); }
.lg-feat-ic {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--lg-gold-hi);
  border: 1px solid rgba(214, 167, 92, .4); background: radial-gradient(circle, rgba(214, 167, 92, .2), rgba(214, 167, 92, .02) 70%);
}
.lg-feats b { display: block; font: 600 14px/1.2 var(--lg-title); letter-spacing: .05em; text-transform: uppercase; color: var(--lg-text); }
.lg-feats small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lg-muted); }

/* ---------- Trois colonnes ---------- */
.lg-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--lg-soft); }
.lg-col { padding: 38px 30px 40px; min-width: 0; }
.lg-col:first-child { padding-left: 0; }
.lg-col:last-child { padding-right: 0; }
.lg-col + .lg-col { border-left: 1px solid var(--lg-soft); }
.lg-h { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--lg-soft); }
.lg-h::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 1px; background: var(--lg-gold); }
.lg-h h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 17px/1.2 var(--lg-title); letter-spacing: .1em; text-transform: uppercase; color: var(--lg-text); }
.lg-h a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lg-muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.lg-h a:hover { color: var(--lg-gold-hi); }
.lg-empty { color: var(--lg-muted); font-size: 14px; }

/* actualités */
.lg-news { list-style: none; margin: 0; padding: 0; }
.lg-news li + li { border-top: 1px solid var(--lg-soft); }
.lg-news a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 13px 0; color: inherit; text-decoration: none; }
.lg-news img { width: 112px; height: 74px; object-fit: cover; border-radius: 4px; border: 1px solid var(--lg-soft); transition: filter .25s, border-color .25s; }
.lg-news a:hover img { filter: brightness(1.15); border-color: var(--lg-line); }
.lg-meta { display: flex; align-items: center; gap: 10px; }
.lg-tag { padding: 4px 7px; border-radius: 3px; font: 700 10px/1 var(--k-font); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--t, var(--lg-red)) 72%, #000); }
.lg-meta time { font-size: 11px; color: var(--lg-muted); }
.lg-news strong { display: block; margin-top: 7px; font: 600 15px/1.3 var(--k-font); color: var(--lg-text); transition: color .2s; }
.lg-news a:hover strong { color: var(--lg-gold-hi); }
.lg-news small { display: -webkit-box; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--lg-muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* vidéo / Castle Siege */
.lg-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--lg-line); border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; color: #fff; text-decoration: none; isolation: isolate; }
iframe.lg-media { cursor: auto; }
.lg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.lg-media:hover img { transform: scale(1.04); filter: brightness(1.1); }
.lg-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 9, 13, .1) 30%, rgba(7, 9, 13, .9) 100%); }
.lg-play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; padding-left: 5px; border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(7, 9, 13, .62); border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 8px rgba(255, 255, 255, .08); transition: transform .25s, background .25s;
}
.lg-media:hover .lg-play { transform: translate(-50%, -50%) scale(1.08); background: var(--lg-red); }
.lg-siege-txt { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 4px; }
.lg-siege-txt small { font: 600 11px/1 var(--k-font); letter-spacing: .14em; text-transform: uppercase; color: var(--lg-gold-hi); }
.lg-siege-txt strong { font: 600 20px/1.25 var(--lg-title); letter-spacing: .02em; }
.lg-siege-txt em { margin-top: 6px; font-style: normal; font-size: 13px; color: rgba(243, 236, 223, .75); }
.lg-siege-cd .cd { font: 600 22px/1 var(--k-font); color: var(--lg-gold-hi); font-variant-numeric: tabular-nums; }
.lg-media-cap { margin: 16px auto 0; max-width: 40ch; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--lg-muted); }
.lg-media-cap b { color: var(--lg-text); }

/* classement à onglets */
.lg-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--lg-soft); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.lg-tabs button {
  height: 40px; border: 0; background: rgba(255, 255, 255, .02); color: var(--lg-muted); cursor: pointer;
  font: 600 12px/1 var(--k-font); letter-spacing: .12em; text-transform: uppercase; transition: color .2s, background .2s;
}
.lg-tabs button + button { border-left: 1px solid var(--lg-soft); }
.lg-tabs button:hover { color: var(--lg-text); }
.lg-tabs button[aria-selected="true"] { color: var(--lg-gold-hi); background: linear-gradient(180deg, rgba(214, 167, 92, .2), rgba(214, 167, 92, .04)); box-shadow: inset 0 -2px 0 var(--lg-gold); }
.lg-board table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lg-board th { padding: 10px 6px 8px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lg-muted); text-align: left; }
.lg-board td { padding: 9px 6px; border-top: 1px solid var(--lg-soft); color: var(--lg-text); white-space: nowrap; }
.lg-board .r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.lg-board td a { color: var(--lg-text); text-decoration: none; font-weight: 500; }
.lg-board td a:hover { color: var(--lg-gold-hi); }
.lg-board .mut { color: var(--lg-muted); }
.lg-cls { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lg-muted) !important; overflow: hidden; text-overflow: ellipsis; }
.lg-cls img { flex: none; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 50%, transparent)); }
.lg-rk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12px/1 var(--k-font); color: var(--lg-muted); }
.lg-board .r1 .lg-rk { background: linear-gradient(180deg, #f5d48f, #b07c2c); color: #2a1a05; }
.lg-board .r2 .lg-rk { background: linear-gradient(180deg, #e9edf2, #8d97a6); color: #1a1d22; }
.lg-board .r3 .lg-rk { background: linear-gradient(180deg, #e7a877, #8f522a); color: #241205; }
.lg-board .r1 td { background: linear-gradient(90deg, rgba(214, 167, 92, .1), transparent 70%); }
.lg-board .r1 .r { color: var(--lg-gold-hi); }

/* ---------- Bannières ---------- */
.lg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 40px 0 64px; }
.lg-tiles a { position: relative; display: block; aspect-ratio: 16 / 8.6; border: 1px solid var(--lg-line); border-radius: 6px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.lg-tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.lg-tiles a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 9, 13, 0) 35%, rgba(7, 9, 13, .92) 100%); }
.lg-tiles a:hover { border-color: var(--lg-gold-hi); box-shadow: 0 18px 40px -18px rgba(214, 167, 92, .55); transform: translateY(-3px); }
.lg-tiles a:hover img { transform: scale(1.06); }
.lg-tiles span { position: absolute; left: 12px; right: 12px; bottom: 16px; text-align: center; }
.lg-tiles b { display: block; font: 600 16px/1.2 var(--lg-title); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.lg-tiles small { display: block; margin-top: 5px; font-size: 12px; color: rgba(243, 236, 223, .72); }

/* ---------- Taverne ---------- */
.lg-chat { padding-bottom: 64px; }
html body .lg-chat .hx-chat { border: 1px solid var(--lg-soft) !important; border-radius: 6px !important; background: rgba(255, 255, 255, .02) !important; overflow: hidden; }
html body .lg-chat .ch-list { height: 220px !important; min-height: 0 !important; }
html body .lg-chat .ch-form { border-top: 1px solid var(--lg-soft) !important; border-radius: 0 !important; }

.is-lg-home .hx-foot { margin-top: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .lg-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .lg-hero-main { grid-column: 1; }
  .lg-status { grid-column: 2; }
  .lg-feats ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-feats li:nth-child(4) { border-left: 0; }
  .lg-feats li:nth-child(n+4) { border-top: 1px solid var(--lg-soft); }
}
@media (max-width: 1100px) {
  .lg-three { grid-template-columns: 1fr 1fr; }
  .lg-col:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--lg-soft); padding-left: 0; }
  .lg-col:nth-child(2) { padding-right: 0; }
  .lg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lg-hero { background-position: 62% 20%; }
  .lg-hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 36px; gap: 36px; }
  .lg-hero-main, .lg-status { grid-column: 1; }
  .lg-status { width: 100%; max-width: 520px; justify-self: center; }
  .lg-three { grid-template-columns: 1fr; }
  .lg-col, .lg-col:first-child, .lg-col:last-child, .lg-col:nth-child(2), .lg-col:nth-child(3) { padding: 32px 0; border-left: 0; }
  .lg-col + .lg-col { border-top: 1px solid var(--lg-soft); }
}
@media (max-width: 640px) {
  .lg-wrap { width: min(100% - 32px, 1360px); }
  .lg-kicker { letter-spacing: .2em; font-size: 11px; }
  .lg-kicker span { width: 24px; }
  .lg-tagline { font-size: 15px; letter-spacing: .14em; }
  .lg-pitch { font-size: 14.5px; }
  .lg-cta { flex-direction: column; width: 100%; }
  .lg-btn { width: 100%; }
  .lg-feats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-feats li { justify-content: flex-start; padding: 16px 10px; }
  .lg-feats li:nth-child(odd) { border-left: 0; }
  .lg-feats li:nth-child(4) { border-left: 1px solid var(--lg-soft); }
  .lg-feats li:nth-child(n+3) { border-top: 1px solid var(--lg-soft); }
  .lg-feat-ic { width: 36px; height: 36px; }
  .lg-feats b { font-size: 12px; }
  .lg-news a { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .lg-news img { width: 88px; height: 62px; }
  .lg-tiles { grid-template-columns: 1fr; gap: 12px; padding: 28px 0 44px; }
  .lg-board td, .lg-board th { padding-inline: 4px; }
  .lg-cls { font-size: 12px; }
}

/* ---------- Priorité sur les styles généraux ---------- */
html body .lg-h h2 { font: 600 17px/1.2 var(--lg-title) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--lg-text) !important; margin: 0 !important; }
html body .lg-status h2 { font: 600 14px/1 var(--lg-title) !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--lg-text) !important; margin: 0 !important; }
html body .lg-board table { background: none !important; border: 0 !important; box-shadow: none !important; }
html body .lg-board th, html body .lg-board td { background: none !important; }
html body .lg-board th { border: 0 !important; }
html body .lg-board tr:hover td { background: rgba(255, 255, 255, .025) !important; }
.lg-board tbody tr.r1 { background: linear-gradient(90deg, rgba(214, 167, 92, .12), transparent 75%); }
.lg-siege::after { background: linear-gradient(180deg, rgba(7, 9, 13, .15) 15%, rgba(7, 9, 13, .7) 50%, rgba(7, 9, 13, .96) 100%) !important; }
.lg-siege-txt strong { text-transform: none; }
.lg-pitch { max-width: 60ch; }
html body.is-lg-home .hx-chip.is-red { background: linear-gradient(180deg, #dc4a2e, #a51d10) !important; border: 1px solid #f08a5d !important; color: #fff !important; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem !important; }
html body.is-lg-home .hx-user .hx-chip:not(.is-red) { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem !important; border-color: rgba(214, 167, 92, .45) !important; }
@media (max-width: 640px) {
  .lg-tiles a { aspect-ratio: 16 / 7; }
  html body .lg-chat .ch-list { height: 150px !important; }
}

/* =========================================================
   v3 — couverture « chevalier » : texte à gauche, personnage
   visible au centre-droit, panneau d'état à droite
   ========================================================= */
.lg-hero { background-position: 62% 30%; background-size: cover; }
.lg-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .96) 0%, rgba(7, 9, 13, .82) 28%, rgba(7, 9, 13, .3) 50%, rgba(7, 9, 13, .08) 64%, rgba(7, 9, 13, .55) 84%, rgba(7, 9, 13, .85) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, .8) 0%, rgba(7, 9, 13, 0) 22%, rgba(7, 9, 13, 0) 66%, var(--lg-ink) 100%) !important;
}
.lg-hero-grid { grid-template-columns: minmax(0, 600px) minmax(0, 1fr) 300px; min-height: 640px; }
.lg-hero-main { grid-column: 1; align-items: flex-start; text-align: left; }
.lg-kicker span:first-child { display: none; }
.lg-logo img { width: min(520px, 86vw); margin-left: -6px; }
.lg-tagline { font-size: 18px; letter-spacing: .2em; }
.lg-cta { justify-content: flex-start; }
.lg-hero::after { content: ""; position: absolute; left: 0; top: 30%; width: 50%; height: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(200, 35, 30, .14), transparent 65%); }
@media (max-width: 1280px) {
  .lg-hero-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .lg-hero-main { grid-column: 1; }
  .lg-status { grid-column: 2; }
}
@media (max-width: 900px) {
  .lg-hero { background-position: 70% 20%; }
  .lg-hero::before { background: linear-gradient(180deg, rgba(7, 9, 13, .75) 0%, rgba(7, 9, 13, .55) 40%, rgba(7, 9, 13, .85) 75%, var(--lg-ink) 100%) !important; }
  .lg-hero-grid { grid-template-columns: 1fr; }
  .lg-hero-main { align-items: center; text-align: center; }
  .lg-cta { justify-content: center; }
  .lg-kicker span:first-child { display: block; }
  .lg-logo img { margin-left: 0; }
}

/* G (génération) dans le classement */
.lg-board .c { text-align: center; }
.lg-g { display: inline-block; min-width: 30px; padding: 3px 6px; border-radius: 4px; font: 700 11px/1 var(--k-font); letter-spacing: .04em; color: var(--lg-gold-hi); border: 1px solid rgba(214, 167, 92, .4); background: rgba(214, 167, 92, .08); }
.lg-g.is-hi { background: linear-gradient(180deg, #e9c47c, #a87a2e); color: #241604; border-color: transparent; }

/* ---------- Classes : bande défilante ---------- */
.lg-classes { padding: 44px 0 10px; }
.lg-rail-nav { display: inline-flex; align-items: center; gap: 8px; }
.lg-rail-nav button {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--lg-text); background: rgba(255, 255, 255, .03); border: 1px solid rgba(214, 167, 92, .35); transition: border-color .2s, color .2s;
}
.lg-rail-nav button:hover { border-color: var(--lg-gold-hi); color: var(--lg-gold-hi); }
.lg-rail-nav a { margin-left: 8px; }
.lg-rail {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px;
  margin: 0; padding: 4px 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lg-rail::-webkit-scrollbar { display: none; }
.lg-rail li { scroll-snap-align: start; }
.lg-rail a {
  display: flex; flex-direction: column; height: 100%; border: 1px solid rgba(255, 255, 255, .07); border-radius: 6px; overflow: hidden;
  background: #0d1117; color: inherit; text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s;
}
.lg-rail a:hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-3px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c) 70%, transparent); }
.lg-cl-img { position: relative; display: block; aspect-ratio: 4 / 4.2; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), #0a0d12; }
.lg-cl-img > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lg-rail a:hover .lg-cl-img > img:first-child { transform: scale(1.06); }
.lg-cl-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #0d1117 100%); }
.lg-cl-ic { position: absolute; left: 12px; bottom: 6px; z-index: 1; width: 26px; height: 26px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 70%, transparent)); }
.lg-cl-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 14px; flex: 1; }
.lg-cl-body > b { font: 600 14px/1.25 var(--lg-title); letter-spacing: .04em; color: var(--lg-text); }
.lg-cl-body > small { font-size: 11px; color: var(--c); opacity: .9; }
.lg-cl-stats { display: grid; gap: 5px; margin-top: 10px; }
.lg-cl-stats > span { display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; align-items: center; gap: 8px; }
.lg-cl-stats em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--lg-muted); }
.lg-cl-stats i { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.lg-cl-stats i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #000), var(--c)); }
.lg-cl-stats strong { font-size: 11px; font-weight: 600; text-align: right; color: var(--lg-text); font-variant-numeric: tabular-nums; }
.lg-cl-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 10.5px; color: var(--lg-muted); }

/* ---------- Deuxième rangée : events, fil, commencer ---------- */
.lg-three.is-row2 { border-top: 1px solid var(--lg-soft); margin-top: 30px; }
.lg-evlist { list-style: none; margin: 0; padding: 0; }
.lg-evlist li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 0; }
.lg-evlist li + li { border-top: 1px solid var(--lg-soft); }
.lg-evlist img { width: 76px; height: 46px; object-fit: cover; border-radius: 4px; border: 1px solid var(--lg-soft); }
.lg-evlist b { display: block; font-weight: 600; font-size: 14px; color: var(--lg-text); }
.lg-evlist small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--lg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-evlist-t { text-align: right; }
.lg-evlist-t time { display: block; font: 600 18px/1 var(--k-font); color: var(--lg-text); font-variant-numeric: tabular-nums; }
.lg-evlist li:first-child time { color: var(--lg-gold-hi); }
.lg-evlist-t .cd { display: block; margin-top: 4px; font-size: 11px; color: var(--lg-muted); white-space: nowrap; }

html body .lg-feed { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; max-height: none !important; }
html body .lg-feed > li { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 10px 0 !important; }
html body .lg-feed > li + li { border-top: 1px solid var(--lg-soft) !important; }
html body .lg-col.hx-feed { background: none !important; border-top: 0 !important; border-right: 0 !important; border-bottom: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.lg-h .hx-live-dot { margin: 0; }

.lg-steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; }
.lg-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.lg-steps li + li { border-top: 1px solid var(--lg-soft); }
.lg-steps b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 600 15px/1 var(--lg-title); color: var(--lg-gold-hi); border: 1px solid rgba(214, 167, 92, .45); background: radial-gradient(circle, rgba(214, 167, 92, .16), transparent 70%); }
.lg-steps a { display: block; font-weight: 600; font-size: 15px; color: var(--lg-text); text-decoration: none; }
.lg-steps a:hover { color: var(--lg-gold-hi); }
.lg-steps small { display: block; margin-top: 3px; font-size: 12px; color: var(--lg-muted); }
.lg-join { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.lg-join .lg-btn { height: 46px; padding: 0 16px; font-size: 13px; }
.lg-ref { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 12.5px; color: var(--lg-muted); }
.lg-ref .ic { color: var(--lg-gold); flex: none; }
.lg-ref b { color: var(--lg-gold-hi); }

@media (max-width: 1280px) { .lg-rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }
@media (max-width: 1100px) { .lg-rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 760px) { .lg-rail { grid-auto-columns: calc((100% - 14px) / 2.2); } }
@media (max-width: 640px) {
  .lg-rail-nav button { display: none; }
  .lg-evlist li { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; }
  .lg-evlist img { width: 60px; height: 38px; }
}
@media (max-width: 900px) {
  .lg-hero-grid { grid-template-columns: 1fr !important; }
  .lg-hero-main, .lg-status { grid-column: 1 !important; }
}

/* =========================================================
   v4 — finition : cadres ornés, titres à losange, grain,
   compte à rebours en cases, apparition au défilement
   ========================================================= */

/* grain cinématographique sur la couverture (adoucit l'image agrandie) */
.lg-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lg-hero { box-shadow: inset 0 0 160px rgba(0, 0, 0, .65); }

/* cadres ornés : coins dorés + filet supérieur */
.is-lg-home {
  --lg-corner: linear-gradient(var(--lg-gold), var(--lg-gold));
  --lg-panel-bg: linear-gradient(180deg, rgba(19, 23, 31, .82) 0%, rgba(10, 13, 18, .92) 100%);
}
.lg-three { gap: 22px; padding-top: 40px; border-bottom: 0 !important; }
html body .lg-three > .lg-col {
  position: relative; padding: 26px 26px 28px !important; border: 1px solid rgba(255, 255, 255, .065) !important; border-radius: 8px !important;
  background:
    var(--lg-corner) left top / 16px 1px no-repeat, var(--lg-corner) left top / 1px 16px no-repeat,
    var(--lg-corner) right top / 16px 1px no-repeat, var(--lg-corner) right top / 1px 16px no-repeat,
    var(--lg-corner) left bottom / 16px 1px no-repeat, var(--lg-corner) left bottom / 1px 16px no-repeat,
    var(--lg-corner) right bottom / 16px 1px no-repeat, var(--lg-corner) right bottom / 1px 16px no-repeat,
    var(--lg-panel-bg) !important;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9);
}
html body .lg-three > .lg-col::before {
  content: ""; position: absolute; left: 30%; right: 30%; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lg-gold-hi), transparent);
}
.lg-three.is-row2 { border-top: 0 !important; margin-top: 0; }
.lg-classes { padding-top: 56px; }

/* titres : losange doré */
html body .lg-h h2::before {
  content: ""; flex: none; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--lg-gold); box-shadow: 0 0 10px rgba(214, 167, 92, .6);
}
.lg-h::after { width: 64px; background: linear-gradient(90deg, var(--lg-gold), transparent); }

/* panneau d'état : mêmes coins */
html body .lg-status {
  background:
    var(--lg-corner) left top / 16px 1px no-repeat, var(--lg-corner) left top / 1px 16px no-repeat,
    var(--lg-corner) right bottom / 16px 1px no-repeat, var(--lg-corner) right bottom / 1px 16px no-repeat,
    linear-gradient(180deg, rgba(14, 17, 24, .9), rgba(9, 11, 16, .93));
}

/* Castle Siege : image plus lisible, compte à rebours en cases */
.lg-siege { aspect-ratio: 16 / 8.6; }
.lg-siege::after { background: linear-gradient(180deg, rgba(7, 9, 13, .05) 20%, rgba(7, 9, 13, .55) 55%, rgba(7, 9, 13, .95) 100%) !important; }
.lg-siege-txt strong { font-size: 19px; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.lg-cdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.lg-cdown > span {
  display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(214, 167, 92, .1), rgba(214, 167, 92, .02)); border: 1px solid rgba(214, 167, 92, .3);
}
.lg-cdown b { font: 600 26px/1 var(--lg-title); color: var(--lg-gold-hi); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lg-cdown small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-muted); }
.lg-media-cap { margin-top: 14px; }

/* actualités : vignettes un peu plus présentes */
.lg-news img { width: 112px; height: 72px; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .9); }
.lg-news a { transition: transform .2s; }
.lg-news a:hover { transform: translateX(3px); }

/* classement : rangée de tête plus nette */
.lg-board tbody tr { transition: background .2s; }
.lg-board td:first-child { width: 34px; }

/* classes : coins et nom en capitales */
.lg-rail a { position: relative; background: linear-gradient(180deg, #10141b, #0b0e13); }
.lg-rail a::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(var(--c), var(--c)) left top / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1px 14px no-repeat,
              linear-gradient(var(--c), var(--c)) right bottom / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1px 14px no-repeat;
  opacity: 0; transition: opacity .3s;
}
.lg-rail a:hover::before { opacity: 1; }

/* bannières : liseré intérieur */
.lg-tiles a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.lg-tiles b { font-size: 15px; }
.lg-tiles span::before { content: ""; display: block; width: 26px; height: 1px; margin: 0 auto 10px; background: var(--lg-gold-hi); opacity: .8; transition: width .3s; }
.lg-tiles a:hover span::before { width: 60px; }

/* apparition au défilement */
.rv-on [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv-on [data-rv].is-rv { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  html body .lg-three > .lg-col { border-top: 1px solid rgba(255, 255, 255, .065) !important; }
}
@media (max-width: 640px) {
  html body .lg-three > .lg-col { padding: 22px 18px !important; }
  .lg-cdown b { font-size: 22px; }
}

/* =========================================================
   v5 — vitrine des classes (sans cadres) + bande ouverte
   ========================================================= */
.lg-show { position: relative; margin-top: 70px; padding: 70px 0 60px; isolation: isolate; overflow: hidden; }
.lg-show::before { /* lueur de la classe choisie, fondue dans le fond */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 45% 60% at 28% 58%, rgba(214, 167, 92, .07), transparent 70%),
              linear-gradient(180deg, transparent, rgba(255, 255, 255, .015) 30%, rgba(255, 255, 255, .015) 70%, transparent);
}
.lg-show::after { content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--lg-gold), transparent); }
.lg-show-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 30px; }
.lg-show-head .lg-kicker span:first-child { display: block; }
html body .lg-show-title { margin: 8px 0 0 !important; font: 600 34px/1.15 var(--lg-title) !important; letter-spacing: .06em !important; color: var(--lg-text) !important; text-transform: uppercase; }

/* sélecteur : médaillons ronds */
.lg-show-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin: 0 auto 46px; max-width: 1040px; }
.lg-show-pick button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 62px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--lg-muted);
}
.lg-show-pick img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 18%;
  border: 2px solid rgba(255, 255, 255, .1); filter: grayscale(.65) brightness(.7); transition: filter .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.lg-show-pick span { font-size: 10.5px; line-height: 1.2; text-align: center; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.lg-show-pick button:hover img { filter: none; transform: translateY(-2px); }
.lg-show-pick button:hover span, .lg-show-pick button[aria-selected="true"] span { opacity: 1; transform: none; }
.lg-show-pick button[aria-selected="true"] img { filter: none; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 0 26px color-mix(in srgb, var(--c) 55%, transparent); }
.lg-show-pick button[aria-selected="true"] span { color: var(--lg-text); font-weight: 600; }

/* fiche */
.lg-show-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.lg-show-panel.is-anim .lg-show-art img { animation: lg-in-art .6s cubic-bezier(.2, .8, .2, 1); }
.lg-show-panel.is-anim .lg-show-body { animation: lg-in-body .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes lg-in-art { from { opacity: 0; transform: translateX(-24px) scale(.98); } }
@keyframes lg-in-body { from { opacity: 0; transform: translateX(18px); } }
.lg-show-art { position: relative; margin: 0; aspect-ratio: 1 / 1.08; isolation: isolate; }
.lg-show-art::before { /* halo de la couleur de classe */
  content: ""; position: absolute; inset: 8% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 38%, transparent), transparent 68%); filter: blur(10px);
}
.lg-show-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 46%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 64% at 50% 46%, #000 52%, transparent 100%);
}
.lg-show-tag { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 12px/1 var(--k-font); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.lg-show-tag img { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 70%, transparent)); }
html body .lg-show-body h3 { margin: 14px 0 0 !important; font: 600 46px/1.05 var(--lg-title) !important; letter-spacing: .03em !important; color: var(--lg-text) !important; text-shadow: 0 0 40px color-mix(in srgb, var(--c) 35%, transparent); }
.lg-show-desc { margin: 16px 0 0; max-width: 52ch; font-size: 15.5px; line-height: 1.7; color: var(--k-text-2, #b6bfcb); }
.lg-show-evo { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 18px 0 0; padding: 0; font-size: 13px; color: var(--lg-muted); }
.lg-show-evo li { display: inline-flex; align-items: center; }
.lg-show-evo li + li::before { content: "›"; margin: 0 10px; color: var(--c); font-size: 15px; }
.lg-show-evo li:last-child { color: var(--lg-text); font-weight: 600; }
.lg-show-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; margin-top: 28px; max-width: 560px; }
.lg-show-stats > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) 30px; align-items: center; gap: 12px; }
.lg-show-stats span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-muted); }
.lg-show-stats i { position: relative; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.lg-show-stats i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, #000), var(--c)); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.lg-show-stats b { font: 600 15px/1 var(--k-font); text-align: right; color: var(--lg-text); font-variant-numeric: tabular-nums; }
.lg-show-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--lg-soft); max-width: 560px; }
.lg-show-facts > div { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--lg-soft); }
.lg-show-facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.lg-show-facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lg-muted); }
.lg-show-facts dd { margin: 6px 0 0; font-weight: 600; font-size: 14px; color: var(--lg-text); }
.lg-show-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lg-show-act .lg-btn { height: 50px; }

/* bande ouverte : events · en direct · commencer (pas de cadres) */
.lg-band2 { position: relative; padding: 10px 0 20px; border-top: 1px solid var(--lg-soft); border-bottom: 1px solid var(--lg-soft); background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent); }
.lg-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg-trio > .lg-col { padding: 40px 34px 34px !important; border: 0 !important; background: none !important; }
.lg-trio > .lg-col:first-child { padding-left: 0 !important; }
.lg-trio > .lg-col:last-child { padding-right: 0 !important; }
.lg-trio > .lg-col + .lg-col { border-left: 1px solid var(--lg-soft) !important; }
.lg-trio .lg-h { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
.lg-trio .lg-h::after { display: none; }
.lg-trio .lg-evlist li, .lg-trio .lg-feed > li, .lg-trio .lg-steps li { border-color: rgba(255, 255, 255, .05) !important; }
/* étapes en frise verticale */
.lg-trio .lg-steps { position: relative; }
.lg-trio .lg-steps::before { content: ""; position: absolute; left: 18px; top: 30px; bottom: 30px; width: 1px; background: linear-gradient(180deg, var(--lg-gold), rgba(214, 167, 92, .1)); }
.lg-trio .lg-steps li { border-top: 0 !important; position: relative; }
.lg-trio .lg-steps b { background: var(--lg-ink); position: relative; }
.lg-tiles { padding-top: 50px; }

@media (max-width: 1100px) {
  .lg-trio { grid-template-columns: 1fr 1fr; }
  .lg-trio > .lg-col:nth-child(3) { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--lg-soft) !important; padding-left: 0 !important; padding-right: 0 !important; }
  .lg-trio > .lg-col:nth-child(2) { padding-right: 0 !important; }
}
@media (max-width: 900px) {
  .lg-show-panel { grid-template-columns: 1fr; gap: 10px; }
  .lg-show-art { max-width: 420px; margin: 0 auto; width: 100%; }
  html body .lg-show-body h3 { font-size: 36px !important; }
  .lg-trio { grid-template-columns: 1fr; }
  .lg-trio > .lg-col, .lg-trio > .lg-col:first-child, .lg-trio > .lg-col:last-child { padding: 30px 0 !important; border-left: 0 !important; }
  .lg-trio > .lg-col + .lg-col { border-top: 1px solid var(--lg-soft) !important; }
}
@media (max-width: 640px) {
  .lg-show { padding: 50px 0 40px; margin-top: 50px; }
  html body .lg-show-title { font-size: 24px !important; }
  .lg-show-pick { gap: 10px 6px; }
  .lg-show-pick button { width: 52px; }
  .lg-show-pick img { width: 46px; height: 46px; }
  .lg-show-pick span { display: none; }
  .lg-show-stats { grid-template-columns: 1fr; }
  .lg-show-stats > div { grid-template-columns: 90px minmax(0, 1fr) 30px; }
  .lg-show-facts > div { padding-right: 14px; margin-right: 14px; }
  .lg-show-facts > div:last-child { flex-basis: 100%; margin-top: 12px; }
  .lg-show-act { flex-direction: column; }
}
.lg-show-pick { max-width: none; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 4px; justify-content: safe center; }
.lg-show-pick::-webkit-scrollbar { display: none; }
.lg-show-pick button { flex: none; width: 66px; }
.lg-show-art img { -webkit-mask-image: radial-gradient(ellipse 54% 58% at 50% 45%, #000 38%, transparent 100%); mask-image: radial-gradient(ellipse 54% 58% at 50% 45%, #000 38%, transparent 100%); }
.lg-show { padding-bottom: 40px; }
@media (max-width: 640px) { .lg-show-pick { justify-content: flex-start; } }
html body .lg-show-pick button { background: none !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; }
html body .lg-show-pick button:focus-visible img { outline: 2px solid var(--lg-gold-hi); outline-offset: 3px; }

/* =========================================================
   v6 — ornements, heure du serveur, appel final
   ========================================================= */
.lg-orn { display: flex; justify-content: center; margin-bottom: 18px; line-height: 0; }
.lg-orn svg { filter: drop-shadow(0 0 6px rgba(214, 167, 92, .35)); }
.lg-show::after { display: none; }
.lg-show { padding-top: 56px; }

.lg-figs .is-clock dd { color: var(--lg-gold-hi); letter-spacing: .04em; }

.lg-final { position: relative; isolation: isolate; overflow: hidden; margin-top: 10px; text-align: center; }
.lg-final::before { /* illustration en miroir, très assombrie */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--k-cover) 40% 28% / cover no-repeat; transform: scaleX(-1); filter: saturate(.85);
}
.lg-final::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 70% at 50% 55%, rgba(7, 9, 13, .55), rgba(7, 9, 13, .9) 80%),
              linear-gradient(180deg, var(--lg-ink) 0%, rgba(7, 9, 13, .35) 25%, rgba(7, 9, 13, .35) 75%, var(--lg-ink) 100%);
}
.lg-final-in { display: flex; flex-direction: column; align-items: center; padding: 110px 0 100px; }
.lg-final .lg-kicker span:first-child { display: block; }
html body .lg-final-title { margin: 10px 0 0 !important; font: 600 44px/1.15 var(--lg-title) !important; letter-spacing: .04em !important; color: var(--lg-text) !important; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.lg-final-txt { margin: 16px 0 0; max-width: 52ch; color: rgba(243, 236, 223, .78); font-size: 16px; line-height: 1.7; }
.lg-final .lg-cta { justify-content: center; margin-top: 30px; }
.lg-final-stats { list-style: none; display: flex; justify-content: center; margin: 46px 0 0; padding: 0; }
.lg-final-stats li { display: grid; gap: 6px; padding: 0 34px; }
.lg-final-stats li + li { border-left: 1px solid rgba(214, 167, 92, .25); }
.lg-final-stats b { font: 600 30px/1 var(--lg-title); color: var(--lg-gold-hi); }
.lg-final-stats small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--lg-muted); }
.lg-chat { padding-bottom: 40px; }
@media (max-width: 640px) {
  .lg-final-in { padding: 80px 0 70px; }
  html body .lg-final-title { font-size: 28px !important; }
  .lg-final-stats li { padding: 0 14px; }
  .lg-final-stats b { font-size: 22px; }
  .lg-final .lg-cta { width: 100%; }
}
.lg-final::after {
  background: radial-gradient(ellipse 46% 64% at 50% 52%, rgba(7, 9, 13, .62), rgba(7, 9, 13, .35) 70%, rgba(7, 9, 13, .7) 100%),
              linear-gradient(180deg, var(--lg-ink) 0%, rgba(7, 9, 13, .2) 22%, rgba(7, 9, 13, .2) 78%, var(--lg-ink) 100%) !important;
}

/* =========================================================
   v7 — équilibre des 3 cadres, reflet sur le logo, taverne compacte
   ========================================================= */
html body .lg-three .lg-h h2 { white-space: nowrap; }
.lg-three > .lg-col { display: flex; flex-direction: column; }
.lg-three .lg-news { display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.lg-three .lg-news a { padding: 11px 0; }
.lg-three .lg-news small { -webkit-line-clamp: 1; }
.lg-three .lg-siege { aspect-ratio: auto; flex: 1; min-height: 210px; }
.lg-three .lg-board { flex: 1; }
.lg-three .lg-board td { padding-block: 11px; }
.lg-three .lg-col > .lg-media-cap { margin-bottom: 0; }

/* reflet lumineux qui traverse le logo */
.lg-logo { position: relative; display: inline-block; }
.lg-logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 240, 210, .55) 48%, rgba(255, 255, 255, .85) 50%, rgba(255, 240, 210, .55) 52%, transparent 62%) no-repeat;
  background-size: 250% 100%; background-position: 140% 0;
  -webkit-mask: url("../img/brand/logo-xl.webp") left center / contain no-repeat; mask: url("../img/brand/logo-xl.webp") left center / contain no-repeat;
  mix-blend-mode: overlay; animation: lg-shine 7s ease-in-out 1.2s infinite;
}
.lg-logo img { animation: none; }
@keyframes lg-shine { 0% { background-position: 140% 0; } 22%, 100% { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .lg-logo::after { animation: none; display: none; } }
@media (max-width: 900px) { .lg-logo::after { -webkit-mask-position: center; mask-position: center; } }

/* taverne : bandeau compact */
.lg-chat { padding-top: 10px; }
html body .lg-chat .ch-list { height: 150px !important; }
html body .lg-chat .ch-empty { padding: 18px !important; }

/* animations de l'accueil (le style Épuré les coupe partout ailleurs) */
@media (prefers-reduced-motion: no-preference) {
  html body.is-lg-home .lg-hero .hx-embers i { animation-name: hx-ember !important; animation-duration: var(--d) !important; animation-timing-function: linear !important; animation-iteration-count: infinite !important; }
  html body.is-lg-home .lg-logo::after { animation-name: lg-shine !important; animation-duration: 7s !important; animation-timing-function: ease-in-out !important; animation-delay: 1.2s !important; animation-iteration-count: infinite !important; }
  html body.is-lg-home .lg-on i { animation-name: lg-pulse !important; animation-duration: 2s !important; animation-iteration-count: infinite !important; }
  html body.is-lg-home .lg-show-panel.is-anim .lg-show-art img { animation: lg-in-art .6s cubic-bezier(.2, .8, .2, 1) !important; }
  html body.is-lg-home .lg-show-panel.is-anim .lg-show-body { animation: lg-in-body .6s cubic-bezier(.2, .8, .2, 1) !important; }
  html body.is-lg-home .hx-live-dot i { animation-name: lg-pulse !important; animation-duration: 2s !important; animation-iteration-count: infinite !important; }
}
.lg-board-more { margin-top: auto; padding-top: 16px; }
.lg-board-more .lg-btn { height: 44px; font-size: 12px; }
.lg-logo::after { mix-blend-mode: screen; background-image: linear-gradient(105deg, transparent 40%, rgba(255, 225, 170, .25) 47%, rgba(255, 245, 225, .6) 50%, rgba(255, 225, 170, .25) 53%, transparent 60%); }

/* =========================================================
   v8 — ouverture, récompenses & votes, profondeur
   ========================================================= */
.lg-hero { background-position: 62% calc(30% + var(--py, 0px)); }

/* compte à rebours d'ouverture dans la couverture */
.lg-open { margin-top: 28px; width: min(100%, 470px); }
.lg-open-lbl { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 600 12px/1 var(--k-font); letter-spacing: .14em; text-transform: uppercase; color: var(--lg-gold-hi); }
.lg-open-lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--lg-red-hi); box-shadow: 0 0 0 3px rgba(226, 74, 47, .25); }
.lg-cdown.is-hero { margin-top: 0; }
.lg-cdown.is-hero > span { background: rgba(9, 11, 16, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 14px 4px 11px; }
.lg-cdown.is-hero b { font-size: 30px; }
@media (max-width: 900px) { .lg-open { margin-inline: auto; } .lg-open-lbl { justify-content: center; } }

/* récompenses quotidiennes + votes */
.lg-rew { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; margin-top: 30px; border: 1px solid rgba(214, 167, 92, .22); border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(214, 167, 92, .09), transparent 60%), linear-gradient(180deg, rgba(18, 22, 30, .85), rgba(10, 12, 17, .92)); position: relative; }
.lg-rew::before { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--lg-gold-hi), transparent); }
.lg-rew > div { padding: 30px 34px 32px; min-width: 0; }
.lg-rew-vote { border-left: 1px solid rgba(255, 255, 255, .07); }
.lg-rew .lg-h { margin-bottom: 12px; }
.lg-rew-txt { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--lg-muted); }
.lg-days { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; }
.lg-days li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .02); text-align: center; }
.lg-days small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--lg-muted); }
.lg-day-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--lg-gold); background: radial-gradient(circle, rgba(214, 167, 92, .16), transparent 70%); }
.lg-days b { font: 600 15px/1 var(--k-font); color: var(--lg-text); }
.lg-days em { font-style: normal; font-size: 10px; color: var(--lg-muted); }
.lg-days .is-big { border-color: rgba(214, 167, 92, .5); background: linear-gradient(180deg, rgba(214, 167, 92, .16), rgba(214, 167, 92, .03)); }
.lg-days .is-big b { color: var(--lg-gold-hi); font-size: 17px; }
.lg-days .is-big .lg-day-ic { color: var(--lg-gold-hi); }
.lg-days .is-done { opacity: .5; }
.lg-days .is-done::after { content: "✓"; position: absolute; top: 6px; right: 8px; font-size: 11px; color: #4fd18b; }
.lg-days .is-now { border-color: var(--lg-red-hi); box-shadow: 0 0 0 1px rgba(226, 74, 47, .3), 0 10px 30px -14px rgba(226, 74, 47, .8); }
.lg-days .is-now small { color: var(--lg-red-hi); }
.lg-rew-btn { height: 48px; }
.lg-rew-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: #4fd18b; }
.lg-votes { list-style: none; margin: 0; padding: 0; }
.lg-votes li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 0; }
.lg-votes li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.lg-vote-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 600 13px/1 var(--lg-title); color: var(--lg-gold-hi); border: 1px solid rgba(214, 167, 92, .4); }
.lg-vote-t b { display: block; font-weight: 600; font-size: 14px; color: var(--lg-text); }
.lg-vote-t small { font-size: 11.5px; color: var(--lg-muted); }
.lg-vote-r { font: 600 15px/1 var(--k-font); color: var(--lg-gold-hi); white-space: nowrap; }
.lg-vote-r small { font-size: 10px; color: var(--lg-muted); }
.lg-votes .lg-btn { width: auto; height: 36px; padding: 0 16px; font-size: 11.5px; }
@media (max-width: 1000px) {
  .lg-rew { grid-template-columns: 1fr; }
  .lg-rew-vote { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
}
@media (max-width: 640px) {
  .lg-rew > div { padding: 24px 18px; }
  .lg-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg-days .is-big { grid-column: span 1; }
  .lg-votes li { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .lg-votes .lg-btn { grid-column: 2 / -1; width: 100%; }
}
.lg-rew { margin-bottom: 44px; }

/* =========================================================
   Accueil compact (Réglages → Apparence, ou ?compact=1)
   ========================================================= */
.is-compact .lg-hero-grid { min-height: 500px; padding: 10px 0 26px; }
.is-compact .lg-logo img { width: min(410px, 80vw); }
.is-compact .lg-tagline { font-size: 16px; margin-top: 2px; }
.is-compact .lg-pitch { margin-top: 10px; font-size: 14.5px; }
.is-compact .lg-cta { margin-top: 20px; }
.is-compact .lg-cta .lg-btn { height: 48px; }
.is-compact .lg-open { margin-top: 18px; }
.is-compact .lg-cdown.is-hero > span { padding: 9px 4px 8px; }
.is-compact .lg-cdown.is-hero b { font-size: 24px; }
.is-compact .lg-status { padding: 16px 18px; }
.is-compact .lg-figs div { padding: 6px 0; }
.is-compact .lg-evs li { padding: 6px 0; }
.is-compact .lg-evs li:nth-child(n+3):not(.is-siege) { display: none; }
.is-compact .lg-feats li { padding: 13px 10px; }
.is-compact .lg-feat-ic { width: 34px; height: 34px; }

.is-compact .lg-three { padding-top: 24px; gap: 16px; }
html body.is-compact .lg-three > .lg-col { padding: 18px 20px 20px !important; }
.is-compact .lg-h { margin-bottom: 12px; padding-bottom: 10px; }
.is-compact .lg-news a { padding: 8px 0; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.is-compact .lg-news img { width: 92px; height: 58px; }
.is-compact .lg-news small { display: none; }
.is-compact .lg-three .lg-siege { min-height: 170px; }
.is-compact .lg-cdown { margin-top: 10px; }
.is-compact .lg-cdown > span { padding: 8px 4px 7px; }
.is-compact .lg-cdown b { font-size: 21px; }
.is-compact .lg-media-cap { margin-top: 10px; font-size: 12.5px; }
.is-compact .lg-three .lg-board td { padding-block: 8px; }
.is-compact .lg-board-more { padding-top: 10px; }
.is-compact .lg-board-more .lg-btn { height: 38px; }

/* classes : fiche resserrée, portrait plus petit */
.is-compact .lg-show { margin-top: 30px; padding: 30px 0 20px; }
.is-compact .lg-orn { margin-bottom: 8px; }
html body.is-compact .lg-show-title { font-size: 26px !important; }
.is-compact .lg-show-head { margin-bottom: 16px; }
.is-compact .lg-show-pick { margin-bottom: 18px; }
.is-compact .lg-show-pick img { width: 46px; height: 46px; }
.is-compact .lg-show-pick button { width: 56px; }
.is-compact .lg-show-panel { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
.is-compact .lg-show-art { aspect-ratio: 1 / 1; max-height: 360px; }
html body.is-compact .lg-show-body h3 { font-size: 36px !important; margin-top: 8px !important; }
.is-compact .lg-show-desc { margin-top: 10px; font-size: 14.5px; }
.is-compact .lg-show-evo { margin-top: 12px; }
.is-compact .lg-show-stats { margin-top: 16px; gap: 10px 30px; }
.is-compact .lg-show-facts { margin-top: 16px; padding-top: 12px; }
.is-compact .lg-show-act { margin-top: 18px; }
.is-compact .lg-show-act .lg-btn { height: 44px; }

/* récompenses : une seule ligne */
.is-compact .lg-rew { margin: 16px auto 26px; }
.is-compact .lg-rew > div { padding: 20px 24px 22px; }
.is-compact .lg-rew-txt { display: none; }
.is-compact .lg-days { margin-bottom: 14px; gap: 6px; }
.is-compact .lg-days li { padding: 8px 2px; gap: 4px; }
.is-compact .lg-day-ic { width: 26px; height: 26px; }
.is-compact .lg-days em { display: none; }
.is-compact .lg-rew-btn { height: 42px; }
.is-compact .lg-votes li { padding: 7px 0; }

/* events / direct / commencer : 3 lignes chacun */
.is-compact .lg-trio > .lg-col { padding-top: 22px !important; padding-bottom: 20px !important; }
.is-compact .lg-evlist li:nth-child(n+4), .is-compact .lg-feed > li:nth-child(n+4) { display: none; }
.is-compact .lg-evlist li { padding: 8px 0; }
.is-compact .lg-steps { margin-bottom: 14px; }
.is-compact .lg-steps li { padding: 7px 0; }
.is-compact .lg-ref { display: none; }

/* bannières plus basses, pas d'appel final (déjà dans « Commencer ») */
.is-compact .lg-tiles { padding: 26px 0 36px; gap: 14px; }
.is-compact .lg-tiles a { aspect-ratio: 16 / 6; }
.is-compact .lg-tiles span { bottom: 12px; }
.is-compact .lg-final { display: none; }

@media (max-width: 900px) {
  .is-compact .lg-show-panel { grid-template-columns: 1fr; gap: 6px; }
  .is-compact .lg-show-art { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .is-compact .lg-feats li:nth-child(n+5) { display: none; }
  .is-compact .lg-tiles { grid-template-columns: 1fr 1fr; }
  .is-compact .lg-tiles a { aspect-ratio: 4 / 3; }
  .is-compact .lg-tiles small { display: none; }
  .is-compact .lg-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .is-compact .lg-days small { font-size: 8px; letter-spacing: 0; }
  .is-compact .lg-day-ic { display: none; }
  .is-compact .lg-days b { font-size: 12px; }
}

/* ---------- Actualités : texte bien lisible ---------- */
.lg-news small { color: #a9b2bf !important; font-size: 13px !important; -webkit-line-clamp: 2 !important; }
.is-compact .lg-news small { display: -webkit-box !important; margin-top: 3px; }
.is-compact .lg-news strong { margin-top: 5px; font-size: 14.5px; }
.is-compact .lg-news a { align-items: start; }
.is-compact .lg-news img { height: 64px; }

/* ---------- Compact v2 : récompenses, votes, events et direct sur une seule rangée ---------- */
.is-compact .lg-quad { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 16px; margin-top: 26px; margin-bottom: 8px; }
.is-compact .lg-quad > .lg-rew, .is-compact .lg-quad > .lg-band2, .is-compact .lg-quad .lg-trio { display: contents; }
.is-compact .lg-quad .lg-rew::before { display: none; }
html body.is-compact .lg-quad .lg-rew > div, html body.is-compact .lg-quad .lg-trio > .lg-col {
  position: relative; padding: 18px 20px 20px !important; margin: 0; min-width: 0;
  border: 1px solid rgba(255, 255, 255, .07) !important; border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(19, 23, 31, .82), rgba(10, 13, 18, .92)) !important;
}
html body.is-compact .lg-quad .lg-rew > div::before, html body.is-compact .lg-quad .lg-trio > .lg-col::before {
  content: ""; position: absolute; left: 22%; right: 22%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--lg-gold-hi), transparent);
}
.is-compact .lg-quad .lg-trio > .lg-col:nth-child(3) { display: none; }   /* « Commencer » : déjà dans l'en-tête */
.is-compact .lg-quad .lg-h { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.is-compact .lg-quad .lg-h h2 { font-size: 14.5px !important; white-space: nowrap; }
.is-compact .lg-quad .lg-h a { font-size: 11px; }
.is-compact .lg-quad .lg-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.is-compact .lg-quad .lg-days .is-big { grid-column: span 1; }
.is-compact .lg-quad .lg-day-ic { display: none; }
.is-compact .lg-quad .lg-days li { padding: 7px 2px; }
.is-compact .lg-quad .lg-rew-btn { width: 100%; height: 40px; font-size: 12px; }
.is-compact .lg-quad .lg-rew-ok { font-size: 12.5px; }
.is-compact .lg-quad .lg-votes li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; }
.is-compact .lg-quad .lg-vote-n { width: 24px; height: 24px; font-size: 11px; }
.is-compact .lg-quad .lg-vote-r { display: none; }
.is-compact .lg-quad .lg-vote-t small { display: none; }
.is-compact .lg-quad .lg-votes .lg-btn { height: 30px; padding: 0 12px; font-size: 10.5px; }
.is-compact .lg-quad .lg-votes li:nth-child(n+4) { display: none; }
.is-compact .lg-quad .lg-evlist li { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; }
.is-compact .lg-quad .lg-evlist img { width: 52px; height: 34px; }
.is-compact .lg-quad .lg-evlist small { display: none; }
.is-compact .lg-quad .lg-evlist-t time { font-size: 15px; }
html body.is-compact .lg-quad .lg-feed > li { padding: 7px 0 !important; }
.is-compact .lg-quad .lg-feed .act-ava { transform: scale(.85); }

/* classes encore plus serrées */
.is-compact .lg-show { margin-top: 20px; padding: 22px 0 6px; }
.is-compact .lg-orn { display: none; }
.is-compact .lg-show-panel { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
.is-compact .lg-show-art { max-height: 300px; }
.is-compact .lg-show-facts > div:last-child { display: none; }

/* en-tête : un peu plus bas encore */
.is-compact .lg-hero-grid { min-height: 470px; }
.is-compact .lg-pitch { display: none; }
.is-compact .lg-feats li small { display: none; }

@media (max-width: 1200px) { .is-compact .lg-quad { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .is-compact .lg-quad { grid-template-columns: 1fr; } }

/* =========================================================
   Boutons flottants (taverne + ticket)
   ========================================================= */
.is-compact .lg-quad .lg-h { flex-wrap: wrap; row-gap: 6px; }
.is-compact .lg-quad > * , .is-compact .lg-quad .lg-rew > div, .is-compact .lg-quad .lg-trio > .lg-col { min-width: 0; }
@media (max-width: 420px) { .is-compact .lg-quad .lg-h h2 { white-space: normal; } }
.is-compact .lg-quad .lg-rew-daily .lg-h a { display: none; }

/* =========================================================
   Rangée compacte v3 : récompenses · events · direct
   ========================================================= */
/* s'adapte au nombre de cadres (3 sans sites de vote, 4 avec) */
.is-compact .lg-quad { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important; align-items: stretch; }
html body.is-compact .lg-quad .lg-rew > div, html body.is-compact .lg-quad .lg-trio > .lg-col { display: flex; flex-direction: column; }

/* série de connexion */
.lg-streak { position: relative; display: flex; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding-bottom: 12px; font-size: 12.5px; color: var(--lg-muted); }
.lg-streak b { font: 600 18px/1 var(--lg-title); color: var(--lg-gold-hi); margin-right: 2px; }
.lg-streak > span:last-of-type:not(:first-child) { align-self: flex-end; }
.lg-streak i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.lg-streak i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--f); background: linear-gradient(90deg, #8f2a12, var(--lg-gold-hi)); border-radius: 3px; }
.lg-streak.is-guest b { font: 600 13px/1 var(--k-font); }

/* jours : une seule ligne de 7 jetons */
html body.is-compact .lg-quad .lg-days { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 5px; margin-bottom: 16px; }
html body.is-compact .lg-quad .lg-days li { padding: 9px 0 8px; border-radius: 6px; gap: 5px; }
html body.is-compact .lg-quad .lg-days small { font-size: 0; letter-spacing: 0; }
html body.is-compact .lg-quad .lg-days small::after { content: attr(data-d); }
.is-compact .lg-quad .lg-days li { counter-increment: d; }
.is-compact .lg-quad .lg-days { counter-reset: d; }
.is-compact .lg-quad .lg-days li small::before { content: "J" counter(d); font-size: 10px; letter-spacing: .06em; color: var(--lg-muted); }
.is-compact .lg-quad .lg-days .is-now small::before { color: var(--lg-red-hi); }
.is-compact .lg-quad .lg-days b { font-size: 12.5px; }
.is-compact .lg-quad .lg-days .is-big b { font-size: 13.5px; }
.is-compact .lg-quad .lg-days .is-done { opacity: .45; }
.is-compact .lg-quad .lg-days .is-done::after { top: 3px; right: 4px; font-size: 9px; }
.is-compact .lg-quad .lg-rew-btn, .is-compact .lg-quad .lg-rew-ok { margin-top: auto; }

/* events : barre de progression sous chaque ligne */
.is-compact .lg-quad .lg-evlist li { position: relative; padding: 9px 0 12px; }
.lg-evbar { position: absolute; left: 62px; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.lg-evbar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--f); background: linear-gradient(90deg, rgba(143, 42, 18, .9), var(--lg-gold)); }
.lg-evlist li:first-child .lg-evbar::after { background: linear-gradient(90deg, #a51d10, var(--lg-red-hi)); }
.lg-band2:not(.lg-quad *) .lg-evbar { left: 90px; }
.is-compact .lg-quad .lg-evlist li:nth-child(n+4) { display: grid; }
.is-compact .lg-quad .lg-evlist li:nth-child(n+5) { display: none; }

/* en direct : sans la ligne de frise, séparateurs fins */
html body .lg-feed .act a::before, html body .lg-feed .act + .act a::before { display: none !important; }
html body .lg-feed .act a { padding: 8px 0 !important; }
html body.is-compact .lg-quad .lg-feed > li:nth-child(n+4) { display: list-item; }
html body.is-compact .lg-quad .lg-feed > li:nth-child(n+5) { display: none; }
html body .lg-feed > li + li { border-top: 1px solid rgba(255, 255, 255, .05) !important; }

/* pied de cadre : lien utile, toujours aligné en bas */
.lg-card-foot {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 11px 12px; border-radius: 6px; text-decoration: none;
  font-size: 12.5px; color: var(--k-text-2, #b6bfcb); background: rgba(214, 167, 92, .06); border: 1px solid rgba(214, 167, 92, .2); transition: border-color .2s, color .2s;
}
.lg-card-foot span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-card-foot .ic:first-child { color: var(--lg-gold-hi); flex: none; }
.lg-card-foot:hover { color: #fff; border-color: rgba(214, 167, 92, .55); }
.lg-evlist, .lg-feed { margin-bottom: 14px !important; }
/* bandeau « grande récompense » qui remplit le cadre */
.lg-chest {
  position: relative; isolation: isolate; overflow: hidden; display: none; align-items: center; gap: 14px; flex: 1; min-height: 96px; margin: 0 0 14px; padding: 14px 16px;
  border-radius: 8px; border: 1px solid rgba(214, 167, 92, .35); text-decoration: none; color: #fff;
}
.is-compact .lg-quad .lg-chest { display: flex; }
.lg-chest::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center 40% / cover no-repeat; transition: transform .6s; }
.lg-chest::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 11, 16, .92) 10%, rgba(9, 11, 16, .55) 70%, rgba(9, 11, 16, .3)); }
.lg-chest:hover::before { transform: scale(1.05); }
.lg-chest:hover { border-color: var(--lg-gold-hi); }
.lg-chest-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #241604; background: linear-gradient(180deg, #f5d48f, #b07c2c); box-shadow: 0 0 22px rgba(214, 167, 92, .55); }
.lg-chest small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-gold-hi); }
.lg-chest b { display: block; margin-top: 4px; font: 600 22px/1 var(--lg-title); }
.lg-chest em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: rgba(241, 235, 223, .75); }

/* ---------- Classes sur mobile / tablette (passe devant les règles compactes) ---------- */
@media (max-width: 900px) {
  html body .lg-show-panel, html body.is-compact .lg-show-panel { grid-template-columns: 1fr !important; gap: 4px; text-align: center; }
  html body .lg-show-art, html body.is-compact .lg-show-art { width: 100%; max-width: 300px; max-height: none; aspect-ratio: 1 / 1; margin: 0 auto; }
  .lg-show-body { display: flex; flex-direction: column; align-items: center; }
  .lg-show-tag { justify-content: center; }
  .lg-show-desc { margin-inline: auto; }
  .lg-show-evo { justify-content: center; }
  .lg-show-stats { width: 100%; max-width: 420px; margin-inline: auto; text-align: left; }
  .lg-show-facts { justify-content: center; width: 100%; }
  .lg-show-act { justify-content: center; }
}
@media (max-width: 640px) {
  html body .lg-show-pick { justify-content: flex-start; gap: 6px; padding: 6px 2px; scroll-snap-type: x mandatory; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  html body .lg-show-pick button { width: 50px; scroll-snap-align: start; }
  html body .lg-show-pick img, html body.is-compact .lg-show-pick img { width: 44px; height: 44px; }
  html body .lg-show-art, html body.is-compact .lg-show-art { max-width: 240px; }
  html body .lg-show-body h3, html body.is-compact .lg-show-body h3 { font-size: 30px !important; }
  .lg-show-desc { font-size: 14px; }
  .lg-show-evo { font-size: 12px; }
  .lg-show-evo li + li::before { margin: 0 6px; }
  .lg-show-stats { grid-template-columns: 1fr 1fr !important; gap: 10px 18px !important; }
  .lg-show-stats > div { grid-template-columns: 1fr 26px !important; grid-template-rows: auto auto; gap: 4px 8px !important; }
  .lg-show-stats > div span { grid-column: 1 / -1; font-size: 10.5px; }
  .lg-show-stats > div i { grid-column: 1; }
  .lg-show-facts > div { padding-right: 14px; margin-right: 14px; }
  .lg-show-act { flex-direction: column; width: 100%; }
  .lg-show-act .lg-btn { width: 100%; }
}
.is-compact .lg-show-facts > div:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
