[hidden] { display: none !important; }
:root {
  --bg: #0e0e11;
  --bg2: #16161b;
  --card: #1b1b21;
  --card2: #24242c;
  --line: #2c2c35;
  --text: #f4f4f6;
  --muted: #8f8f9c;
  --red: #e10b1d;
  --red2: #ff2d3d;
  --redbg: rgba(225, 11, 29, .14);
  --win: #2ecc71;
  --lose: #ff4d5e;
  --gold: #f2c14e;
  --felt: #0f5a34;
  --felt2: #0a4426;
  --hdr: 60px;
  --tab: 62px;
  --r: 10px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { -webkit-font-smoothing: antialiased; font-size: 15px; min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.cond { font-family: 'Barlow Condensed', Inter, sans-serif; }
h1, h2, h3 { font-family: 'Barlow Condensed', Inter, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
h1 { font-size: 30px; line-height: 1.05; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--win); } .neg { color: var(--lose); }

/* ---------------- header ---------------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #0b0b0d; border-bottom: 2px solid var(--red); }
.hdr-in { height: var(--hdr); max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 0 16px; }
.logo { height: 30px; width: auto; display: block; }
.topnav { display: flex; height: 100%; gap: 2px; }
.topnav a { display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: #c9c9d1; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.topnav a:hover { color: #fff; }
.topnav a.on { color: #fff; border-bottom-color: var(--red); background: linear-gradient(to top, rgba(225, 11, 29, .16), transparent 70%); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-weight: 800; }
.balance img { width: 26px; height: 26px; }
.balance.bump { animation: bump .6s; }
@keyframes bump { 30% { transform: scale(1.1); border-color: var(--gold); } }
.me-btn { display: flex; align-items: center; gap: 8px; }
.me-btn .av { width: 38px; height: 38px; }
.lvl-pill { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: var(--card2); color: var(--muted); }
.verify-bar { background: #3a0a10; color: #ffd5d9; font-size: 14px; text-align: center; padding: 9px 12px; }
.verify-bar button { text-decoration: underline; font-weight: 700; }

/* ---------------- boutons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; transition: background .15s, transform .08s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: var(--red2); }
.btn-dark { background: var(--card2); color: #fff; border: 1px solid var(--line); }
.btn-dark:hover:not(:disabled) { background: #2e2e38; }
.btn-ghost { color: var(--muted); }
.btn-gold { background: linear-gradient(180deg, #ffd56b, #e2a72b); color: #2a1a00; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 11px; border-radius: 6px; }
.btn-block { width: 100%; }

/* ---------------- mise en page ---------------- */
.layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 18px; padding: 16px 16px calc(var(--tab) + 30px); }
.layout.with-slip { grid-template-columns: minmax(0, 1fr) 340px; }
.view { min-width: 0; }
.slip-col { display: none; }
.layout.with-slip .slip-col { display: block; position: sticky; top: calc(var(--hdr) + 16px); align-self: start; max-height: calc(100vh - var(--hdr) - 32px); overflow: auto; }
.layout.wide { max-width: 1400px; }
.section { margin-bottom: 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

/* ---------------- bandeau promo ---------------- */
.promos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.promo { position: relative; overflow: hidden; border-radius: 12px; padding: 18px; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); background: var(--card); }
.promo h2 { font-size: 26px; line-height: 1; }
.promo p { margin: 6px 0 12px; color: #d7d7de; font-size: 13px; max-width: 34ch; }
.promo.main { background: radial-gradient(500px 220px at 85% 0%, rgba(255, 45, 61, .55), transparent 60%), linear-gradient(120deg, #2a0509, #120206); border-color: #4a0b12; }
.promo.green { background: radial-gradient(260px 160px at 80% 10%, #1f8a50, transparent 70%), linear-gradient(140deg, #0c3d24, #08251a); border-color: #145c37; }
.promo.gold { background: radial-gradient(260px 160px at 80% 10%, rgba(242, 193, 78, .45), transparent 70%), linear-gradient(140deg, #2a2108, #14100a); border-color: #4b3b10; }
.promo .deco { position: absolute; right: -10px; top: -10px; opacity: .9; pointer-events: none; }
.promo .btn { align-self: flex-start; }

/* ---------------- sport ---------------- */
.sport-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; }
.sport-wrap > div { min-width: 0; }
.comp-nav { position: sticky; top: calc(var(--hdr) + 16px); align-self: start; }
.comp-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #cfcfd6; text-align: left; }
.comp-nav button:hover { background: var(--card); }
.comp-nav button.on { background: var(--card2); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.comp-nav img, .comp-ico { width: 20px; height: 20px; object-fit: contain; flex: none; }
.comp-ico { display: grid; place-items: center; border-radius: 4px; background: var(--card2); font-size: 9px; font-weight: 800; color: var(--muted); }
.comp-nav .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: #cfcfd6; white-space: nowrap; }
.chip.on { background: #fff; color: #111; border-color: #fff; }
.chip .live-dot { margin-right: 6px; }

.comp-block { margin-bottom: 14px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.comp-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #202027; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.comp-head .cols { margin-left: auto; display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; text-align: center; color: var(--muted); font-size: 11px; }
.ev { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); cursor: pointer; }
.ev:hover { background: #1f1f26; }
.ev-time { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; line-height: 1.3; }
.ev-time b { display: block; color: #fff; font-size: 13px; }
.ev-teams { min-width: 0; display: grid; gap: 4px; }
.ev-team { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; min-width: 0; }
.ev-team > span:not(.g):not(.crest-ph) { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.ev-team .g { flex: none; }
.ev-team img, .crest-ph { width: 18px; height: 18px; object-fit: contain; flex: none; }
.crest-ph { border-radius: 50%; background: var(--card2); display: inline-grid; place-items: center; font-size: 8px; font-weight: 800; color: var(--muted); }
.ev-team .g { margin-left: auto; font-weight: 800; padding-left: 8px; }
.ev.live .ev-team .g { color: var(--red2); }
.odds3 { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.odd { height: 44px; border-radius: 6px; background: var(--card2); border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s; }
.odd small { font-size: 10px; font-weight: 700; color: var(--muted); line-height: 1; margin-bottom: 2px; }
.odd:hover { border-color: #4a4a57; }
.odd.sel { background: var(--red); color: #fff; }
.odd.sel small { color: #ffd6da; }
.odd.locked { opacity: .35; pointer-events: none; }
.more-mk { font-size: 11px; color: var(--muted); font-weight: 700; text-align: right; padding-top: 4px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red2); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.live-tag { color: var(--red2); font-weight: 800; font-size: 11px; text-transform: uppercase; }

/* fiche match */
.match-hero { border-radius: 12px; padding: 22px 16px; text-align: center; background: radial-gradient(600px 200px at 50% 0, #3a0b12, transparent 70%), var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.match-hero .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 10px; }
.match-hero .tm { display: grid; justify-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.match-hero .tm img, .match-hero .tm .crest-ph { width: 56px; height: 56px; font-size: 14px; }
.match-hero .sc { font-family: 'Barlow Condensed'; font-size: 44px; font-weight: 800; }
.market { margin-bottom: 10px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.market-h { padding: 10px 12px; background: #202027; font-weight: 800; font-size: 13px; text-transform: uppercase; display: flex; justify-content: space-between; }
.market-b { padding: 10px; background: var(--card); display: grid; gap: 6px; }
.market-b.c2 { grid-template-columns: repeat(2, 1fr); }
.market-b.c3 { grid-template-columns: repeat(3, 1fr); }
.market-b.c4 { grid-template-columns: repeat(4, 1fr); }
.market-b .odd { height: 48px; flex-direction: row; justify-content: space-between; padding: 0 12px; }
.market-b .odd small { font-size: 12px; margin: 0; color: #cfcfd6; }
.market-b .odd.sel small { color: #fff; }

/* ---------------- coupon ---------------- */
.slip { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.slip-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--red); font-weight: 800; text-transform: uppercase; font-size: 14px; }
.slip-h .n { background: #fff; color: var(--red); border-radius: 10px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; margin-left: 6px; }
.slip-tabs { display: flex; border-bottom: 1px solid var(--line); }
.slip-tabs button { flex: 1; padding: 11px; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.slip-tabs button.on { color: #fff; border-bottom-color: var(--red); }
.leg { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: start; }
.leg .pk { font-weight: 800; font-size: 14px; }
.leg .mk { font-size: 12px; color: var(--muted); }
.leg .gm { font-size: 12px; color: #bdbdc7; margin-top: 2px; }
.leg .o { font-weight: 800; }
.leg .x { color: var(--muted); font-size: 16px; line-height: 1; padding: 2px; }
.slip-foot { padding: 12px 14px; display: grid; gap: 10px; }
.stake { display: flex; gap: 6px; }
.stake input { flex: 1; min-width: 0; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); padding: 0 12px; font-weight: 800; font-size: 16px; }
.stake input:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button { height: 32px; border-radius: 6px; background: var(--card2); font-weight: 700; font-size: 13px; }
.sum { display: grid; gap: 4px; font-size: 13px; }
.sum div { display: flex; justify-content: space-between; }
.sum .gain { font-size: 18px; font-weight: 800; color: var(--gold); }
.slip-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 14px; }
.slip-fab { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 10px); z-index: 45; height: 52px; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 800; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* mes paris */
.bet { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; overflow: hidden; }
.bet-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #202027; font-size: 12px; color: var(--muted); font-weight: 700; }
.badge { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; background: var(--card2); color: #cfcfd6; }
.badge.WON { background: rgba(46, 204, 113, .15); color: var(--win); }
.badge.LOST { background: rgba(255, 77, 94, .14); color: var(--lose); }
.bet-l { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.bet-l .dot { width: 8px; height: 8px; border-radius: 50%; background: #555; display: inline-block; margin-right: 6px; }
.bet-l .dot.WON { background: var(--win); } .bet-l .dot.LOST { background: var(--lose); } .bet-l .dot.VOID { background: #999; }
.bet-f { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 800; }

/* ---------------- grille ---------------- */
.grid-hero { border-radius: 12px; padding: 20px; margin-bottom: 14px; background: radial-gradient(500px 200px at 90% 0, rgba(242, 193, 78, .35), transparent 70%), linear-gradient(130deg, #1e1608, #120f0a); border: 1px solid #3d300f; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jackpot { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 44px; color: var(--gold); line-height: 1; }
.g-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 168px; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); }
.g-row:first-child { border-top: 0; }
.g-row .idx { font-weight: 800; color: var(--muted); text-align: center; }
.g-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.g-pick button { height: 40px; border-radius: 6px; background: var(--card2); font-weight: 800; position: relative; border: 1px solid transparent; }
.g-pick button .pc { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.g-pick button.sel { background: var(--gold); color: #2a1a00; }
.g-pick button.sel .pc { color: #5a4300; }
.g-pick button.ok { box-shadow: 0 0 0 2px var(--win) inset; }
.g-pick button.ko { box-shadow: 0 0 0 2px var(--lose) inset; }
.g-pick button:disabled { cursor: default; }
.rank-row { display: grid; grid-template-columns: 36px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--card); }
.rank-row.me { background: #2a1015; }
.rank-row .rk { font-weight: 800; text-align: center; color: var(--muted); }
.rank-row .av { width: 36px; height: 36px; }
.rank-row.up { box-shadow: inset 3px 0 0 var(--win); }
.rank-row.down { box-shadow: inset 3px 0 0 var(--lose); }

/* ---------------- avatar ---------------- */
.av { display: inline-block; border-radius: 22%; overflow: hidden; flex: none; line-height: 0; }
.av svg { width: 100%; height: 100%; }

/* ---------------- casino : tables en tapis vert ---------------- */
.felt { background: radial-gradient(ellipse at 50% 35%, #178048 0%, var(--felt) 45%, var(--felt2) 100%); border: 10px solid #3b2414; border-radius: 22px; box-shadow: inset 0 0 60px rgba(0, 0, 0, .55), 0 18px 40px rgba(0, 0, 0, .5); position: relative; }
.felt-label { font-family: 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .25em; color: rgba(255, 255, 255, .22); font-weight: 800; font-size: 13px; text-align: center; }
.casino-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.game-tile { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); display: block; transition: transform .15s, border-color .15s; }
.game-tile:hover { transform: translateY(-2px); border-color: #4a4a57; }
.game-tile .art { height: 150px; display: grid; place-items: center; position: relative; }
.game-tile .meta { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }

/* cartes */
.cardf { width: 64px; height: 90px; border-radius: 7px; background: #fff; color: #111; position: relative; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); font-family: 'Barlow Condensed', Inter; flex: none; animation: deal .35s cubic-bezier(.2, .8, .2, 1) both; }
.cardf.red { color: #d0101f; }
.cardf .tl { position: absolute; top: 4px; left: 6px; font-weight: 800; font-size: 20px; line-height: .9; text-align: center; }
.cardf .tl span { display: block; font-size: 15px; }
.cardf .mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.cardf.back { background: repeating-linear-gradient(45deg, #b00916 0 6px, #e10b1d 6px 12px); border: 4px solid #fff; }
.cardf.back .mid { color: rgba(255, 255, 255, .85); font-size: 22px; }
.cardf.sm { width: 42px; height: 60px; border-radius: 5px; }
.cardf.sm .tl { font-size: 15px; left: 4px; top: 3px; } .cardf.sm .tl span { font-size: 12px; }
.cardf.sm .mid { font-size: 22px; padding-top: 10px; }
.cardf.sm.back { border-width: 3px; }
.cardf.dim { filter: brightness(.45); }
@keyframes deal { from { transform: translateY(-40px) rotate(-8deg); opacity: 0; } }
.cards { display: flex; gap: 6px; justify-content: center; }
.cards.overlap .cardf + .cardf { margin-left: -28px; }

/* jetons */
.chipc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; position: relative; border: 4px dashed rgba(255, 255, 255, .85); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(0, 0, 0, .15); flex: none; transition: transform .1s; }
.chipc.on { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--gold), 0 6px 10px rgba(0, 0, 0, .4); }
.c1 { background: #8a8a96; } .c5 { background: #d0101f; } .c25 { background: #1f9d55; } .c100 { background: #16161a; } .c500 { background: #7c3aed; } .c1000 { background: #e2a72b; color: #2a1a00; }
.chip-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* blackjack */
.bj-table { padding: 24px 16px 20px; min-height: 420px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; }
.bj-zone { display: grid; justify-items: center; gap: 8px; }
.bj-val { background: rgba(0, 0, 0, .55); padding: 3px 10px; border-radius: 12px; font-weight: 800; font-size: 13px; }
.bj-hands { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.bj-hand { display: grid; justify-items: center; gap: 8px; padding: 8px; border-radius: 12px; }
.bj-hand.active { background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 2px rgba(242, 193, 78, .6); }
.bj-res { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.bj-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bj-banner { text-align: center; font-family: 'Barlow Condensed'; font-weight: 800; font-size: 34px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* roulette */
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rl-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.rl-wheel-box { padding: 18px; display: grid; justify-items: center; gap: 12px; }
.rl-wheel { width: 290px; height: 290px; position: relative; }
.rl-wheel svg { width: 100%; height: 100%; }
.rl-rot { transform-origin: 150px 150px; }
.rl-result { font-family: 'Barlow Condensed'; font-weight: 800; font-size: 26px; min-height: 32px; }
.rl-recent { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.rl-recent span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.n-red { background: #c8101e; } .n-black { background: #1a1a1f; border: 1px solid #333; } .n-green { background: #11893f; }
.rl-board { padding: 14px; overflow-x: auto; }
.rl-grid { display: grid; grid-template-columns: 46px repeat(12, minmax(34px, 1fr)) 46px; grid-template-rows: repeat(3, 44px) 38px 38px; gap: 3px; min-width: 620px; }
.rl-grid.vert { grid-template-columns: 34px 34px repeat(3, minmax(0, 1fr)); grid-template-rows: 38px repeat(12, 34px) 34px; min-width: 0; }
.rl-grid.vert .vt { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; }
.rl-cell { position: relative; border-radius: 4px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; border: 1px solid rgba(255, 255, 255, .25); user-select: none; }
.rl-cell.out { background: rgba(0, 0, 0, .2); font-size: 12px; text-transform: uppercase; }
.rl-cell:hover { filter: brightness(1.25); }
.rl-cell.hit { box-shadow: 0 0 0 3px var(--gold); z-index: 1; }
.rl-stack { position: absolute; right: -6px; top: -6px; z-index: 2; min-width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #2a1a00; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px dashed #fff; padding: 0 3px; }

/* poker */
.pk-lobby .tbl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--card); }
.pk-stage { position: relative; max-width: 980px; margin: 0 auto; }
.pk-felt { aspect-ratio: 2.1 / 1; border-radius: 999px; border-width: 14px; margin: 54px 40px 70px; }
.pk-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; }
.pk-pot { background: rgba(0, 0, 0, .5); padding: 4px 14px; border-radius: 14px; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.pk-pot img { width: 18px; height: 18px; }
.pk-board { display: flex; gap: 6px; min-height: 90px; align-items: center; }
.pk-slot { width: 64px; height: 90px; border-radius: 7px; border: 2px dashed rgba(255, 255, 255, .13); }
.pk-seat { position: absolute; width: 132px; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; z-index: 2; }
.pk-seat .plate { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: center; background: rgba(12, 12, 15, .92); border: 1px solid #333; border-radius: 10px; padding: 5px; position: relative; }
.pk-seat .plate .av { width: 44px; height: 44px; }
.pk-seat .nm { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-seat .stk { font-weight: 800; font-size: 13px; color: var(--gold); }
.pk-seat.turn .plate { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(242, 193, 78, .5); }
.pk-seat.folded { opacity: .45; }
.pk-seat.me .plate { border-color: var(--red); }
.pk-seat.winner .plate { box-shadow: 0 0 0 3px var(--win), 0 0 24px rgba(46, 204, 113, .6); }
.pk-seat .timer { position: absolute; left: 6px; right: 6px; bottom: -4px; height: 3px; border-radius: 2px; background: #333; overflow: hidden; }
.pk-seat .timer i { display: block; height: 100%; background: var(--gold); transform-origin: left; }
.pk-seat .hc { display: flex; gap: 2px; height: 60px; }
.pk-seat .tag { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: #000; }
.pk-seat .hn { font-size: 11px; font-weight: 700; color: #ffe08a; }
.pk-bet { position: absolute; transform: translate(-50%, -50%); z-index: 1; display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .55); padding: 2px 8px 2px 3px; border-radius: 12px; font-weight: 800; font-size: 12px; }
.pk-bet img { width: 18px; height: 18px; }
.pk-dealer { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #111; font-weight: 900; font-size: 12px; display: grid; place-items: center; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.pk-empty { width: 70px; height: 70px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .15); display: grid; place-items: center; color: rgba(255, 255, 255, .3); font-size: 11px; font-weight: 700; }
.pk-bar { position: sticky; bottom: calc(var(--tab) + 8px); z-index: 20; display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(16, 16, 20, .96); border: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.pk-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pk-raise { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px; gap: 10px; align-items: center; }
.pk-raise input[type=range] { width: 100%; accent-color: var(--red); }
.pk-raise input[type=number] { height: 36px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); padding: 0 8px; font-weight: 800; width: 100%; }
.pk-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-log { font-size: 12px; color: var(--muted); max-height: 140px; overflow: auto; display: grid; gap: 2px; padding: 10px 12px; }

/* ---------------- roue ---------------- */
.wheel-box { display: grid; justify-items: center; gap: 16px; padding: 10px 0 4px; }
.wheel { width: min(320px, 78vw); aspect-ratio: 1; position: relative; }
.wheel svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.wheel .ptr { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); z-index: 2; }
.wheel-rot { transform-origin: 50% 50%; transform-box: fill-box; }

/* ---------------- profil / avatar ---------------- */
.prof-head { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 12px; background: radial-gradient(500px 160px at 0 0, rgba(225, 11, 29, .3), transparent 70%), var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.prof-head .av { width: 110px; height: 110px; }
.xpbar { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: 6px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red2)); }
.div-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--card2); }
.div-badge i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.stat { padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 20px; font-family: 'Barlow Condensed'; }
.stat span { font-size: 12px; color: var(--muted); }
.editor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
.editor-prev { position: sticky; top: calc(var(--hdr) + 16px); align-self: start; display: grid; gap: 10px; justify-items: center; }
.editor-prev .av { width: 220px; height: 220px; }
.slot-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.item { position: relative; border-radius: 10px; background: var(--card); border: 2px solid var(--line); padding: 6px; display: grid; gap: 4px; justify-items: center; text-align: center; font-size: 12px; font-weight: 700; }
.item .av { width: 84px; height: 84px; }
.item.on { border-color: var(--red); }
.item .price { font-size: 11px; color: var(--gold); display: flex; align-items: center; gap: 3px; }
.item .price img { width: 12px; height: 12px; }
.item.lock { opacity: .5; }
.item .lockt { font-size: 10px; color: var(--muted); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; }
.swatch.on { border-color: #fff; }

/* ---------------- formulaires / modales ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); animation: fade .2s; }
.modal-box { position: relative; width: 100%; max-width: 430px; max-height: 92vh; overflow: auto; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-box.wide { max-width: 560px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 16px; }
.x-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--card2); font-size: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #c9c9d1; }
.form input { height: 46px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; font-size: 16px; }
.form input:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.form .err { color: var(--lose); font-size: 13px; min-height: 1em; margin: 0; }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.tabs { display: flex; background: var(--card); border-radius: 8px; padding: 4px; }
.tabs button { flex: 1; height: 36px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.tabs button.on { background: var(--card2); color: #fff; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); padding: 0 12px; }

.toasts { position: fixed; top: calc(var(--hdr) + 10px); left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, 92vw); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 10px; background: #f4f4f6; color: #111; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: pop .25s; }
.toast.err { background: var(--red); color: #fff; }
.toast.gold { background: linear-gradient(180deg, #ffd56b, #e2a72b); color: #2a1a00; }

.footer { margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

/* ---------------- barre d'onglets mobile ---------------- */
.tabbar { display: none; }
.i { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; display: inline-block; }
.i-ball { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7l4 3-1.5 4.5h-5L8 10z'/%3E%3Cpath d='M12 3v4M16 10l4.5-1.5M14.5 14.5l2.5 4M9.5 14.5l-2.5 4M8 10L3.5 8.5'/%3E%3C/svg%3E"); }
.i-grid { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M3 15h18M9 3v18M15 3v18'/%3E%3C/svg%3E"); }
.i-spade { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C9 6 4 9 4 13.5A4 4 0 0 0 11 16l-1.5 5h5L13 16a4 4 0 0 0 7-2.5C20 9 15 6 12 2z'/%3E%3C/svg%3E"); }
.i-dice { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm3 3.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm-4 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm-4 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E"); }
.i-trophy { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M7 4h10v5a5 5 0 01-10 0z'/%3E%3Cpath d='M7 6H4a3 3 0 003 4M17 6h3a3 3 0 01-3 4M12 14v4M8 20h8'/%3E%3C/svg%3E"); }

@media (max-width: 1100px) {
  .layout.with-slip { grid-template-columns: 1fr; }
  .layout.with-slip .slip-col { display: none; }
  .promos { grid-template-columns: 1fr 1fr; }
  .promo.main { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .topnav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0b0b0d; border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
  .tabbar a.on { color: #fff; box-shadow: inset 0 2px 0 var(--red); }
  .sport-wrap { grid-template-columns: minmax(0, 1fr); }
  .promos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -10px 14px; padding: 0 10px; }
  .promos::-webkit-scrollbar { display: none; }
  .promo { flex: 0 0 82%; scroll-snap-align: start; min-height: 120px; padding: 14px; }
  .promo h2 { font-size: 22px; }
  .promo p { margin: 4px 0 10px; }
  .comp-nav { display: none; }
  .layout { padding: 12px 10px calc(var(--tab) + 80px); }
  .rl-wrap, .editor, .two-col { grid-template-columns: minmax(0, 1fr) !important; }
  .rl-wheel { width: 210px; height: 210px; }
  .rl-wheel-box { padding: 12px; gap: 8px; }
  .rl-board { padding: 8px; }
  .editor-prev { position: static; }
  .editor-prev .av { width: 150px; height: 150px; }
  .pk-felt { margin: 50px 6px 70px; aspect-ratio: 1.15 / 1; border-width: 10px; }
  .pk-seat { width: 104px; }
  .pk-seat .plate { grid-template-columns: 34px minmax(0, 1fr); padding: 4px; }
  .pk-seat .plate .av { width: 34px; height: 34px; }
  .pk-slot, .pk-board .cardf { width: 46px; height: 66px; }
  .pk-board .cardf .tl { font-size: 16px; } .pk-board .cardf .mid { font-size: 24px; padding-top: 8px; }
  .hdr-in { gap: 10px; padding: 0 10px; }
  .pk-bar { padding: 10px; }
  .pk-acts .btn { font-size: 12px; padding: 0 6px; white-space: normal; line-height: 1.1; }
  .pk-raise { grid-template-columns: minmax(0, 1fr) 76px; }
  .pk-presets { grid-column: 1 / -1; }
  .pk-seat .cardf.sm { width: 32px; height: 46px; } .pk-seat .cardf.sm .tl { font-size: 12px; } .pk-seat .cardf.sm .mid { font-size: 16px; } .pk-seat .hc { height: 46px; }
  .sec-head { flex-wrap: wrap; }
  .logo { height: 26px; }
  .me-btn .lvl-pill { display: none; }
}
@media (max-width: 560px) {
  .odds3, .comp-head .cols { grid-template-columns: repeat(3, 52px); gap: 4px; }
  .odd { height: 42px; font-size: 13px; }
  .ev { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; padding: 10px 8px; }
  .ev-team { font-size: 13px; }
  .g-row { grid-template-columns: minmax(0, 1fr) 150px; }
  .g-row .idx { display: none; }
  .market-b.c4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 26px; }
  .cardf { width: 54px; height: 76px; } .cardf .tl { font-size: 17px; } .cardf .mid { font-size: 28px; }
  .bal-txt { font-size: 14px; }
}

/* ================= v2 : marque, fil des gains, sports, quêtes, visuels ================= */
.brand { display: flex; align-items: center; gap: 9px; }
img.logo { height: 38px; width: 38px; border-radius: 9px; object-fit: cover; }
.brand-name { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-size: 28px; letter-spacing: .5px; color: #fff; line-height: 1; }
.brand-name b { color: var(--red); font-weight: 800; }
.hdr-quests { position: relative; padding: 0 10px; font-size: 16px; }
.hdr-quests b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: #2a1a00; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }

.ticker { background: #131317; border-bottom: 1px solid var(--line); overflow: hidden; height: 30px; font-size: 12px; color: #c9c9d1; }
.ticker-track { display: inline-flex; gap: 38px; white-space: nowrap; line-height: 30px; padding-left: 20px; animation: tick 60s linear infinite; }
.ticker-track span::before { content: '●'; color: var(--win); font-size: 8px; margin-right: 8px; vertical-align: 2px; }
.ticker-track b { color: #fff; } .ticker-track em { color: var(--gold); font-style: normal; font-weight: 800; }
@keyframes tick { to { transform: translateX(-50%); } }

.sports-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.sports-bar::-webkit-scrollbar { display: none; }
.sp { flex: none; display: grid; justify-items: center; gap: 4px; min-width: 84px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 12px; text-transform: uppercase; color: #cfcfd6; }
.sp span { font-size: 22px; line-height: 1; }
.sp.on { background: var(--red); border-color: var(--red); color: #fff; }
.odds3.two { grid-template-columns: repeat(2, 99px); }
.comp-head .cols.two { grid-template-columns: repeat(2, 99px); }
.g-pick.two { grid-template-columns: repeat(2, 1fr); }

/* bandeaux avec visuels générés (le dégradé reste en secours si l'image manque) */
.promo { background-size: cover; background-position: right center; }
.promo.main { background-image: linear-gradient(90deg, #0b0204 5%, rgba(11, 2, 4, .6) 38%, transparent 62%), var(--img), linear-gradient(120deg, #2a0509, #120206); }
.promo.gold { background-image: linear-gradient(90deg, rgba(16, 12, 4, .92) 10%, rgba(16, 12, 4, .45) 55%, transparent 85%), var(--img), linear-gradient(140deg, #2a2108, #14100a); }
.promo.green { background-image: linear-gradient(90deg, rgba(4, 18, 11, .92) 10%, rgba(4, 18, 11, .45) 55%, transparent 85%), var(--img), linear-gradient(140deg, #0c3d24, #08251a); border-color: #145c37; }
.promo.main { min-height: 170px; }
.promo h2, .promo p { text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.grid-hero { background-image: linear-gradient(90deg, #100c04 30%, rgba(16, 12, 4, .6) 60%, rgba(16, 12, 4, .3)), var(--img), linear-gradient(130deg, #1e1608, #120f0a) !important; background-size: cover; background-position: right center; }
.pots { display: grid; gap: 10px; text-align: right; }
.pots .lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.casino-hero { border-radius: 12px; padding: 26px 20px; margin-bottom: 16px; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid #145c37; background-image: linear-gradient(90deg, #04120b 25%, rgba(4, 18, 11, .5) 60%, transparent), var(--img), linear-gradient(140deg, #0c3d24, #08251a); background-size: cover; background-position: right center; }
.casino-hero h1 { font-size: 40px; } .casino-hero p { margin: 6px 0 0; max-width: 46ch; color: #d7d7de; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.game-tile .art { height: 190px; background: #0c3d24 center/cover no-repeat; }

/* avatars illustrés + cadres */
.av { position: relative; background: var(--card2); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.fr-red { box-shadow: 0 0 0 2px var(--red); }
.av.fr-gold { box-shadow: 0 0 0 2px #e2b13c, 0 0 10px rgba(226, 177, 60, .5); }
.av.fr-diamond { box-shadow: 0 0 0 2px #8ab4ff, 0 0 12px rgba(138, 180, 255, .7); }
.items { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.item .av { width: 100px; height: 100px; }
.pk-seat .plate .av { border-radius: 8px; }

/* quêtes et succès */
.quest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--card); }
.quest:first-child { border-top: 0; }
.quest.done { background: linear-gradient(90deg, rgba(242, 193, 78, .12), var(--card) 60%); }
.quest.claimed { opacity: .5; }
.quest .xpbar { margin: 6px 0 2px; }
.quest.done .xpbar i { background: var(--gold); }
.q-rew { display: grid; justify-items: end; gap: 6px; font-weight: 800; color: var(--gold); }
.q-rew img { vertical-align: -3px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ach { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); opacity: .55; }
.ach.on { opacity: 1; border-color: #4b3b10; background: linear-gradient(120deg, rgba(242, 193, 78, .1), var(--card) 50%); }
.ach-ico { font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; filter: grayscale(1); }
.ach.on .ach-ico { filter: none; background: #2a2108; }
.ach-rew { color: var(--gold); font-weight: 800; font-size: 13px; }
@media (max-width: 860px) {
  .brand-name { font-size: 22px; } img.logo { width: 32px; height: 32px; }
  .hdr-right { gap: 6px; } #hdr-wheel { display: none; }
  .sp { min-width: 72px; padding: 8px 8px; }
  .pots { text-align: left; }
}
@media (max-width: 560px) { .odds3.two, .comp-head .cols.two { grid-template-columns: repeat(2, 80px); } }
.promo.main, .promo.gold, .promo.green { background-size: cover; background-position: right center; background-repeat: no-repeat; }

/* ================= v3 : Expresso, paris système ================= */
.xp-box { border-radius: 12px; padding: 18px; margin-bottom: 20px; border: 1px solid #4b3b10; display: grid; gap: 14px; background: radial-gradient(500px 200px at 100% 0, rgba(242, 193, 78, .28), transparent 70%), linear-gradient(130deg, #1e1608, #120f0a); }
.xp-buyins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.xp-btn { display: grid; gap: 2px; justify-items: center; padding: 12px 8px; border-radius: 10px; background: linear-gradient(180deg, #ffd56b, #e2a72b); color: #2a1a00; font-weight: 800; transition: transform .1s; }
.xp-btn:hover { transform: translateY(-2px); }
.xp-btn b { font-family: 'Barlow Condensed'; font-size: 28px; line-height: 1; }
.xp-btn .muted { color: #6b4e00; font-size: 11px; text-transform: uppercase; } .xp-btn small { font-size: 11px; font-weight: 700; color: #5a4300; }
.xp-mults { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.xp-mults span { padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); } .xp-mults b { color: var(--gold); }
.xp-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--card2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.xp-bar { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; background: linear-gradient(90deg, #2a2108, #17130a); border: 1px solid #4b3b10; margin: 0 auto 4px; max-width: 760px; font-size: 14px; }
.xp-prize { color: var(--gold); font-family: 'Barlow Condensed'; font-size: 24px; } .xp-bar em { font-style: normal; font-weight: 800; color: var(--red2); }
.sys-k { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 14px 0; font-size: 12px; }
.sys-k button { height: 28px; padding: 0 10px; border-radius: 6px; background: var(--card2); font-weight: 800; font-size: 12px; }
.sys-k button.on { background: var(--red); color: #fff; }
.sys-help { margin: 8px 14px 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* v4 : onglets des grilles par sport */
.g-tabs{display:flex;gap:8px;overflow-x:auto;margin-bottom:12px;padding-bottom:2px}
.g-tabs button{display:flex;align-items:center;gap:8px;white-space:nowrap;background:#1a1b20;border:1px solid #2a2c33;color:#c9ccd3;border-radius:10px;padding:9px 14px;font-weight:700;font-size:13px;cursor:pointer}
.g-tabs button.on{background:var(--red);border-color:transparent;color:#fff}
.g-tabs small{font-weight:800;color:#f5b82e;font-size:12px}
.g-tabs button.on small{color:#fff}

/* v5 : connexion Google */
.btn-google{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#1f1f1f;font-weight:700;text-decoration:none}
.btn-google:hover{background:#f1f1f1}
.or{display:flex;align-items:center;gap:10px;color:#7d818c;font-size:12px;text-transform:uppercase;font-weight:700}
.or::before,.or::after{content:"";flex:1;height:1px;background:#2a2c33}

/* v6 : défis */
.i-flag { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 21V4M5 4h11l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.ch-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 24px;border-radius:14px;border:1px solid #33271a;margin-bottom:14px;background:linear-gradient(120deg,#1b1410 0%,#141417 60%)}
.ch-hero.sv{background:linear-gradient(120deg,#2a0d10 0%,#141417 65%);border-color:#4a1c20}
.ch-hero.bw{background:linear-gradient(120deg,#231c08 0%,#141417 65%);border-color:#4a3c14}
.ch-hero h1{margin:0 0 6px;font-family:var(--display,inherit);text-transform:uppercase;letter-spacing:.02em}
.ch-hero p.muted{margin:0;max-width:62ch}
.ch-hero .pots{display:flex;gap:22px;text-align:right;flex-shrink:0}
.ch-hero .lbl{font-size:11px;text-transform:uppercase;font-weight:700}
.ch-state{margin-bottom:12px;border-left:3px solid #2fbf71}
.ch-state.ko{border-left-color:var(--red)}
.sv-used{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sv-used span{font-size:12px;font-weight:700;padding:3px 8px;border-radius:999px;background:#24262c;color:#c9ccd3}
.sv-used span.ok{background:#12351f;color:#7be0a4}.sv-used span.ko{background:#3a1216;color:#ff8d95}
.sv-row{display:grid;grid-template-columns:74px minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;padding:10px 12px;border-top:1px solid var(--line)}
.sv-row:first-child{border-top:0}
.sv-time{font-size:11px;font-weight:700;display:grid;gap:2px}.sv-time b{color:#fff;font-size:13px}
.sv-team{display:flex;align-items:center;gap:8px;min-width:0;height:46px;padding:0 10px;border-radius:8px;background:var(--card2);border:1px solid transparent;font-weight:700;text-align:left;color:inherit;cursor:pointer}
.sv-team img,.sv-team .crest-ph{width:24px;height:24px;flex-shrink:0;object-fit:contain}
.sv-team span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sv-team small{margin-left:auto;font-size:10px;color:var(--muted);white-space:nowrap}
.sv-team:hover:not(:disabled){border-color:#555}
.sv-team.sel{background:var(--red);color:#fff}
.sv-team:disabled{opacity:.45;cursor:default}.sv-team.sel:disabled{opacity:1}
.rank-row.out b:first-of-type{opacity:.55}
.py-wrap{display:grid;gap:6px;justify-items:center}
.py-row{width:var(--w);min-width:300px;max-width:100%;display:grid;grid-template-columns:70px minmax(0,1fr) 132px;gap:10px;align-items:center;padding:8px 12px;background:var(--card);border:1px solid var(--line);border-radius:10px}
.py-row.ok{border-color:#2fbf71;background:#10241a}.py-row.ko{border-color:#6b1f26;background:#22090c;opacity:.8}
.py-prize{text-align:center}.py-prize small{display:block;font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:700}.py-prize b{color:#f5b82e;font-size:17px}
.py-match .muted{font-size:11px;font-weight:700}
.py-row .g-pick button{height:36px}
@media (max-width: 900px){
  .tabbar{grid-template-columns:repeat(6,1fr)!important}
  .ch-hero{flex-direction:column;align-items:flex-start;padding:16px}
  .ch-hero .pots{text-align:left}
  .py-row{width:100%!important;grid-template-columns:54px minmax(0,1fr) 114px;padding:8px}
  .sv-row{grid-template-columns:1fr 1fr;row-gap:6px}.sv-row .sv-time{grid-column:1/-1;display:flex;gap:8px}.sv-row>span.muted{display:none}
}

/* v7 : bouton son, lobby poker sur mobile */
.snd-btn{margin-left:auto;margin-right:8px;width:34px;height:34px;border-radius:8px;background:#1a1b20;border:1px solid #2a2c33;font-size:15px;line-height:1;cursor:pointer;flex-shrink:0}
.snd-btn.off{opacity:.55}
.snd-btn + .hdr-right{margin-left:0}
@media (max-width: 700px){
  .pk-lobby .tbl{grid-template-columns:minmax(0,1fr) auto;row-gap:8px;padding:12px}
  .pk-lobby .tbl > :first-child{grid-column:1/-1}
  .pk-lobby .tbl > :last-child{grid-column:1/-1;display:flex;gap:8px}
  .pk-lobby .tbl > :last-child .btn{flex:1}
  .pk-lobby .tbl:first-child{display:none}
  .snd-btn{width:30px;height:30px;margin-right:4px}
}

/* v8 : roulette en direct */
.lv-pill{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--muted)}
.lv-timer{width:100%;height:5px;border-radius:3px;background:rgba(0,0,0,.35);overflow:hidden}
.lv-timer div{height:100%;width:0;background:#2fbf71}.lv-timer div.spin{background:var(--red)}.lv-timer div.result{background:#f5b82e}
.lv-table{margin-top:12px;overflow:hidden}
.lv-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line);font-size:13px}
.lv-last{padding:8px 12px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}.lv-last:empty{display:none}
.rl-grid.closed{opacity:.72;pointer-events:none}
#lv-players{max-height:260px;overflow:auto}

.lv-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid var(--line)}
.lv-row:first-child{border-top:0}.lv-row.me{background:#2a0f13}
.lv-row .avatar,.lv-row img{width:34px;height:34px;flex-shrink:0}
/* v9 : vrais jetons (visuels ChatGPT) */
.chipc{width:52px;height:52px;border:0!important;background-size:cover!important;background-position:center!important;background-color:transparent!important;box-shadow:0 3px 6px rgba(0,0,0,.45)!important;text-shadow:0 1px 2px rgba(0,0,0,.6);font-size:13px}
.chipc.on{transform:translateY(-6px);box-shadow:0 0 0 3px var(--gold),0 8px 12px rgba(0,0,0,.5)!important}
.c1{background-image:url(/img/gen/chip-c1.webp)!important;color:#22232a!important;text-shadow:none}
.c5{background-image:url(/img/gen/chip-c5.webp)!important}.c25{background-image:url(/img/gen/chip-c25.webp)!important}
.c100{background-image:url(/img/gen/chip-c100.webp)!important}.c500{background-image:url(/img/gen/chip-c500.webp)!important}
.c1000{background-image:url(/img/gen/chip-c1000.webp)!important;color:#2a1a00!important;text-shadow:none}
.rl-stack{background:url(/img/gen/chip-c1000.webp) center/cover!important;width:28px;height:28px;min-width:28px;box-shadow:0 2px 4px rgba(0,0,0,.5)}
@media (max-width:700px){.chipc{width:46px;height:46px}}

/* v10 : pied de page */
.foot{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;padding:26px 16px 22px;font-size:12px;color:#6b6b78}
.foot a{color:#8f8f9c;text-decoration:none}.foot a:hover{color:#fff}
@media (max-width:900px){.foot{padding-bottom:calc(var(--tab) + 26px)}}

/* v11 : fiche match à onglets + MyMatch */
.mk-bar{display:flex;gap:10px;align-items:center;margin:14px 0 10px}
.mk-bar .pills{display:flex;gap:6px;overflow-x:auto;flex:1;padding-bottom:2px}
.mk-bar .pills button{white-space:nowrap;padding:8px 14px;border-radius:999px;background:#1a1b20;border:1px solid #2a2c33;color:#c9ccd3;font-weight:700;font-size:13px;cursor:pointer}
.mk-bar .pills button.on{background:#fff;color:#111;border-color:#fff}
.mm-toggle{display:grid;text-align:left;padding:6px 14px;border-radius:10px;border:1px solid #f5b82e;background:transparent;color:#f5b82e;cursor:pointer;flex-shrink:0;line-height:1.15}
.mm-toggle b{font-family:'Barlow Condensed',Inter,sans-serif;font-size:17px;text-transform:uppercase;letter-spacing:.02em}
.mm-toggle span{font-size:10px;font-weight:700;opacity:.85}
.mm-toggle.on{background:#f5b82e;color:#221500}
.mm-panel{position:sticky;top:64px;z-index:20;margin-bottom:12px;padding:12px 14px;border-radius:12px;border:1px solid #f5b82e;background:#1c1708;box-shadow:0 10px 24px rgba(0,0,0,.45)}
.mm-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.mm-h b{color:#f5b82e;font-family:'Barlow Condensed',Inter,sans-serif;font-size:20px;text-transform:uppercase}.mm-h span{font-size:12px}
.mm-leg{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:6px 0;border-top:1px solid #3a3013}
.mm-leg small{display:block;color:var(--muted);font-size:11px}.mm-leg button{color:var(--muted);font-size:14px}
.mm-foot{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:10px;align-items:center;margin-top:8px;padding-top:10px;border-top:1px solid #3a3013}
.mm-odds{font-size:26px;font-weight:800;color:#f5b82e;line-height:1}
.mm-foot .stake input{width:100%;height:42px;border-radius:8px;background:#0e0e11;border:1px solid #3a3013;color:#fff;font-weight:800;font-size:16px;padding:0 10px}
.odd.mm.sel{background:#f5b82e!important;color:#221500!important}.odd.mm.sel small{color:#4a3505!important}
.market-b.c5{grid-template-columns:repeat(5,1fr)}.market-b.c6{grid-template-columns:repeat(3,1fr)}.market-b.c7{grid-template-columns:repeat(3,1fr)}
@media (max-width:700px){
  .mk-bar{flex-direction:column-reverse;align-items:stretch}.mm-toggle{display:flex;justify-content:space-between;align-items:center}
  .mm-panel{top:56px}.mm-foot{grid-template-columns:1fr 84px}.mm-foot .btn{grid-column:1/-1}
  .market-b.c4{grid-template-columns:repeat(3,1fr)}.market-b.c3 .odd small,.market-b.c4 .odd small{font-size:10px}
}
@media (max-width:700px){.mm-leg{padding:4px 0}.mm-leg small{display:none}.mm-panel{padding:10px 12px}.mm-odds{font-size:22px}}

/* v12 : partage + case à cocher */
.btn-share{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:1px solid #f5b82e;background:transparent;color:#f5b82e;font-weight:700;font-size:12px;cursor:pointer;text-transform:uppercase;letter-spacing:.02em}
.btn-share:hover{background:#f5b82e;color:#221500}
.bet-f .btn-share{margin-left:auto;margin-right:10px}
.share-box{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:16px;align-items:start}
.share-box img{width:100%;border-radius:10px;border:1px solid var(--line)}
.share-act{display:grid;gap:8px}
.chk{display:flex!important;gap:10px;align-items:flex-start;font-size:13px;color:#c9ccd3;font-weight:500;cursor:pointer}
.chk input{width:18px;height:18px;flex-shrink:0;margin:1px 0 0;accent-color:#e10b1d}
@media (max-width:600px){.share-box{grid-template-columns:1fr}.share-box img{max-width:240px;justify-self:center}}
.form .chk,.form .chk span{font-weight:500!important;text-transform:none!important}

/* v13 : matchs entre joueurs */
.sp-cm{text-decoration:none;border-color:#f5b82e!important;color:#f5b82e!important}
.cm-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;margin-top:14px}
.cm-card{padding:14px;display:grid;gap:10px}
.cm-card.cm-focus{outline:2px solid #f5b82e}
.cm-top{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:700;color:#9aa0ab;text-transform:uppercase}
.cm-top b{color:#fff}
.cm-wait{color:#f5b82e}
.cm-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;text-align:center;font-size:16px}
.cm-sc{font-size:22px;font-weight:800}
.cm-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:12px;color:#9aa0ab}
.cm-me{font-size:13px;padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.05)}
.cm-score{display:grid;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.cm-prop{display:flex;align-items:center;gap:10px}.cm-prop b{font-size:17px}.cm-prop .btn{margin-left:auto}
.cm-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cm-form input{width:86px;padding:8px;border-radius:8px;border:1px solid var(--line);background:#101116;color:#fff;font:inherit}
.cm-by{font-size:12px;color:#9aa0ab}
.cm-by .link,.link{background:none;border:0;padding:0;color:#f5b82e;font:inherit;cursor:pointer;text-decoration:underline}
.cm-create{padding:14px;margin-top:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;align-items:end}
.cm-create label{display:grid;gap:4px;font-size:12px;font-weight:700;color:#9aa0ab}
.cm-create input,.cm-create select{padding:10px;border-radius:8px;border:1px solid var(--line);background:#101116;color:#fff;font:inherit}
.cm-card{align-content:start}

/* v14 : blackjack carte par carte */
.cardf.noanim{animation:none!important}
.cardf.flip{animation:bjflip .55s ease both!important}
@keyframes bjflip{0%{transform:rotateY(90deg) scale(1.06)}100%{transform:none}}
.bj-wait{text-align:center;font-weight:700;color:#f5b82e;letter-spacing:.03em;padding:12px 0;text-transform:uppercase;font-size:13px}

/* v15 : poker sur ordinateur : la barre d'actions passe sous la table au lieu de recouvrir nos cartes */
@media (min-width: 861px){
  .pk-bar{position:static;margin:14px auto 0}
  .pk-stage{max-width:min(980px,calc((100vh - 360px) * 2.1))}
  .pk-felt{margin-bottom:84px}
}
.pk-idle{display:none}
@media (min-width: 861px){.pk-idle{display:grid;place-items:center;min-height:112px;color:#9aa0ab;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.03em}}

/* v16 : écran de fin d'Expresso */
.xp-end-modal .modal-box{max-width:460px;text-align:center}
.xp-end{display:grid;gap:10px;justify-items:center;padding:8px 0 4px}
.xp-end-ico{font-size:64px;line-height:1;animation:xpPop .5s cubic-bezier(.2,1.4,.4,1) both}
.xp-end-gain{font-family:'Barlow Condensed',Inter;font-weight:800;font-size:72px;line-height:1;color:#f5b82e;text-shadow:0 4px 24px rgba(245,184,46,.45);animation:xpPop .6s .15s cubic-bezier(.2,1.4,.4,1) both}
.xp-end-lost{font-family:'Barlow Condensed',Inter;font-weight:800;font-size:28px;text-transform:uppercase}
.xp-end-sub{color:#9aa0ab;font-size:14px}
.xp-end-acts{display:grid;gap:8px;width:100%;margin-top:10px}
.xp-end-acts .btn{height:50px;font-size:15px}
.xp-end.won{background:radial-gradient(circle at 50% 0,rgba(245,184,46,.18),transparent 65%)}
@keyframes xpPop{from{transform:scale(.3);opacity:0}}

/* v17 : casino, nouveaux visuels (feutrine, dos de carte, moyeu de roulette) */
.felt{background:radial-gradient(ellipse at 50% 30%,rgba(255,255,255,.07),rgba(0,0,0,.42) 100%),url(/img/gen/felt.webp) center/cover;border-color:#43240f;box-shadow:inset 0 0 0 2px rgba(227,194,122,.38),inset 0 0 70px rgba(0,0,0,.55),0 0 0 1px #1c0d05,0 18px 40px rgba(0,0,0,.5)}
.bj-table{background:linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.08)),url(/img/gen/felt-bj.webp) center/100% 100%;min-height:470px}
.cardf{background:linear-gradient(160deg,#fff 0%,#fff 60%,#eceef2 100%);box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 4px 12px rgba(0,0,0,.5)}
.cardf.back{background:#8f0d14 url(/img/gen/card-back.webp) center/cover;border:3px solid #fff}
.cardf.back .mid{display:none}
.rl-wheel svg{filter:drop-shadow(0 10px 22px rgba(0,0,0,.6))}
.bj-val{border:1px solid rgba(227,194,122,.35)}
.bj-hand.active{background:rgba(0,0,0,.22)}
