/* ===========================================================
   BELTCHASE · bleu nuit & or, mobile d'abord
   =========================================================== */
:root {
  --bg: #08122a;
  --bg-2: #0b1733;
  --surface: #0f1f40;
  --surface-2: #15284f;
  --surface-3: #1c335f;
  --line: #20365f;
  --line-2: #2d4a7c;
  --text: #edf2fb;
  --muted: #8a9abb;
  --placeholder: #5f7299;
  --accent: #f2b630;
  --accent-2: #c48a12;
  --accent-hover: #ffc94d;
  --accent-ink: #08122a;
  --accent-rgb: 242, 182, 48;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --live: #ff3d5a;
  --live-soft: rgba(255, 61, 90, 0.13);
  --info: #5aa8ff;
  --info-soft: rgba(90, 168, 255, 0.13);
  --orange: var(--live);
  --orange-ink: #ffffff;
  --orange-soft: var(--live-soft);
  --green: #3ddc84;
  --red: #ff4d63;
  --red-soft: rgba(255, 77, 99, 0.12);
  --gold: #ffc83d;
  --radius: 10px;
  --radius-sm: 6px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-back: cubic-bezier(0.3, 1.5, 0.5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  /* lignes de terrain très discrètes, façon habillage TV */
  background-image:
    linear-gradient(180deg, var(--bg-2), var(--bg) 420px),
    repeating-linear-gradient(-60deg, transparent 0 22px, rgba(255, 255, 255, 0.012) 22px 23px);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 var(--body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; margin: 0; line-height: 1.05; }
p { margin: 0; }
svg { flex-shrink: 0; }
.muted { color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gain { color: var(--green); }
.loss { color: var(--red); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.coin { width: 22px; height: 22px; display: inline-block; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.coin-sm { width: 16px; height: 16px; }
.coin-xs { width: 13px; height: 13px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; padding: 11px 18px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; transition: transform 0.12s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent-2); text-transform: uppercase; font-family: var(--display); font-size: 17px; letter-spacing: 0.04em; }
.btn-primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-2); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-lg { padding: 14px 22px; font-size: 19px; border-radius: 9px; }
.btn-block { width: 100%; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 8px;
  color: var(--accent); font-weight: 600; font-size: 13px; border-radius: 8px;
}
.link-btn svg { width: 15px; height: 15px; }
.link-btn:hover { background: var(--accent-soft); }
.link-btn.danger { color: var(--red); }
.link-btn.danger:hover { background: var(--red-soft); }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--placeholder); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(8, 18, 42, 0.94); border-bottom: 2px solid var(--accent); }
@supports (backdrop-filter: blur(10px)) { .topbar { background: rgba(8, 18, 42, 0.82); backdrop-filter: blur(12px); } }
.topbar-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 6px; font: italic 800 27px/1 var(--display); letter-spacing: 0.03em; }
.logo svg { width: 26px; height: 26px; color: var(--accent); }
.logo b { color: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance {
  position: relative; display: flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 12px 5px 7px; font: 700 20px/1 var(--display); letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
/* Petits écrans : l'en-tête doit tenir même avec un gros solde (ex. 1 250 000 Gold sur 320 px). */
@media (max-width: 420px) {
  .topbar-inner { gap: 8px; padding: 10px 12px; }
  .logo { font-size: 22px; letter-spacing: 0.01em; min-width: 0; }
  .logo svg { width: 22px; height: 22px; }
  .top-right { gap: 6px; }
  .balance { font-size: 17px; padding: 5px 8px 5px 5px; gap: 5px; }
}
@media (max-width: 360px) { .logo > span { display: none; } .logo svg { width: 28px; height: 28px; } } /* icône seule */
.balance.up { animation: pulse-up 0.9s ease; }
.balance.down { animation: pulse-down 0.6s ease; }
@keyframes pulse-up {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7); border-color: var(--accent); }
  40% { transform: scale(1.08); }
  100% { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); transform: scale(1); }
}
@keyframes pulse-down { 30% { transform: scale(0.95); border-color: var(--line); } }
.float-delta {
  position: absolute; right: 12px; top: 100%; font: 800 18px/1 var(--display); pointer-events: none;
  animation: float-up 1.4s ease forwards;
}
.float-delta.pos { color: var(--green); }
.float-delta.neg { color: var(--muted); }
@keyframes float-up { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }

.bonus-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}
.bonus-btn svg { width: 20px; height: 20px; }
.bonus-btn .bonus-dot { display: none; }
.bonus-btn.available { color: var(--gold); border-color: rgba(255, 200, 61, 0.45); animation: wiggle 2.6s ease-in-out infinite; }
.bonus-btn.available .bonus-dot {
  display: block; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 2px var(--surface-2);
}
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-12deg); } 94% { transform: rotate(10deg); } 97% { transform: rotate(-6deg); } }

.freebar {
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: var(--bg); padding: 4px 12px;
}

/* ---------- Navigation ---------- */
.nav-top { display: none; }
.nav-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(8, 18, 42, 0.97); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b); height: calc(var(--nav-h) + var(--safe-b));
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  position: relative; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); transition: color 0.2s;
}
.nav-bottom .nav-item::before {
  content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.25s var(--ease-out);
}
.nav-bottom .nav-item.active::before { transform: scaleX(1); }
/* Libellés longs (russe, hindi…) : la case garde sa taille, le texte se coupe proprement. */
.nav-bottom { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nav-bottom .nav-item { min-width: 0; padding: 0 2px; }
.nav-bottom .nav-item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.01em; }
.nav-item.active { color: var(--accent); }
.nav-icon { position: relative; display: grid; place-items: center; }
.nav-icon svg { width: 22px; height: 22px; }
.nav-icon.bump { animation: nav-bump 0.45s var(--ease-back); }
@keyframes nav-bump { 40% { transform: scale(1.35) rotate(-8deg); } }
.nav-badge {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes pop { from { transform: scale(0.3); } to { transform: scale(1); } }

/* ---------- Mise en page ---------- */
.layout {
  max-width: 1160px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + var(--safe-b) + 90px);
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
}
.aside { display: none; }
.content > * + * { margin-top: 16px; }

/* ---------- Emplacements publicitaires ---------- */
.ad { container-type: inline-size; display: grid; justify-items: center; gap: 4px; }
.ad-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ad-box { width: 100%; max-width: var(--ad-w); min-height: var(--ad-h); border-radius: var(--radius-sm); }
.ad-live .ad-box { background: var(--bg-2); }
.ad-box > ins { display: block; }
.ad-top .ad-box > ins, .ad-side .ad-box > ins { width: var(--ad-w); max-width: 100%; height: var(--ad-h); }
.ad-ph {
  height: var(--ad-h); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 2px 10px;
  padding: 6px 12px; overflow: hidden; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, 0.018) 10px 20px), var(--bg-2);
}
.ad-ph strong { font: 700 15px/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.ad-ph small { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
a.ad-ph { transition: border-color 0.2s, color 0.2s; }
a.ad-ph:hover { border-color: rgba(var(--accent-rgb), 0.55); color: var(--accent); }
a.ad-ph:focus-visible { outline-offset: -2px; }
.ad-size-lg { display: none; }
.ad-top { --ad-w: 320px; --ad-h: 50px; }
.ad-side, .ad-bottom { --ad-w: 300px; --ad-h: 250px; }
.ad-band { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.ad-band > .ad { margin-top: 12px; }
.ads-off .ad-band, .ads-off .ad-bottom { display: none; }
/* Annonce non servie ou bloquée : on replie le pavé et le bas de page. La bannière garde sa place,
   sinon toute la page sauterait sous l'en-tête. */
.ad-live:not(.ad-top):has(ins[data-ad-status="unfilled"]),
.ad-live.ad-empty:not(.ad-top):not(:has(ins[data-ad-status="filled"])),
.no-ads .ad-live:not(.ad-top) { display: none; }
@container (min-width: 728px) {
  .ad-size-sm { display: none; }
  .ad-size-lg { display: inline; }
  .ad-top .ad-box, .ad-bottom .ad-box { --ad-w: 728px; --ad-h: 90px; }
}

.greeting h1 { font: italic 800 34px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.greeting h1 b { color: var(--accent); }
.greeting p { margin-top: 4px; }
.page-title { font: italic 800 38px/1 var(--display); text-transform: uppercase; }
.section-title { display: flex; align-items: center; gap: 10px; font: italic 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin-top: 26px !important; }
.section-title::before { content: ''; width: 4px; height: 18px; background: var(--accent); transform: skewX(-14deg); }
.section-title:has(.live-dot)::before { display: none; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-top: 26px !important; }
.section-row .section-title { margin-top: 0 !important; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: live 1.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 90, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(255, 61, 90, 0); } }

/* ---------- Bonus ---------- */
.bonus-card {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(100deg, rgba(var(--accent-rgb), 0.2), var(--surface) 65%);
  position: relative; overflow: hidden;
}
.bonus-card::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.bonus-card strong { display: block; font-size: 15px; }
.bonus-card .muted { font-size: 13px; }
.bonus-gift { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.bonus-amount { font: 800 22px/1 var(--display); color: var(--gold); display: flex; align-items: center; gap: 5px; }

/* ---------- Filtres ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.chip:hover { border-color: var(--line-2); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pop 0.25s var(--ease-back); }
.chip:active { transform: scale(0.95); }
.chip-count { font-size: 12px; opacity: 0.65; }

/* Barre des sports : grosses tuiles, toujours visible sous l'en-tête. */
.sports-bar {
  position: sticky; top: var(--sports-top, 86px); z-index: 20; margin: 0 -16px; padding: 10px 16px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  background: rgba(8, 18, 42, 0.94); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) { .sports-bar { background: rgba(8, 18, 42, 0.82); backdrop-filter: blur(12px); } }
.sports-bar::-webkit-scrollbar { display: none; }
.sport-tile {
  flex: 0 0 auto; min-width: 72px; display: grid; justify-items: center; gap: 2px; padding: 8px 10px 7px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.sport-tile:hover { border-color: var(--line-2); }
.sport-tile:active { transform: scale(0.95); }
.sport-icon { font-size: 24px; line-height: 1; }
.sport-name { font: 700 13px/1.1 var(--body); }
.sport-count { font-size: 11px; font-weight: 700; color: var(--muted); }
.sport-tile.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pop 0.25s var(--ease-back); }
.sport-tile.active .sport-count { color: var(--accent-ink); opacity: 0.75; }
.sport-heading {
  display: flex; align-items: center; gap: 10px; margin-top: 30px !important; padding-bottom: 8px;
  font: italic 800 26px/1 var(--display); text-transform: uppercase; border-bottom: 2px solid var(--line);
}
.gender-switch { display: flex; gap: 8px; }

/* ---------- Cartes de match ---------- */
.match-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.match {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.match::before {
  content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent); transform: scaleY(0); transition: transform 0.25s var(--ease-out);
}
.match:hover { border-color: var(--line-2); }
.match.has-pick { border-color: rgba(var(--accent-rgb), 0.55); }
.match.has-pick::before { transform: scaleY(1); }
@media (hover: hover) { .match-upcoming:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.7); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.enter .match, .enter .bet, .enter .slip-item, .enter .rank-row, .enter .badge, .enter .featured { animation: rise 0.4s var(--ease-out) both; }
.enter .match-grid > :nth-child(2), .enter .rank-list > :nth-child(2), .enter .bet-list > :nth-child(2) { animation-delay: 0.04s; }
.enter .match-grid > :nth-child(3), .enter .rank-list > :nth-child(3), .enter .bet-list > :nth-child(3) { animation-delay: 0.08s; }
.enter .match-grid > :nth-child(n+4), .enter .rank-list > :nth-child(n+4), .enter .bet-list > :nth-child(n+4) { animation-delay: 0.12s; }
.match-live { border-color: rgba(255, 61, 90, 0.4); background: linear-gradient(180deg, var(--live-soft), var(--surface) 55%); }
.match-finished { opacity: 0.85; }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 10px; }
.comp { color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kick { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-pill, .done-pill, .status-pill {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; white-space: nowrap; text-transform: uppercase;
}
.live-pill { background: var(--live); color: #fff; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.55; } }
.done-pill { background: var(--surface-3); color: var(--muted); }
.match-body { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.teams { flex: 1; min-width: 0; display: grid; gap: 7px; }
.team { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Photo ronde du combattant (liste des combats), drapeau en médaillon, initiales en secours. */
.fighter-ava { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.fighter-ava::before { content: attr(data-ini); font: italic 800 14px/1 var(--display); color: var(--muted); }
.fighter-ava img:not(.fighter-flag) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 0; }
.fighter-ava .fighter-flag { position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.fighter-ava .dot { position: absolute; right: -2px; bottom: -1px; }
.match-finished .team:not(.is-winner) .fighter-ava img { filter: grayscale(1); opacity: 0.55; }
.team .dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06); }
.match-finished .team { color: var(--muted); }
.match-finished .team.is-winner { color: var(--text); }
.score { display: grid; gap: 7px; font: 800 20px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.live-clock { font-size: 12px; font-weight: 700; color: var(--live); font-variant-numeric: tabular-nums; white-space: nowrap; }

.odds { display: grid; gap: 8px; }
.odds.cols-2 { grid-template-columns: 1fr 1fr; }
.odds.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.odd {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  position: relative; overflow: hidden;
  padding: 10px 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2);
  transition: background 0.15s, border-color 0.15s, transform 0.12s var(--ease-out), box-shadow 0.2s;
}
.odd:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), 0.5); background: var(--surface-3); }
.odd:active:not(:disabled) { transform: scale(0.94); }
.odd:disabled { cursor: default; opacity: 0.55; }
.odd-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.odd-val { font: 800 19px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.odd.selected { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent-2); }
/* Sélection d'une cote : rebond, onde et reflet */
.odd.just-picked { animation: odd-pick 0.5s var(--ease-back); }
.odd.just-picked::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7); animation: odd-ring 0.6s var(--ease-out) forwards;
}
.odd.just-picked::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); animation: odd-shine 0.55s ease-out 0.05s forwards;
}
.odd.just-unpicked { animation: odd-unpick 0.3s ease; }
@keyframes odd-pick { 0% { transform: scale(0.88); } 55% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes odd-ring { to { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); } }
@keyframes odd-shine { to { left: 120%; } }
@keyframes odd-unpick { 40% { transform: scale(0.92); } }
.odd.selected .odd-label, .odd.selected .odd-val { color: var(--accent-ink); }
.odd.won:disabled { opacity: 1; border-color: var(--green); background: rgba(61, 220, 132, 0.12); }
.odd.won .odd-val { color: var(--green); }

/* ---------- Paris en direct ---------- */
.odd-val { display: inline-flex; align-items: center; gap: 3px; }
.odd-val svg { width: 15px; height: 15px; color: var(--muted); }
.odd-move { font-style: normal; font-size: 10px; line-height: 1; }
.odd-up { border-color: rgba(61, 220, 132, 0.6); }
.odd-up .odd-move { color: var(--green); }
.odd-down { border-color: rgba(255, 77, 99, 0.6); }
.odd-down .odd-move { color: var(--red); }
.odd-up:not(.selected) .odd-val { animation: odd-flash-up 1.2s ease; }
.odd-down:not(.selected) .odd-val { animation: odd-flash-down 1.2s ease; }
.odd.selected .odd-move { color: var(--accent-ink); }
@keyframes odd-flash-up { 0%, 40% { color: var(--green); } }
@keyframes odd-flash-down { 0%, 40% { color: var(--red); } }
.match-live .odd:disabled { opacity: 0.45; }
.match-analysis { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.match-analysis:hover { color: var(--accent); }
.live-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.live-note svg { width: 14px; height: 14px; flex-shrink: 0; }
.live-note.is-open { color: var(--live); }
.match-bettable { border-color: rgba(255, 61, 90, 0.6); }
.slip-item.is-live { border-left-color: var(--live); }
.slip-live { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; }
.slip-live .live-pill { font-size: 9px; padding: 2px 6px; }
.slip-odd s { color: var(--muted); font-size: 15px; }
.slip-odd .up { color: var(--green); }
.slip-odd .down { color: var(--red); }
.slip-suspended { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--body); }
.slip-suspended svg { width: 13px; height: 13px; }
.slip-note { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.slip-note svg { width: 14px; height: 14px; color: var(--live); flex-shrink: 0; }
.tag-live { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; background: var(--live-soft); color: var(--live); vertical-align: 2px; }
.tag-live svg { width: 11px; height: 11px; }
.bet-note { font-size: 12px; margin-top: 6px; }

/* ---------- Pastille envoyée au panier ---------- */
.fly-chip {
  position: fixed; z-index: 80; left: 0; top: 0; pointer-events: none;
  padding: 6px 10px; border-radius: 7px; background: var(--accent); color: var(--accent-ink);
  font: 800 16px/1 var(--display); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6);
}

