/* CDL Pronos, design 2027.
   Principe : "régie de diffusion de nuit". Fond bleu nuit profond, panneaux en verre dépoli,
   chiffres de stade géants, couleurs officielles des équipes en lueurs, dock flottant en bas.
   Thème sombre unique, assumé (appli de match, souvent utilisée le soir). */
:root {
  --bg: #07090e;
  --bg-2: #0d1119;
  --glass: rgba(148, 170, 220, .06);
  --glass-2: rgba(148, 170, 220, .10);
  --glass-hi: rgba(148, 170, 220, .16);
  --line: rgba(160, 180, 230, .10);
  --line-2: rgba(160, 180, 230, .18);
  --fg: #eef1f7;
  --fg-2: #c3cad8;
  --muted: #7f8aa1;
  --gold: #f5c451;
  --gold-ink: #241a02;
  --live: #ff4d5e;
  --win: #5be49b;
  --lose: #ff7a6b;

  --f-display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --dock-h: 68px;

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); font-size: 15px; line-height: 1.45; letter-spacing: -.005em;
  min-height: 100dvh;
  padding: env(safe-area-inset-top, 0px) 16px calc(var(--dock-h) + 36px + env(safe-area-inset-bottom, 0px));
}
/* Bande de la barre d'état iPhone : même couleur que le fond (elle apparaissait grise). */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(92, 120, 200, .18), transparent 60%),
    radial-gradient(80% 50% at 100% 0%, rgba(245, 196, 81, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.wrap { max-width: 600px; margin: 0 auto; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; }

/* ---------- en-tête ---------- */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px 12px; margin-inline: -16px; padding-inline: 16px;
  background: linear-gradient(var(--bg) 55%, transparent);
}
.brand { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand b { color: var(--gold); font-weight: 800; }
.top-r { display: flex; align-items: center; gap: 10px; }
.coin {
  display: inline-block; flex: none; width: .9em; height: .9em; border-radius: 50%; vertical-align: -.08em; margin-right: .3em;
  background: radial-gradient(circle at 35% 30%, #fff3c4 0 12%, transparent 13%), radial-gradient(circle, #f9d46b 0 52%, #c8931f 53% 62%, #f5c451 63%);
  box-shadow: inset 0 0 0 1px rgba(120, 80, 0, .45), 0 1px 4px rgba(245, 196, 81, .35);
}
.coin-pill {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent); background: color-mix(in oklab, var(--gold) 12%, transparent);
  color: var(--gold); font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: .02em;
  transition: transform .2s var(--spring);
}
.coin-pill:active { transform: scale(.95); }
.coins-cell .num { display: flex; align-items: center; color: var(--gold); font-size: 34px; }
.btn .buy { display: inline-flex; align-items: center; }
.ad-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-lg); }
.ad-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-txt b { font-weight: 600; font-size: 14.5px; }
.ad-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-inline: 14px; }
.ad-btn svg { width: 18px; height: 18px; }
.ad-ov { display: grid; place-items: center; padding: 24px; }
.ad-demo { display: grid; justify-items: center; gap: 10px; padding: 24px; border-radius: var(--r-lg); text-align: center; max-width: 320px; }
.ad-demo .ad-n { font-family: var(--f-display); font-size: 64px; font-weight: 800; line-height: 1; color: var(--gold); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer;
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 18px;
  background: var(--av, var(--glass-2)); color: #0a0c12; transition: transform .2s var(--spring);
}
.avatar:active { transform: scale(.92); }
.avatar { overflow: hidden; }
.avatar.has-img { background: var(--glass-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar-edit { position: relative; flex: none; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar-edit .avatar { cursor: pointer; }
.avatar-pen {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 3px var(--bg-2);
}
.avatar-pen svg { width: 13px; height: 13px; }

/* ---------- titres de section ---------- */
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 2px 12px; }
.sec h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.sec .aside { font-size: 12px; color: var(--muted); }
.day { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- panneaux ---------- */
/* Pas de flou d'arrière-plan sur les panneaux : derrière eux il n'y a que le fond uni, le flou
   ne se voyait pas mais coûtait très cher sur iPhone (un calque flouté par panneau). */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.tap { transition: transform .22s var(--spring), background-color .2s; cursor: pointer; }
.tap:active { transform: scale(.975); }

/* ---------- carte de match ---------- */
.mc {
  --c1: #5c78c8; --c2: #c8a65c;
  position: relative; overflow: hidden; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px;
  background:
    linear-gradient(100deg, color-mix(in oklab, var(--c1) 22%, transparent), transparent 38%, transparent 62%, color-mix(in oklab, var(--c2) 22%, transparent)),
    var(--glass);
}
.mc.live { border-color: color-mix(in oklab, var(--live) 55%, transparent); }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.mc-top .ev { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side.r { flex-direction: row-reverse; text-align: right; }
.side .nm { font-weight: 600; font-size: 15px; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.side.lost .nm { color: var(--muted); }
.logo { width: 36px; height: 36px; flex: none; object-fit: contain; }
.logo-ph { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 14px; color: #0a0c12; }
.logo-ph.tbd { background: var(--glass-2); border: 1px dashed var(--line-2); color: var(--muted); }
.mid { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.mid .sep { color: var(--muted); font-weight: 500; font-size: 22px; }
.mid .lo { color: var(--muted); }
.mid.time { font-size: 24px; color: var(--fg-2); }
.mc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.mc-foot strong { color: var(--fg); font-weight: 600; }
.chev { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-2); font-weight: 500; }
.chev svg { width: 16px; height: 16px; }

/* étiquettes */
.tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--glass-2); color: var(--fg-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tag.live { background: color-mix(in oklab, var(--live) 18%, transparent); color: #ffb3ba; }
.tag.open { background: color-mix(in oklab, var(--gold) 16%, transparent); color: var(--gold); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live); opacity: 0; animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.pts { font-family: var(--f-display); font-weight: 800; font-size: 16px; padding: 2px 10px; border-radius: 999px; }
.pts.p3 { background: var(--gold); color: var(--gold-ink); }
.pts.p1 { background: color-mix(in oklab, var(--win) 20%, transparent); color: var(--win); }
.pts.p0 { background: var(--glass-2); color: var(--muted); }

/* ---------- panneau de prono ---------- */
.bet { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick button {
  display: flex; align-items: center; gap: 8px; justify-content: center; min-width: 0;
  padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  font-weight: 600; font-size: 14px; transition: background-color .25s var(--ease), border-color .25s, transform .2s var(--spring), color .2s;
}
.pick button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick button img { width: 22px; height: 22px; object-fit: contain; }
.pick button:active { transform: scale(.96); }
.pick button[aria-pressed="true"] { background: var(--tc, var(--gold)); border-color: transparent; color: #0a0c12; }
.scores { display: flex; gap: 8px; justify-content: center; }
.scores button {
  font-family: var(--f-display); font-weight: 800; font-size: 20px; min-width: 64px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color .25s var(--ease), color .2s, transform .2s var(--spring);
}
.scores button:active { transform: scale(.94); }
.scores button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.bet-row strong { color: var(--fg); }
.reveal { animation: reveal .35s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- boutons ---------- */
.btn {
  font-weight: 600; font-size: 14px; border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer;
  background: var(--gold); color: var(--gold-ink); transition: transform .2s var(--spring), opacity .2s, background-color .2s;
}
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.ghost { background: var(--glass-2); color: var(--fg); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--spring); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 20px; height: 20px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- carte live en vedette ---------- */
.hero-live { padding: 18px 16px 16px; gap: 14px; }
.hero-live .mid { font-size: 56px; }
.hero-live .logo, .hero-live .logo-ph { width: 52px; height: 52px; }
.hero-live .side { flex-direction: column; text-align: center; gap: 8px; }
.hero-live .side.r { flex-direction: column; text-align: center; }
.now { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--fg-2); background: rgba(0,0,0,.25); border-radius: 999px; padding: 6px 12px; align-self: center; }
.now b { font-family: var(--f-display); font-size: 16px; color: var(--fg); }

/* ---------- vide / erreurs / chargement ---------- */
.empty { padding: 22px 18px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; text-align: center; }
.empty strong { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }
.empty.err { border-style: solid; border-color: color-mix(in oklab, var(--lose) 40%, transparent); }
.sk { border-radius: var(--r-lg); height: 108px; background: linear-gradient(100deg, var(--glass) 30%, var(--glass-hi) 50%, var(--glass) 70%); background-size: 300% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -150% 0; } }

/* ---------- détail du match ---------- */
.dhead { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.dhead .t { min-width: 0; }
.dhead .t b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dhead .t span { font-size: 12px; color: var(--muted); }
.dhero {
  --c1: #5c78c8; --c2: #c8a65c;
  margin-top: 14px; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative;
  background:
    radial-gradient(70% 120% at 0% 50%, color-mix(in oklab, var(--c1) 35%, transparent), transparent 70%),
    radial-gradient(70% 120% at 100% 50%, color-mix(in oklab, var(--c2) 35%, transparent), transparent 70%),
    var(--glass);
}
.dhero .mc-row { align-items: start; }
.dhero .side { flex-direction: column; text-align: center; gap: 8px; }
.dhero .side.r { flex-direction: column; }
.dhero .logo, .dhero .logo-ph { width: 64px; height: 64px; }
.dhero .mid { font-size: 72px; padding-top: 4px; }
.dhero .mid .sep { font-size: 36px; }
.dhero .meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mvp { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: rgba(0,0,0,.25); }
.mvp > span:first-child { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mvp b { font-family: var(--f-display); font-size: 24px; line-height: 1.1; color: var(--gold); font-weight: 800; letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mvp .r { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); white-space: nowrap; padding-bottom: 3px; }

/* maps en accordéon */
.maps { display: flex; flex-direction: column; gap: 10px; }
details.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
details.map[open] { border-color: var(--line-2); }
details.map::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
details.map[open]::details-content { block-size: auto; }
details.map summary { list-style: none; cursor: pointer; position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; min-height: 84px; padding: 14px 16px; isolation: isolate; transition: min-height .45s var(--ease); }
details.map[open] summary { min-height: 176px; align-items: end; }
details.map summary::-webkit-details-marker { display: none; }
.map-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.map-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .6s var(--ease), filter .4s; filter: saturate(.9) brightness(.85); }
.map-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,14,.94) 0%, rgba(7,9,14,.7) 45%, rgba(7,9,14,.55) 100%); transition: background .4s; }
details.map[open] .map-bg img { transform: scale(1.12); filter: saturate(1.05) brightness(.9); }
details.map[open] .map-bg::after { background: linear-gradient(180deg, rgba(7,9,14,.35) 0%, rgba(7,9,14,.92) 100%); }
.map-id { min-width: 0; }
.map-id small { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.map-id b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.map-score { font-family: var(--f-display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.map-score .w1, .map-score .w2 { color: var(--fg); }
.map-score .l { color: rgba(238, 241, 247, .45); }
.map-score .sep { color: var(--muted); font-size: 18px; }
.map-chev { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: transform .35s var(--ease), background-color .3s; }
.map-chev svg { width: 16px; height: 16px; }
details.map[open] .map-chev { transform: rotate(180deg); background: rgba(255,255,255,.16); }
.win-bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--wc, transparent); }

.map-body { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; }
.fact { font-size: 12px; color: var(--fg-2); background: var(--glass-2); border-radius: 999px; padding: 5px 10px; }
.fact b { font-family: var(--f-mono); font-weight: 500; color: var(--fg); }
.rounds { display: flex; flex-direction: column; gap: 6px; }
.rounds .lbl { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rounds .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.rounds .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; color: #0a0c12; font-weight: 600; background: var(--dc); }

.board-t { display: flex; flex-direction: column; gap: 6px; }
.board-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.board-h img { width: 22px; height: 22px; object-fit: contain; }
.board-h .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--tc); }
.board-h .s { margin-left: auto; font-family: var(--f-display); font-size: 20px; font-weight: 800; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); background: rgba(255,255,255,.025); border: 1px solid var(--line); }
table.ps { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ps th { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 5px 6px; text-align: right; white-space: nowrap; }
.ps th:first-child, .ps td:first-child { text-align: left; padding-left: 10px; }
.ps th:last-child, .ps td:last-child { padding-right: 10px; }
.ps td { padding: 8px 5px; text-align: right; font-family: var(--f-mono); font-size: 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.ps td:first-child { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
.ps td:first-child { font-family: var(--f-body); font-weight: 600; font-size: 13.5px; }
.ps td.pos { color: var(--win); } .ps td.neg { color: var(--lose); }
.ps tr.top td:first-child::after { content: "★"; color: var(--gold); margin-left: 6px; font-size: 11px; }
.rating { display: inline-block; min-width: 40px; text-align: center; padding: 2px 6px; border-radius: 6px; background: var(--glass-2); }
.rating.hi { background: color-mix(in oklab, var(--win) 22%, transparent); color: var(--win); }
.rating.lo { background: color-mix(in oklab, var(--lose) 18%, transparent); color: var(--lose); }

/* pronos des amis */
.friends { padding: 6px 4px; }
.friend { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.friend + .friend { border-top: 1px solid var(--line); }
.friend .mini { width: 30px; height: 30px; font-size: 14px; }
.friend .nm { flex: 1; min-width: 0; font-weight: 500; }
.friend .sc { font-family: var(--f-display); font-weight: 800; font-size: 20px; }

/* ---------- classements CDL ---------- */
table.ps.st td { font-family: var(--f-body); font-size: 13px; vertical-align: middle; }
table.ps.st td.rk { font-family: var(--f-display); font-size: 17px; font-weight: 800; color: var(--muted); width: 34px; }
table.ps.st tr.top td.rk { font-size: 15px; }
table.ps.st td.pts-c { font-family: var(--f-display); font-size: 17px; font-weight: 800; color: var(--fg); }
table.ps.st td:first-child { max-width: none; }
table.ps.st td:nth-child(2) { text-align: left; max-width: 150px; width: 100%; }
table.ps.st th:nth-child(2) { text-align: left; }
.ps.st tr.top td:first-child::after { content: none; }
.st-team { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.st-team span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-team .logo, .st-team .logo-ph { width: 24px; height: 24px; border-radius: 6px; font-size: 9px; }
details.std-ev { border-radius: var(--r-lg); overflow: hidden; }
details.std-ev::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
details.std-ev[open]::details-content { block-size: auto; }
details.std-ev summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; }
details.std-ev summary::-webkit-details-marker { display: none; }
details.std-ev[open] .map-chev { transform: rotate(180deg); }
.std-ic { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: rgba(0,0,0,.25); padding: 4px; }
.std-id { min-width: 0; }
.std-id b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.std-id small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.std-win .logo { width: 28px; height: 28px; }
.chips.std-tabs { margin: 0 0 10px; padding: 0; }
.chips.std-tabs .chip { padding: 7px 14px; font-size: 13px; }

/* bracket */
.brk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.brk-side { min-width: 0; }
.brk-side h4 { margin: 0 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brk-scroll { overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.brk-scroll::-webkit-scrollbar { display: none; }
.brk-cols { display: flex; gap: 10px; width: max-content; }
.brk-col { display: flex; flex-direction: column; width: 148px; scroll-snap-align: start; }
.brk-rd { font-size: 11.5px; color: var(--fg-2); font-weight: 600; margin: 0 2px 6px; }
.brk-ms { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.brk-m {
  display: grid; gap: 2px; width: 100%; padding: 6px 8px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--fg);
  font: inherit; transition: transform .2s var(--spring), background-color .2s;
}
.brk-m:active { transform: scale(.97); }
.brk-m.live { border-color: color-mix(in oklab, var(--live) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--live) 25%, transparent); }
.brk-t { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; min-height: 24px; }
.brk-t .logo, .brk-t .logo-ph { width: 20px; height: 20px; border-radius: 5px; font-size: 8px; display: grid; place-items: center; }
.brk-t .logo-ph { background: var(--glass-hi); color: var(--muted); }
.brk-t .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.brk-t b { font-family: var(--f-display); font-size: 16px; font-weight: 800; min-width: 10px; text-align: right; }
.brk-t.lose { opacity: .45; }
.brk-t.win b { color: var(--win); }
.brk-m small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.brk-m small.live-c { color: var(--live); font-weight: 600; }

/* ---------- classement ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin-top: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; text-align: center; border-radius: var(--r-lg); }
.pod .avatar { width: 48px; height: 48px; font-size: 22px; cursor: default; }
.pod.p1 .avatar { width: 60px; height: 60px; font-size: 28px; box-shadow: 0 0 0 3px var(--gold), 0 8px 30px rgba(245, 196, 81, .35); }
.pod .nm { font-weight: 600; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .num { font-size: 30px; font-weight: 800; line-height: 1; }
.pod.p1 .num { color: var(--gold); font-size: 38px; }
.pod .rk { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pod.p1 { padding-top: 22px; background: linear-gradient(180deg, rgba(245, 196, 81, .14), var(--glass)); }
.rows { padding: 4px; }
.lrow { display: grid; grid-template-columns: 28px auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow .rk { font-family: var(--f-display); font-size: 20px; font-weight: 800; color: var(--muted); }
.lrow .avatar { width: 32px; height: 32px; font-size: 15px; cursor: default; }
.lrow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lrow .nm small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.lrow .num { font-size: 24px; font-weight: 800; }
.lrow.me { background: color-mix(in oklab, var(--gold) 8%, transparent); border-radius: var(--r-md); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 0 2px; }

/* ---------- ligues ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer;
  font-weight: 600; font-size: 13.5px; color: var(--fg-2); white-space: nowrap;
  transition: background-color .25s var(--ease), color .2s, border-color .2s, transform .2s var(--spring);
}
.chip svg { width: 14px; height: 14px; }
.chip:active { transform: scale(.95); }
.chip[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.add { border-style: dashed; color: var(--gold); }
.chip.add[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); border-style: solid; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-name { display: block; font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.card-t { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .01em; }
.lg-head { margin-top: 12px; }
.lg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tag svg { width: 12px; height: 12px; }
.tag.priv { color: var(--fg-2); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(0,0,0,.28); border: 1px dashed color-mix(in oklab, var(--gold) 45%, transparent); }
.code { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 26px; letter-spacing: .22em; color: var(--gold); }
details.manage { border-top: 1px solid var(--line); padding-top: 4px; }
details.manage summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-weight: 600; font-size: 14px; color: var(--fg-2); }
details.manage summary::-webkit-details-marker { display: none; }
details.manage summary svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
details.manage[open] summary svg { transform: rotate(180deg); }
details.manage::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
details.manage[open]::details-content { block-size: auto; }
.manage-body { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 4px; }
.members { display: flex; flex-direction: column; border-radius: var(--r-md); background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.member + .member { border-top: 1px solid var(--line); }
.member .nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .nm svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
/* amis */
.fr-box .member { padding: 8px 0; }
.fr-box.hi { border-color: color-mix(in oklab, var(--gold) 45%, transparent); background: linear-gradient(160deg, rgba(245, 196, 81, .12), var(--glass) 60%); }
.fr-sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.fr-act { display: flex; gap: 6px; flex: none; align-items: center; }
.chip-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.avatar.mini { width: 30px; height: 30px; font-size: 14px; cursor: default; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.danger { background: var(--lose); color: #1a0604; }
.btn.danger-ghost { background: transparent; color: var(--lose); border: 1px solid color-mix(in oklab, var(--lose) 45%, transparent); }
.danger-zone { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-md); background: color-mix(in oklab, var(--lose) 10%, transparent); font-size: 14px; }
.code-input { font-family: var(--f-mono) !important; letter-spacing: .25em; text-transform: uppercase; font-size: 18px !important; }
.lrow.pub { grid-template-columns: auto 1fr auto; }
.lg-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--glass-2); display: grid; place-items: center; color: var(--fg-2); }
.lg-ic svg { width: 16px; height: 16px; }
.invite { margin-bottom: 12px; border-color: color-mix(in oklab, var(--gold) 45%, transparent); background: linear-gradient(160deg, rgba(245, 196, 81, .12), var(--glass) 60%); }

/* ---------- jeu de cartes ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 4px; }
.seg button { border: 0; background: none; cursor: pointer; padding: 9px 6px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); transition: background-color .25s var(--ease), color .2s; }
.seg button[aria-selected="true"] { background: var(--glass-hi); color: var(--fg); }
.seg button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg:has(> :nth-child(4)) button { font-size: 12.5px; padding: 9px 2px; }
.btn.wide { width: 100%; }
.avatar.micro { width: 20px; height: 20px; font-size: 11px; cursor: default; border: 0; }
body.noscroll { overflow: hidden; }
nav.dock button[data-badge]::after { content: attr(data-badge); position: absolute; top: 6px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* carte */
.tc {
  --rc: #8b93a5; --tc: #5c78c8;
  /* Format d'une vraie carte à collectionner : 63 × 88 mm. */
  position: relative; aspect-ratio: 63 / 88; height: auto; min-height: 0; overflow: visible; border-radius: 9px; padding: 3px; container-type: inline-size;
  background: linear-gradient(150deg, var(--rc), color-mix(in oklab, var(--rc) 35%, #05070b) 60%, var(--rc));
  box-shadow: 0 6px 18px rgba(0,0,0,.45); isolation: isolate; user-select: none; -webkit-user-select: none;
  transition: transform .25s var(--spring), filter .3s;
}
.tc[role="button"] { cursor: pointer; }
.tc[role="button"]:active { transform: scale(.96); }
.tc.r-u { --rc: #4fd18b; } .tc.r-r { --rc: #4aa3ff; } .tc.r-e { --rc: #b46bff; } .tc.r-l { --rc: #f5c451; }
/* Fond propre à chaque rareté : gris, vert, bleu, violet, or. */
.tc { --bg-hi: #59606e; --bg-mid: #2c3039; --bg-lo: #15171c; }
.tc.r-u { --bg-hi: #2f8a5c; --bg-mid: #164a31; --bg-lo: #0a1f15; }
.tc.r-r { --bg-hi: #2f6fc4; --bg-mid: #163a6e; --bg-lo: #0a1a33; }
.tc.r-e { --bg-hi: #8a4ad0; --bg-mid: #47206f; --bg-lo: #1d0d30; }
.tc.r-l { --bg-hi: #e2b34a; --bg-mid: #8c6418; --bg-lo: #3a2806; }
/* Ultra légendaire : bordure arc-en-ciel qui tourne, fond noir prismatique. */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tc.r-x {
  --rc: #ff7ad9; --bg-hi: #3a2a5a; --bg-mid: #120d1f; --bg-lo: #05040a;
  background: conic-gradient(from var(--ang), #ff5fd2, #ffe45f, #7dff8a, #5fd2ff, #b46bff, #ff5fd2);
  animation: angle 4s linear infinite;
  box-shadow: 0 0 18px rgba(255, 122, 217, .45), 0 0 38px rgba(95, 210, 255, .3), 0 6px 18px rgba(0,0,0,.5);
}
@keyframes angle { to { --ang: 360deg; } }
/* Dans les grilles (collection, échanges), les cartes restent immobiles : seules la carte
   affichée en grand et l'ouverture de booster sont animées. */
.tc.r-x:not(.ov .tc), .tc.r-x:not(.ov .tc) .tc-rar,
.tc-holo:not(.ov .tc-holo), .tc-relic svg:not(.ov svg) { animation: none; }
.tc.r-x .tc-frame {
  background:
    conic-gradient(from var(--ang) at 50% 40%, rgba(255, 95, 210, .22), rgba(255, 228, 95, .18), rgba(125, 255, 138, .18), rgba(95, 210, 255, .22), rgba(180, 107, 255, .22), rgba(255, 95, 210, .22)),
    radial-gradient(120% 70% at 50% 18%, var(--bg-hi), transparent 72%),
    linear-gradient(180deg, var(--bg-mid), var(--bg-lo));
}
.tc.r-x .tc-rar { background: conic-gradient(from var(--ang), #ff5fd2, #ffe45f, #7dff8a, #5fd2ff, #b46bff, #ff5fd2); animation: angle 4s linear infinite; }
.tc.r-x .tc-holo { opacity: .85; }
.k-ceo .tc-art { place-items: center; }
.k-ceo .tc-art img { width: 64%; height: 64%; object-position: center; }
/* CEO avec photo : portrait plein cadre, fondu vers le bas. */
.k-ceo.has-photo .tc-art { place-items: stretch; margin: 2cqi 4cqi 0; border-radius: 3cqi; overflow: hidden; }
.k-ceo.has-photo .tc-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: none;
  -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent);
}
.tc-relic { display: grid; place-items: center; width: 100%; height: 100%; padding: 4cqi 8cqi 0; }
.tc-relic svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8cqi rgba(245, 196, 81, .55)); animation: relic 3s ease-in-out infinite; }
@keyframes relic { 50% { transform: translateY(-2.5cqi) rotate(-3deg); } }
.tc.r-e, .tc.r-l { box-shadow: 0 6px 22px color-mix(in oklab, var(--rc) 35%, transparent), 0 6px 18px rgba(0,0,0,.45); }
/* Le cadre est posé en absolu dans la carte : la taille de la carte vient uniquement de son format
   63 × 88, et rien à l'intérieur ne peut l'agrandir. (Avec un cadre « normal », Safari sur iPhone
   laissait le contenu dépasser sous la bordure et rapetissait la photo.) */
.tc-frame {
  position: absolute; inset: 3px; height: auto; min-height: 0; border-radius: 3.6cqi; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(120% 70% at 50% 18%, var(--bg-hi), transparent 72%),
    linear-gradient(180deg, var(--bg-mid), var(--bg-lo));
}
.tc-top { display: flex; justify-content: space-between; align-items: center; padding: 5cqi 6cqi 0; font-size: 6.5cqi; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.tc-rar {
  display: grid; place-items: center; min-width: 13cqi; height: 13cqi; padding: 0 2cqi; border-radius: 3cqi;
  background: var(--rc); color: #0a0c12; font-family: var(--f-display); font-weight: 800; font-size: 8cqi; letter-spacing: 0; line-height: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.4);
}
.r-l .tc-rar { background: linear-gradient(135deg, #fff1b8, #f5c451 45%, #b8860b); }
.r-e .tc-rar { background: linear-gradient(135deg, #e6cfff, #b46bff 50%, #7a35d0); }
.tc-art { position: relative; display: grid; place-items: end center; overflow: hidden; min-height: 0; }
.tc-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
/* Joueurs et staff : la photo occupe toute la hauteur sous l'en-tête, le texte passe par-dessus
   le bas de la photo (dégradé sombre) au lieu de lui prendre la moitié de la carte. */
.k-player .tc-art, .k-staff .tc-art { grid-row: 2 / 4; grid-column: 1; place-items: start center; }
.k-player .tc-art img, .k-staff .tc-art img { object-position: center top; }
.k-player .tc-info, .k-staff .tc-info { grid-row: 3; grid-column: 1; position: relative; z-index: 1; background: linear-gradient(transparent, rgba(0,0,0,.55) 22%, rgba(0,0,0,.8)); padding-top: 9cqi; }
.k-team .tc-art, .k-event .tc-art { place-items: center; }
.k-team .tc-art img, .k-event .tc-art img { width: 70%; height: 70%; object-position: center; }
.tc-mono { font-family: var(--f-display); font-weight: 800; font-size: 34cqi; color: rgba(255,255,255,.2); align-self: center; }
.tc-info { padding: 3cqi 6cqi 5cqi; background: linear-gradient(transparent, rgba(0,0,0,.65) 30%); display: flex; flex-direction: column; gap: 1cqi; min-width: 0; }
/* Le nom n'est jamais tronqué : il passe sur deux lignes et rapetisse selon sa longueur. */
.tc-name { font-family: var(--f-display); font-weight: 800; font-size: 13cqi; line-height: 1; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; text-wrap: balance; }
.tc-name.long { font-size: 10.5cqi; }
.tc-name.xlong { font-size: 8.5cqi; line-height: 1.02; }
.tc-name.xxlong { font-size: 7cqi; line-height: 1.04; }
/* Sous-titre et description : jamais tronqués. Le texte passe à la ligne et rapetisse s'il est long ;
   c'est la zone de l'image qui cède la place. */
.tc-sub { font-size: 6.5cqi; line-height: 1.2; color: rgba(255,255,255,.7); overflow-wrap: anywhere; min-height: 1.2em; }
.tc-sub.long { font-size: 5.6cqi; }
.tc-desc {
  margin: 2cqi 0 0; padding-top: 2cqi; border-top: 1px solid color-mix(in oklab, var(--rc) 45%, transparent);
  font-size: 5.6cqi; line-height: 1.28; color: rgba(255,255,255,.78); font-style: italic; overflow-wrap: anywhere;
}
.tc-desc.long { font-size: 5cqi; line-height: 1.24; }
.tc-desc.xlong { font-size: 4.5cqi; line-height: 1.22; }
.tc.mini .tc-desc { display: none; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 2cqi; font-family: var(--f-mono); font-size: 5.5cqi; color: rgba(255,255,255,.45); }
.tc-foot img { width: 11cqi; height: 11cqi; object-fit: contain; }
.tc-holo {
  position: absolute; inset: 3px; border-radius: 9px; pointer-events: none; z-index: 2; mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.4) 42%, rgba(120,210,255,.35) 50%, rgba(255,130,220,.35) 58%, transparent 75%);
  background-size: 250% 250%; background-position: var(--mx, 30%) var(--my, 30%);
  animation: holo 4s ease-in-out infinite alternate;
}
.r-l .tc-holo { opacity: .75; }
@keyframes holo { to { background-position: 80% 80%; } }
.tc-qty { position: absolute; top: -10px; right: -8px; z-index: 3; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--fg); color: var(--bg); font-family: var(--f-display); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.tc-new { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 2px 8px; border-radius: 999px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tc.locked { filter: grayscale(1) brightness(.4); }
.tc.locked .tc-holo { display: none; }
.tc.chosen { outline: 3px solid var(--gold); outline-offset: 2px; }
.tc.big { width: min(66vw, 270px); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out; touch-action: none; }
.tc.mini { width: 64px; flex: none; }
.tc.mini .tc-qty { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 106px)); justify-content: center; align-items: start; gap: 12px 10px; }
.grid.pick { max-height: 360px; overflow-y: auto; padding: 8px 4px 4px; margin: 0 -4px; }
.filters { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.filters input[type="search"] { font: inherit; font-size: 16px; color: var(--fg); background: rgba(0,0,0,.3); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; width: 100%; }
.chip.rar { color: var(--rc, var(--fg-2)); letter-spacing: -.05em; }
.chip.rar.r-x { --rc: #ff7ad9; }
.chip.rar.r-c { --rc: #8b93a5; } .chip.rar.r-u { --rc: #4fd18b; } .chip.rar.r-r { --rc: #4aa3ff; } .chip.rar.r-e { --rc: #b46bff; } .chip.rar.r-l { --rc: #f5c451; }
.chip.rar[aria-selected="true"] { background: var(--rc); color: #0a0c12; border-color: var(--rc); }

/* booster */
.pack-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 22px 0 6px; }
/* Le sachet : soudures crantées en haut et en bas, aluminium holographique, effet "coussin". */
.bp {
  position: relative; aspect-ratio: 5 / 8.4; display: flex; flex-direction: column; container-type: inline-size;
  color: #fff; user-select: none; -webkit-user-select: none;
}
.bp-crimp {
  position: relative; flex: none; height: 7.5%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, rgba(0,0,0,.28) 1px 2.5px, transparent 2.5px 4px),
    linear-gradient(180deg, #f6e3a1, #c79a3a 45%, #8a6418 70%, #e9cd7d);
}
.bp-crimp.top { clip-path: var(--teeth-top); border-radius: 2px 2px 0 0; }
.bp-crimp.bottom { clip-path: var(--teeth-bottom); }
.bp-crimp::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(0,0,0,.45); }
.bp-crimp.top::after { bottom: 0; } .bp-crimp.bottom::after { top: 0; }
.bp-body {
  position: relative; flex: 1; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 45% at 50% 45%, rgba(255, 255, 255, .07), transparent 70%),
    linear-gradient(170deg, #22386e 0%, #0d1430 45%, #1a0f2e 75%, #3a1d4f 100%);
}
.bp-art {
  position: absolute; z-index: 1; left: 50%; top: 52%; width: 56%; height: 40%; transform: translate(-50%, -50%);
  object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); pointer-events: none;
}
.bp-logo { position: absolute; z-index: 2; top: 7%; left: 0; right: 0; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 15cqi; line-height: 1; letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 14px rgba(0,0,0,.6); }
.bp-logo b { margin-left: 2cqi; color: var(--gold); }
.bp-gloss {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55), transparent 9%, transparent 91%, rgba(0,0,0,.55)),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 12%, transparent 88%, rgba(0,0,0,.35)),
    repeating-linear-gradient(178deg, rgba(255,255,255,.025) 0 2px, transparent 2px 11px);
}

.pack {
  width: min(56vw, 220px); border: 0; padding: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(245, 196, 81, .12));
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}
.pack:disabled { filter: grayscale(.85) brightness(.55); animation: none; cursor: default; }
@keyframes float { 50% { translate: 0 -8px; rotate: -1.5deg; } }

.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.w-cell { padding: 14px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 2px; }
.w-cell .num { font-size: 40px; font-weight: 800; line-height: 1; }
.w-cell .num small { font-size: 18px; color: var(--muted); }
.prog { padding: 10px 14px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.prog-row { --rc: #8b93a5; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.prog-row.r-x { --rc: #ff7ad9; }
.prog-row.r-x .prog-bar span { background: linear-gradient(90deg, #ff5fd2, #ffe45f, #7dff8a, #5fd2ff, #b46bff); }
.prog-row.r-u { --rc: #4fd18b; } .prog-row.r-r { --rc: #4aa3ff; } .prog-row.r-e { --rc: #b46bff; } .prog-row.r-l { --rc: #f5c451; }
.prog-l { color: var(--rc); font-weight: 600; }
.prog-bar { height: 8px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.prog-bar span { display: block; height: 100%; border-radius: inherit; background: var(--rc); transition: width .6s var(--ease); }
.prog-n { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); }

/* superposition */
.ov { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: rgba(4, 6, 10, .95); animation: fade .25s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.ov-pack, .ov-card { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.ov-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 2; }
.ov-facts { width: min(100%, 360px); padding: 8px 14px; border-radius: var(--r-lg); text-align: left; }
.fact-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14px; }
.fact-row + .fact-row { border-top: 1px solid var(--line); }
.fact-row span { color: var(--muted); }
.fact-row b { font-weight: 600; text-align: right; }

/* 1. booster à déchirer */
.rip { --pull: 0; position: relative; width: min(66vw, 270px); aspect-ratio: 5 / 8.4; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 22px 34px rgba(0,0,0,.6)); }
.rip:active { cursor: grabbing; }
.pack-face { position: absolute; inset: 0; }
/* La déchirure passe juste sous la soudure du haut. */
.rip-top, .rip-body { position: absolute; inset: 0; }
.rip-top {
  clip-path: polygon(0 0, 100% 0, 100% 9.6%, 95% 11.2%, 90% 8.8%, 85% 10.9%, 80% 8.7%, 75% 11.1%, 70% 8.9%, 65% 11.2%, 60% 8.7%, 55% 10.9%, 50% 8.9%, 45% 11.2%, 40% 8.7%, 35% 11%, 30% 8.9%, 25% 11.2%, 20% 8.7%, 15% 10.9%, 10% 8.9%, 5% 11.2%, 0 9.6%);
  transform-origin: 0% 10%;
  transform: rotate(calc(var(--pull) * -7deg)) translateY(calc(var(--pull) * -8px));
  transition: transform .15s ease-out;
}
.rip-body {
  clip-path: polygon(0 9.6%, 5% 11.2%, 10% 8.9%, 15% 10.9%, 20% 8.7%, 25% 11.2%, 30% 8.9%, 35% 11%, 40% 8.7%, 45% 11.2%, 50% 8.9%, 55% 10.9%, 60% 8.7%, 65% 11.2%, 70% 8.9%, 75% 11.1%, 80% 8.7%, 85% 10.9%, 90% 8.8%, 95% 11.2%, 100% 9.6%, 100% 100%, 0 100%);
}
.rip-line { position: absolute; left: 4%; right: 4%; top: 10%; height: 2px; z-index: 5; background: repeating-linear-gradient(90deg, rgba(255, 243, 196, .95) 0 8px, transparent 8px 14px); opacity: calc(.5 + var(--pull) * .5); animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: 28px 0; } }
.rip-glow { position: absolute; left: 0; right: 0; top: 10%; height: 2px; z-index: 5; transform: translateY(-50%) scaleX(var(--pull)); transform-origin: left; background: #fff6d6; box-shadow: 0 0 18px 6px rgba(245, 196, 81, .8); opacity: var(--pull); }
.rip-hint { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.rip.torn { animation: none; cursor: default; }
.rip.torn .rip-top { transition: transform .75s cubic-bezier(.2, .7, .3, 1), opacity .75s; transform: translate(55%, -140%) rotate(38deg); opacity: 0; }
.rip.torn .rip-glow { animation: burst .6s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; box-shadow: 0 0 18px 6px rgba(245, 196, 81, .8); } 40% { box-shadow: 0 0 80px 40px rgba(255, 236, 170, .9); } 100% { opacity: 0; box-shadow: 0 0 120px 60px rgba(255, 236, 170, 0); } }
.rip.torn .rip-body { animation: drop .6s .35s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes drop { to { transform: translateY(70%) rotate(-4deg); opacity: 0; } }

/* 2. cartes une par une */
.ov-pack.rv { justify-content: center; overflow: hidden; }
.rv-stage { position: relative; width: 100%; max-width: 480px; min-height: min(100dvh - 48px, 760px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; outline: none; }
.rv-count { display: flex; gap: 6px; z-index: 2; }
.rv-count span { width: 26px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); transition: background-color .3s; }
.rv-count span.done { background: rgba(255,255,255,.55); }
.rv-count span.now { background: var(--gold); }
/* La carte se cale aussi sur la hauteur de l'écran (barres de Safari, petits iPhone) :
   ~280 px sont réservés aux compteurs, au bandeau, aux flèches et aux marges. */
.rv-deck {
  position: relative; aspect-ratio: 63 / 88; z-index: 2;
  width: min(66vw, 270px, calc((100dvh - 280px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * 63 / 88));
}
.rv-top { position: absolute; inset: 0; touch-action: none; cursor: grab; transition: transform .3s var(--spring); }
.rv-top .tc.big { width: 100%; }
.rv-under {
  position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center;
  transform: translateY(calc(var(--n) * 6px)) scale(.95);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px), linear-gradient(160deg, #24345e, #0e1424 55%, #2a1d3f);
  border: 2px solid rgba(245, 196, 81, .45);
  box-shadow: 0 calc(var(--n) * 3px) 0 -2px #1a2238, 0 calc(var(--n) * 6px) 0 -4px #141a2c, 0 16px 40px rgba(0,0,0,.5);
}
.rv-under span { font-family: var(--f-display); font-weight: 800; font-size: 40px; color: rgba(245, 196, 81, .5); letter-spacing: .06em; }
.rv-top.enter { animation: rvIn .42s var(--spring) both; }
@keyframes rvIn { from { opacity: 0; transform: translateY(26px) scale(.9); } }

/* effets épique / légendaire */
.rv-fx { position: absolute; inset: -60px -16px; pointer-events: none; z-index: 1; overflow: hidden; }
.rv-fx .sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.rv-fx .rays, .rv-fx .flash { position: absolute; left: 50%; top: 47%; opacity: 0; }
.rv-fx .rays {
  width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--ray, rgba(245, 196, 81, .55)) 0deg 7deg, transparent 7deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%); mask: radial-gradient(circle, #000 0 18%, transparent 62%);
}
.rv-fx .flash { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff7dc; }
.rv-banner { position: relative; z-index: 4; min-height: 1.1em; font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: transparent; }

.fx-e { --ray: rgba(180, 107, 255, .5); }
.fx-e .rv-fx .rays { animation: raysIn .7s ease-out forwards, spin 18s linear infinite; }
.fx-e .rv-banner { color: #d8b6ff; text-shadow: 0 0 24px rgba(180, 107, 255, .8); animation: slam .5s .15s var(--spring) both; font-size: 34px; }
.rv-top.enter-e { animation: epicIn .8s var(--spring) both; }
@keyframes epicIn { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); filter: brightness(2); } 60% { opacity: 1; transform: scale(1.06) rotate(1deg); } 100% { transform: none; filter: none; } }

.fx-l { --ray: rgba(245, 196, 81, .6); }
.fx-l::before { content: ""; position: absolute; inset: -60px -16px; z-index: 0; background: radial-gradient(circle at 50% 47%, rgba(245, 196, 81, .35), transparent 60%); animation: glowIn 1.6s ease-out both; }
.fx-l .rv-fx .flash { animation: flash 1s .35s ease-out both; }
.fx-l .rv-fx .rays { animation: raysIn 1.2s .4s ease-out forwards, spin 14s linear infinite; }
.fx-l .rv-banner {
  background: linear-gradient(90deg, #a87b14, #ffe28a 30%, #fff 50%, #ffe28a 70%, #a87b14); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(245, 196, 81, .7));
  animation: slam .6s .75s var(--spring) both, shimmerText 2.4s 1.3s linear infinite;
}
.rv-top.enter-l { animation: legendIn 1.5s cubic-bezier(.2, .8, .2, 1) both; }
.rv-top.enter-l .tc { box-shadow: 0 0 40px rgba(245, 196, 81, .7), 0 0 90px rgba(245, 196, 81, .35); }
@keyframes legendIn {
  0% { opacity: 0; transform: scale(.25) rotateY(0deg); filter: brightness(3); }
  25% { opacity: 0; transform: scale(.25) rotateY(0deg); }
  55% { opacity: 1; transform: scale(1.14) rotateY(360deg); filter: brightness(1.8); }
  64% { transform: scale(.96) rotate(-2deg); }
  72% { transform: scale(1.03) rotate(1.5deg); }
  80% { transform: scale(1) rotate(-.6deg); }
  100% { transform: none; filter: none; }
}
/* ultra légendaire : version arc-en-ciel, plus longue */
.fx-x { --ray: rgba(255, 255, 255, .5); }
.fx-x::before { background: radial-gradient(circle at 50% 47%, rgba(255, 122, 217, .35), rgba(95, 210, 255, .18) 35%, transparent 62%); animation: glowIn 2.4s ease-out both; }
.fx-x .rv-fx .flash { background: #ffffff; animation: flash 1.3s .5s ease-out both; }
.fx-x .rv-fx .rays { animation: raysIn 1.5s .7s ease-out forwards, spin 10s linear infinite, hue 3s linear infinite; background: repeating-conic-gradient(from 0deg, #ff5fd2 0deg 5deg, transparent 5deg 12deg, #5fd2ff 12deg 17deg, transparent 17deg 24deg, #ffe45f 24deg 29deg, transparent 29deg 36deg); }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.fx-x .rv-banner {
  font-size: 36px; background: linear-gradient(90deg, #ff5fd2, #ffe45f, #7dff8a, #5fd2ff, #b46bff, #ff5fd2); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 122, 217, .7));
  animation: slam .7s 1.3s var(--spring) both, shimmerText 1.6s 2s linear infinite;
}
.rv-top.enter-x { animation: ultraIn 2.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ultraIn {
  0% { opacity: 0; transform: scale(.15) rotateY(0deg); filter: brightness(4) saturate(2); }
  30% { opacity: 0; transform: scale(.15) rotateY(0deg); }
  55% { opacity: 1; transform: scale(1.2) rotateY(720deg); filter: brightness(2.2) saturate(1.6); }
  63% { transform: scale(.94) rotate(-3deg); }
  70% { transform: scale(1.05) rotate(2.5deg); }
  77% { transform: scale(.98) rotate(-1.5deg); }
  84% { transform: scale(1.01) rotate(.5deg); }
  100% { transform: none; filter: none; }
}
@keyframes flash { 0% { opacity: 0; transform: scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(160); } }
@keyframes raysIn { from { opacity: 0; transform: scale(.4) rotate(0deg); } to { opacity: 1; transform: scale(1) rotate(30deg); } }
@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes shimmerText { to { background-position: -200% 0; } }
@keyframes glowIn { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .8; } }
.rv-hint { z-index: 2; }
.rv-navs { display: flex; align-items: center; justify-content: center; gap: 14px; z-index: 2; width: min(100%, 360px); }
.rv-navs .rv-hint { flex: 1; margin: 0; text-align: center; font-size: 12px; }
.rv-nav { width: 44px; height: 44px; flex: none; background: rgba(255,255,255,.08); }
.rv-nav:disabled { opacity: .25; cursor: default; }
.rv-top.enter-back { animation: rvBack .42s var(--spring) both; }
@keyframes rvBack { from { opacity: 0; transform: translateX(-60px) rotate(-6deg) scale(.95); } }
/* Retour sur une carte spéciale déjà vue : décor affiché tout de suite, sans flash ni attente. */
.fx-calm .rv-fx .flash { animation: none; opacity: 0; }
.fx-calm .rv-fx .rays { animation: raysIn .35s ease-out forwards, spin 14s linear infinite; }
.fx-x.fx-calm .rv-fx .rays { animation: raysIn .35s ease-out forwards, spin 10s linear infinite, hue 3s linear infinite; }
.fx-calm .rv-banner { animation: none !important; opacity: 1; }
.fx-l.fx-calm .rv-banner, .fx-x.fx-calm .rv-banner { animation: shimmerText 2.4s linear infinite !important; }
.fx-calm::before { animation: none !important; opacity: .8; }

/* 3. récapitulatif */
.ov-pack.sum { gap: 14px; }
.sum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 104px)); justify-content: center; align-items: start; gap: 12px 10px; width: min(100%, 380px); }
.sum-grid .sum-card { animation: rvIn .45s var(--spring) both; }
.sum-grid .sum-card:nth-child(2) { animation-delay: .06s; } .sum-grid .sum-card:nth-child(3) { animation-delay: .12s; }
.sum-grid .sum-card:nth-child(4) { animation-delay: .18s; } .sum-grid .sum-card:nth-child(5) { animation-delay: .24s; }

/* échanges */
.trade { padding: 14px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 8px; }
.trade-h { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.trade-h .tag { margin-left: auto; }
.tag.st-accepted { color: var(--win); } .tag.st-declined, .tag.st-failed { color: var(--lose); } .tag.st-pending { color: var(--gold); }
.mini-row { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.mini-row::-webkit-scrollbar { display: none; }
.draft { gap: 14px; }
.draft-side { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- profil ---------- */
.card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; }
.me-card { flex-direction: row; align-items: center; gap: 14px; }
.me-card .avatar { width: 56px; height: 56px; font-size: 26px; cursor: default; }
.me-card b { font-family: var(--f-display); font-size: 26px; font-weight: 800; display: block; line-height: 1.1; }
.me-card span { font-size: 13px; color: var(--muted); }
.form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); flex: 1; min-width: 180px; }
input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
  font: inherit; font-size: 16px; color: var(--fg); background: rgba(0,0,0,.3); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 12px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 25%, transparent); }
.switch-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--fg); }
.toggle { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--glass-hi); position: relative; cursor: pointer; flex: none; transition: background-color .25s var(--ease); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.toggle:checked { background: var(--win); }
.toggle:checked::after { transform: translateX(20px); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--fg-2); font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }
.src { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }
.src a { color: var(--fg-2); }

/* bannière d'installation */
.install { margin-top: 6px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; border-color: color-mix(in oklab, var(--gold) 40%, transparent); }

/* ---------- dock flottant ---------- */
nav.dock {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(480px, calc(100% - 20px)); height: var(--dock-h); padding: 6px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; border-radius: 999px;
  background: rgba(16, 20, 30, .72); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
nav.dock .ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px - 10px) / 6); border-radius: 999px; background: var(--glass-hi); transition: transform .45s var(--spring); z-index: 0; }
nav.dock button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: 0; transition: color .25s; white-space: nowrap;
}
nav.dock button svg { width: 22px; height: 22px; transition: transform .3s var(--spring); }
nav.dock button[aria-selected="true"] { color: var(--fg); }
nav.dock button[aria-selected="true"] svg { transform: translateY(-1px) scale(1.06); color: var(--gold); }
nav.dock button:active svg { transform: scale(.88); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 26px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  transform: translateX(-50%); background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px);
  animation: toast .4s var(--spring) both;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }

/* transitions de page */
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
nav.dock, header.top { view-transition-name: none; }

@media (max-width: 380px) {
  .mid { font-size: 28px; } .dhero .mid { font-size: 58px; } .hero-live .mid { font-size: 46px; }
  .map-id b { font-size: 22px; } .map-score { font-size: 24px; }
  .logo, .logo-ph { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; }
}

/* Connexion Discord / Google */
.oauth { display: grid; gap: 10px; margin: 6px 0 4px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font: inherit; font-weight: 700; font-size: 15px;
  transition: transform .15s, filter .15s;
}
.oauth-btn svg { width: 20px; height: 20px; flex: none; }
.oauth-btn:hover { filter: brightness(1.08); }
.oauth-btn:active { transform: scale(.98); }
.oauth-btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.oauth-btn.google { background: #fff; border-color: #fff; color: #1f1f1f; }
.oauth-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
/* Connexion / inscription (appli ; le site PC agrandit dans web.css) */
.auth-btns { display: flex; gap: 6px; }
.auth-btns[hidden] { display: none; }
.auth-btns .btn { padding: 8px 13px; font-size: 13px; }
.auth { margin-top: 14px; padding: 24px 20px 20px; display: grid; gap: 14px; border-radius: 22px; border-color: var(--line-2); }
.auth h1 { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.auth > .note { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.auth input[type="password"] {
  font: inherit; font-size: 16px; color: var(--fg); background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 12px; width: 100%;
}
.auth-form .btn { margin-top: 6px; padding: 13px 18px; font-size: 15px; }
.auth-link { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.auth-link.inline { display: inline; color: var(--gold); font-weight: 600; font-size: inherit; padding: 0; }
.auth-alt { margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
/* League : onglets publiques / privées et pronos des membres */
.chips .chip svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.lg-ic.priv { color: var(--gold); }
.lrow.pub .btn { min-width: 92px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 8px; padding: 4px 2px; border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.back-link:hover { color: var(--fg); }
.lb-card { margin-top: 10px; padding: 0; overflow: hidden; }
.lb-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in oklab, var(--c1) 14%, transparent), transparent 45%, transparent 55%, color-mix(in oklab, var(--c2) 14%, transparent)); }
.lb-head.tap { cursor: pointer; }
.lb-ev { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.lb-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.lb-t.r { justify-content: flex-end; }
.lb-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-t .logo, .lb-t .logo-ph { width: 28px; height: 28px; flex: none; font-size: 10px; }
.lb-sc { font-family: var(--f-display); font-weight: 800; font-size: 22px; white-space: nowrap; }
.lb-sc.live { color: var(--live); }
.lb-rows { padding: 4px 6px; }
.lb-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row.me { background: color-mix(in oklab, var(--gold) 8%, transparent); }
.lb-row .avatar { width: 28px; height: 28px; font-size: 13px; cursor: default; }
.lb-row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lb-bet { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.lb-row .pts { min-width: 40px; text-align: center; font-size: 14px; }
.pts.wait { background: var(--glass-2); color: var(--muted); }
.lb-miss { margin: 0; padding: 0 14px 10px; font-size: 12px; }
/* Image de ligue */
.lg-ic { flex: none; overflow: hidden; }
.lg-ic.has-img { background: var(--bg-2, #0d1119); }
.lg-ic.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-ic.big { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line-2); }
.lg-ic.big svg { width: 26px; height: 26px; }
.lg-top { align-items: center; }
.lg-pic { position: relative; flex: none; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 16px; }
.lg-pic .avatar-pen { right: -4px; bottom: -4px; }
/* Visiteur sans compte : invitation à s'inscrire */
.bet-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bet-login .btn { flex: none; }
.gate { margin-top: 12px; display: grid; gap: 12px; }
.gate .note { margin: 0; }
.gate .oauth { margin: 0; }
/* Probabilités de victoire */
.odds { margin-top: 12px; display: grid; gap: 6px; }
.odds-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.odds-top .fav { color: var(--fg); }
.odds-top > span:first-child, .odds-top > span:last-child { font-family: var(--f-display); font-size: 16px; font-weight: 800; white-space: nowrap; }
.odds-l { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.odds-bar { display: flex; gap: 3px; height: 6px; border-radius: 999px; overflow: hidden; }
.odds-bar span { display: block; height: 100%; min-width: 4px; transition: width .6s var(--spring, ease); }
.odds-bar span:first-child { border-radius: 999px 0 0 999px; }
.odds-bar span:last-child { border-radius: 0 999px 999px 0; }
/* Pages légales, suppression de compte, anti-robots */
.legal-links { margin: 22px 0 6px; text-align: center; font-size: 12px; color: var(--muted); }
.legal-links a, .auth-legal a { color: var(--fg-2); }
.auth-legal { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.danger-box { margin-top: 14px; }
.danger-box summary span { color: #ff8a8a; }
.danger-box .manage-body { display: grid; gap: 10px; }
.danger-box label { display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); }
.danger-box input { font: inherit; font-size: 16px; color: var(--fg); background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; letter-spacing: .08em; }
.cf-captcha { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; width: 300px; max-width: calc(100vw - 32px); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.cf-captcha:empty { display: none; }
/* Langue */
.lang-btn { border: 0; background: none; padding: 0; font: inherit; font-size: inherit; color: var(--fg-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lang-btn:hover { color: var(--gold); }

/* ---------- marché des cartes ---------- */
.mk-wallet { display: flex; align-items: center; gap: 6px; margin: 4px 2px 0; }
.mk-wallet b { color: var(--fg); font-family: var(--f-mono); font-weight: 500; }
.mk-sort { font: inherit; font-size: 15px; color: var(--fg); background: rgba(0,0,0,.3); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; align-self: flex-start; }
.mk-sort option { background: #10141e; }
.mk-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 8px; padding: 10px 12px; border-radius: var(--r-lg); }
.mk-row > .tc.mini { grid-row: 1 / span 2; align-self: start; }
.mk-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-rar { font-size: 12px; color: var(--fg-2); }
.mk-rar.r-u { color: #4fd18b; } .mk-rar.r-r { color: #4aa3ff; } .mk-rar.r-e { color: #b46bff; } .mk-rar.r-l { color: var(--gold); } .mk-rar.r-x { color: #ff7ad9; }
.mk-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.mk-side .eyebrow { font-size: 10px; flex-basis: 100%; }
.mk-side > .btn, .mk-side > .mk-bid, .mk-side > .tag { margin-left: auto; }
.mk-price { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-size: 22px; font-weight: 800; line-height: 1; }
.mk-time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-2); font-family: var(--f-mono); }
.mk-time svg { width: 13px; height: 13px; }
.mk-bid { display: flex; gap: 6px; }
.mk-bid input, .mk-field input { font: inherit; font-size: 16px; color: var(--fg); background: rgba(0,0,0,.3); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 10px; min-width: 0; }
.mk-bid input { width: 80px; }
.mk-field { display: flex; flex-direction: column; gap: 6px; }
.mk-field input { width: 100%; padding: 10px 14px; }
.mk-sell { display: flex; flex-direction: column; gap: 10px; }
.mk-sell-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.mk-sell-top .btn { align-self: flex-start; margin-top: 4px; }
.mk-hist .pull small { color: var(--muted); }
.ov-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- invitation à activer les notifications ---------- */
.push-ask { position: fixed; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 30; max-width: 460px; margin: 0 auto;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px; border-radius: var(--r-lg);
  background: #141a26; border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent); box-shadow: 0 18px 50px rgba(0,0,0,.55);
  transform: translateY(20px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.push-ask.in { transform: none; opacity: 1; }
.push-ask-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--gold) 18%, transparent); color: var(--gold); }
.push-ask-ic svg { width: 22px; height: 22px; }
.push-ask-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.push-ask-btns { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
@media (min-width: 900px) { .push-ask { bottom: 24px; right: 24px; left: auto; width: 400px; } }
/* liens vers les fiches equipes / joueurs */
.fiche-l { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: inherit; min-width: 0; }
.fiche-l:hover .nm, .fiche-l:hover > span, .fiche-l:hover > b, td .fiche-l:hover { text-decoration: underline; text-underline-offset: 3px; }
.side > .fiche-l { display: contents; }
