/* Wouar V5 : design system « SaaS ludique ».
   Canvas gris froid, cartes blanches, vert terrain pour l'action, or
   réservé aux trophées, une couleur par stat. Inter (UI) + Space Grotesk
   (display). Exception assumée : les finales se jouent DE NUIT (violet-noir). */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
/* Display « impact » : Archivo Black (OFL) — grotesque lourd, vibe sport/affiche */
@font-face {
  font-family: 'Archivo Black';
  src: url('fonts/ArchivoBlack.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}
:root {
  /* DA « SaaS ludique » : violet électrique pour l'action, or pour les trophées. */
  --bg: #f6f6fa;
  --panel: #ffffff;
  --panel-2: #f8f8fc;
  --line: #e9e9f2;
  --ink: #15161c;
  --muted: #71737f;
  --violet: #6d5ef2;
  --violet-2: #9a6bff;
  --violet-soft: #efedff;
  --gold: #b98a11;
  --gold-bright: #e3b93e;
  --neg: #e0524a;
  --neg-soft: #fdefee;
  --pos: #14a06d;
  --pos-soft: #e9f8f1;
  --night: #131129;
  --night-2: #251f52;
  --chalk: #f4f3fb;
  --r-lg: 18px;
  --r-md: 12px;
  --shadow: 0 1px 2px rgba(21, 22, 28, .04), 0 12px 32px -14px rgba(21, 22, 28, .12);
  --shadow-pop: 0 2px 6px rgba(109, 94, 242, .18), 0 12px 32px -8px rgba(109, 94, 242, .35);
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --grotesk: 'Space Grotesk', 'Inter', sans-serif;
  /* une couleur par stat : c'est la signature ludique du produit */
  --c-level: #6d5ef2;
  --c-form: #2f9fe8;
  --c-moral: #e8a23b;
  --c-reputation: #e85f8a;
  --c-charisme: #22b8a8;
  --c-vestiaire: #ef7d45;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    linear-gradient(180deg, #fbfcf8 0, var(--bg) 280px),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01';
}
.app { max-width: 520px; margin: 0 auto; padding: 16px 16px 72px; }
.pad { padding: 24px; }
.fade { animation: fadein .3s cubic-bezier(.2, .8, .3, 1); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

h1, h2, h3 { font-weight: 760; letter-spacing: 0; line-height: 1.12; color: var(--ink); }
h1, .brand, .score, .match-title, .win, .loss, .year, .big { font-family: var(--display); }
h2 { font-size: 1.35rem; margin-bottom: 4px; }
.brand { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.logo-mark { width: 30px; height: 30px; display: block; flex: none; filter: drop-shadow(0 3px 8px rgba(90, 63, 240, 0.28)); transition: transform .2s ease; }
.brand:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
.logo-word { font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.night .logo-word { color: var(--chalk); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pills { display: flex; gap: 8px; }
.pill {
  font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: var(--panel);
  padding: 6px 14px; border-radius: 100px; cursor: pointer; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.pill:hover { border-color: var(--violet); color: var(--violet); }
.pill.gold { color: var(--gold); }

.hero { text-align: center; padding: 22px 0 8px; }
.home-kicker {
  display: inline-block; margin-bottom: 10px; color: var(--violet); font-weight: 800;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
}
.hero h1 { font-size: 2.05rem; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; font-size: .95rem; }
.crest-wall { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.crest { filter: drop-shadow(0 2px 5px rgba(21, 22, 28, .22)); }
.crest-wall span { transition: transform .2s; display: inline-block; }
.crest-wall span:hover { transform: translateY(-4px) rotate(-3deg); }
.feature-row { margin-top: 26px; }
.home-more { max-width: 460px; margin: 16px auto 0; }
.home-more summary { cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 700; text-align: center; }
.home-more[open] summary { margin-bottom: 10px; color: var(--violet); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.card.clickable { cursor: pointer; transition: border-color .15s, transform .12s, box-shadow .15s; }
.card.clickable:active { transform: scale(.98); }
.card.clickable:hover { border-color: #b9aefc; box-shadow: 0 8px 22px -16px rgba(109, 94, 242, .45); }
.card.selected { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft), var(--shadow); }
.card h3 { margin-bottom: 4px; font-size: 1rem; }
.card p { color: var(--muted); font-size: .88rem; }
.card .tag {
  display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--violet); margin-bottom: 8px; font-weight: 700;
  background: transparent; padding: 0; border-radius: 0;
}
.card.story p { color: var(--ink); font-size: .98rem; line-height: 1.6; }
.big { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.game-card {
  max-width: 460px;
  margin: 14px auto;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.game-card::after { display: none; }
.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tone-moment .card-tag { background: rgba(227, 185, 62, .16); color: var(--gold); }
.tone-good .card-tag { background: var(--pos-soft); color: var(--pos); }
.tone-bad .card-tag { background: var(--neg-soft); color: var(--neg); }
.event-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.event-text, .result-text {
  color: var(--ink) !important;
  font-size: 1rem !important;
  line-height: 1.6;
}
.result-text { font-weight: 500; }
.event-options {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}
.game-card .chips { justify-content: flex-start; margin: 12px 0 0; }
.game-card > .btn { margin-top: 16px; }
.opt-btn {
  position: relative;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-2);
  color: var(--ink);
  padding: 14px 40px 14px 16px;
  font: inherit;
  font-size: .96rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .1s, background .15s, box-shadow .15s;
}
.opt-btn::after { content: '›'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 700; color: var(--violet); opacity: .55; }
.opt-btn:hover { border-color: var(--violet); background: var(--violet-soft); box-shadow: 0 6px 18px -14px rgba(109, 94, 242, .5); }
.opt-btn:hover::after { opacity: 1; }
.opt-btn:active { transform: scale(.985); }
.opt-btn:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 2px; }
.card-in { animation: cardin .28s cubic-bezier(.2, .8, .3, 1) both; }

.btn {
  display: block; width: 100%;
  background: var(--violet);
  color: #fff; font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: .98rem;
  border: none; border-radius: var(--r-md);
  padding: 15px 18px; cursor: pointer; text-align: center;
  margin-top: 8px;
  box-shadow: var(--shadow-pop);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .card.clickable:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 2px; }
.btn.secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn.secondary:hover { border-color: var(--violet); color: var(--violet); filter: none; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
.btn.gold { background: var(--gold); box-shadow: 0 8px 20px -14px rgba(169, 121, 18, .55); }
.btn:disabled { opacity: .45; cursor: default; }
.btnrow { display: flex; gap: 10px; } .btnrow .btn { margin-top: 8px; }
.buybtn { width: auto; margin: 0; white-space: nowrap; }

label.field { display: block; margin-bottom: 12px; font-size: .82rem; font-weight: 600; color: var(--muted); }
input[type=text], select {
  width: 100%; margin-top: 6px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 1rem; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.choices2 .card { margin-bottom: 0; }

/* Puces d'impact */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; }
.chip {
  font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 100px;
  background: var(--panel-2); border: 1px solid var(--line);
  animation: chipin .35s cubic-bezier(.2, .8, .3, 1) backwards;
  font-variant-numeric: tabular-nums;
}
.chip:nth-child(2) { animation-delay: .07s; } .chip:nth-child(3) { animation-delay: .14s; }
.chip:nth-child(4) { animation-delay: .21s; } .chip:nth-child(5) { animation-delay: .28s; }
@keyframes chipin { from { opacity: 0; transform: translateY(8px) scale(.85); } }
.chip.pos { color: var(--pos); border-color: transparent; background: var(--pos-soft); }
.chip.neg { color: var(--neg); border-color: transparent; background: var(--neg-soft); }
.chip.muted-chip { color: var(--muted); background: var(--panel-2); border-color: var(--line); }

/* Saison */
.season-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 2px 12px; margin-bottom: 12px;
}
.season-head .year { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.season-head .club { display: flex; gap: 10px; align-items: center; text-align: right; }
.ph { margin: 12px 0 4px; font-size: 1.1rem; }
.money { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.attr-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.attr {
  font-size: .74rem; font-weight: 600; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px;
}
.attr b { color: var(--ink); font-variant-numeric: tabular-nums; }
.offer { display: flex; gap: 14px; align-items: center; }

.event-result {
  border: 1px solid var(--line); border-left: 4px solid var(--violet);
  padding: 12px 16px; margin: 12px 0; color: var(--ink);
  background: var(--panel); border-radius: var(--r-md); font-size: .93rem;
  box-shadow: var(--shadow);
}
.event-result.rival { border-left-color: var(--neg); }
.headline {
  position: relative; overflow: hidden;
  font-family: var(--display); font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
  background: linear-gradient(90deg, #fdf6e3, #fbf0d2);
  border: 1px solid #f0e2b6; border-radius: var(--r-md);
  padding: 10px 16px; margin: 8px 0;
}
.headline::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(227, 185, 62, .4), transparent);
  animation: shine 1.6s ease .3s;
}
@keyframes shine { to { left: 130%; } }

.bilan table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0; }
.bilan td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bilan tr:last-child td { border-bottom: none; }
.bilan td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta-up { color: var(--pos); } .delta-down { color: var(--neg); }

/* HUD : la barre de contrôle du produit, une couleur par stat */
.hud {
  position: sticky; top: 8px; z-index: 40;
  display: flex; gap: 2px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(233, 233, 242, .9); border-radius: 16px;
  padding: 8px 6px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.hud-stat {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 3px 0; border-radius: 10px;
  transition: background .3s;
  --sc: var(--violet);
}
.hud-stat[data-k="level"] { --sc: var(--c-level); }
.hud-stat[data-k="form"] { --sc: var(--c-form); }
.hud-stat[data-k="moral"] { --sc: var(--c-moral); }
.hud-stat[data-k="reputation"] { --sc: var(--c-reputation); }
.hud-stat[data-k="charisme"] { --sc: var(--c-charisme); }
.hud-stat[data-k="vestiaire"] { --sc: var(--c-vestiaire); }
.hud-stat[data-k="TAC"] { --sc: var(--c-level); }
.hud-stat[data-k="AURA"] { --sc: var(--c-reputation); }
.hud-stat[data-k="GES"] { --sc: var(--c-form); }
.hud-stat[data-k="trust"] { --sc: var(--c-moral); }
.hud-stat[data-k="vestiaireC"] { --sc: var(--c-vestiaire); }
.hud-stat .hv { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-stat .hl { font-size: .54rem; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.hud-stat .hb { width: 72%; height: 4px; background: var(--line); border-radius: 3px; overflow: hidden; }
.hud-stat .hb i { display: block; height: 100%; background: var(--sc); border-radius: 3px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.hud-money .hv { color: var(--gold); }
.hud-stat.up { background: var(--pos-soft); }
.hud-stat.up .hv { color: var(--pos); }
.hud-stat.down { background: var(--neg-soft); }
.hud-stat.down .hv { color: var(--neg); }
.hud-delta {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; font-weight: 800; pointer-events: none;
  animation: floatup 1.6s ease-out forwards;
  font-variant-numeric: tabular-nums;
}
.hud-delta.up { color: var(--pos); }
.hud-delta.down { color: var(--neg); }
@keyframes floatup {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); }
  15% { opacity: 1; transform: translate(-50%, -8px) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -34px) scale(1); }
}

/* Cartes en cascade */
.fade .card { animation: cardin .45s cubic-bezier(.2, .8, .3, 1) backwards; }
.fade .card:nth-of-type(2) { animation-delay: .05s; }
.fade .card:nth-of-type(3) { animation-delay: .1s; }
.fade .card:nth-of-type(4) { animation-delay: .15s; }
.fade .card:nth-of-type(5) { animation-delay: .2s; }
.fade .card:nth-of-type(6) { animation-delay: .25s; }
@keyframes cardin { from { opacity: 0; transform: translateY(14px); } }

/* Mode match : la nuit des finales, violet-noir */
.night {
  background:
    radial-gradient(700px 400px at 50% -100px, var(--night-2), transparent 70%),
    var(--night);
  margin: 0 -16px; padding: 16px 16px 28px; border-radius: 24px;
  color: var(--chalk); min-height: 70vh;
}
.night h2, .night h3 { color: var(--chalk); }
.night .mini { color: #a09cc9; }
.match-shell { padding-top: 6px; }
.match-label { text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-bright); font-weight: 700; margin-bottom: 10px; }
.match-title { font-size: 1.5rem; margin: 6px 0 16px; color: var(--chalk); font-weight: 700; }
.scoreboard {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg);
  padding: 18px 12px; margin-bottom: 12px;
}
.scoreboard .team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; color: #a09cc9; font-weight: 600; }
.score-mid { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--chalk); display: flex; flex-direction: column; align-items: center; font-variant-numeric: tabular-nums; }
.score-mid .minute { font-size: .78rem; color: var(--gold-bright); }
.score-mid b { display: inline-block; animation: scorepulse .5s ease; }
@keyframes scorepulse { 0% { transform: scale(1.4); color: var(--gold-bright); } }
.momentum { text-align: center; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.momentum.up { color: #5fd3a8; } .momentum.down { color: #ff958c; }
.night .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.night .card .tag { background: rgba(227, 185, 62, .15); color: var(--gold-bright); }
.night .card.story p { color: var(--chalk); }
.night .btn.secondary { background: rgba(255, 255, 255, .08); color: var(--chalk); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.night .btn.secondary:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.night .btn { background: linear-gradient(135deg, #c9971c, var(--gold-bright)); color: #1c1503; box-shadow: 0 4px 20px -4px rgba(227, 185, 62, .5); }
.moment p { font-size: 1.02rem; }
.ch { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; }
.hint { color: var(--gold-bright); font-size: .78rem; letter-spacing: .12em; white-space: nowrap; }
.outcome {
  text-align: center; padding: 34px 18px; border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .12); margin: 30px 0 12px;
  animation: pop .4s cubic-bezier(.2, .8, .3, 1);
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.outcome.good { background: linear-gradient(180deg, rgba(20, 160, 109, .25), rgba(255, 255, 255, .02)); border-color: rgba(20, 160, 109, .5); }
.outcome.bad { background: linear-gradient(180deg, rgba(224, 82, 74, .22), rgba(255, 255, 255, .02)); border-color: rgba(224, 82, 74, .45); }
.outcome p { font-size: 1.12rem; font-weight: 700; color: var(--chalk); }
.minute-big { font-family: var(--display); font-weight: 700; color: var(--gold-bright); font-size: 1.7rem; display: block; margin-bottom: 6px; }
.win { color: var(--gold-bright); font-size: 2.1rem; margin: 8px 0; font-weight: 700; }
.loss { color: #ff958c; font-size: 2.1rem; margin: 8px 0; font-weight: 700; }

/* Finale */
.finale { text-align: center; }
.finale-id { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 8px; }
.finale .rank { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--gold); }
.finale .score { font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.finale .sub { color: var(--muted); font-size: .9rem; }
#cardCanvas { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); margin: 12px 0; box-shadow: var(--shadow); }
#radar { width: 100%; height: auto; }
.rivalbox { text-align: left; }
.h2h { color: var(--gold); font-weight: 800; margin-top: 4px; }
.histo { text-align: left; }
.histo summary { cursor: pointer; color: var(--violet); font-weight: 700; font-size: .9rem; }
.histo table { width: 100%; font-size: .82rem; border-collapse: collapse; margin-top: 10px; }
.histo th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px; }
.histo td { padding: 4px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }

.lb-row { display: flex; justify-content: space-between; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.lb-row:last-child { border-bottom: none; }
.lb-row .pos { color: var(--muted); width: 34px; font-variant-numeric: tabular-nums; }
.pts { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.lb-row.me { background: var(--violet-soft); border-radius: 10px; }

.quest { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quest .done, .done { color: var(--pos); font-weight: 700; font-size: .85rem; }
.perk-owned { border-color: var(--pos); }
.mini { font-size: .8rem; color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 16px; }
footer { margin-top: 44px; text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 11px 20px; border-radius: 100px; z-index: 50;
  box-shadow: 0 8px 30px rgba(21, 22, 28, .3);
  animation: fadeout 2.4s forwards;
}
@keyframes fadeout { 0%, 70% { opacity: 1 } 100% { opacity: 0 } }
@media (max-width: 420px) {
  .hero h1 { font-size: 1.85rem; }
  .choices2, .grid2 { grid-template-columns: 1fr; }
}

/* ============================== V6 « Monde vivant » ============================== */
.me-id { display: flex; align-items: center; gap: 10px; }
.me-id svg, .rival-head svg, .sq-card svg, .race-ava svg, .finale-id svg { border-radius: 12px; flex: none; }

/* table de championnat */
.lt { padding: 14px; }
.lt-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 0.86rem; }
.lt-row + .lt-row { margin-top: 2px; }
.lt-pos { width: 1.4em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.lt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.lt-pts { color: var(--muted); font-variant-numeric: tabular-nums; }
.lt-row.zone-e .lt-pos { color: var(--violet); font-weight: 700; }
.lt-row.zone-r { background: var(--neg-soft); }
.lt-row.you { background: var(--violet-soft); box-shadow: inset 2px 0 0 var(--violet); font-weight: 600; }
.lt-row.champ .lt-name { color: var(--gold); font-weight: 700; }
.champ-tag { font-style: normal; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin-left: 6px; }
.lt-skip { text-align: center; color: var(--muted); line-height: 0.7; padding: 2px 0; }

/* campagnes (LDC, Libertadores, Mondial, continental) */
.run { padding: 14px; }
.run-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.run-pill { font-size: 0.78rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.run-pill b { font-weight: 700; margin-right: 4px; }
.run-pill.w { border-color: var(--pos); box-shadow: inset 0 0 0 1px var(--pos); }
.run-pill.l { border-color: var(--neg); color: var(--muted); }
.run-pill.final.w { background: var(--gold); border-color: var(--gold); color: #1c1608; font-weight: 700; }

/* course au Soulier d'Or */
.race { padding: 14px; }
.race-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: 0.88rem; }
.race-row .lt-name { font-weight: 600; }
.race-row.you { background: var(--violet-soft); box-shadow: inset 2px 0 0 var(--violet); }
.race-row.rivalrow { box-shadow: inset 2px 0 0 var(--neg); }

/* vestiaire nommé */
.squad { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.sq-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); font-size: 0.82rem; }
.sq-card b { color: var(--ink); }

/* fil de match nommé */
.feed { margin: 10px auto 0; max-width: 340px; }
.feed-line { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); padding: 2px 0; }
.feed-line.them { flex-direction: row-reverse; text-align: right; color: rgba(255, 255, 255, 0.5); }
.fmin { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.45); width: 2.4em; flex: none; }
.feed-line.them .fmin { text-align: left; }
.fdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; opacity: 0.7; }
.fdot.me { background: var(--gold-bright, #f2c14e); box-shadow: 0 0 8px var(--gold-bright, #f2c14e); opacity: 1; }

/* duel de rivaux */
.rival-banner { text-align: center; color: #ff7b93; font-weight: 600; font-size: 0.9rem; margin: 8px 0; }
.rival-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }

/* qualification continentale */
.event-result.euro { border-color: var(--violet); }

/* confettis de sacre */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.confetti i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; opacity: 0.9; animation: conf-fall 3s linear forwards; }
@keyframes conf-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
.night { position: relative; }

/* ============================== V7 ============================== */
.press { border-left: 3px solid var(--gold); background: var(--panel); border-radius: var(--r-md); padding: 10px 14px; margin: 8px 0; font-size: 0.86rem; color: var(--muted); font-style: italic; box-shadow: var(--shadow); }
.card.natl { border-left: 3px solid var(--violet); }
.sc-off .tag { margin-bottom: 4px; }

/* ============================== V8 « Rebondissements » ============================== */
/* coup de théâtre */
.card.story.breaking { border: 1px solid transparent; background:
  linear-gradient(var(--panel), var(--panel)) padding-box,
  linear-gradient(120deg, var(--gold), #ff5470, var(--violet)) border-box; }
.breaking-strip { display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #1c1608; background: linear-gradient(90deg, var(--gold), #ffd97a); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.event-result.twist { border-color: var(--gold); }

/* avant-match : options de plan à deux lignes */
.plan-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.plan-opt .plan-desc { font-size: 0.78rem; font-weight: 400; color: rgba(255, 255, 255, 0.55); }

/* jauge de momentum */
.mgauge { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 10px; }
.mgauge i { width: 16px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s; }
.mgauge i.mid { width: 7px; background: rgba(255, 255, 255, 0.3); }
.mgauge i.on-up { background: #5fd3a8; box-shadow: 0 0 8px rgba(95, 211, 168, 0.6); }
.mgauge i.on-down { background: #ff7b93; box-shadow: 0 0 8px rgba(255, 123, 147, 0.55); }
.mg-label { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-left: 6px; }

/* nuit de match : projecteurs et grain */
.night { overflow: hidden; }
.night::before { content: ''; position: absolute; inset: -40% -20%; pointer-events: none;
  background: conic-gradient(from 200deg at 50% -10%, transparent 42%, rgba(150, 130, 255, 0.10) 47%, transparent 52%, transparent 58%, rgba(150, 130, 255, 0.08) 63%, transparent 68%);
  animation: sweep 14s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.night > .match-shell { position: relative; z-index: 1; }

/* verdicts */
.night h2.win { font-size: 2.4rem; letter-spacing: 0.04em; background: linear-gradient(100deg, #ffe9a8, var(--gold), #fff6dd); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px rgba(217, 182, 74, 0.45)); }
.night h2.loss { font-size: 2.1rem; letter-spacing: 0.04em; color: #8e8fa5; }
.outcome.good { box-shadow: inset 0 0 0 1px rgba(95, 211, 168, 0.4), 0 0 34px rgba(95, 211, 168, 0.12); }
.outcome.bad { box-shadow: inset 0 0 0 1px rgba(255, 123, 147, 0.35), 0 0 34px rgba(255, 123, 147, 0.10); }

/* entrées en scène : cascade discrète des cartes */
.fade .card, .fade .event-result, .fade .headline, .fade .press { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.fade .card:nth-of-type(2), .fade .event-result:nth-of-type(2) { animation-delay: 0.05s; }
.fade .card:nth-of-type(3), .fade .event-result:nth-of-type(3) { animation-delay: 0.1s; }
.fade .card:nth-of-type(4) { animation-delay: 0.15s; }
.fade .card:nth-of-type(5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* gros titres dorés qui brillent */
.headline { position: relative; overflow: hidden; }
.headline::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shine 2.6s ease-in-out 0.6s 2; left: -80px; }
@keyframes shine { to { left: 120%; } }

@media (prefers-reduced-motion: reduce) {
  .night::before, .headline::after { animation: none; }
  .fade .card, .fade .event-result, .fade .headline, .fade .press { animation: none; }
}

/* ============================== V9 « Terrain & vie » ============================== */
/* boutique : le solde vit */
.card.balance { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; position: sticky; top: 8px; z-index: 5; }
.card.balance b { font-size: 1.15rem; transition: color 0.25s; }
.card.balance b.neg { color: var(--neg); }
.buy { position: relative; }
.buy .cost { color: var(--neg); }
.buy.locked { opacity: 0.45; pointer-events: auto; cursor: not-allowed; }
.buy.selected { outline: 2px solid var(--violet); }
.event-result .cost { color: var(--neg); margin-left: 4px; }

/* terrain */
.pitch { display: block; width: min(100%, 380px); margin: 0 auto 10px; }
.pitch .ball { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)); animation: ballpulse 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ballpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* la vie du joueur */
.vie-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.vie-txt { flex: 1; min-width: 0; }
.house { width: 64px; height: 52px; flex: none; opacity: 0.95; }
.gicons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gicon { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-soft); display: inline-flex; align-items: center; justify-content: center; }
.gicon svg { width: 20px; height: 20px; }

/* le train de vie au bilan */
.gear-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.gear-row .chips { margin: 0; }

@media (prefers-reduced-motion: reduce) { .pitch .ball { animation: none; } }

/* ============================== V10 « Légende » ============================== */
/* parcours de création */
.setup-steps { display: flex; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.step-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all 0.25s; }
.step-dot.active { background: var(--violet); transform: scale(1.35); box-shadow: 0 0 10px rgba(23, 111, 71, 0.42); }
.step-dot.done { background: var(--violet); opacity: 0.45; }
.wiz-back { background: none; border: none; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 4px 0; }
.wiz-back:hover { color: var(--ink); }

/* drapeaux */
.nat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.nat-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); cursor: pointer; font: inherit; transition: transform 0.15s, border-color 0.15s; }
.nat-card:hover { transform: translateY(-2px); border-color: var(--violet); }
.nat-flag { font-size: 2rem; line-height: 1; }
.nat-name { font-size: 0.78rem; font-weight: 600; color: var(--ink); text-align: center; }

/* poste sur le terrain */
.pos-pitch { position: relative; width: min(100%, 320px); margin: 14px auto; }
.pos-pitch svg { display: block; width: 100%; }
.pos-spot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel); border: 2px solid var(--violet); border-radius: 999px; padding: 10px 18px; cursor: pointer; font: inherit; box-shadow: var(--shadow-pop); transition: transform 0.15s; }
.pos-spot:hover { transform: translate(-50%, -50%) scale(1.08); }
.pos-spot b { color: var(--violet); font-size: 1rem; }
.pos-spot span { font-size: 0.7rem; color: var(--muted); }

/* défi du jour */
.daily-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

/* barre d'âge */
.age-bar { height: 4px; border-radius: 2px; background: var(--line); margin: -6px 0 12px; overflow: hidden; }
.age-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); border-radius: 2px; }

/* traits & reprise */
.trait-line { border-left: 2px solid var(--gold); padding-left: 8px; margin-top: 8px; }
.trait-badge { display: inline-block; border: 1px solid var(--gold); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 0.82rem; margin: 8px 0; }
.btn.resume { background: linear-gradient(100deg, var(--gold), #e8c96a); color: #1c1608; }
.pctile { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.traj { text-align: center; margin: 6px 0; }

/* face à face */
.h2h-grid { margin: 10px 0 6px; }
.h2h-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.h2h-row:last-child { border-bottom: none; }
.h2h-row b { font-size: 1.05rem; text-align: center; }
.h2h-row span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-align: center; }
.card.untaken { border-left: 3px solid var(--muted); font-style: italic; }

/* écran d'objectif (premier contact) */
.intro { max-width: 460px; margin: 8px auto; }
.intro h2 { font-size: 1.7rem; margin-bottom: 8px; }
.intro-goal { color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.intro-goal b { color: var(--ink); }
.intro-step { display: flex; gap: 14px; align-items: flex-start; }
.intro-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-2)); box-shadow: 0 4px 12px rgba(23, 111, 71, 0.3); }

/* ============================== UX mobile : cheminement clair ============================== */
/* consigne qui pulse : on sait toujours quoi faire */
.tap-hint { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 9px 14px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 0.85rem; font-weight: 600; width: fit-content; }
.tap-hint::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); animation: tapdot 1.4s ease-in-out infinite; }
@keyframes tapdot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.55; } }

/* toute carte cliquable s'annonce : chevron à droite */
.card.clickable { position: relative; padding-right: 34px; }
.card.clickable::after { content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 700; color: var(--violet); opacity: 0.7; }
.card.clickable:active { transform: scale(0.985); }

/* cartes de club : l'appel à signer est explicite partout */
.choose { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(100deg, var(--violet), var(--violet-2)); color: #fff; font-size: 0.8rem; font-weight: 700; }

/* bouton principal collant : plus besoin de chercher la validation */
.btn.cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(92%, 430px); z-index: 40; box-shadow: 0 10px 30px rgba(23, 111, 71, 0.38), 0 2px 8px rgba(0, 0, 0, 0.25); }
.app { padding-bottom: 92px; }

@media (prefers-reduced-motion: reduce) { .tap-hint::before { animation: none; } }

/* jalons de carrière : les bifurcations du destin */
.event-result.milestone { border-color: var(--gold); background: linear-gradient(100deg, rgba(217, 182, 74, 0.10), var(--panel) 55%); font-weight: 600; }

/* but : frisson doux + GOOOAL qui traverse la nuit */
.night.goal-shake { animation: goalshake 0.5s ease-out; }
@keyframes goalshake {
  20% { transform: translate3d(-2px, 1px, 0); }
  45% { transform: translate3d(2px, -1px, 0); }
  70% { transform: translate3d(-1px, 0, 0); }
}
.goal-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: 24px;
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 245, 214, 0.14), transparent 70%);
  animation: goalflash 1.3s ease-out forwards; }
@keyframes goalflash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.goal-cry { position: absolute; top: 34%; left: 0; right: 0; z-index: 5; pointer-events: none;
  text-align: center; font-family: var(--display); font-weight: 800; font-size: 3rem; letter-spacing: 0.06em; font-style: italic;
  background: linear-gradient(100deg, #fff6dd, var(--gold), #ffe9a8); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(217, 182, 74, 0.5));
  animation: goalcry 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes goalcry {
  0% { opacity: 0; transform: scale(0.6) rotate(-3deg); }
  18% { opacity: 1; transform: scale(1.08) rotate(-2deg); }
  30% { transform: scale(1) rotate(-2deg); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.04) translateY(-14px) rotate(-2deg); }
}
.goal-against { position: absolute; top: 38%; left: 0; right: 0; z-index: 5; pointer-events: none;
  text-align: center; font-size: 1rem; font-weight: 600; color: rgba(255, 123, 147, 0.85);
  animation: goalflash 1.2s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .night.goal-shake { animation: none; } .goal-flash { display: none; } }

.choose.stay { background: var(--panel); color: var(--violet); border: 2px solid var(--violet); }
.off { border: 1px solid var(--line); }
.off:hover { border-color: var(--violet); }
.card.simple-choice { padding: 14px 16px; margin-bottom: 8px; }
.card.simple-choice::after { display: none; }
.simple-choice .chips { justify-content: flex-start; margin: 8px 0 0; }
.simple-choice .choose { margin-top: 6px; }
/* cartes de choix compactes (entraînement + hors terrain) */
.card.train-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 40px 12px 16px; margin-bottom: 8px; }
.train-card .tag { margin: 0; font-size: 0.95rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 700; }
.train-now { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--violet); font-variant-numeric: tabular-nums; }
.card.clickable.lf { padding: 12px 40px 12px 16px; margin-bottom: 8px; }
.lf-label { display: block; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.lf .chips { margin: 6px 0 0; }

/* ============================== V12 « Rendez-vous » ============================== */
.home-panel { text-align: left; max-width: 460px; margin: 10px auto; }
.dq { padding: 3px 0; }
.dq.done { color: var(--pos); text-decoration: line-through; }
.dq b { color: var(--gold); float: right; }
.duelbox { border-left: 3px solid var(--neg); }
.storybox { border-left: 3px solid var(--gold); }
.lad-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; font-size: 0.85rem; color: var(--muted); }
.lad-at { width: 2.6em; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.lad-row.you { background: linear-gradient(100deg, rgba(217, 182, 74, 0.16), var(--violet-soft)); color: var(--ink); font-weight: 700; }
.lad-row.you .lad-at { color: var(--gold); }
.lad-row b { margin-left: auto; color: var(--gold); }

/* HUD allégé + profil dépliable */
.hud-lite { align-items: center; }
.hud-lite .hud-stat { min-width: 64px; }
.hud-toggle { margin-left: auto; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.hud-toggle.on { border-color: var(--violet); color: var(--violet); background: var(--violet-soft); }
.hud-panel { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 12px 14px; margin: -6px 0 12px; }
.hud-panel.open { display: block; }
.hud-panel .pbar-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; position: relative; }
.hud-panel .pbar-label { width: 88px; font-size: 0.78rem; color: var(--muted); flex: none; }
.hud-panel .hb { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: block; }
.hud-panel .hb i { display: block; height: 100%; border-radius: 3px; background: var(--violet); }
.hud-panel .pbar-val { width: 2.2em; text-align: right; font-weight: 700; font-size: 0.82rem; }
.hud-panel .attr-row { margin: 10px 0 2px; }

/* ============================== Intersaison compacte ============================== */
/* identité de club façon pastilles */
.cb-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.cdots { display: inline-flex; gap: 3px; flex: none; }
.cdots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, 0.12); }
.lt-row .cdots i { width: 10px; height: 10px; }
.cb-flag { font-size: 1.1rem; }
.lvl { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 6px; flex: none; }
.lvl-elite { background: linear-gradient(100deg, var(--gold), #ffd97a); color: #1c1608; }
.lvl-d1 { background: var(--violet-soft); color: var(--violet); }
.lvl-d2 { background: var(--line); color: var(--muted); }
.lvl-reg { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* recap de saison */
.recap { text-align: center; }
.recap.tone-good { border-top: 3px solid var(--pos); }
.recap.tone-bad { border-top: 3px solid var(--neg); }
.recap-headline { font-style: italic; color: var(--ink); font-weight: 600; margin: 8px 0 12px; }
.recap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.recap-cell { background: var(--violet-soft); border-radius: var(--r-md); padding: 10px 4px; display: flex; flex-direction: column; }
.recap-num { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); font-family: var(--display); }
.recap-lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.recap-line { margin: 6px 0; color: var(--muted); }
.recap-line b { color: var(--ink); }
.progress-line { font-size: 13px; line-height: 1.6; border-top: 1px solid var(--line, rgba(255,255,255,0.08)); padding-top: 8px; margin-top: 8px; }
.arc { font-weight: 700; margin-right: 6px; }
.arc-up { color: var(--pos); } .arc-down { color: var(--neg); } .arc-peak { color: var(--gold-bright, #e3b93e); }
.card.clickable.style .tag { color: var(--violet-2); }

/* sections repliées */
.fold summary { cursor: pointer; font-weight: 700; color: var(--violet); padding: 2px 0; }
.fold[open] summary { margin-bottom: 8px; }
.fold .card { box-shadow: none; border: 1px solid var(--line); }

/* départ en sélection */
.obj-band { text-align: center; margin: 4px auto 10px; max-width: 340px; padding: 7px 14px; border-radius: 999px; font-size: 0.86rem;
  background: rgba(242,193,78,0.12); border: 1px solid rgba(242,193,78,0.3); color: #f4e6b8; }
.obj-band b { color: #fff6dd; }
.obj-hero { text-align: center; padding: 20px 12px 6px; }
.obj-emoji { font-size: 3.2rem; display: block; margin-bottom: 6px; }
.obj-hero h2 { margin: 4px 0; }
.ini { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; }
.obj-mini { font-size: 13px; color: var(--muted); }
.obj-mini span { font-weight: 700; }
.bdor-gala .bdor-trophy { font-size: 4.5rem; line-height: 1; margin: 6px 0; animation: pop .6s ease; }
.bdor-gala .bdor-sub { color: var(--gold-bright); font-weight: 700; margin: 2px 0 14px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 16px 0; }
.podium .pod { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; max-width: 120px; }
.podium .pod-name { font-size: 12px; color: var(--chalk); text-align: center; }
.podium .pod-bar { width: 100%; border-radius: 8px 8px 0 0; background: rgba(255,255,255,0.08); font-size: 1.6rem; display: flex; align-items: flex-end; justify-content: center; padding-top: 8px; }
.podium .pod1 .pod-bar { height: 96px; background: linear-gradient(180deg, rgba(227,185,62,0.4), rgba(227,185,62,0.12)); }
.podium .pod2 .pod-bar { height: 66px; }
.podium .pod3 .pod-bar { height: 48px; }
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.natl-depart, .natl-hero { text-align: center; padding: 22px 12px 8px; }
.natl-flag { font-size: 4rem; display: block; margin-bottom: 8px; }
.natl-hero h2 { margin: 4px 0; }
.natl-plan { text-align: left; }
.natl-plan .plan-h { margin: 0 0 4px; font-size: 1.15rem; }
.natl-xi { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.natl-slot { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: rgba(23,111,71,0.07); border: 1px solid var(--line, rgba(0,0,0,0.08)); border-radius: 10px; font-size: 13px; }
.natl-slot.you { background: linear-gradient(135deg, rgba(23,111,71,0.18), rgba(215,167,47,0.12)); border-color: var(--violet); font-weight: 700; }
.natl-slot .slot-pos { font-weight: 700; color: var(--violet-2); min-width: 30px; font-size: 11px; }
.natl-slot .slot-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.natl-slot .slot-lvl { font-weight: 700; color: var(--gold); }
.natl-plan .choose { color: var(--violet-2); }
.natl-result .natl-ladder { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.natl-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); color: var(--chalk); font-size: 14px; }
.natl-row.w { border-left: 3px solid var(--gold-bright); }
.natl-row.l { border-left: 3px solid #c0424e; opacity: 0.72; }
.natl-row .nr-round { font-weight: 700; font-size: 12px; color: #a09cc9; }
.natl-row .nr-score { font-weight: 700; }
.natl-row .nr-mark { font-weight: 700; }
.resume-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.btn-link { background: none; border: none; color: var(--muted); font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--ink); }
.resume-x { background: none; border: 1px solid var(--line); border-radius: 50%; width: 22px; height: 22px; line-height: 1; color: var(--muted); font-size: 0.7rem; cursor: pointer; }
.resume-x:hover { border-color: var(--neg); color: var(--neg); }
.locked-soon { opacity: 0.6; cursor: default; text-decoration: none; }

/* mode Grand Soir */
.gs-btn { position: relative; }
.new-chip { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; background: linear-gradient(100deg, var(--gold), #ffd97a); color: #1c1608; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
/* ---- Grand Soir : mode cinématique « grande nuit » ---- */
.gs-land { background: radial-gradient(120% 90% at 50% -10%, #2a2560 0%, #171334 45%, #0d0a1f 100%); border-radius: var(--r-lg); padding: 26px 18px 22px; }
.gs-land::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(180,160,255,0.10) 46%, transparent 52%), linear-gradient(260deg, transparent 30%, rgba(242,193,78,0.08) 47%, transparent 53%); }
.gs-title { font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 0.94; letter-spacing: 0.01em; text-align: center; margin: 6px 0 10px;
  background: linear-gradient(105deg, #fff2c8, #f2c14e 45%, #fff6dd 70%, #e3b93e); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 22px rgba(242,193,78,0.30)); }
.gs-tag { text-align: center; color: #cfcbe8; max-width: 420px; margin: 0 auto 14px; font-size: 0.95rem; }
.gs-record { display: block; width: fit-content; margin: 0 auto 16px; padding: 6px 14px; border-radius: 999px; background: rgba(242,193,78,0.14); border: 1px solid rgba(242,193,78,0.35); color: var(--gold-bright); font-weight: 700; font-size: 0.85rem; }
.gs-path { display: flex; align-items: center; justify-content: center; gap: 2px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.gs-path::-webkit-scrollbar { display: none; }
.gs-node { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; width: 58px; text-align: center; }
.gs-n-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 0.8rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #cfcbe8; }
.gs-node:last-child .gs-n-dot { background: linear-gradient(135deg, #c9971c, var(--gold-bright)); color: #1c1503; border-color: transparent; box-shadow: 0 0 14px rgba(242,193,78,0.5); }
.gs-n-lbl { font-size: 0.62rem; line-height: 1.15; color: #a09cc9; letter-spacing: 0.02em; }
.gs-n-link { flex: none; width: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.24)); margin-bottom: 20px; }
.gs-pick { text-align: center; color: var(--gold-bright); font-weight: 600; font-size: 0.9rem; margin: 4px 0 12px; }
.gs-pos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-pos-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md); color: var(--chalk); font-family: inherit; transition: border-color .18s, transform .18s, background .18s; }
.gs-pos-card:hover, .gs-pos-card:active { border-color: var(--gold-bright); background: rgba(242,193,78,0.10); transform: translateY(-2px); }
.gs-pos-e { font-size: 1.7rem; line-height: 1; }
.gs-pos-l { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.gs-pos-d { font-size: 0.72rem; color: #a09cc9; }
.gs-hero-id { display: flex; justify-content: center; margin: 4px 0 10px; }
.gs-hero-id svg { border-radius: 20px; box-shadow: 0 0 0 3px rgba(242,193,78,0.35), 0 8px 26px -6px rgba(0,0,0,0.6); }
.gs-hero-name { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--chalk); margin: 2px 0; letter-spacing: -0.01em; }
.gs-first { margin: 14px auto; padding: 12px 14px; max-width: 320px; border-radius: var(--r-md); background: rgba(255,255,255,0.05); border: 1px solid rgba(242,193,78,0.22); }
.gs-first-lbl { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--gold-bright); text-transform: uppercase; }
.gs-enter { margin-top: 8px; }
.night .trait-badge, .trait-badge.gold { background: rgba(242,193,78,0.12); border: 1px solid rgba(242,193,78,0.3); color: #f4e6b8; }
.gs-ladder { margin: 16px auto; max-width: 360px; }
.gs-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.gs-row.w { background: rgba(95, 211, 168, 0.10); }
.gs-row.l { background: rgba(255, 123, 147, 0.10); color: rgba(255, 255, 255, 0.9); }
.gs-row.x { opacity: 0.4; }
.gs-mark { width: 1.2em; font-weight: 800; }
.gs-row.w .gs-mark { color: #5fd3a8; }
.gs-row.l .gs-mark { color: #ff7b93; }
.gs-lbl { flex: 1; }
.gs-pts { font-variant-numeric: tabular-nums; }
.night .btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.8); }
.feed-info { display: flex; gap: 8px; justify-content: center; font-size: 0.76rem; font-style: italic; color: rgba(255, 255, 255, 0.55); padding: 2px 0; }
.tag-money { background: linear-gradient(100deg, var(--gold), #ffd97a); color: #1c1608; }

/* Grand Soir : progression et presse */
.gs-pips { display: flex; gap: 8px; justify-content: center; margin: 8px 0; }
.gs-pip { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.gs-pip.w { background: #5fd3a8; box-shadow: 0 0 8px rgba(95, 211, 168, 0.5); }
.gs-pip.l { background: #ff7b93; }
.gs-pip.cur { background: var(--gold); animation: tapdot 1.4s ease-in-out infinite; }
.gs-quote { font-style: italic; color: rgba(255, 255, 255, 0.65); }

/* ============ Écran final « fiche de carrière » (inspiration Destiny) ============ */
.player-card { position: relative; overflow: hidden; max-width: 480px; margin: 0 auto; padding: 20px 18px 24px;
  border-radius: var(--r-lg); color: var(--chalk); --tier: var(--gold-bright);
  background: radial-gradient(120% 80% at 50% -10%, #241f42 0%, #17132e 55%, #100d20 100%);
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 20px 50px -18px rgba(0,0,0,0.6); }
.player-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 2px solid var(--tier); opacity: 0.5; mask: linear-gradient(#000, transparent 60%); }
.tier-bronze { --tier: #d68e57; } .tier-argent { --tier: #cdd6e8; } .tier-or { --tier: #e8c15a; }
.tier-legende { --tier: #a99bff; } .tier-ultime { --tier: #f2c14e; }
.pc-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #b8b3d6; }
.pc-tier { text-align: center; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.06em; color: var(--tier); margin: 10px 0 8px; }
.fut-head { display: flex; gap: 16px; align-items: center; padding: 4px 2px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fut-left { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; min-width: 78px; }
.pc-ovr { font-family: var(--display); font-size: 3.4rem; line-height: 0.9; color: var(--tier); }
.fut-pos { font-family: var(--display); font-size: 1rem; color: var(--chalk); letter-spacing: 0.04em; }
.fut-flag { font-size: 1.4rem; }
.fut-right { flex: 1; min-width: 0; }
.pc-name { font-family: var(--display); font-size: 1.25rem; color: var(--chalk); margin: 0 0 2px; line-height: 1.1; }
.pc-nickname { font-size: 0.9rem; color: var(--tier); margin: 0 0 4px; }
.pc-club, .pc-trajectory, .pc-percentile { font-size: 0.82rem; color: #b8b3d6; margin: 3px 0; line-height: 1.35; }
.pc-percentile { color: var(--tier); }
.pc-traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.trait-chip { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: var(--chalk); }
.pc-section-label { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tier); margin: 18px 0 8px; }
.pc-stats, .pc-trophies, .pc-path, .pc-seasons { background: rgba(255,255,255,0.04); border-radius: var(--r-md); padding: 4px 12px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.stat-row:last-child { border-bottom: 0; }
.stat-label { color: #cfcbe8; } .stat-value { font-family: var(--display); font-weight: 700; color: var(--chalk); font-variant-numeric: tabular-nums; }
.trophy-earned { }
.trophy-earned .stat-label { color: #fff6dd; } .trophy-earned .stat-value { color: var(--gold-bright); }
.pc-path { padding: 8px 12px; }
.path-step { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 0.86rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.path-step:last-child { border-bottom: 0; }
.path-age { color: #9a95bd; min-width: 52px; font-variant-numeric: tabular-nums; }
.path-club { color: var(--chalk); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path-country { color: #9a95bd; }
.level-tag { font-size: 0.62rem; font-weight: 800; padding: 2px 6px; border-radius: 5px; letter-spacing: 0.04em; }
.level-d1 { background: rgba(23,111,71,0.25); color: #b9ead0; }
.level-d2 { background: rgba(255,255,255,0.08); color: #9a95bd; }
.seasons-toggle { display: block; width: 100%; text-align: center; background: none; border: 0; color: var(--tier); font-family: inherit; font-size: 0.86rem; padding: 12px 0 4px; cursor: pointer; }
.season-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.season-age { color: #9a95bd; } .season-club { color: var(--chalk); display: flex; gap: 6px; align-items: center; }
.season-stats { color: #b8b3d6; font-variant-numeric: tabular-nums; } .season-icons { min-width: 18px; text-align: right; }
.rival-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rival-col { background: rgba(255,255,255,0.04); border-radius: var(--r-md); padding: 10px; }
.rival-col-name { font-family: var(--display); font-size: 0.95rem; color: var(--chalk); margin: 0 0 2px; }
.rival-col-tier { font-size: 0.72rem; color: #9a95bd; margin: 0 0 6px; min-height: 1.6em; }
.rival-col-stats .stat-row { padding: 5px 0; font-size: 0.82rem; }
.rival-verdict { text-align: center; font-style: italic; color: #cfcbe8; margin: 12px 0 0; font-size: 0.9rem; }
.pc-story { margin: 18px 0 4px; color: #cfcbe8; font-size: 0.9rem; line-height: 1.5; }
.pc-untaken { color: #9a95bd; font-size: 0.84rem; font-style: italic; line-height: 1.45; }
.badge-unlock-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--tier); text-align: center; }
.final-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 480px; margin: 14px auto 8px; }
.final-actions .btn { flex: 1; min-width: 130px; }
.pc-replay { display: block; width: 100%; max-width: 480px; margin: 4px auto 20px; }

/* ================= Le Panthéon ================= */
.panth-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin: 14px 0 18px; }
.pod-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; text-align: center; }
.pod-card.rank1 { padding-top: 22px; border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright), 0 10px 24px -14px rgba(213,161,41,.5); }
.pod-medal { font-size: 1.6rem; line-height: 1; }
.pod-score { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; }
.pod-card.rank1 .pod-score { color: var(--gold); font-size: 2.4rem; }
.pod-name { font-weight: 700; font-size: 0.86rem; color: var(--ink); }
.pod-rank { font-size: 0.68rem; color: var(--muted); line-height: 1.2; }
.panth-records { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.pr-cell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 4px; text-align: center; }
.pr-num { display: block; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--violet); }
.pr-lbl { font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.panth-bypos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bypos { font-size: 0.78rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.bypos b { color: var(--ink); font-family: var(--display); }
.bypos.off { opacity: 0.5; }
.panth-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pbadge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--line); text-align: center; opacity: 0.45; filter: grayscale(1); }
.pbadge.got { opacity: 1; filter: none; background: var(--panel); border-color: var(--violet-soft); box-shadow: var(--shadow); }
.pb-e { font-size: 1.5rem; line-height: 1; }
.pb-l { font-size: 0.66rem; color: var(--ink); line-height: 1.2; font-weight: 600; }
.panth-row .pts { color: var(--violet); }
.panth-teaser { display: block; margin: 4px auto 0; color: var(--violet); font-weight: 600; }
.panth-teaser b { color: var(--ink); }