/* ---------- Barre panier (mobile) ---------- */
.slipbar {
  position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  box-shadow: 0 3px 0 var(--accent-2), 0 12px 28px -8px rgba(0, 0, 0, 0.6);
  animation: slide-up 0.35s var(--ease-back);
}
.slipbar.no-enter { animation: none; }
.slipbar.bump { animation: bump 0.35s var(--ease-back); }
.slipbar-count.bump { animation: nav-bump 0.45s var(--ease-back); }
@keyframes slide-up { from { transform: translateY(120%); } to { transform: none; } }
@keyframes bump { 45% { transform: scale(1.04) translateY(-3px); } }
.slipbar-count { width: 28px; height: 28px; border-radius: 6px; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.slipbar-gain { display: flex; align-items: center; gap: 5px; font: 800 18px/1 var(--display); }
.slipbar svg:last-child { width: 18px; height: 18px; }

/* ---------- Panier ---------- */
.slip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.slip-head h2 { font: italic 800 28px/1 var(--display); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.count { font: 800 14px/1 var(--body); font-style: normal; background: var(--accent); color: var(--accent-ink); border-radius: 5px; padding: 3px 8px; }
.slip-items { display: grid; gap: 10px; }
.slip-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px; }
.slip-item.is-new { animation: slip-in 0.45s var(--ease-back); }
.slip-item.is-new .slip-odd { animation: odd-pick 0.5s var(--ease-back) 0.1s both; }
@keyframes slip-in { from { opacity: 0; transform: translateX(30px) scale(0.96); background: rgba(var(--accent-rgb), 0.25); } }
.slip-item.expired { opacity: 0.6; border-style: dashed; }
.slip-top { display: flex; align-items: flex-start; gap: 10px; }
.slip-match { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-pick { font-weight: 700; margin-top: 2px; }
.slip-odd { font: 800 22px/1 var(--display); color: var(--accent); padding-top: 2px; }
.stake-row { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; flex-wrap: wrap; }
.stake-input { position: relative; flex: 1 1 110px; }
.stake-input input.bumped { animation: stake-bump 0.35s var(--ease-back); border-color: var(--accent); }
@keyframes stake-bump { 40% { transform: scale(1.04); } }
.stake-input input { padding: 10px 36px 10px 12px; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.stake-input .coin { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.quick { display: flex; gap: 6px; flex: 1 1 200px; }
.quick button {
  flex: 1; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 13px; font-weight: 700; padding: 8px 4px; transition: transform 0.12s, border-color 0.15s, color 0.15s;
}
.quick button:active { transform: scale(0.92); }
.quick button:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--accent); }
.gain-line { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; }
.gain-line .gain { font: 800 18px/1 var(--display); }
.warn { color: var(--live); font-size: 13px; margin-top: 8px; }
.slip-foot { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 8px; }
.slip-sum { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.slip-sum strong { display: flex; align-items: center; gap: 5px; font: 700 18px/1 var(--display); }
.slip-sum.big strong { font-size: 26px; }
.slip-modes { margin-bottom: 12px; }
.combo-box { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.combo-odds { color: var(--accent); font-size: 24px !important; }
.combo-rule { margin: 0; font-size: 12px; }
.combo-legs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.leg { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; background: var(--surface-2); font-size: 13px; }
.leg-lost { background: var(--red-soft); }
.leg-won { background: rgba(61, 220, 132, 0.12); }
.leg-void { opacity: 0.7; }
.leg-icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-3); color: var(--muted); }
.leg-icon svg { width: 11px; height: 11px; }
.leg-won .leg-icon { background: var(--green); color: #04210f; }
.leg-lost .leg-icon { background: var(--red); color: #2a0006; }
.leg .grow { display: grid; gap: 2px; min-width: 0; }
.leg-match { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-pick { font-weight: 600; }
.leg .at, .bet-combo .bet-pick .at { color: var(--accent); font: 700 16px/1 var(--display); }
.bet-combo .bet-pick { margin-top: 10px; }
.slip-error { color: var(--red); font-size: 13px; font-weight: 600; }
.slip-foot .btn { margin-top: 4px; }
.slip-page { max-width: 620px; }

/* ---------- Vide ---------- */
.empty { text-align: center; padding: 32px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: 8px; justify-items: center; }
.empty .btn { margin-top: 8px; }
.empty-icon { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); margin-bottom: 4px; }
.empty-icon svg { width: 28px; height: 28px; }

/* ---------- Mes paris ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row-4 { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 8px; padding: 12px; display: grid; gap: 4px; }
.stat .muted { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.stat strong { font: italic 800 28px/1 var(--display); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.tab > :not(.tab-count) { overflow: hidden; text-overflow: ellipsis; }
.tab { overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
.tab { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 8px; border-radius: 6px; font-weight: 700; font-size: 14px; transition: background 0.2s, color 0.2s; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tab-count { font-size: 12px; background: var(--bg-2); border-radius: 999px; padding: 1px 7px; }
.tab.active .tab-count { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ff-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 9px; background: var(--info-soft); border: 1px solid rgba(90, 168, 255, 0.3); }
.ff-card strong { display: block; font-size: 14px; }
.ff-card .muted { font-size: 13px; }
.ff-card .btn { padding: 9px 12px; white-space: nowrap; }
.bet-list { display: grid; gap: 10px; }
.bet { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.bet-pending { border-left-color: var(--info); }
.bet-won { border-left-color: var(--green); background: linear-gradient(90deg, rgba(61, 220, 132, 0.1), var(--surface) 45%); }
.bet-lost { border-left-color: var(--red); }
.bet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.bet-right { display: flex; gap: 8px; align-items: center; }
.bet-pending .status-pill { background: var(--info-soft); color: var(--info); }
.bet-won .status-pill { background: var(--green); color: #04210f; }
.bet-lost .status-pill { background: var(--red-soft); color: var(--red); }
.bet-match { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.bet-score { font: 700 15px/1.2 var(--display); color: var(--text); white-space: nowrap; }
.bet-pick { font-weight: 700; margin-top: 3px; }
.bet-pick .at { color: var(--accent); font-family: var(--display); font-size: 17px; }
.bet-nums { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bet-nums > div { display: grid; gap: 2px; }
.bet-nums .right { text-align: right; justify-items: end; }
.bet-nums .muted { font-size: 12px; }
.bet-nums strong { font: 800 19px/1 var(--display); display: flex; align-items: center; gap: 4px; }

/* ---------- Classement ---------- */
.my-rank-card {
  display: flex; align-items: center; gap: 16px;
  background: radial-gradient(260px 160px at 0% 50%, color-mix(in srgb, var(--rank-color) 22%, transparent), transparent 70%), var(--surface);
  border-color: color-mix(in srgb, var(--rank-color) 45%, var(--line));
}
.my-rank-name { margin: 2px 0 8px; font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--rank-color); }
.rr-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rr-bar span { display: block; height: 100%; border-radius: inherit; background: var(--rank-color); box-shadow: 0 0 12px var(--rank-color); }
.rr-text { display: block; margin-top: 6px; font-size: 13px; }
.rank-emblem { width: 34px; height: 38px; flex-shrink: 0; filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 45%, transparent)); }
.rank-emblem-lg { width: 76px; height: 86px; }
.rank-help summary { cursor: pointer; font-weight: 600; }
.rank-help p { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin-top: 12px; }
.ladder-step { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.rank-row { background: linear-gradient(90deg, color-mix(in srgb, var(--rank-color) 10%, transparent), var(--surface) 55%); }
.rank-who { display: grid; gap: 3px; min-width: 0; }
.rank-tier { font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--rank-color); }
.rank-score { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.rank-score strong { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.rank-score small { font-size: 12px; color: var(--muted); }
.rank-score .muted { display: flex; align-items: center; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-row.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.rank-pos { width: 24px; text-align: center; font: italic 800 20px/1 var(--display); color: var(--muted); }
.rank-name { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amount { display: flex; align-items: center; gap: 5px; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.avatar {
  width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink); font: italic 800 18px/1 var(--display);
}
.avatar.bot { background: var(--surface-3); font-size: 16px; }
.avatar-lg { width: 60px; height: 60px; border-radius: 10px; font-size: 32px; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.tag-muted { background: var(--surface-3); color: var(--muted); }

.league-forms { display: grid; gap: 10px; }
.form-inline { display: grid; gap: 8px; }
.form-inline label { font-weight: 700; font-size: 14px; }
.input-row { display: flex; gap: 8px; }
.input-row .btn { flex-shrink: 0; }
.code-input { text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; }
.league { display: grid; gap: 12px; }
.league-head { display: flex; align-items: center; gap: 12px; }
.league-head h3 { font: italic 800 24px/1 var(--display); text-transform: uppercase; }
.league-head .muted { font-size: 13px; }
.code-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px dashed rgba(var(--accent-rgb), 0.5);
  background: var(--accent-soft); color: var(--accent); border-radius: 7px; padding: 7px 10px;
  font: 800 17px/1 var(--display); letter-spacing: 0.14em;
}
.code-chip svg { width: 15px; height: 15px; }
.league .link-btn { justify-self: start; }

/* ---------- Profil ---------- */
.profile-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-hero h1 { font: italic 800 32px/1 var(--display); text-transform: uppercase; }
.profile-hero .muted { font-size: 13px; }
.profile-balance { display: flex; align-items: center; gap: 7px; font: italic 800 32px/1 var(--display); color: var(--text); }
.profile-balance .coin { width: 28px; height: 28px; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge {
  display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 10px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
}
.badge strong { font-size: 14px; }
.badge .muted { font-size: 12px; line-height: 1.35; }
.badge-icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 4px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent); color: var(--accent-ink);
}
.badge-icon svg { width: 24px; height: 24px; }
.badge.locked .badge-icon { background: var(--surface-3); color: var(--muted); }
.badge.locked strong { color: var(--muted); }
.badge.unlocked { border-color: rgba(var(--accent-rgb), 0.45); background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), var(--surface) 60%); }
.disclaimer h2 { font: italic 800 20px/1.1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.disclaimer p { font-size: 14px; }
.profile-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---------- Onboarding ---------- */
.onboarding { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(var(--accent-rgb), 0.16) 58% 61%, transparent 61% 64%, rgba(var(--accent-rgb), 0.08) 64% 66%, transparent 66%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(3%, -3%) scale(1.05); } }
.onboarding-card { position: relative; width: 100%; max-width: 420px; display: grid; gap: 18px; text-align: center; }
.brand-big { display: flex; align-items: center; justify-content: center; gap: 10px; font: italic 800 70px/1 var(--display); letter-spacing: 0.02em; }
.brand-big svg { width: 58px; height: 58px; color: var(--accent); animation: spin-in 0.9s cubic-bezier(0.2, 1.3, 0.4, 1); }
.brand-big b { color: var(--accent); }
@keyframes spin-in { from { transform: rotate(-200deg) scale(0.4); opacity: 0; } }
.tagline { color: var(--muted); font-size: 16px; }
h1.tagline { font: inherit; font-size: 16px; letter-spacing: normal; margin: 1em 0; } /* titre principal de l'accueil (mots-clés), présenté comme un sous-titre */
.free-pill { justify-self: center; padding: 6px 12px; border-radius: 5px; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); }
.register { display: grid; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; padding: 18px; }
.register label { font-weight: 700; }
.register input { font-size: 17px; padding: 14px; }
.profiles { display: grid; gap: 8px; text-align: left; }
.profile-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-weight: 600; }
.profile-row:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.fineprint { font-size: 12px; color: var(--muted); }

