/* ===========================================================
   GOALZ · thème violet & jaune, 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: #ff6b1a;
  --accent-2: #e85a0c;
  --accent-hover: #ff8746;
  --accent-ink: #1a0800;
  --accent-rgb: 255, 107, 26;
  --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;
}
.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(5, 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); }
.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; }
.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; }
.score-tennis { font: 700 15px/1.2 var(--display); color: var(--text); max-width: 45%; white-space: pre-wrap; text-align: right; }
.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; }
.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 { flex: 1; 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; }
.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); 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 { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal-links a: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; }

/* ---------- À 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; }