/* ---------- Toasts ---------- */
#toasts {
  position: fixed; z-index: 60; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px)); display: grid; gap: 8px; pointer-events: none;
}
.toast {
  padding: 12px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  background: var(--surface-3); border: 1px solid var(--line); border-left: 4px solid var(--line-2); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.toast.out { animation: toast-out 0.3s ease forwards; }
.toast-win { background: var(--surface-3); border-color: var(--green); border-left-color: var(--green); }
.toast-success { border-left-color: var(--accent); }
.toast-error { border-color: var(--red); border-left-color: var(--red); color: #ffd6db; }
.toast-loss { color: #d8dee7; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Confettis & badge ---------- */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
.badge-overlay {
  position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 7, 10, 0.75); backdrop-filter: blur(6px); animation: fade 0.25s ease;
}
.badge-overlay.out { animation: fade 0.25s ease reverse forwards; }
@keyframes fade { from { opacity: 0; } }
.badge-pop {
  position: relative; overflow: hidden; width: min(360px, 100%); padding: 30px 24px 24px; border-radius: 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-2); border-top: 4px solid var(--accent);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); display: grid; gap: 8px; justify-items: center;
  animation: badge-in 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes badge-in { from { transform: scale(0.5) rotate(-6deg); opacity: 0; } }
.badge-rays {
  position: absolute; top: -120px; left: 50%; width: 360px; height: 360px; margin-left: -180px; pointer-events: none;
  background: repeating-conic-gradient(rgba(var(--accent-rgb), 0.1) 0 10deg, transparent 10deg 20deg);
  mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  animation: rays 12s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.badge-pop-icon { position: relative; width: 84px; height: 84px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--accent); color: var(--accent-ink); animation: badge-bounce 1s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both; }
.badge-pop-icon svg { width: 42px; height: 42px; }
@keyframes badge-bounce { from { transform: scale(0) rotate(-30deg); } }
.badge-pop .eyebrow { color: var(--accent); position: relative; }
.badge-pop h2 { font: italic 800 34px/1 var(--display); text-transform: uppercase; position: relative; }
.badge-pop p.muted { position: relative; }
.badge-pop .btn { margin-top: 12px; min-width: 60%; position: relative; }


/* ---------- Vrais matchs ---------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.mode strong { display: block; font-size: 14px; }
.mode small { display: block; font-size: 12px; color: var(--muted); }
.mode-icon { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); transition: background 0.2s, color 0.2s; }
.mode-icon svg { width: 19px; height: 19px; }
.mode.active .mode-icon { background: var(--accent); color: var(--accent-ink); }
.mode:active { transform: scale(0.97); }
.mode:hover { border-color: var(--line-2); }
.mode.active { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 1px var(--accent) inset; }
.day-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-top: 22px !important; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chip {
  flex-shrink: 0; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: transparent;
  font-weight: 700; font-size: 14px; color: var(--muted); text-transform: capitalize; transition: background 0.2s, color 0.2s;
}
.day-chip.active { background: var(--surface-3); color: var(--text); border-color: var(--line-2); box-shadow: inset 0 -2px 0 var(--accent); }
.comp-group { margin-top: 18px !important; }
.comp-title { display: flex; align-items: center; gap: 10px; font: 700 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.comp-logo { width: 24px; height: 24px; object-fit: contain; }
.comp-emoji { font-size: 18px; }
.comp-count { font: 700 12px/1 var(--body); color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 3px 7px; }
.logo-img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.logo-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Match à la une ---------- */
.featured {
  position: relative; overflow: hidden; padding: 16px; border-radius: 12px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(115deg, transparent 0 70%, rgba(var(--accent-rgb), 0.12) 70% 73%, transparent 73% 76%, rgba(var(--accent-rgb), 0.06) 76% 78%, transparent 78%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.featured-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.featured-tag { display: inline-block; margin-left: -16px; padding: 5px 14px 5px 16px; background: var(--accent); color: var(--accent-ink); font: italic 800 14px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.ft-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 6px; }
.ft-team { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.ft-team strong { font: italic 800 21px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.logo-xl { width: 56px; height: 56px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.ft-team .dot { width: 56px; height: 56px; border-radius: 16px; }
.ft-vs { font: italic 800 18px/1 var(--display); color: var(--accent); padding: 6px 4px; }
.ft-comp { margin: 0 0 14px; text-align: center; font-size: 12px; color: var(--muted); }
.featured .odd { padding-block: 12px; }

/* ---------- Comment jouer ---------- */
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.howto li {
  display: grid; justify-items: center; gap: 6px; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.howto span {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 5px; transform: skewX(-10deg);
  background: var(--accent); color: var(--accent-ink); font: italic 800 16px/1 var(--display);
}
.section-note { font: 600 12px/1 var(--body); text-transform: none; }
.slip-match .dot, .bet-teams .dot, .leg-match .dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; vertical-align: middle; background: var(--muted); }
.team .record { color: var(--muted); font-size: 11px; font-weight: 500; flex-shrink: 0; }
.soon-pill { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.est { color: var(--muted); font-style: italic; font-weight: 500; }
.score-text { font: 700 15px/1.25 var(--display); max-width: 45%; text-align: right; }
.skeletons { display: grid; gap: 12px; margin-top: 18px !important; }
.skeleton {
  height: 132px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.feed-credit { font-size: 12px; color: var(--muted); margin-top: 28px !important; }
.feed-credit .link-btn { font-size: 12px; padding: 2px 6px; }
.feed-error { border-color: rgba(255, 84, 104, 0.4); }

@media (max-width: 639px) { .hide-sm { display: none; } }

/* ---------- Tablette ---------- */
@media (min-width: 640px) {
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badge-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row-4 { grid-template-columns: repeat(4, 1fr); }
  .league-forms { grid-template-columns: 1fr 1fr; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 1000px) {
  .nav-bottom, #slipbar { display: none; }
  .nav-top { display: flex; gap: 4px; margin-left: 24px; }
  .nav-top .nav-item { flex-direction: row; gap: 8px; font-size: 14px; padding: 9px 14px; border-radius: 7px; }
  .nav-top .nav-item:hover { color: var(--text); background: var(--surface-2); }
  .nav-top .nav-item.active { background: var(--accent-soft); color: var(--accent); }
  .nav-top .nav-item.active .nav-icon::after { display: none; }
  .nav-top .nav-icon svg { width: 18px; height: 18px; }
  .nav-top .nav-icon { display: flex; align-items: center; gap: 5px; }
  .nav-top .nav-badge { position: static; }
  .layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; padding-bottom: 60px; }
  .sports-bar { margin: 0; border-radius: 12px; border: 1px solid var(--line); --sports-top: 72px; }
  .layout.no-aside { grid-template-columns: minmax(0, 1fr); }
  .layout > .content, .layout > .ad-bottom { grid-column: 1; }
  .layout > .ad-bottom { align-self: start; }
  /* Colonne de droite : le pavé publicitaire défile avec la page, le panier reste collé en haut. */
  .aside { display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 1 / span 2; }
  .aside-slip { position: sticky; top: 104px; max-height: calc(100vh - 124px); overflow-y: auto; }
  .layout.no-aside .aside { display: none; }
  .aside .slip { background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 16px; }
  .aside .slip-empty { border: 0; padding: 20px 8px; }
  .aside .stake-row { flex-direction: column; }
  .aside .stake-input, .aside .quick { flex: none; }
  .slip-page { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Fenêtre de confirmation ---------- */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 66; display: grid; place-items: center; padding: 20px;
  background: rgba(4, 7, 10, 0.72); animation: fade 0.2s ease;
}
.dialog {
  width: min(380px, 100%); display: grid; gap: 10px; padding: 22px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: badge-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.dialog h2 { font: italic 800 26px/1.05 var(--display); text-transform: uppercase; text-wrap: balance; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.btn-danger { background: var(--red); color: #2a0006; }
.btn-danger:hover { background: #ff7384; }

/* Compte en ligne */
.account-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; text-align: left; }
.account-card > .grow { display: grid; gap: 2px; min-width: 0; }
.account-card .muted { overflow-wrap: anywhere; }
.account-form, .account-sent { display: grid; gap: 8px; }
.account-form input { width: 100%; min-width: 0; box-sizing: border-box; }
.account-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.onboarding-card .account-card { margin: 16px 0 0; }

/* ---------- Pari validé : ticket tamponné ---------- */
.bet-stamp {
  position: fixed; z-index: 75; left: 50%; top: 38%; pointer-events: none;
  width: min(300px, calc(100vw - 48px)); padding: 18px 18px 16px; border-radius: 10px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line-2); border-top: 4px solid var(--accent);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  transform: translate(-50%, -50%); animation: stamp-card 1.6s var(--ease-out) forwards;
}
.bet-stamp small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bet-stamp strong { display: block; margin-top: 4px; font: italic 800 26px/1 var(--display); text-transform: uppercase; }
.bet-stamp .stamp {
  position: absolute; right: 14px; top: 50%; padding: 4px 10px; border: 3px solid var(--green); border-radius: 6px;
  color: var(--green); font: italic 800 20px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-50%) rotate(-14deg) scale(2.4); opacity: 0;
  animation: stamp-hit 0.35s cubic-bezier(0.5, 0, 0.7, 1.4) 0.35s forwards;
}
@keyframes stamp-card {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.9); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  28% { transform: translate(-50%, -50%) scale(0.97); }
  34% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(0.9); }
}
@keyframes stamp-hit { to { opacity: 1; transform: translateY(-50%) rotate(-14deg) scale(1); } }
.slip-items.sending .slip-item { animation: slip-out 0.4s var(--ease-out) forwards; }
@keyframes slip-out { to { opacity: 0; transform: translateX(-24px) scale(0.96); } }
.slipbar-gain span { display: inline-block; }
.slipbar-gain.roll span { animation: gain-roll 0.4s var(--ease-back); }
@keyframes gain-roll { 0% { transform: translateY(8px); opacity: 0.3; } 100% { transform: none; opacity: 1; } }

.slip-head h2.bump { animation: nav-bump 0.45s var(--ease-back); }

/* ---------- Classement par division ---------- */
.division-locked { display: grid; gap: 4px; border-left: 3px solid var(--accent); }
.division-note { font-size: 13px; text-align: center; }

/* ---------- Pseudo ---------- */
.rename-card { display: grid; gap: 8px; border-left: 3px solid var(--accent); }
.rename-card.is-conflict { border-left-color: var(--live); background: linear-gradient(90deg, var(--live-soft), var(--surface) 60%); }
.rename-card .link-btn { justify-self: start; }

/* ---------- Réglages ---------- */
.settings-list { display: grid; gap: 0; padding: 0; }
.settings-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.settings-row .grow { display: grid; gap: 2px; }
.settings-row .muted { font-size: 13px; }
.rename-card .btn .coin { width: 16px; height: 16px; }

/* Texte d'accueil statique (moteurs de recherche, avant le chargement de l'appli) */
/* Texte pour les moteurs de recherche : lu par Google, jamais affiché (sinon la page saute quand
   l'appli le remplace). */
.seo-intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Accueil (nouveaux visiteurs) ---------- */
.landing { position: relative; width: 100%; max-width: 1040px; display: grid; gap: 24px; align-items: start; grid-template-areas: "hero" "card" "features"; }
.landing-hero { grid-area: hero; }
.landing .features { grid-area: features; }
.landing .onboarding-card { grid-area: card; }
.landing-hero { display: grid; gap: 16px; text-align: center; }
.landing-hero .brand-big { font-size: 52px; }
.landing-hero .brand-big svg { width: 44px; height: 44px; }
.landing-title { font: italic 800 46px/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.landing-title b { color: var(--accent); }
.landing-ladder { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.landing-ladder span { animation: ladder-in 0.5s var(--ease-back) both; }
.landing-ladder .rank-emblem { width: 28px; height: 32px; }
@keyframes ladder-in { from { opacity: 0; transform: translateY(12px) scale(0.6); } }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: rgba(15, 31, 64, 0.7); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.features li > span:last-child { display: grid; gap: 2px; }
.features strong { font: italic 800 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.features .muted { font-size: 13px; line-height: 1.4; }
.feature-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent); color: var(--accent-ink); }
.feature-icon svg { width: 20px; height: 20px; }
.landing .onboarding-card { max-width: 440px; justify-self: center; text-align: left; }
.landing .onboarding-card > .fineprint { text-align: center; }
.register .fineprint { text-align: left; }
.invite-banner .btn { justify-self: start; margin-top: 6px; }
.invite-banner { display: grid; gap: 4px; border-left: 3px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 70%); animation: rise 0.4s var(--ease-out); }
.invite-btn { margin-bottom: 4px; }
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin-top: 14px; }
.legal-links a, .legal-links .link-btn { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal-links .link-btn { padding: 0; font: inherit; border-radius: 0; background: none; }
.legal-links a:hover, .legal-links .link-btn:hover { color: var(--text); }
@media (min-width: 900px) {
  .landing { grid-template-columns: 1.15fr 1fr; gap: 20px 48px; grid-template-areas: "hero card" "features card"; align-items: center; }
  .landing-hero { text-align: left; }
  .landing-hero .brand-big, .landing-ladder { justify-content: flex-start; }
  .landing-title { font-size: 64px; }
}

/* ---------- Pages légales ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 16px; }
.legal-page .logo { justify-self: start; }
.legal-page .card { display: grid; gap: 10px; }
.legal-page h2 { font: italic 800 24px/1.1 var(--display); text-transform: uppercase; }
.legal-page p { line-height: 1.55; }
.legal-page a:not(.btn):not(.logo) { color: var(--accent); text-decoration: underline; }

/* ---------- Pages publiques de pronostics (/pronos, rendues par le serveur) ---------- */
.seo-top { max-width: 820px; margin: 0 auto; padding: 16px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seo-page { max-width: 820px; margin: 0 auto; padding: 14px 16px 60px; display: grid; gap: 16px; }
.seo-crumbs { font-size: 13px; color: var(--muted); }
.seo-crumbs a { color: var(--muted); text-decoration: underline; }
.seo-h1 { font: italic 800 clamp(28px, 6vw, 40px)/1.05 var(--display); text-transform: uppercase; }
.seo-lead { color: var(--muted); line-height: 1.55; }
.seo-lead a, .seo-foot a { color: var(--accent); text-decoration: underline; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.seo-league { display: grid; gap: 4px; transition: border-color 0.15s; }
.seo-league:hover, .seo-match a:hover { border-color: var(--accent); }
.seo-league-name { font: 800 20px/1.1 var(--display); text-transform: uppercase; }
.seo-day { font: italic 800 20px/1.1 var(--display); text-transform: uppercase; margin-top: 6px; }
.seo-matches { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.seo-match a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.seo-when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.seo-teams { min-width: 0; }
.seo-odds { display: flex; gap: 6px; }
.seo-odds span { display: grid; justify-items: center; min-width: 52px; padding: 4px 6px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.seo-odds small { font-size: 11px; color: var(--muted); }
.seo-odds b { color: var(--accent); }
.seo-odds i { font-style: normal; font-size: 11px; color: var(--muted); }
.seo-match-card, .seo-cta { display: grid; gap: 12px; }
.seo-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; font: 800 24px/1.1 var(--display); text-transform: uppercase; }
.seo-vs span { color: var(--accent); font-style: italic; }
.seo-poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.seo-face { display: block; width: 100%; max-width: 180px; height: auto; margin: 0 auto 8px; aspect-ratio: 200 / 145; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.seo-odds-big { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seo-odds-big div { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.seo-odds-big small { color: var(--muted); font-size: 13px; }
.seo-odds-big b { font: 800 28px/1 var(--display); color: var(--accent); }
.seo-odds-big i { font-style: normal; font-size: 12px; color: var(--muted); }
.seo-verdict { font-weight: 600; line-height: 1.5; }
.seo-cta { text-align: center; justify-items: center; }
.seo-foot { text-align: center; font-size: 14px; display: grid; gap: 8px; }
@media (max-width: 560px) {
  .seo-match a { grid-template-columns: 1fr; gap: 6px; }
  .seo-top .btn { padding-inline: 12px; }
}

/* ---------- À l'affiche ---------- */
.spotlight { margin-top: 18px !important; }
.spot-head { margin-top: 0 !important; margin-bottom: 10px; }
.spot-hint { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.spot-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 86%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px;
}
.spot-track::-webkit-scrollbar { display: none; }
.spot-card { scroll-snap-align: start; display: flex; flex-direction: column; }
.spot-card .ft-teams { margin: 12px 0 4px; }
.spot-card .ft-team strong { font-size: 17px; }
.spot-card .ft-comp { margin-bottom: 12px; }
.spot-card .odds { margin-top: auto; }
.spot-first { border-color: rgba(var(--accent-rgb), 0.5); }
.logo-lg { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.ft-team .dot { width: 44px; height: 44px; border-radius: 12px; }
.spot-first .ft-team .dot { width: 56px; height: 56px; }
@media (min-width: 1000px) {
  .spot-track { grid-auto-columns: 300px; margin: 0; padding: 2px 0 6px; }
}

/* ---------- Matchs visibles sans pseudo (accueil) ---------- */
.guest-matches { position: relative; width: 100%; max-width: 1100px; margin: 8px auto 0; padding: 0 16px 40px; display: grid; gap: 14px; }
.guest-matches .section-title { margin-top: 18px !important; }
.guest-cta { justify-self: center; margin-top: 10px; }

/* ---------- Pied de page ---------- */
.site-footer { grid-column: 1 / -1; display: grid; gap: 6px; justify-items: center; text-align: center; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer a { color: var(--text); font-weight: 600; }
.site-footer .legal-links { margin-top: 0; }
.site-footer .muted { font-size: 12px; }

.share-bet { margin-top: 8px; margin-left: auto; display: flex; align-items: center; gap: 5px; }
.share-bet svg { width: 15px; height: 15px; }

/* ---------- Encart « crée ton compte » ---------- */
.account-nudge { display: grid; gap: 12px; border-color: rgba(var(--accent-rgb), 0.55); background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.16), var(--surface) 60%); }
.nudge-head { display: grid; gap: 2px; }
.nudge-head strong { font: italic 800 22px/1.1 var(--display); text-transform: uppercase; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.nudge-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nudge-actions .btn { flex: 1 1 160px; }

/* ---------- Inscription : compte d'abord ---------- */
.signup-first { gap: 12px; }
.signup-first h2 { font: italic 800 26px/1.05 var(--display); text-transform: uppercase; }
.signup-first .account-form { gap: 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.or-toggle { width: 100%; padding: 6px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); }
.or-toggle:hover, .or-toggle:focus-visible { color: var(--text); }
.guest-play { text-align: left; }
.guest-play summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; padding: 6px; }
.guest-play[open] summary { margin-bottom: 10px; }
.locked-page { display: grid; gap: 14px; max-width: 520px; }
.saved-game svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--accent); }
.nav-lock { position: absolute; right: -7px; bottom: -4px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.nav-lock svg { width: 9px; height: 9px; }
.day-locked .day-ico { background: var(--surface-3); color: var(--muted); }
.saved-game { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.4); font-size: 14px; }
.in-app-hint { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Parrainage ---------- */
.referral-card { display: grid; gap: 10px; border-color: rgba(var(--accent-rgb), 0.45); }
.referral-card .input-row input[readonly] { color: var(--muted); font-size: 13px; }
.referral-card .btn svg { width: 16px; height: 16px; }
.referral-form { display: grid; gap: 6px; }
.referral-form label { font-size: 13px; font-weight: 600; color: var(--muted); }
.referral-hello { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(var(--accent-rgb), 0.14); font-size: 14px; }

/* ---------- Niveaux, cosmétiques et boutique ---------- */
.level-chip {
  display: grid; justify-items: center; gap: 3px; min-width: 40px; padding: 4px 7px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); font: 800 15px/1 var(--display); color: var(--text);
}
.level-chip b { font-weight: 800; }
.level-chip i { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.level-chip i span { display: block; height: 100%; background: var(--accent); transition: width 0.6s var(--ease-out); }
.level-chip.boosted { border-color: var(--gold); box-shadow: 0 0 10px rgba(255, 200, 61, 0.35); }
.level-card { display: grid; gap: 8px; }
.level-head { display: flex; align-items: center; gap: 10px; }
.level-badge { font: italic 800 22px/1 var(--display); text-transform: uppercase; color: var(--accent); }
.xp-bar { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.xp-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--gold)); transition: width 0.8s var(--ease-out); }
.level-next { font-size: 12px; }
.tag-boost { display: inline-flex; align-items: center; gap: 3px; background: rgba(255, 200, 61, 0.15); color: var(--gold); }
.tag-boost svg { width: 11px; height: 11px; }

/* Couleurs de pseudo */
.pz-color-orange { color: var(--accent); }
.pz-color-blue { color: #4da3ff; }
.pz-color-green { color: #3ddc84; }
.pz-color-pink { color: #ff5fa8; }
.pz-color-purple { color: #b07cff; }
.pz-color-gold, .pz-color-fire, .pz-color-neon { background-clip: text; -webkit-background-clip: text; color: transparent; }
.pz-color-gold { background-image: linear-gradient(180deg, #fff1a8, #f2c94c 55%, #c99a1e); }
.pz-color-fire { background-image: linear-gradient(90deg, #ffde59, #ff6b1a, #ff3d5a, #ff6b1a, #ffde59); background-size: 200% 100%; animation: pz-slide 2.5s linear infinite; }
.pz-color-neon { background-image: linear-gradient(90deg, #ff5fa8, #ffde59, #3ddc84, #4da3ff, #b07cff, #ff5fa8); background-size: 300% 100%; animation: pz-slide 4s linear infinite; }
@keyframes pz-slide { to { background-position: -200% 0; } }
.pz-title { display: inline-block; font: italic 700 13px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }

/* Cadres d'avatar */
.avatar.fr { box-shadow: 0 0 0 3px var(--fr, var(--line-2)); }
.fr-frame-bronze { --fr: #c0834f; }
.fr-frame-silver { --fr: #d4dde3; }
.fr-frame-gold { --fr: #f2c94c; box-shadow: 0 0 0 3px #f2c94c, 0 0 14px rgba(242, 201, 76, 0.55) !important; }
.fr-frame-pitch { --fr: #2ecc71; box-shadow: 0 0 0 3px #2ecc71, 0 0 0 5px #fff, 0 0 0 7px #2ecc71 !important; }
.fr-frame-diamond { --fr: #8be9fd; box-shadow: 0 0 0 3px #8be9fd, 0 0 18px rgba(139, 233, 253, 0.6) !important; }
.fr-frame-fire, .fr-frame-legend, .fr-frame-champion { position: relative; isolation: isolate; box-shadow: none !important; }
.fr-frame-fire::before, .fr-frame-legend::before, .fr-frame-champion::before {
  content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: calc(var(--fr-r, 8px) + 4px);
  background: linear-gradient(135deg, #ff3d5a, #ff6b1a, #ffde59, #ff6b1a, #ff3d5a, #ff6b1a, #ffde59);
  background-size: 300% 300%; animation: fr-flow 2.5s linear infinite;
}
.fr-frame-champion::before { background-image: linear-gradient(135deg, #fff1a8, #f2c94c, #fff, #f2c94c, #c99a1e, #fff1a8, #f2c94c); }
.fr-frame-legend::before { background-image: linear-gradient(135deg, #b07cff, #4da3ff, #3ddc84, #ffde59, #ff5fa8, #b07cff, #4da3ff); }
/* Pré-inscrits : double anneau or et nuit, comme le logo octogone */
.fr-frame-pionnier { --fr: #f2b630; box-shadow: 0 0 0 2px #ffe08a, 0 0 0 4px #0b1733, 0 0 0 6px #f2b630, 0 0 16px rgba(242, 182, 48, 0.55) !important; }
.avatar-lg.fr { --fr-r: 10px; }
@keyframes fr-flow { to { background-position: 100% 100%; } }

/* Boutique */
.shop-intro { display: grid; gap: 4px; }
.shop-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shop-item {
  position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 16px 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.shop-item.is-equipped { border-color: var(--accent); }
.shop-item.is-deal { border-color: var(--gold); }
.shop-item strong { font-size: 13px; }
.shop-preview { min-height: 52px; display: grid; place-items: center; font: italic 800 20px/1 var(--display); text-transform: uppercase; }
.shop-preview .avatar { width: 44px; height: 44px; font-size: 22px; }
.shop-boost svg { width: 34px; height: 34px; color: var(--gold); }
.shop-action { display: grid; gap: 4px; justify-items: center; }
.shop-action .btn { padding: 8px 12px; font-size: 14px; }
.shop-or { font-size: 11px; }
.shop-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.shop-lock svg { width: 14px; height: 14px; }
.shop-deal { position: absolute; top: -9px; background: var(--gold); color: #1a1200; }

/* Passage de niveau */
.level-up { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(4, 7, 10, 0.55); animation: fade 0.25s ease; }
.level-up.out { opacity: 0; transition: opacity 0.5s; }
.level-up-card {
  display: grid; gap: 6px; justify-items: center; text-align: center; padding: 28px 36px; border-radius: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg)); border: 2px solid var(--accent);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.45); animation: pop 0.45s var(--ease-back);
}
.level-up-kicker { font: italic 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.level-up-num { font: italic 800 96px/0.9 var(--display); background: linear-gradient(180deg, #fff, var(--gold)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.level-up-unlock { font-weight: 700; color: var(--gold); max-width: 280px; }

/* ---------- Série de connexion et défis du jour ---------- */
.streak { display: flex; gap: 4px; margin: 4px 0 2px; }
.streak i { width: 18px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.streak i.big { width: 26px; }
.streak i.on { background: var(--accent); }
.streak i.on.big { background: var(--gold); }
.challenges { display: grid; gap: 10px; }
.challenges-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.challenges-head strong { font: italic 800 20px/1 var(--display); text-transform: uppercase; }
.challenges ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.challenge { display: flex; align-items: center; gap: 10px; }
.challenge-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.challenge-check svg { width: 14px; height: 14px; }
.challenge.is-done .challenge-check { background: var(--green); border-color: var(--green); color: #052e14; }
.challenge-text { display: block; font-size: 14px; font-weight: 600; }
.challenge.is-done .challenge-text { color: var(--muted); text-decoration: line-through; }
.challenge-bar { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.challenge-bar span { display: block; height: 100%; background: var(--accent); }
.challenge.is-done .challenge-bar span { background: var(--green); }
.challenge-reward { display: grid; justify-items: end; gap: 2px; font: 800 15px/1 var(--display); white-space: nowrap; }
.challenge-reward small { display: inline-flex; align-items: center; gap: 3px; font: 600 11px/1 var(--body); color: var(--muted); }

/* ---------- Saisons et Hall of Fame ---------- */
.scope-tabs { margin-top: 4px; }
.hof { display: grid; gap: 12px; border-color: rgba(242, 201, 76, 0.55); background: linear-gradient(160deg, rgba(242, 201, 76, 0.14), var(--surface) 55%); }
.hof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hof-head strong { font: italic 800 22px/1 var(--display); text-transform: uppercase; color: var(--gold); }
.hof-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; text-align: center; }
.hof-podium li { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.hof-podium li .pz { font: italic 800 16px/1.1 var(--display); text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-podium small { color: var(--muted); font-weight: 700; }
.hof-medal { font-size: 26px; line-height: 1; }
.hof-1 { order: 2; padding-top: 18px !important; border: 1px solid rgba(242, 201, 76, 0.6); }
.hof-2 { order: 1; }
.hof-3 { order: 3; }

@media (max-width: 400px) { .nav-bottom .nav-item { font-size: 9.5px; letter-spacing: 0.01em; } }

/* Nouveaux effets de pseudo */
.pz-color-ice, .pz-color-toxic, .pz-color-lava, .pz-color-galaxy { background-clip: text; -webkit-background-clip: text; color: transparent; }
.pz-color-ice { background-image: linear-gradient(180deg, #ffffff, #bdf3ff 45%, #5ad1ff); text-shadow: 0 0 12px rgba(90, 209, 255, 0.35); }
.pz-color-toxic { background-image: linear-gradient(90deg, #c6ff3d, #3ddc84, #e8ff6b, #3ddc84, #c6ff3d); background-size: 250% 100%; animation: pz-slide 3s linear infinite; }
.pz-color-lava { background-image: linear-gradient(90deg, #ff2d2d, #ff8a1f, #ffde59, #ff3d00, #ff2d2d); background-size: 250% 100%; animation: pz-slide 2s linear infinite; }
.pz-color-galaxy { background-image: linear-gradient(90deg, #6a5cff, #b07cff, #ff5fa8, #4da3ff, #6a5cff); background-size: 300% 100%; animation: pz-slide 5s linear infinite; }
/* Nouveaux cadres */
.fr-frame-lightning, .fr-frame-galaxy { position: relative; isolation: isolate; box-shadow: none !important; }
.fr-frame-lightning::before, .fr-frame-galaxy::before {
  content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: calc(var(--fr-r, 8px) + 4px);
  background-size: 300% 300%; animation: fr-flow 2s linear infinite;
}
.fr-frame-lightning::before { background-image: linear-gradient(135deg, #5ad1ff, #ffffff, #2f8cff, #ffde59, #5ad1ff, #ffffff, #2f8cff); }
.fr-frame-galaxy::before { background-image: linear-gradient(135deg, #1a0f4d, #6a5cff, #ff5fa8, #b07cff, #1a0f4d, #4da3ff, #6a5cff); animation-duration: 4s; }

/* Raretés */
.rar-commun { --rar: #9aa7bf; }
.rar-rare { --rar: #4da3ff; }
.rar-epique { --rar: #b07cff; }
.rar-legendaire { --rar: #ffb020; }
.rar-mythique { --rar: #ff3d6e; }
.rar-exclusif { --rar: #f2c94c; }
.pz-title.rar-rare, .pz-title.rar-commun { color: var(--rar); }
.pz-title.rar-epique { color: #c9a2ff; }
.pz-title.rar-legendaire, .pz-title.rar-exclusif { color: #ffc83d; text-shadow: 0 0 10px rgba(255, 176, 32, 0.5); }
.pz-title.rar-mythique { color: #ff6f91; text-shadow: 0 0 12px rgba(255, 61, 110, 0.6); }

/* Boutique (onglet) */
.shop-hero { display: grid; gap: 12px; }
.shop-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-wallet { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font: 800 20px/1 var(--display); }
.shop-me { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 12px; background: radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-rgb), 0.22), var(--surface) 60%); border: 1px solid var(--line); }
.pcard { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcard-who { display: grid; gap: 3px; min-width: 0; text-align: left; }
.pcard .pz { font: italic 800 18px/1.05 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-big .pz { font-size: 26px; }
.pcard-sub { font-size: 12px; color: var(--muted); font-weight: 700; }
.shop-deal {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--rar) 30%, var(--bg-2)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--rar) 70%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--rar) 25%, transparent);
}
.deal-text { display: grid; gap: 4px; justify-items: start; }
.deal-kicker { font: italic 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.deal-text strong { font: italic 800 30px/1 var(--display); text-transform: uppercase; }
.deal-price { font: 800 22px/1 var(--display); display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.deal-price s { color: var(--muted); font-size: 16px; }
.deal-art { transform: scale(1.15); transform-origin: right center; }
.shop-cats { margin-top: 4px; }
.shop-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.shop-card {
  position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 26px 10px 12px; border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 22%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--rar) 55%, transparent); transition: transform 0.15s, box-shadow 0.2s;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--rar) 70%, transparent); }
.shop-card.rar-legendaire, .shop-card.rar-mythique, .shop-card.rar-exclusif { box-shadow: 0 0 18px -6px var(--rar); }
.shop-card.is-equipped { outline: 2px solid var(--green); outline-offset: 2px; }
.rar-label { position: absolute; top: 0; left: 0; right: 0; padding: 4px; border-radius: 12px 12px 0 0; font: 800 10px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--rar) 75%, #000); }
.deal-flag { position: absolute; top: 22px; right: 6px; padding: 3px 6px; border-radius: 5px; font: 800 11px/1 var(--body); background: var(--gold); color: #1a1200; }
.shop-art { min-height: 64px; display: grid; place-items: center; width: 100%; }
.shop-art .pcard { justify-content: center; }
.shop-name { font: italic 800 17px/1.1 var(--display); text-transform: uppercase; }
.shop-old { color: var(--muted); font-size: 12px; margin-top: -6px; }
.shop-card .shop-action, .deal-text .shop-action { display: grid; gap: 4px; justify-items: center; }
.btn-buy { background: linear-gradient(180deg, #ffd56b, #f2a91c); color: #2a1700; font: 800 15px/1 var(--display); padding: 9px 14px; border-radius: 9px; box-shadow: 0 3px 0 #b5770c; display: inline-flex; align-items: center; gap: 5px; }
.btn-buy:disabled { filter: grayscale(0.7); opacity: 0.6; }
.btn-equipped { background: rgba(61, 220, 132, 0.15); color: var(--green); border: 1px solid var(--green); display: inline-flex; align-items: center; gap: 4px; }
.btn-equipped svg { width: 14px; height: 14px; }
.shop-card .btn { padding: 8px 12px; font-size: 14px; }
.shop-or { font-size: 11px; color: var(--muted); }
.boost-art { display: flex; align-items: center; gap: 4px; color: var(--gold); font: italic 800 34px/1 var(--display); }
.boost-art svg { width: 38px; height: 38px; }
.shop-note { font-size: 12px; text-align: center; }
.shop-kind { margin-top: -6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.deals-today { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.deals-today .shop-deal { padding: 14px; }
.deals-today .deal-text strong { font-size: 22px; }
.deals-today .deal-art { transform: none; }
.shop-tabs .tab { font-size: 13px; }
.shop-cat-help { font-size: 13px; margin-top: 8px !important; }

.daily-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px !important; font-size: 13px; }
.daily-timer { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.daily-timer svg { width: 14px; height: 14px; color: var(--accent); }
.daily-featured .shop-card { padding: 34px 16px 18px; }
.daily-featured .shop-art { transform: scale(1.35); min-height: 90px; }
.daily-featured .shop-name { font-size: 26px; }
.shop-card.is-featured { box-shadow: 0 0 28px -6px var(--rar); }
.daily-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .daily-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Ta journée (bonus + défis) ---------- */
.day-strip { display: grid; gap: 10px; padding: 10px; }
.day-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.day-bonus, .day-challenges {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 9px; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.day-bonus { border-color: rgba(var(--accent-rgb), 0.6); background: linear-gradient(100deg, rgba(var(--accent-rgb), 0.22), var(--surface-2)); animation: bonus-glow 2s ease-in-out infinite; }
.day-bonus.is-done { animation: none; border-color: var(--line); background: var(--surface-2); }
@keyframes bonus-glow { 50% { box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45); } }
.day-bonus strong, .day-challenges strong { display: block; font: 800 16px/1.1 var(--display); text-transform: uppercase; }
.day-bonus small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.day-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent); color: var(--accent-ink); }
.day-bonus.is-done .day-ico { background: var(--surface-3); color: var(--green); }
.day-challenges .day-ico { background: var(--surface-3); color: var(--accent); }
.day-ico svg { width: 17px; height: 17px; }
.day-challenges .challenge-bar { margin-top: 4px; }
.day-chevron { color: var(--muted); font-size: 12px; }
/* Pub récompensée */
.day-ad {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 9px; text-align: left;
  border: 1px solid rgba(var(--accent-rgb), 0.45); background: linear-gradient(100deg, rgba(var(--accent-rgb), 0.12), var(--surface-2)); color: var(--text);
}
.day-ad strong { display: block; font: 800 15px/1.1 var(--display); text-transform: uppercase; }
.day-ad small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.day-ad.is-done { border-color: var(--line); background: var(--surface-2); }
.day-ad.is-done .day-ico { background: var(--surface-3); color: var(--green); }
.reward-ad { text-align: center; }
.reward-ad .ad-label { justify-self: center; }
.reward-ad-box {
  display: grid; place-items: center; gap: 4px; min-height: 180px; border-radius: 10px;
  border: 1px dashed var(--line-2); background: var(--surface-3); color: var(--muted);
}
.reward-ad-box strong { color: var(--text); }
.reward-ad-box .coin { width: 44px; height: 44px; }
.reward-ad-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.reward-ad-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }
.reward-ad .dialog-actions { justify-content: center; }
.challenge-list { list-style: none; margin: 0; padding: 4px 2px 2px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- Parcours guidé ---------- */
.coach {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 74px); z-index: 45;
  display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; max-width: 520px; margin: 0 auto;
  background: linear-gradient(160deg, var(--surface-2), var(--bg)); border: 2px solid var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(var(--accent-rgb), 0.25); animation: pop 0.35s var(--ease-back);
}
.coach strong { font: italic 800 20px/1.1 var(--display); text-transform: uppercase; }
.coach span { font-size: 14px; color: var(--muted); }
.coach-steps { display: flex; gap: 4px; }
.coach-steps i { width: 22px; height: 4px; border-radius: 2px; background: var(--surface-3); }
.coach-steps i.on { background: var(--accent); }
.coach-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.coach-actions .btn { padding: 8px 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.coach-actions svg { width: 16px; height: 16px; }
@media (min-width: 1000px) { .coach { bottom: 24px; left: 24px; right: auto; width: 420px; } }
.coach-target { border-radius: 10px; animation: coach-pulse 1.4s ease-in-out infinite; }
@keyframes coach-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.9), 0 0 0 0 rgba(var(--accent-rgb), 0.5); } 50% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.9), 0 0 0 12px rgba(var(--accent-rgb), 0); } }
.not-found h1 { font: italic 800 48px/1 var(--display); text-transform: uppercase; color: var(--accent); }
.not-found .btn { justify-self: start; }

/* ---------- Cartes joueurs (boutique, album, pochettes) ---------- */
.pcard-x {
  position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 12px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rar) 55%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--rar) 45%, #0a1530), #070d1f 75%);
  border: 2px solid color-mix(in srgb, var(--rar) 80%, #fff 0%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 18px -8px color-mix(in srgb, var(--rar) 80%, transparent);
  text-align: left;
}
.pcard-x::before { /* motif de terrain */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, 0.25) 14px 15px);
}
.pcard-x.pc-national { background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rar) 55%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--rar) 35%, #0b1d4a), #070d1f 75%); }
.pc-bg { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.pc-initials { font: italic 800 64px/1 var(--display); color: rgba(255, 255, 255, 0.12); }
.pc-photo { position: absolute; left: 50%; bottom: 22%; width: 92%; height: 76%; transform: translateX(-50%); object-fit: contain; object-position: bottom; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.pc-photo.pc-thumb { bottom: 24%; width: 70%; height: 56%; object-fit: cover; border-radius: 50%; border: 2px solid var(--rar); }
.pc-top { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; align-items: flex-start; }
.pc-rar { padding: 3px 6px; border-radius: 5px; font: 800 9px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--rar) 70%, #000); }
.pc-num { font: italic 800 22px/1 var(--display); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.pc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 8px; display: grid; gap: 2px; background: linear-gradient(transparent, rgba(4, 8, 20, 0.92) 40%); }
.pc-name { font: italic 800 16px/1 var(--display); text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-team { font-size: 10.5px; font-weight: 700; color: color-mix(in srgb, var(--rar) 55%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-count { position: absolute; top: 28px; right: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font: 800 11px/1.3 var(--body); }
.pc-fav { position: absolute; top: 28px; left: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1a1200; }
.pc-fav svg { width: 14px; height: 14px; fill: currentColor; }
.pc-lg .pc-name { font-size: 24px; }
.pc-lg .pc-team { font-size: 13px; }
.pc-lg .pc-rar { font-size: 11px; }
.pc-lg .pc-num { font-size: 30px; }
/* Reflet holographique des cartes rares */
.pcard-x.rar-epique::after, .pcard-x.rar-legendaire::after, .pcard-x.rar-mythique::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.5;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 45%, color-mix(in srgb, var(--rar) 60%, transparent) 50%, transparent 65%);
  background-size: 250% 100%; animation: holo 4.5s ease-in-out infinite;
}
.pcard-x.rar-mythique { box-shadow: 0 0 22px -4px var(--rar), inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
@keyframes holo { 0%, 100% { background-position: 110% 0; } 50% { background-position: -10% 0; } }
@media (prefers-reduced-motion: reduce) { .pcard-x::after { animation: none !important; } }
.pc-missing { filter: grayscale(1) brightness(0.45); }
.pc-missing .pc-photo { opacity: 0.55; }
.pc-lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; }
.pc-lock svg { width: 16px; height: 16px; }

/* Offres de la boutique du jour */
.offer-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-offer { position: relative; display: grid; gap: 8px; justify-items: center; align-content: start; text-align: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--rar, var(--line)) 50%, var(--line)); }
.card-offer .pcard-x { max-width: 190px; transition: transform 0.2s var(--ease-out); }
.card-offer:hover .pcard-x { transform: translateY(-3px) rotate(-1deg); }
.card-offer.is-owned .pcard-x { opacity: 0.6; }
.card-offer .deal-flag { top: 14px; right: 14px; z-index: 2; }
.offer-set { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.offer-flag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #1a1200; font: 800 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.daily-featured { margin: 18px 0 14px; }
.daily-featured .card-offer { padding: 22px 16px 16px; background: radial-gradient(90% 70% at 50% 30%, color-mix(in srgb, var(--rar) 25%, transparent), var(--surface)); box-shadow: 0 0 30px -10px var(--rar); }
.daily-featured .pcard-x { max-width: 240px; }
.pack-offer { --rar: var(--accent); background: radial-gradient(90% 70% at 50% 30%, rgba(var(--accent-rgb), 0.18), var(--surface)); }
.pack-art { width: 100%; max-width: 190px; aspect-ratio: 5 / 7; display: grid; place-items: center; }
.pack-pouch {
  width: 78%; height: 88%; display: grid; place-content: center; gap: 6px; text-align: center; border-radius: 10px 10px 16px 16px;
  background: linear-gradient(150deg, #ff8a3d, #ff4d1a 45%, #b0260a); box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  font: italic 800 26px/1 var(--display); color: #fff; position: relative; overflow: hidden; animation: pouch 2.6s ease-in-out infinite;
}
.pack-pouch b { color: #1a0800; }
.pack-pouch small { font: 700 12px/1 var(--body); opacity: 0.9; }
.pack-pouch::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0 6px, transparent 6px 10px); }
@keyframes pouch { 50% { transform: translateY(-4px) rotate(1.5deg); } }

/* Album */
.album-sets { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.album-set { flex-shrink: 0; display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; font: 800 14px/1.1 var(--display); text-transform: uppercase; }
.album-set small { font: 700 11px/1 var(--body); color: var(--muted); }
.album-set.active { border-color: var(--accent); background: var(--accent-soft); }
.album-set.is-done small { color: var(--green); }
.album-progress { display: grid; gap: 6px; margin: 10px 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.album-progress span { display: inline-flex; align-items: center; gap: 5px; }
.album-progress svg { width: 14px; height: 14px; color: var(--green); }
.album-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.album-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: inherit; }
.album-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) { .album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .album-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.album-card { padding: 0; border: 0; background: none; border-radius: 12px; }
.album-card .pc-name { font-size: 13px; }
.album-card .pc-team { font-size: 9.5px; }
.album-card .pc-num { font-size: 16px; }
.album-card.is-fav .pcard-x { outline: 3px solid var(--gold); outline-offset: 2px; }
.shop-me-cards { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.shop-me-cards svg { width: 14px; height: 14px; color: var(--gold); fill: currentColor; }

/* Ouverture d'une pochette */
.pack-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 16, 0.85); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; }
.pack-overlay.open { opacity: 1; }
.pack-stage { display: grid; gap: 18px; justify-items: center; width: min(720px, 100%); }
.pack-title { font: italic 800 32px/1 var(--display); text-transform: uppercase; }
.pack-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.pack-slot { display: grid; gap: 8px; justify-items: center; perspective: 900px; }
.pack-flip { position: relative; width: 100%; max-width: 200px; aspect-ratio: 5 / 7; transform-style: preserve-3d; animation: pack-flip 0.7s var(--ease-out) both; animation-delay: calc(0.5s + var(--i) * 0.55s); }
.pack-back, .pack-front { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; }
.pack-back { display: grid; place-items: center; background: linear-gradient(150deg, #ff8a3d, #b0260a); font: italic 800 24px/1 var(--display); color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.pack-back b { color: #1a0800; }
.pack-front { transform: rotateY(180deg); }
@keyframes pack-flip { from { transform: rotateY(0) scale(0.9); } to { transform: rotateY(180deg) scale(1); } }
.pack-tag { font-size: 11px; font-weight: 800; text-align: center; opacity: 0; animation: fade-in 0.3s both; animation-delay: calc(1.1s + var(--i) * 0.55s); }
.pack-tag.is-new { color: var(--green); }
.pack-tag.is-dup { color: var(--muted); }
@keyframes fade-in { to { opacity: 1; } }
@media (max-width: 480px) { .pack-cards .pc-name { font-size: 12px; } .pack-cards .pc-team { font-size: 9px; } }

.collection-card { display: flex; align-items: center; gap: 14px; }
.collection-fav { width: 92px; flex-shrink: 0; }
.collection-fav .pc-name { font-size: 12px; }
.collection-fav .pc-team { font-size: 9px; }
.collection-text { display: grid; gap: 6px; justify-items: start; }
.collection-text strong { font: italic 800 20px/1 var(--display); text-transform: uppercase; }
.collection-text .btn svg { width: 15px; height: 15px; color: var(--gold); fill: currentColor; }

.pack-desc { font-size: 12px; color: var(--muted); margin-top: -4px; }
.pack-left { font-size: 12px; font-weight: 800; color: var(--accent); }
.pack-offer.is-empty .pack-pouch { filter: grayscale(0.8) brightness(0.6); animation: none; }
.pack-offer.is-empty .pack-left { color: var(--muted); }
.shop-lock + .shop-or { font-size: 11px; }

/* ---------- Habillage Halloween (CONFIG.EVENTS) ---------- */
:root[data-event="halloween"] {
  --bg: #0c0716; --bg-2: #170b28; --surface: #1b1030; --surface-2: #25163d; --surface-3: #31204d;
  --line: #3a2458; --line-2: #513478; --muted: #a896c4; --placeholder: #7a6a99;
  --accent: #ff7a1a; --accent-hover: #ff9446; --accent-rgb: 255, 122, 26; --info: #b77bff; --info-soft: rgba(183, 123, 255, 0.14);
}
:root[data-event="halloween"] body {
  background-image:
    radial-gradient(circle at 86% 150px, rgba(255, 236, 190, 0.2) 0 38px, rgba(255, 236, 190, 0.07) 39px 90px, transparent 160px),
    radial-gradient(60% 40% at 10% 100%, rgba(140, 60, 220, 0.18), transparent 70%),
    radial-gradient(50% 35% at 100% 70%, rgba(255, 122, 26, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 420px);
}
:root[data-event="halloween"] .topbar { background: rgba(12, 7, 22, 0.86); border-bottom-color: var(--accent); box-shadow: 0 2px 18px -6px rgba(255, 122, 26, 0.5); }
:root[data-event="halloween"] .logo svg { color: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.7)); }
:root[data-event="halloween"] .freebar { background: linear-gradient(90deg, rgba(120, 50, 200, 0.35), rgba(255, 122, 26, 0.3), rgba(120, 50, 200, 0.35)); color: #ffe2c6; }
:root[data-event="halloween"] .pack-pouch { background: linear-gradient(150deg, #ff8a3d, #c2410c 45%, #5b21b6); }
:root[data-event="halloween"] .pack-pouch small::after { content: ' 🎃'; }
:root[data-event="halloween"] .pack-back { background: linear-gradient(150deg, #ff8a3d, #5b21b6); }
.spooky { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; } /* au-dessus du contenu mais transparent aux clics, sous la barre du haut */
.spooky i { position: absolute; width: 46px; height: 23px; opacity: 0.75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%230a0510' d='M32 10c2-4 4-5 5-3 1-3 3-3 3 0 4-4 12-5 20 0-6 0-9 3-10 8-3-3-6-3-9 0-2-2-5-2-7 3-1-2-1-2-2-2s-1 0-2 2c-2-5-5-5-7-3-3-3-6-3-9 0-1-5-4-8-10-8 8-5 16-4 20 0 0-3 2-3 3 0 1-2 3-1 5 3z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 1.5px rgba(255, 150, 60, 0.95)) drop-shadow(0 0 6px rgba(255, 122, 26, 0.45)); animation: bat-fly 26s linear infinite; }
.spooky i:nth-child(1) { top: 16%; animation-delay: -4s; }
.spooky i:nth-child(2) { top: 38%; width: 30px; height: 15px; opacity: 0.4; animation-duration: 34s; animation-delay: -17s; }
.spooky i:nth-child(3) { top: 64%; width: 38px; height: 19px; opacity: 0.35; animation-duration: 41s; animation-delay: -28s; }
.spooky b { /* toile d'araignée dans le coin */
  position: absolute; left: 0; bottom: 70px; width: 150px; height: 150px; opacity: 0.12;
  background: repeating-radial-gradient(circle at 0 100%, transparent 0 18px, #fff 18px 19px), repeating-conic-gradient(from 0deg at 0 100%, transparent 0 13deg, #fff 13deg 14deg);
  -webkit-mask: radial-gradient(circle at 0 100%, #000 60%, transparent 72%); mask: radial-gradient(circle at 0 100%, #000 60%, transparent 72%);
}
@keyframes bat-fly {
  0% { transform: translate(-80px, 0) scaleY(1); }
  10% { transform: translate(10vw, -18px) scaleY(0.6); }
  20% { transform: translate(20vw, 6px) scaleY(1); }
  30% { transform: translate(30vw, -12px) scaleY(0.6); }
  40% { transform: translate(40vw, 10px) scaleY(1); }
  50% { transform: translate(50vw, -20px) scaleY(0.6); }
  60% { transform: translate(60vw, 4px) scaleY(1); }
  70% { transform: translate(70vw, -14px) scaleY(0.6); }
  80% { transform: translate(80vw, 8px) scaleY(1); }
  90% { transform: translate(90vw, -10px) scaleY(0.6); }
  100% { transform: translate(calc(100vw + 80px), 0) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .spooky i { animation: none; display: none; } }

/* Joueurs vedettes en fond des matchs « À l'affiche » */
.spot-card { position: relative; overflow: hidden; isolation: isolate; }
.ft-face { position: relative; display: block; width: 116px; height: 84px; }
.spot-first .ft-face { width: 148px; height: 107px; }
.ft-face img:not(.ft-flag) { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.ft-face .ft-flag { position: absolute; right: 6px; bottom: 2px; width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)); }
.ft-face .dot { position: absolute; right: 6px; bottom: 2px; width: 14px; height: 14px; }
.ft-face.is-cutout img:not(.ft-flag) { object-fit: cover; object-position: 50% 6%; }
/* Affiche du combat (boxe) : fond de la carte « À l'affiche », bandeau en haut d'une carte de la liste. */
/* Affiches (16:9, entières, d'un bord à l'autre) : haut de la carte « À l'affiche » (étiquette et heure
   par-dessus), tête d'une carte de la liste (boxe), tête du groupe d'une soirée (UFC, PFL). */
.spot-poster, .match-poster, .comp-poster { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.spot-poster > img, .match-poster > img, .comp-poster > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spot-poster { margin: -16px -16px 12px; }
.spot-card.has-poster .featured-head { position: absolute; top: 12px; left: 16px; right: 12px; z-index: 1; }
.spot-card.has-poster .featured-head .kick { padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); color: #fff; }
.spot-card.has-poster .ft-teams { display: none; }
.spot-card.has-poster .ft-comp { margin-top: 0; }
.match-poster { margin: -14px -14px 12px; border-radius: var(--radius) var(--radius) 0 0; }
.match-finished .match-poster > img, .match-finished .made-poster { filter: grayscale(0.7); opacity: 0.7; }
.comp-poster { margin: 0 0 12px; border-radius: var(--radius); border: 1px solid var(--line); }

/* Affiche composée (posters.js) : deux coins de couleur, les combattants face à face, noms au centre. */
.made-poster { position: relative; isolation: isolate; width: 100%; height: 100%; overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(ellipse 55% 70% at 50% 42%, rgba(255, 255, 255, 0.16), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px),
    linear-gradient(105deg, var(--c1) 0 48%, var(--c2) 52% 100%);
  color: #fff; font-family: var(--display); text-transform: uppercase; }
.made-poster::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 38%), linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%); }
.mp-f { position: absolute; bottom: 0; z-index: 0; width: 58%; height: 92%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.55)) saturate(1.08); }
.mp-f[src*="thesportsdb"] { object-fit: cover; object-position: 50% 4%; }
.mp-f1 { left: -9%; }
.mp-f2 { right: -9%; }
.mp-event { position: absolute; z-index: 2; top: 5%; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 1.6cqi;
  padding: 0 18%; font: italic 800 3.6cqi/1.1 var(--display); letter-spacing: 0.06em; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.mp-event img { height: 6cqi; width: auto; flex-shrink: 0; }
.mp-names { position: absolute; z-index: 2; left: 0; right: 0; bottom: 15%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2cqi; padding: 0 3cqi; }
.mp-n { display: grid; font: italic 800 7.4cqi/0.92 var(--display); letter-spacing: 0.01em; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85); overflow-wrap: anywhere; }
.mp-n small { font-size: 0.48em; line-height: 1.1; letter-spacing: 0.04em; opacity: 0.92; }
.mp-n1 { text-align: left; }
.mp-n2 { text-align: right; }
.mp-flag { display: inline-block; width: 4.6cqi; height: 4.6cqi; margin-top: 0.8cqi; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8)); }
.mp-n2 .mp-flag { justify-self: end; }
.mp-n .dot { display: none; }
.mp-vs { align-self: center; font: italic 800 9cqi/1 var(--display); color: var(--accent); text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.55), 0 3px 10px rgba(0, 0, 0, 0.8); }
.mp-date { position: absolute; z-index: 2; left: 0; right: 0; bottom: 4.5%; text-align: center; font: 700 3.2cqi/1 var(--display); letter-spacing: 0.12em; color: var(--accent); }
.spot-star { position: absolute; z-index: -1; bottom: 64px; width: 56%; height: auto; max-height: 82%; object-fit: contain; object-position: bottom; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)); opacity: 0.95; }
.spot-star-home { left: -17%; }
.spot-star-away { right: -17%; transform: scaleX(-1); }
.spot-card.has-stars::after { /* voile pour garder les noms et logos lisibles */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--surface) 64px, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
}
.spot-card.has-stars .ft-team strong { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); }
.spot-card.has-stars .ft-comp { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }
.spot-card.has-stars .logo-img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)); }

/* Décor Halloween : plus de chauves-souris, toiles, araignée, fantôme, citrouilles (discret, sans gêner les clics) */
.spooky i:nth-child(4) { top: 8%; width: 24px; height: 12px; opacity: 0.45; animation-duration: 22s; animation-delay: -11s; animation-direction: reverse; }
.spooky i:nth-child(5) { top: 50%; width: 20px; height: 10px; opacity: 0.4; animation-duration: 29s; animation-delay: -6s; animation-direction: reverse; }
.spooky i:nth-child(6) { top: 82%; width: 28px; height: 14px; opacity: 0.35; animation-duration: 37s; animation-delay: -21s; }
.spooky s { /* toile dans le coin haut droit */
  position: absolute; right: 0; top: 96px; width: 120px; height: 120px; opacity: 0.1; text-decoration: none;
  background: repeating-radial-gradient(circle at 100% 0, transparent 0 16px, #fff 16px 17px), repeating-conic-gradient(from 90deg at 100% 0, transparent 0 13deg, #fff 13deg 14deg);
  -webkit-mask: radial-gradient(circle at 100% 0, #000 60%, transparent 72%); mask: radial-gradient(circle at 100% 0, #000 60%, transparent 72%);
}
.spooky em { /* petite araignée qui descend au bout de son fil */
  position: absolute; right: 54px; top: 96px; width: 1px; height: 70px; background: rgba(255, 255, 255, 0.25); transform-origin: top; animation: spider 7s ease-in-out infinite;
}
.spooky em::after { content: '🕷️'; position: absolute; bottom: -13px; left: -9px; font-size: 18px; font-style: normal; filter: drop-shadow(0 0 3px rgba(255, 122, 26, 0.8)); }
@keyframes spider { 0%, 100% { height: 40px; } 50% { height: 110px; } }
.spooky u { /* fantôme qui flotte doucement */
  position: absolute; right: 6%; bottom: 120px; font-size: 30px; text-decoration: none; opacity: 0.16; animation: ghost 9s ease-in-out infinite;
}
@keyframes ghost { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-24px, -40px) rotate(6deg); } }
/* Chauve-souris accrochée sous la barre du haut */
:root[data-event="halloween"] .topbar::after {
  content: ''; position: absolute; left: 22%; bottom: -15px; width: 26px; height: 13px; pointer-events: none; transform: rotate(180deg); transform-origin: top;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%230a0510' d='M32 10c2-4 4-5 5-3 1-3 3-3 3 0 4-4 12-5 20 0-6 0-9 3-10 8-3-3-6-3-9 0-2-2-5-2-7 3-1-2-1-2-2-2s-1 0-2 2c-2-5-5-5-7-3-3-3-6-3-9 0-1-5-4-8-10-8 8-5 16-4 20 0 0-3 2-3 3 0 1-2 3-1 5 3z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 2px rgba(255, 122, 26, 0.7)); animation: hang 4s ease-in-out infinite;
}
@keyframes hang { 0%, 100% { transform: rotate(176deg); } 50% { transform: rotate(184deg); } }
/* Petite citrouille après les titres de section */
:root[data-event="halloween"] .section-title::after { content: '🎃'; font-size: 0.7em; margin-left: 2px; filter: drop-shadow(0 0 4px rgba(255, 122, 26, 0.6)); }
/* Lueur citrouille sous l'onglet actif de la barre du bas */
:root[data-event="halloween"] .nav-bottom .nav-item.active { text-shadow: 0 0 10px rgba(255, 122, 26, 0.8); }
/* Toile discrète dans le coin des cartes « À l'affiche » et du premier match */
:root[data-event="halloween"] .featured { background-image:
    repeating-radial-gradient(circle at 100% 0, transparent 0 9px, rgba(255, 255, 255, 0.07) 9px 10px),
    linear-gradient(115deg, transparent 0 70%, rgba(var(--accent-rgb), 0.12) 70% 73%, transparent 73% 76%, rgba(var(--accent-rgb), 0.06) 76% 78%, transparent 78%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  background-size: 60px 60px, auto, auto; background-position: top right, 0 0, 0 0; background-repeat: no-repeat; }
@media (prefers-reduced-motion: reduce) { .spooky em, .spooky u, :root[data-event="halloween"] .topbar::after { animation: none; } }

/* ---------- Habillage Noël (CONFIG.EVENTS) : sapin et rouge, guirlande, bonnet, neige ---------- */
:root[data-event="noel"] {
  --bg: #06140f; --bg-2: #0b2219; --surface: #102a20; --surface-2: #163527; --surface-3: #1d4232;
  --line: #24503c; --line-2: #2f6a4f; --muted: #9fbfb0; --placeholder: #6f9282;
  --accent: #e8372f; --accent-2: #a51717; --accent-ink: #fff; --accent-hover: #ff4d44; --accent-rgb: 232, 55, 47; --gold: #ffd166; --info: #7fd4ff; --info-soft: rgba(127, 212, 255, 0.14);
}
:root[data-event="noel"] body {
  background-image:
    radial-gradient(60% 40% at 15% 0%, rgba(255, 209, 102, 0.10), transparent 70%),
    radial-gradient(50% 40% at 100% 30%, rgba(232, 55, 47, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 420px);
}
:root[data-event="noel"] .topbar { background: rgba(6, 20, 15, 0.88); border-bottom-color: var(--accent); }
/* Guirlande lumineuse sous la barre du haut */
:root[data-event="noel"] .topbar::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 10px; pointer-events: none;
  background:
    radial-gradient(circle, #ff4d44 0 3px, transparent 4px) 0 0 / 56px 10px repeat-x,
    radial-gradient(circle, #ffd166 0 3px, transparent 4px) 14px 0 / 56px 10px repeat-x,
    radial-gradient(circle, #6ee7a8 0 3px, transparent 4px) 28px 0 / 56px 10px repeat-x,
    radial-gradient(circle, #7fd4ff 0 3px, transparent 4px) 42px 0 / 56px 10px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255, 220, 150, 0.9)); animation: twinkle 1.6s steps(2) infinite;
}
@keyframes twinkle { 50% { opacity: 0.55; } }
:root[data-event="noel"] .freebar { background: linear-gradient(90deg, rgba(232, 55, 47, 0.35), rgba(22, 101, 52, 0.4), rgba(232, 55, 47, 0.35)); color: #fff4dc; }
/* Logo en boule de Noël (js/ui/icons.js) : elle se balance doucement depuis son attache */
:root[data-event="noel"] .logo svg.bauble-logo, :root[data-event="noel"] .brand-big svg.bauble-logo {
  transform-origin: 50% 6%; animation: bauble-swing 3.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.45));
}
@keyframes bauble-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
/* Neige posée sur les cartes */
:root[data-event="noel"] .card, :root[data-event="noel"] .featured, :root[data-event="noel"] .register { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55); }
:root[data-event="noel"] .section-title::after { content: '🎄'; font-size: 0.7em; margin-left: 2px; }
:root[data-event="noel"] .pack-pouch { background: linear-gradient(150deg, #ff5a52, #b91c1c 50%, #14532d); }
:root[data-event="noel"] .pack-pouch small::after { content: ' 🎁'; }
:root[data-event="noel"] .pack-back { background: linear-gradient(150deg, #ff5a52, #14532d); }
:root[data-event="noel"] .btn-primary { background: linear-gradient(180deg, #ff4d44, #c81e1e); color: #fff; }
:root[data-event="noel"] .landing-bg { filter: hue-rotate(-18deg) saturate(1.1) brightness(0.9); }
:root[data-event="noel"] .nav-bottom .nav-item.active { text-shadow: 0 0 10px rgba(255, 209, 102, 0.7); }
/* Boules suspendues en haut de l'accueil */
.baubles { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 2; pointer-events: none; }
.baubles span { position: absolute; top: 0; width: 2px; height: var(--len); background: rgba(255, 236, 180, 0.6); transform-origin: top; animation: bauble-swing 4s ease-in-out infinite; }
.baubles i { position: absolute; left: 50%; bottom: -26px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.85) 0 3px, transparent 9px), radial-gradient(circle at 40% 40%, var(--c), color-mix(in srgb, var(--c) 45%, #000)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.baubles i::before { content: ''; position: absolute; left: 50%; top: -6px; width: 10px; height: 7px; margin-left: -5px; border-radius: 2px; background: #f2c14e; }
@media (max-width: 600px) { .baubles span:nth-child(2), .baubles span:nth-child(3) { display: none; } }
/* Flocons (js/ui/season.js) : au-dessus du contenu mais transparents aux clics */
.snow { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.snow i { position: absolute; top: -12px; color: #fff; opacity: 0.8; font-style: normal; animation: snow-fall linear infinite; text-shadow: 0 0 4px rgba(255, 255, 255, 0.7); }
@keyframes snow-fall { to { transform: translate(var(--dx, 30px), 105vh) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } .baubles span { animation: none !important; } :root[data-event="noel"] .topbar::before, :root[data-event="noel"] svg.bauble-logo { animation: none; } }

.album-rar { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; font: italic 800 18px/1 var(--display); text-transform: uppercase; color: var(--rar); }
.album-rar small { font: 700 12px/1 var(--body); color: var(--muted); }

/* Accueil : grande photo d'action en fond et cartes en éventail */
.landing-bg { position: absolute; inset: 0 0 auto 0; height: min(100vh, 900px); background-size: cover; background-position: 70% 20%; opacity: 0.55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.onboarding.has-bg::before { /* voile pour garder le texte lisible */
  content: ''; position: absolute; inset: 0 0 auto 0; height: min(100vh, 900px); pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 30%), radial-gradient(90% 70% at 20% 40%, color-mix(in srgb, var(--bg) 75%, transparent), transparent 75%);
}
.onboarding.has-bg .landing-title, .onboarding.has-bg .brand-big { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7); }
.onboarding.has-bg .tagline { color: #e9e2f5; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.landing-cards { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 190px; margin: 6px 0 30px; }
.lc { width: 112px; margin: 0 -14px; transition: transform 0.3s var(--ease-out); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55)); }
.lc .pc-name { font-size: 12px; }
.lc .pc-team { font-size: 9px; }
.lc-0 { transform: rotate(-12deg) translateY(10px); }
.lc-1 { transform: translateY(-8px) scale(1.08); z-index: 1; }
.lc-2 { transform: rotate(12deg) translateY(10px); }
.landing-cards:hover .lc-0 { transform: rotate(-16deg) translate(-12px, 6px); }
.landing-cards:hover .lc-2 { transform: rotate(16deg) translate(12px, 6px); }
.lc-caption { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.landing-hero { padding-bottom: 18px; }
@media (min-width: 900px) {
  .landing-bg { inset: 0 0 auto 30%; background-position: 60% 20%; opacity: 0.7;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to bottom, #000 55%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to bottom, #000 55%, transparent); mask-composite: intersect; }
  .landing-cards { justify-content: flex-start; padding-left: 14px; }
  .lc-caption { text-align: left; }
}

[data-action="cloud-google"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.google-chip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.google-chip .google-g { width: 18px; height: 18px; }

/* Citrouille du logo (Halloween) : couleurs propres, pas de filtre ni de couleur de trait */
.pumpkin-logo { color: initial; }
:root[data-event="halloween"] .logo svg.pumpkin-logo { filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.75)); }
.brand-big .pumpkin-logo { animation: pumpkin-in 0.9s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes pumpkin-in { from { transform: scale(0.3) rotate(-20deg); opacity: 0; } }

/* Logo BeltChase : ceinture un peu plus large que l'ancien ballon */
.logo svg.belt-logo { width: 30px; height: 30px; }
.brand-big svg.belt-logo { width: 1.05em; height: 1.05em; }

/* ---------- Paris méthode & round (services/markets.js) ---------- */
.more-markets {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 10px;
  border: 1px dashed var(--line-2); border-radius: 9px; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; text-align: left;
}
.more-markets small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.more-markets b { color: var(--accent); }
.more-markets.is-open { border-style: solid; border-color: rgba(var(--accent-rgb), 0.5); }
.markets { display: grid; gap: 8px; margin-top: 8px; }
.market-title { margin: 2px 0 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.market-col { display: grid; gap: 6px; align-content: start; }
.market-who { font: italic 800 14px/1 var(--display); text-transform: uppercase; color: var(--text); text-align: center; }
.market-row { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.odd.odd-sm { padding: 7px 8px; min-height: 0; }
.odd.odd-sm .odd-label { font-size: 11px; }
.odd.odd-sm .odd-val { font-size: 16px; }

/* ---------- Page admin des combats (js/ui/screens/admin.js) ---------- */
.admin-link { text-decoration: none; color: var(--text); border-color: rgba(var(--accent-rgb), 0.5); margin-bottom: 14px; }
.admin-link strong { display: inline-flex; align-items: center; gap: 6px; }
.admin-link svg { width: 16px; height: 16px; color: var(--accent); }
.admin-form { display: grid; gap: 12px; margin: 14px 0; }
.admin-form h2 { margin: 0; font: italic 800 22px/1 var(--display); text-transform: uppercase; }
.admin-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.admin-grid label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.admin-grid input, .admin-grid select, .admin-result select {
  width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px;
}
.admin-hint { margin: 0; font-size: 12px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-event { margin-bottom: 12px; }
.admin-event h3 { margin: 0 0 8px; font: italic 800 19px/1.1 var(--display); text-transform: uppercase; }
.admin-event ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-fight { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.admin-fight:first-child { border-top: 0; padding-top: 0; }
.admin-fight-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.admin-fight-head small { color: var(--accent); font-weight: 700; }
.admin-due { color: var(--accent); }
.admin-result { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-result select { width: auto; flex: 1 1 120px; padding: 7px 8px; }
.admin-row-actions { display: flex; gap: 4px; }
.btn.btn-sm { padding: 7px 12px; font-size: 14px; }
.seo-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 14px; }
.seo-table th, .seo-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.seo-table tbody th { text-align: left; font-weight: 700; }
.seo-table td { font: 800 17px/1 var(--display); }

/* Accueil : combattants détourés côte à côte, façon affiche de combat (CONFIG.LANDING_FIGHTERS) */
/* Téléphone : derrière le titre, au-dessus de l'éventail de cartes. */
.landing-bg.landing-trio {
  display: flex; align-items: flex-end; justify-content: center; height: 500px; opacity: 0.5; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 100%, rgba(var(--accent-rgb), 0.3), transparent 70%);
}
.landing-trio img { height: 82%; max-width: 58%; margin: 0 -12%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.landing-trio img:nth-child(2) { height: 100%; max-width: 70%; position: relative; z-index: 1; }
/* Ordinateur : le contenu (accroche + inscription, ~1030 px) reste au centre ; les combattants se placent
   dans les marges, à partir du centre de l'écran (même rendu sur tous les grands écrans) : Makhachev à
   gauche de l'accroche avec Canelo derrière lui, Gane en grand à droite de l'inscription. */
@media (min-width: 900px) {
  .landing-bg.landing-trio { inset: 0 0 auto 0; height: min(92vh, 820px); opacity: 0.85; display: block; background: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
  .landing-trio img { position: absolute; bottom: 0; margin: 0; max-width: none; }
  .landing-trio img:nth-child(1) { right: calc(50% + 340px); height: 76%; z-index: 1; }
  .landing-trio img:nth-child(2) { left: calc(50% + 360px); height: 92%; z-index: 1; }
  .landing-trio img:nth-child(3) { right: calc(50% + 470px); height: 70%; opacity: 0.8; }
}
/* Écrans d'ordinateur moyens : marges étroites, les combattants se rapprochent du contenu (plus discrets). */
@media (min-width: 900px) and (max-width: 1700px) {
  .landing-bg.landing-trio { opacity: 0.6; }
  .landing-trio img:nth-child(1) { right: calc(50% + 300px); height: 72%; }
  .landing-trio img:nth-child(2) { left: calc(50% + 300px); height: 88%; }
  .landing-trio img:nth-child(3) { right: calc(50% + 400px); height: 64%; }
}
/* Photo en pied (render) recadrée au buste, à la même échelle que les autres photos détourées. */
.landing-trio img.is-crop { aspect-ratio: 1 / 1; width: auto; height: 60%; max-width: 44%; object-fit: cover; object-position: 50% 0; }
@media (min-width: 900px) {
  .landing-trio img.is-crop { aspect-ratio: 1.45 / 1; max-width: none; object-position: 50% 2%; }
  .landing-trio img.is-crop:nth-child(3) { height: 70%; }
}
@media (min-width: 900px) and (max-width: 1700px) {
  .landing-trio img.is-crop:nth-child(3) { height: 64%; }
}

/* Un seul combattant (CONFIG.LANDING_FIGHTERS) : en grand, avec une lueur dorée derrière lui.
   Téléphone : au centre, derrière le titre. Ordinateur : à droite, à côté de l'inscription. */
.landing-bg.landing-solo { justify-content: flex-end; opacity: 0.85; background: radial-gradient(45% 50% at 78% 60%, rgba(var(--accent-rgb), 0.4), transparent 70%); }
.landing-solo img, .landing-solo img:nth-child(1) { height: 92%; max-width: 100%; margin: 0 -22% 0 0; }
@media (min-width: 900px) {
  .landing-bg.landing-solo { opacity: 1; background: radial-gradient(28% 50% at calc(50% + 640px) 60%, rgba(var(--accent-rgb), 0.35), transparent 70%); }
  .landing-solo img:nth-child(1) { right: auto; left: calc(50% + 300px); height: 96%; z-index: 1;
    filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.35)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7)); }
}
@media (min-width: 900px) and (max-width: 1700px) {
  .landing-bg.landing-solo { opacity: 0.8; background: radial-gradient(30% 50% at calc(50% + 520px) 60%, rgba(var(--accent-rgb), 0.3), transparent 70%); }
  .landing-solo img:nth-child(1) { left: calc(50% + 240px); height: 92%; }
}

/* Deux combattants face à face (CONFIG.LANDING_FIGHTERS) : le 1er à gauche, le 2e à droite, lueurs dorées. */
.landing-bg.landing-duo { justify-content: space-between; opacity: 0.85;
  background: radial-gradient(40% 45% at 18% 62%, rgba(var(--accent-rgb), 0.3), transparent 70%), radial-gradient(40% 45% at 82% 62%, rgba(var(--accent-rgb), 0.3), transparent 70%); }
.landing-duo img, .landing-duo img:nth-child(2) { height: 86%; max-width: 80%; position: static; }
.landing-duo img:nth-child(1) { margin: 0 0 0 -30%; }
.landing-duo img:nth-child(2) { margin: 0 -30% 0 0; }
@media (min-width: 900px) {
  .landing-bg.landing-duo { opacity: 1;
    background: radial-gradient(26% 50% at calc(50% - 640px) 60%, rgba(var(--accent-rgb), 0.3), transparent 70%), radial-gradient(26% 50% at calc(50% + 640px) 60%, rgba(var(--accent-rgb), 0.3), transparent 70%); }
  .landing-duo img, .landing-duo img:nth-child(2) { position: absolute; margin: 0; max-width: none;
    filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.3)) drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7)); }
  .landing-duo img:nth-child(1) { right: calc(50% + 400px); height: 92%; }
  .landing-duo img:nth-child(2) { left: calc(50% + 300px); right: auto; height: 96%; }
}
@media (min-width: 900px) and (max-width: 1700px) {
  .landing-bg.landing-duo { opacity: 0.8; }
  .landing-duo img:nth-child(1) { right: calc(50% + 270px); height: 86%; }
  .landing-duo img:nth-child(2) { left: calc(50% + 240px); height: 92%; }
}

/* Accueil sur ordinateur (≥ 1000 px), façon affiche de combat, en deux temps :
   1) en haut, l'accroche au centre et les deux combattants face à face sur les bords de l'écran
      (jamais sous le texte) ;
   2) en dessous, les atouts du jeu (deux colonnes) à gauche, l'inscription à droite. */
@media (min-width: 1000px) {
  .onboarding { place-items: start center; padding: 28px 32px 48px; }
  .landing { max-width: 1120px; grid-template-columns: minmax(0, 1fr) 420px; gap: 36px 48px;
    grid-template-areas: "hero hero" "features card"; align-items: start; }
  .landing-hero { justify-self: center; justify-items: center; max-width: 620px; min-height: 500px; align-content: center; text-align: center; padding-bottom: 0; }
  .landing-hero .brand-big, .landing-ladder { justify-content: center; }
  .landing-title { font-size: 68px; }
  .landing-cards { justify-content: center; padding-left: 0; }
  .lc-caption { text-align: center; }
  .landing .features { grid-template-columns: 1fr 1fr; }
  .landing .onboarding-card { justify-self: stretch; max-width: none; position: sticky; top: 24px; }

  .onboarding.has-bg::before { height: 620px; }
  .landing-bg.landing-duo, .landing-bg.landing-solo, .landing-bg.landing-trio { height: 600px; opacity: 1;
    background: radial-gradient(22% 55% at 12% 70%, rgba(var(--accent-rgb), 0.28), transparent 70%),
      radial-gradient(22% 55% at 88% 70%, rgba(var(--accent-rgb), 0.28), transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
  .landing-duo img:nth-child(1), .landing-duo img:nth-child(2), .landing-solo img:nth-child(1) {
    height: 100%; max-width: min(34vw, 560px); margin: 0; object-fit: contain; }
  .landing-duo img:nth-child(1) { left: max(-40px, calc(50% - 800px)); right: auto; object-position: left bottom; }
  .landing-duo img:nth-child(2), .landing-solo img:nth-child(1) { left: auto; right: max(-40px, calc(50% - 800px)); object-position: right bottom; }
}
/* Écran d'ordinateur étroit : les combattants restent sur les bords, plus discrets derrière l'accroche. */
@media (min-width: 1000px) and (max-width: 1350px) {
  .landing-duo img:nth-child(1), .landing-duo img:nth-child(2), .landing-solo img:nth-child(1) { max-width: 30vw; opacity: 0.75; }
}

/* ---------- Actus (js/ui/screens/news.js) ---------- */
.news-chips { margin: 4px 0 14px; }
.news-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease-out); }
.news-card:hover { border-color: rgba(var(--accent-rgb), 0.55); transform: translateY(-2px); }
.news-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--surface-2); align-self: start; }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 30px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.35), var(--surface-2) 70%); }
.news-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.news-body strong { font-size: 15px; line-height: 1.3; }
.news-body small { color: var(--muted); font-size: 12px; }
.news-tag { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.news-excerpt { color: var(--muted); font-size: 14px; line-height: 1.45; }
.news-big { grid-template-columns: 1fr; margin-bottom: 14px; padding: 0; overflow: hidden; }
.news-big .news-thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.news-big .news-ph { font-size: 64px; }
.news-big .news-body { padding: 4px 14px 14px; gap: 6px; }
.news-big .news-body strong { font: italic 800 26px/1.05 var(--display); text-transform: uppercase; }
.news-grid { display: grid; gap: 10px; }
@media (min-width: 700px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-big { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
  .news-big .news-thumb { height: 100%; }
  .news-big .news-body { padding: 18px; }
  .news-big .news-body strong { font-size: 32px; }
}
@media (min-width: 1200px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Combats : vues Parier / Calendrier / Résultats ---------- */
.real-views { margin: 0 0 14px; }
.cal-day { margin: 18px 0 8px; font: italic 800 20px/1.1 var(--display); text-transform: uppercase; }
.cal-day small { margin-left: 6px; font: 600 13px/1 var(--body, inherit); text-transform: none; color: var(--muted); }
.cal-list { display: grid; gap: 8px; }
.cal-event { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 8px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color 0.2s; }
.cal-event:hover { border-color: rgba(var(--accent-rgb), 0.55); }
.cal-event > svg { width: 18px; height: 18px; color: var(--muted); }
.cal-poster { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.cal-poster > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cal-poster .made-poster .mp-date, .cal-poster .made-poster .mp-event { display: none; }
.cal-body { display: grid; gap: 3px; min-width: 0; }
.cal-body strong { font-size: 15px; line-height: 1.25; }
.cal-body .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-sport { font-size: 12px; font-weight: 700; color: var(--accent); }
.results-note { margin: 0 0 4px; font-size: 13px; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.result-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.result-ava { flex-shrink: 0; display: grid; }
@media (min-width: 900px) { .cal-list, .result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Fiche combattant (js/ui/screens/fighter.js) ---------- */
.fighter-link { color: inherit; text-decoration: none; }
.fighter-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.fighter-back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-weight: 700; }
.fighter-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding: 18px 16px 0; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(60% 80% at 50% 100%, rgba(var(--accent-rgb), 0.3), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); text-align: center; }
.fighter-photo { width: min(360px, 90%); height: auto; aspect-ratio: 200 / 145; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)); margin-bottom: -4px; }
.fighter-id { display: grid; justify-items: center; gap: 4px; padding: 10px 0 16px; width: 100%; background: linear-gradient(to top, var(--surface) 60%, transparent); margin-top: -40px; position: relative; }
.fighter-id h1 { font: italic 800 38px/1 var(--display); text-transform: uppercase; }
.fighter-flag-big { width: 34px; height: 34px; object-fit: contain; }
.fighter-nick { margin: 0; font: italic 700 18px/1 var(--display); color: var(--accent); }
.fighter-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 14px 0; }
.fight-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fight-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.fight-res { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font: 800 15px/1 var(--display); background: var(--surface-2); color: var(--muted); }
.res-W .fight-res { background: rgba(46, 204, 113, 0.2); color: #4be08a; }
.res-L .fight-res { background: rgba(231, 76, 60, 0.2); color: #ff7a6b; }
.fight-main { display: grid; gap: 2px; min-width: 0; }
.fight-main a { color: inherit; text-decoration: none; }
.fight-main a:hover { color: var(--accent); }
.fight-main small, .fight-when small { font-size: 12px; }
.fight-when { display: grid; gap: 2px; text-align: right; max-width: 45vw; }
.fight-when small.muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-fight { color: var(--accent); }
.fighter-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fighter-news a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.fighter-news svg { width: 18px; height: 18px; color: var(--accent); grid-row: span 2; }
.fighter-news small { grid-column: 2; }
@media (min-width: 900px) { .fight-log { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-grid label.admin-check { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; font-size: 14px; color: var(--text); }
.admin-grid label.admin-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Actus : « À la une » (grosse actu en très grand, photo plein cadre, titre par-dessus) ---------- */
.une { display: grid; gap: 10px; margin: 0 0 22px; }
.une-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); min-height: 190px;
  background: var(--surface-2); color: #fff; text-decoration: none; border: 1px solid var(--line); }
.une-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.une-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 8, 20, 0.96) 0%, rgba(4, 8, 20, 0.75) 35%, transparent 75%); }
.une-card:hover > img { transform: scale(1.04); }
.une-card:hover { border-color: rgba(var(--accent-rgb), 0.7); }
.une-text { display: grid; gap: 6px; padding: 14px; width: 100%; }
.une-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.une-flag { padding: 4px 10px; border-radius: 4px; background: #e8262b; color: #fff; font: italic 800 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 18px rgba(232, 38, 43, 0.55); animation: une-pulse 2.4s ease-in-out infinite; }
@keyframes une-pulse { 50% { box-shadow: 0 0 4px rgba(232, 38, 43, 0.3); } }
.une-card strong { font: italic 800 19px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.une-card small { color: rgba(255, 255, 255, 0.75); font-size: 12px; }
.une-excerpt { color: rgba(255, 255, 255, 0.85); font-size: 14px; line-height: 1.4; }
.une-main { min-height: 360px; border-color: rgba(var(--accent-rgb), 0.45); box-shadow: 0 18px 40px -20px rgba(var(--accent-rgb), 0.5); }
.une-main strong { font-size: 32px; line-height: 0.98; }
.une-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.une-side .une-card { min-height: 170px; }
.une-side .une-card strong { font-size: 16px; }
@media (min-width: 900px) {
  .une { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .une-main { min-height: 440px; }
  .une-main strong { font-size: 46px; }
  .une-main .une-text { padding: 24px; }
  .une-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .une-side .une-card strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .une-flag { animation: none; } .une-card:hover > img { transform: none; } }
/* Bandeau « À la une » en haut de l'écran Combats */
.une-banner { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 92px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid rgba(232, 38, 43, 0.5); background: var(--surface-2); color: #fff; text-decoration: none; }
.une-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.une-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 8, 20, 0.95) 0%, rgba(4, 8, 20, 0.8) 55%, rgba(4, 8, 20, 0.25)); }
.une-banner-text { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; max-width: 720px; }
.une-banner strong { font: italic 800 18px/1.05 var(--display); text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.une-more { display: block; margin: 6px 2px 14px; text-align: right; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
@media (min-width: 900px) { .une-banner { min-height: 110px; } .une-banner strong { font-size: 24px; } }

/* ---------- Bandeau défilant « Dernière minute » (js/ui/ticker.js) ---------- */
.ticker { position: relative; z-index: 5; display: flex; align-items: stretch; height: 36px; overflow: hidden; background: #070d1f; border-bottom: 1px solid var(--line); }
.ticker[hidden] { display: none; }
.tk-flag { flex-shrink: 0; display: flex; align-items: center; padding: 0 12px 0 14px; background: #e8262b; color: #fff; font: italic 800 14px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 22px; }
.tk-window { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tk-track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; animation: tk-scroll var(--tk-dur, 60s) linear infinite; will-change: transform; }
.ticker:hover .tk-track { animation-play-state: paused; }
.tk-copy { display: inline-flex; align-items: center; }
@keyframes tk-scroll { to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.tk-item:hover span { color: var(--accent); }
.tk-item b { font: italic 800 12px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tk-live b { color: #ff4d4f; }
.tk-live b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ff4d4f; vertical-align: 1px; animation: live-blink 1s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: 0.25; } }
.tk-result b { color: #4be08a; }
.tk-sep { font-style: normal; font-size: 9px; color: var(--accent); opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .tk-track { animation-duration: calc(var(--tk-dur, 60s) * 3); } }

/* ---------- Combat en cours : round, chrono, barre de progression ---------- */
.match-live { animation: live-glow 2.2s ease-in-out infinite; }
@keyframes live-glow { 50% { box-shadow: 0 0 0 1px rgba(255, 61, 90, 0.55), 0 0 26px -6px rgba(255, 61, 90, 0.55); } }
.fight-progress { display: grid; gap: 6px; min-width: 132px; justify-items: end; }
.fp-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--live); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-label b { font-size: 16px; }
.fp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: live-blink 1s ease-in-out infinite; }
.fp-bar { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; width: 132px; height: 6px; }
.fp-bar i { border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.fp-bar i.done { background: rgba(255, 61, 90, 0.55); }
.fp-bar i.now { background: rgba(255, 61, 90, 0.25); }
.fp-bar em { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 61, 90, 0.2), var(--live)); box-shadow: 0 0 10px rgba(255, 61, 90, 0.7); transition: width 1s linear; pointer-events: none; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .match-live, .fp-dot { animation: none; } }

/* ---------- Fin d'un combat : « KO ! » (effects.js, fightFlash) ---------- */
.fight-flash { position: fixed; z-index: 90; left: 50%; top: 18%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; width: min(92vw, 560px);
  padding: 18px 20px 16px; border-radius: 16px; background: rgba(6, 10, 24, 0.94); border: 2px solid var(--accent); text-align: center; pointer-events: none;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(var(--accent-rgb), 0.6); animation: ff-in 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.fight-flash.out { animation: ff-out 0.4s ease-in both; }
.ff-word { font: italic 800 74px/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--accent);
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.7), 0 6px 0 rgba(0, 0, 0, 0.5); animation: ff-shake 0.5s 0.2s both; }
.ff-ko { border-color: #e8262b; box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.8), 0 0 60px -6px rgba(232, 38, 43, 0.75); }
.ff-ko .ff-word { color: #ff3b3f; text-shadow: 0 0 34px rgba(232, 38, 43, 0.85), 0 6px 0 rgba(0, 0, 0, 0.5); font-size: 96px; }
.ff-sub .ff-word { color: #6fd3ff; text-shadow: 0 0 30px rgba(111, 211, 255, 0.7), 0 6px 0 rgba(0, 0, 0, 0.5); }
.ff-line { font-size: 17px; font-weight: 700; color: #fff; }
.ff-event { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ff-still, .ff-still .ff-word { animation: none; }
@keyframes ff-in { from { opacity: 0; transform: translateX(-50%) scale(0.4) rotate(-6deg); } }
@keyframes ff-out { to { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(0.9); } }
@keyframes ff-shake { 15%, 45%, 75% { transform: translateX(-7px) rotate(-2deg); } 30%, 60%, 90% { transform: translateX(7px) rotate(2deg); } }

/* Cote qui a bougé avant le combat (bookmakers) : ancienne cote barrée, flèche, liseré (pas de clignotement). */
.odd-was { margin-right: 5px; font-size: 0.72em; font-weight: 600; color: var(--muted); text-decoration-thickness: 1.5px; }
.odd-trend-up { border-color: rgba(61, 220, 132, 0.5); }
.odd-trend-up .odd-move { color: var(--green); }
.odd-trend-down { border-color: rgba(255, 77, 99, 0.5); }
.odd-trend-down .odd-move { color: var(--red); }
.odd.selected .odd-was { color: var(--accent-ink); opacity: 0.7; }

/* Album : filtres et titres par rareté, aux couleurs des cadres des cartes (fightCard.js) */
.rar-filter { display: flex; gap: 6px; overflow-x: auto; margin: 12px -16px 4px; padding: 2px 16px 6px; scrollbar-width: none; }
.rar-chip { --rc: var(--muted); flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent);
  background: color-mix(in srgb, var(--rc) 10%, var(--surface)); color: var(--text); font: italic 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.rar-chip small { font: 700 11px/1 var(--body, inherit); color: var(--muted); }
.rar-chip.active { background: var(--rc); border-color: var(--rc); color: #071022; }
.rar-chip.active small { color: rgba(7, 16, 34, 0.7); }
.rar-chip-commun, .album-rar-commun { --rc: #9aa4b5; }
.rar-chip-rare, .album-rar-rare { --rc: #6fb6ff; }
.rar-chip-epique, .album-rar-epique { --rc: #c38bff; }
.rar-chip-legendaire, .album-rar-legendaire { --rc: #ffd66b; }
.rar-chip-mythique, .album-rar-mythique { --rc: #ff7ab8; }
.rar-chip-mythique.active { background: linear-gradient(90deg, #ff5ea0, #ffb84d, #5dffb4, #58c8ff); }
.album-rar { --rc: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; padding: 8px 12px; border-radius: 10px;
  border-left: 4px solid var(--rc); background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%); color: var(--rc);
  font: italic 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.album-rar small { font: 700 12px/1 var(--body, inherit); color: var(--muted); text-transform: none; letter-spacing: 0; }
.album-rar-mythique { border-image: linear-gradient(180deg, #ff5ea0, #ffb84d, #5dffb4, #58c8ff) 1; border-left-width: 4px; border-radius: 0 10px 10px 0; }
.album-rar-mythique span { background: linear-gradient(90deg, #ff7ab8, #ffd66b, #7dffc4, #7cd2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.album-card { padding: 0; border: 0; background: none; text-align: left; }
.credits-list { margin: 8px 0 0; padding-left: 18px; columns: 2 260px; font-size: 13px; color: var(--muted); }
.credits-list li { margin-bottom: 4px; break-inside: avoid; }

/* Choix de la langue : menu à drapeaux (langPicker.js). */
.lang-menu { position: relative; display: inline-block; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; font: 600 14px/1.2 Barlow, system-ui, sans-serif; color: var(--text); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary i { font-style: normal; color: var(--accent); font-size: 11px; }
.lang-menu[open] summary { border-color: var(--accent); }
.lang-flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); flex: none; }
.lang-menu ul { position: absolute; z-index: 40; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 240px;
  max-height: 60vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 18px 40px -12px #000; }
.lang-menu.lang-footer ul, .lang-menu.lang-landing ul { top: auto; bottom: calc(100% + 6px); inset-inline-start: 50%; inset-inline-end: auto; transform: translateX(-50%); }
[dir="rtl"] .lang-menu.lang-footer ul, [dir="rtl"] .lang-menu.lang-landing ul { transform: translateX(50%); }
.lang-menu li button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text); font: 600 14px/1.2 Barlow, system-ui, sans-serif; text-align: start; cursor: pointer; }
.lang-menu li button:hover, .lang-menu li button:focus-visible { background: var(--surface-2); }
.lang-menu li button.is-current { background: var(--accent-soft); color: var(--accent); }
.lang-menu .lang-name { text-transform: uppercase; letter-spacing: 0.04em; }
.lang-footer, .lang-landing { display: flex; justify-content: center; width: fit-content; margin: 12px auto 0; }

/* Bilan sur la carte et fiche d'une carte de l'album (cardSheet.js). */
.card-sheet { position: relative; max-width: 640px; width: calc(100% - 32px); display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: start; }
.card-sheet .cs-card { width: 210px; }
.cs-close { position: absolute; top: 10px; inset-inline-end: 10px; }
.cs-body h2 { margin: 6px 0 2px; font: italic 800 30px/1 var(--display); text-transform: uppercase; }
.cs-nick { margin: 0 0 4px; color: var(--accent); font-weight: 700; }
.cs-sub { margin: 0 0 14px; }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cs-stats .stat { padding: 9px 10px; }
.cs-actions { justify-content: flex-start; margin-top: 14px; }
@media (max-width: 560px) {
  .card-sheet { grid-template-columns: 1fr; max-height: calc(100vh - 32px); overflow-y: auto; }
  .card-sheet .cs-card { width: 170px; margin: 0 auto; }
  .cs-body { text-align: center; }
  .cs-actions { justify-content: center; }
}

/* Style BeltChase sans photos : octogones et drapeaux (affiches composées, avatars des combattants). */
.made-poster.mp-bare { background: linear-gradient(105deg, color-mix(in srgb, var(--c1) 55%, #08122a) 0 50%, color-mix(in srgb, var(--c2) 55%, #08122a) 50% 100%); }
.mp-flagbg { position: absolute; top: 0; bottom: 0; width: 56%; z-index: 0; background-size: cover; background-position: center; opacity: 0.55;
  filter: saturate(1.1) contrast(1.05); }
.mp-flagbg1 { left: 0; clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.mp-flagbg2 { right: 0; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.mp-bare::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 50% 45%, rgba(8, 18, 42, 0.15), rgba(8, 18, 42, 0.7) 75%), repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 10px); }
.mp-bare .mp-names { bottom: 18%; }
.mp-bare .mp-vs { display: grid; place-items: center; width: 13cqi; height: 13cqi; margin-bottom: 1cqi; color: #0b1733; text-shadow: none; font-size: 6.4cqi;
  background: linear-gradient(180deg, #ffe08a, #f2b630 55%, #b9821a); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.5); }
.mp-bare .mp-n { font-size: 8.4cqi; }
.fighter-oct { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: var(--surface-3); }
.fighter-oct img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transform: scale(1.35); }
.fighter-oct::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 18, 42, 0.75), rgba(8, 18, 42, 0.15)); }
.fighter-oct b { position: relative; z-index: 1; font: italic 800 15px/1 var(--display); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); letter-spacing: 0.02em; }

/* ===== Décor animé (même que bientot.html, en plus discret pour laisser lire le jeu) ===== */
.bc-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bc-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(4, 9, 22, 0.85) 100%); }
.bc-beam { position: absolute; top: -10vh; width: 80vw; height: 150vh; opacity: 0.9; filter: blur(10px); mix-blend-mode: screen;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg 166deg, rgba(255, 200, 90, 0.18) 172deg, rgba(255, 228, 160, 0.38) 180deg, rgba(255, 200, 90, 0.18) 188deg, transparent 194deg 360deg);
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 90%); mask: linear-gradient(180deg, #000 30%, transparent 90%); }
.bc-beam-l { left: -20vw; transform-origin: 50% 0; animation: beam-l 9s ease-in-out infinite alternate; }
.bc-beam-r { right: -20vw; transform-origin: 50% 0; animation: beam-r 11s ease-in-out infinite alternate; }
@keyframes beam-l { from { transform: rotate(-28deg); } to { transform: rotate(-8deg); } }
@keyframes beam-r { from { transform: rotate(26deg); } to { transform: rotate(6deg); } }
.bc-cage { position: absolute; left: 50%; top: 40vh; width: min(820px, 125vw); height: auto; transform: translate(-50%, -50%); opacity: 0.22;
  fill: none; animation: cage 8s ease-in-out infinite; }
.bc-cage path { stroke: #f2b630; stroke-width: 2; vector-effect: non-scaling-stroke; }
.bc-cage path + path { stroke-dasharray: 6 10; opacity: 0.6; animation: cage-dash 30s linear infinite; }
@keyframes cage { 0%, 100% { opacity: 0.28; transform: translate(-50%, -50%) scale(0.98); } 50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.02); } }
.bc-cage { filter: drop-shadow(0 0 12px rgba(242, 182, 48, 0.55)); }
@keyframes cage-dash { to { stroke-dashoffset: -480; } }
/* Fumée colorée qui dérive lentement */
.bc-bg::before { content: ''; position: absolute; inset: -20%; opacity: 0.8;
  background: radial-gradient(35% 30% at 25% 35%, rgba(90, 140, 255, 0.22), transparent 70%), radial-gradient(30% 28% at 75% 60%, rgba(242, 150, 40, 0.18), transparent 70%), radial-gradient(40% 35% at 50% 20%, rgba(242, 182, 48, 0.16), transparent 70%);
  animation: smoke 22s ease-in-out infinite alternate; }
@keyframes smoke { from { transform: translate(-3%, -2%) rotate(0deg); } to { transform: translate(3%, 3%) rotate(6deg); } }
.bc-sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .bc-beam, .bc-cage, .bc-cage path + path, .bc-bg::before { animation: none; }
}
#app { position: relative; z-index: 1; }
.bc-bg.is-soft .bc-beam { opacity: 0.45; }
.bc-bg.is-soft .bc-cage { top: 46vh; animation-name: cage-soft; }
@keyframes cage-soft { 0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.98); } 50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.02); } }
.bc-bg.is-soft::before { opacity: 0.55; }
.bc-bg.is-soft .bc-sparks { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .bc-bg.is-soft .bc-cage { animation: none; } }
