@font-face { font-family: 'Big Shoulders Display'; font-weight: 700; font-display: swap; src: url('/fonts/bsd-700.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-display: swap; src: url('/fonts/bsd-800.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('/fonts/bsd-900.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-700.woff2') format('woff2'); }

:root {
  --turf: #12452f;
  --turf-2: #0f3c29;
  --turf-deep: #0a2a1c;
  --chalk: #eef3ea;
  --chalk-dim: rgba(238, 243, 234, 0.62);
  --chalk-line: rgba(238, 243, 234, 0.22);
  --flood: #ffd23f;
  --flood-ink: #2b2200;
  --red: #ef5350;
  --sky: #8fd3ff;
  --panel: rgba(6, 28, 18, 0.72);
  --panel-solid: #0b2f1f;
  --r-sm: 6px;
  --r-md: 12px;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  background-color: var(--turf);
  /* bandes de tonte */
  background-image: repeating-linear-gradient(180deg, var(--turf) 0 72px, var(--turf-2) 72px 144px);
  background-attachment: fixed;
}
/* rond central et ligne médiane, très discrets */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 159px, var(--chalk-line) 160px, var(--chalk-line) 162px, transparent 163px),
    linear-gradient(180deg, transparent calc(50% - 1px), var(--chalk-line) calc(50% - 1px), var(--chalk-line) calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 0.55;
}
#app { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 16px 16px 120px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 11vw, 84px); }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
p { margin: 0 0 10px; }
.muted { color: var(--chalk-dim); }
.small { font-size: 14px; }
.num { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
a { color: var(--flood); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flood); outline-offset: 2px; }

/* ---------- Surfaces : tracés à la craie ---------- */
.box {
  background: var(--panel);
  border: 2px solid var(--chalk-line);
  border-radius: var(--r-md);
  padding: 16px;
  backdrop-filter: blur(3px);
}
.box + .box { margin-top: 14px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- Boutons ---------- */
.btn {
  appearance: none; border: 2px solid var(--chalk); background: transparent; color: var(--chalk);
  border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
}
.btn:hover { background: rgba(238, 243, 234, 0.08); }
.btn.primary { background: var(--flood); color: var(--flood-ink); border-color: var(--flood); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.ghost { border-color: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

input, select {
  font: inherit; color: var(--chalk); background: var(--turf-deep); border: 2px solid var(--chalk-line);
  border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; width: 100%;
}
input:focus { border-color: var(--flood); outline: none; }
label.field { display: block; }
label.field span { display: block; font-weight: 600; margin-bottom: 6px; }

/* ---------- Logo ---------- */
.logo { font-family: var(--display); font-weight: 900; line-height: 0.86; text-transform: none; }
.logo .l1 { display: block; font-size: clamp(64px, 18vw, 132px); color: var(--chalk); }
.logo .l2 { display: block; font-size: clamp(40px, 11vw, 80px); color: var(--flood); margin-left: 0.06em; }
.logo-sm { font-family: var(--display); font-weight: 900; font-size: 26px; }
.logo-sm b { color: var(--flood); }

.auth { min-height: 88vh; display: grid; align-content: center; gap: 28px; max-width: 460px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }

/* ---------- Code de salon ---------- */
.code {
  font-family: var(--display); font-weight: 900; font-size: clamp(56px, 16vw, 96px); letter-spacing: 0.12em;
  color: var(--flood-ink); background: var(--flood); border-radius: var(--r-md); padding: 4px 18px; display: inline-block;
  cursor: pointer; line-height: 1.05;
}
.code-input { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; }

/* ---------- Liste de joueurs ---------- */
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--chalk-line); }
.plist li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chalk-dim); flex: none; }
.dot.on { background: #6fe39a; }
.dot.ready { background: var(--flood); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--chalk-line); color: var(--chalk-dim); }
.tag.flood { background: var(--flood); color: var(--flood-ink); border-color: var(--flood); }
.tag.red { border-color: var(--red); color: var(--red); }

/* ---------- Carte joueur (l'élément signature) ---------- */
.pcard {
  position: relative; overflow: hidden;
  border-radius: 18px 18px 18px 18px;
  background:
    linear-gradient(160deg, rgba(255, 210, 63, 0.95) 0%, #f2b82b 46%, #c98a12 100%);
  color: #261b00;
  padding: 16px 16px 14px;
  border: 3px solid #fff2bd;
  box-shadow: 0 0 0 2px #2d2104 inset;
}
.pcard.silver { background: linear-gradient(160deg, #eef1f3 0%, #c5ccd2 50%, #8f99a2 100%); border-color: #fbfdff; color: #1b2228; }
.pcard.bronze { background: linear-gradient(160deg, #e9b48a 0%, #c27c4e 52%, #8a4d2a 100%); border-color: #ffe0c7; color: #2b1508; }
.pcard.retired { filter: grayscale(0.75); }
.pcard::after { /* reflet foil */
  content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 48%, transparent 56%);
  pointer-events: none;
}
.pc-top { display: flex; gap: 14px; align-items: flex-start; }
.pc-ovr { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 0.82; }
.pc-pos { font-family: var(--display); font-weight: 800; font-size: 22px; }
.pc-flag { font-size: 26px; line-height: 1; margin-top: 4px; }
.pc-ava { font-size: 64px; line-height: 1; margin-left: auto; filter: drop-shadow(0 3px 0 rgba(0,0,0,0.18)); }
.pc-name { font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1; margin-top: 8px; border-bottom: 2px solid currentColor; padding-bottom: 6px; }
.pc-club { font-weight: 700; font-size: 15px; margin-top: 6px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; margin-top: 10px; font-size: 14px; }
.pc-stats b { font-family: var(--display); font-size: 20px; font-weight: 800; margin-right: 4px; }
.pc-gauges { margin-top: 10px; display: grid; gap: 6px; }
.gauge { display: grid; grid-template-columns: 74px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.gauge i { display: block; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.18); position: relative; overflow: hidden; }
.gauge i::after { content: ''; position: absolute; inset: 0; width: var(--v); background: currentColor; border-radius: 4px; }

/* mini carte rivaux */
.mini { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 2px solid var(--chalk-line); background: var(--panel); }
.mini + .mini { margin-top: 10px; }
.mini .ovr { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; text-align: center; color: var(--flood); }
.mini.me { border-color: var(--flood); }
.mini .who { font-weight: 700; }
.mini .meta { font-size: 13px; color: var(--chalk-dim); }

/* ---------- Tableau d'affichage ---------- */
.board {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: #061a10; border: 2px solid #1d4b35; border-radius: var(--r-md); padding: 10px 14px; position: sticky; top: 8px; z-index: 5;
}
.board .b-season { font-family: var(--display); font-weight: 900; color: var(--flood); font-size: 28px; line-height: 1; }
.board .b-sub { font-size: 13px; color: var(--chalk-dim); }
.board .b-time { font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--flood); font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; }
.board .b-time.hurry { color: var(--red); }
.timebar { grid-column: 1 / -1; height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.timebar i { display: block; height: 100%; background: var(--flood); transition: width 0.5s linear; }
.readies { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.readies span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--chalk-dim); }
.readies span.ok { background: var(--flood); color: var(--flood-ink); font-weight: 700; }

/* ---------- Événement ---------- */
.event h2 { font-size: 34px; }
.event .lead { font-size: 17px; margin-top: 8px; }
.choices { display: grid; gap: 10px; margin-top: 14px; }
.choice {
  text-align: left; border: 2px solid var(--chalk-line); border-radius: var(--r-md); background: rgba(0, 0, 0, 0.15);
  padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--chalk); display: flex; gap: 12px; align-items: center;
}
.choice .k { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--chalk-dim); width: 1.2ch; }
.choice.on { border-color: var(--flood); background: rgba(255, 210, 63, 0.12); }
.choice.on .k { color: var(--flood); }

/* ---------- Offres ---------- */
.offer { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; border: 2px dashed var(--chalk-line); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; background: transparent; text-align: left; color: var(--chalk); width: 100%; }
.offer + .offer { margin-top: 10px; }
.offer.on { border-style: solid; border-color: var(--flood); background: rgba(255, 210, 63, 0.1); }
.offer .club { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.05; }
.offer .lvl { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--flood); grid-row: span 2; align-self: center; }

/* ---------- Actions ---------- */
.tokens { display: inline-flex; gap: 4px; }
.tokens i { width: 16px; height: 16px; border-radius: 50%; background: var(--flood); display: inline-block; border: 2px solid #fff2bd; }
.tokens i.off { background: transparent; border-color: var(--chalk-line); }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.act { border: 2px solid var(--chalk-line); border-radius: var(--r-md); padding: 10px; cursor: pointer; background: transparent; color: var(--chalk); text-align: left; }
.act .ai { font-size: 24px; }
.act .an { font-weight: 700; display: block; }
.act .ac { font-size: 12px; color: var(--chalk-dim); }
.act.on { border-color: var(--red); background: rgba(239, 83, 80, 0.12); }
.act:disabled { opacity: 0.35; cursor: not-allowed; }
.targets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.queued { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(239, 83, 80, 0.14); margin-top: 8px; font-weight: 600; }

/* ---------- Layout du jeu ---------- */
.game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.game > * { min-width: 0; }
@media (min-width: 900px) {
  .game { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .game .side { position: sticky; top: 92px; }
  .tabs.mobile-only { display: none; }
  .pane[hidden].desk-show { display: block !important; }
}
.tabs { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; }
.tabs button { border: 2px solid var(--chalk-line); background: transparent; color: var(--chalk); padding: 8px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tabs button.on { background: var(--chalk); color: var(--turf-deep); border-color: var(--chalk); }

/* ---------- Fil d'actu ---------- */
.feed { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--chalk-line); font-size: 15px; }
.feed li.big { font-weight: 700; }
.feed li.action { color: #ffb4a8; }
.feed .s { font-size: 12px; color: var(--chalk-dim); }

/* ---------- Récap ---------- */
.reveal { display: grid; gap: 8px; margin-top: 12px; }
.reveal .opt { border: 2px solid var(--chalk-line); border-radius: var(--r-md); padding: 10px 12px; }
.reveal .opt .who { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.stable { width: 100%; border-collapse: collapse; font-size: 15px; }
.stable th { text-align: left; font-weight: 600; color: var(--chalk-dim); font-size: 13px; padding: 6px 6px; border-bottom: 2px solid var(--chalk-line); }
.stable td { padding: 9px 6px; border-bottom: 1px dashed var(--chalk-line); vertical-align: top; }
.stable td.n { font-family: var(--display); font-weight: 800; font-size: 19px; text-align: right; }
.stable th.n { text-align: right; }
.stable tr.me td { background: rgba(255, 210, 63, 0.08); }
.delta.up { color: #6fe39a; }
.delta.down { color: var(--red); }
.trophy { display: inline-block; background: var(--flood); color: var(--flood-ink); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; margin: 2px 4px 0 0; }
.trophy.award { background: var(--chalk); }
.msgs { margin: 8px 0 0; padding-left: 18px; }
.msgs li { margin-bottom: 4px; }
.scroll-x { overflow-x: auto; }

/* ---------- Fin ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-top: 18px; }
.podium .step { text-align: center; }
.podium .block { background: var(--chalk); color: var(--turf-deep); border-radius: var(--r-md) var(--r-md) 0 0; font-family: var(--display); font-weight: 900; font-size: 42px; padding-top: 6px; }
.podium .p1 .block { height: 130px; background: var(--flood); }
.podium .p2 .block { height: 96px; }
.podium .p3 .block { height: 72px; background: #e0a679; }
.podium .ava { font-size: 46px; }
.podium .nm { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.05; margin: 4px 0; word-break: break-word; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--chalk-line); border-radius: 999px; padding: 4px 12px 4px 8px; font-size: 14px; font-weight: 600; }
.badge.locked { opacity: 0.35; }
.badge .bi { font-size: 18px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--chalk-line); align-items: baseline; }

/* ---------- Création ---------- */
.steps { display: flex; gap: 4px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--chalk-line); }
.steps i.on { background: var(--flood); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.opt-card { text-align: left; border: 2px solid var(--chalk-line); background: var(--panel); border-radius: var(--r-md); padding: 14px; cursor: pointer; color: var(--chalk); }
.opt-card .oi { font-size: 34px; line-height: 1; }
.opt-card .on { font-family: var(--display); font-weight: 800; font-size: 24px; display: block; margin-top: 6px; }
.opt-card .ot { font-size: 14px; color: var(--chalk-dim); display: block; margin-top: 4px; }
.opt-card.sel { border-color: var(--flood); background: rgba(255, 210, 63, 0.12); }
.nats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.nat { display: flex; gap: 10px; align-items: center; border: 2px solid var(--chalk-line); background: var(--panel); border-radius: var(--r-sm); padding: 10px; cursor: pointer; color: var(--chalk); font-weight: 600; text-align: left; }
.nat .fl { font-size: 24px; }
.nat.sel { border-color: var(--flood); background: rgba(255, 210, 63, 0.12); }
.avatars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.avatars button { font-size: 30px; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--chalk-line); background: var(--panel); cursor: pointer; }
.avatars button.sel { border-color: var(--flood); background: rgba(255, 210, 63, 0.18); }

/* ---------- Réactions ---------- */
.react-fab { position: fixed; right: 14px; bottom: 82px; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; background: var(--panel-solid); border: 2px solid var(--chalk-line); cursor: pointer; z-index: 21; }
.reacts { position: fixed; right: 72px; bottom: 82px; display: flex; flex-wrap: wrap; max-width: calc(100vw - 96px); gap: 4px; background: rgba(6, 26, 16, 0.92); border: 2px solid var(--chalk-line); border-radius: 999px; padding: 6px 8px; z-index: 20; }
.reacts button { font-size: 22px; background: transparent; border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.reacts button:active { transform: scale(0.9); }
.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.floater { position: absolute; bottom: 70px; display: flex; flex-direction: column; align-items: center; animation: floatUp 2.6s ease-out forwards; }
.floater .e { font-size: 40px; }
.floater .n { font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, 0.5); padding: 1px 6px; border-radius: 6px; }
@keyframes floatUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60vh); opacity: 0; } }

.toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); background: var(--chalk); color: var(--turf-deep); font-weight: 700; padding: 10px 18px; border-radius: 999px; z-index: 40; max-width: 92vw; }
.toast.err { background: var(--red); color: #fff; }

.modal-bg { position: fixed; inset: 0; background: rgba(2, 14, 8, 0.78); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal { width: min(720px, 100%); max-height: 88vh; overflow-y: auto; background: var(--panel-solid); border: 2px solid var(--chalk-line); border-radius: var(--r-md); padding: 18px; }

/* intro de saison : seul moment animé non déclenché */
.season-in { animation: seasonIn 0.6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes seasonIn { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 520px) {
  .stable .hide-sm { display: none; }
  .pc-ovr { font-size: 54px; }
  .pc-ava { font-size: 52px; }
  .event h2 { font-size: 30px; }
}

.sticky-cta { position: sticky; bottom: 12px; z-index: 6; margin-top: 14px; }
.strip { display: flex; gap: 10px; align-items: center; background: #061a10; border: 2px solid #1d4b35; border-radius: var(--r-md); padding: 8px 12px; font-weight: 600; font-size: 15px; }
.strip .num { color: var(--flood); font-size: 24px; line-height: 1; }
.strip .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.badges.compact { gap: 4px; }
.badges.compact .badge { font-size: 12px; padding: 2px 8px 2px 5px; border-width: 1px; }
.badges.compact .badge .bi { font-size: 14px; }
.board .readies { min-width: 0; }
@media (max-width: 899px) {
  .game .side { display: none; }
  .game { margin-top: 10px; }
  .board { grid-template-columns: 1fr auto; }
  .board .readies { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .board .timebar { grid-row: 3; }
}
@media (min-width: 900px) {
  .mobile-only { display: none !important; }
}

.sticky-cta .btn:disabled { opacity: 1; background: #2c3a1f; border-color: #56603a; color: var(--chalk-dim); }
.sticky-cta .btn:not(.primary) { background: var(--panel-solid); }
.timeline .tl-stats { display: block; color: var(--chalk-dim); font-size: 14px; }

.pc-traits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.pc-traits .trait { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.14); }
.rival-line { margin-top: 8px; font-size: 14px; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(239, 83, 80, 0.12); border: 1px solid rgba(239, 83, 80, 0.35); }
.event.personal { border-color: rgba(255, 210, 63, 0.45); border-style: dashed; }
.offer-note { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--flood); }
.mini-traits { grid-column: 2 / -1; font-size: 15px; }
.hl { list-style: none; padding: 0; margin: 10px 0 0; }
.hl li { padding: 6px 10px; border-left: 3px solid var(--flood); margin-bottom: 6px; background: rgba(255, 210, 63, 0.07); font-weight: 600; }
.ballon { list-style: none; margin: 0; padding: 0; }
.ballon li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--chalk-line); }
.ballon li .num { font-size: 26px; width: 1.4ch; color: var(--chalk-dim); }
.ballon li.human .num, .ballon li.me .num { color: var(--flood); }
.ballon li.me { background: rgba(255, 210, 63, 0.08); }
.epi { display: block; font-style: italic; color: var(--chalk); margin-top: 4px; font-size: 14px; }

.rank-card { border: 2px solid var(--chalk-line); border-radius: var(--r-md); padding: 12px 14px; background: var(--panel); }
.rank-card + .rank-card { margin-top: 10px; }
.rank-card.me { border-color: var(--flood); }
.rk-head { display: flex; gap: 12px; align-items: center; }
.rk-pos { font-size: 38px; color: var(--flood); width: 1.3ch; text-align: center; }
.rk-pts { font-size: 26px; }
.rank-card .who { font-weight: 700; }
.rank-card .meta { font-size: 13px; color: var(--chalk-dim); }
.rank-card .epi { margin: 8px 0 0; }
.rank-card .pc-traits .trait { background: rgba(255, 255, 255, 0.08); }

/* ---------- Questions ---------- */
.qprog { display: flex; gap: 6px; }
.qprog i { flex: 1; height: 6px; border-radius: 3px; background: var(--chalk-line); }
.qprog i.done { background: var(--flood); }
.qprog i.on { background: var(--chalk); }
.qkind { margin: 12px 0 4px; font-size: 14px; font-weight: 700; color: var(--flood); }
.choice.picked, .offer.picked { border-color: var(--flood); background: rgba(255, 210, 63, 0.18); }
.result h2 { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-weight: 700; font-size: 15px; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--chalk-line); }
.chip.up { color: #7ff0a8; border-color: rgba(127, 240, 168, 0.5); background: rgba(127, 240, 168, 0.08); }
.chip.down { color: #ff8a86; border-color: rgba(255, 138, 134, 0.5); background: rgba(255, 138, 134, 0.08); }
.chip.info { color: var(--chalk); }
.answers .chips .chip { font-size: 12px; padding: 2px 8px; border-width: 1px; }
.later { margin: 12px 0 0; font-weight: 700; color: var(--flood); }
.answers { margin: 10px 0 0; padding-left: 20px; }
.answers li { margin-bottom: 12px; }
.myanswers { margin-top: 12px; }
.myanswers summary { cursor: pointer; font-weight: 700; }
/* ---------- Classement entre potes ---------- */
.podlist { list-style: none; margin: 0; padding: 0; }
.podlist li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--chalk-line); }
.podlist li.me { background: rgba(255, 210, 63, 0.08); }
.podlist .rk { font-size: 28px; color: var(--flood); width: 1.4ch; text-align: center; }
.podlist .mv { font-size: 13px; font-weight: 700; width: 3ch; color: var(--chalk-dim); }
.podlist .mv.up { color: #7ff0a8; }
.podlist .mv.down { color: #ff8a86; }
.podlist .num:last-child { font-size: 22px; }
.rels { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rel { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.rel.ally { background: rgba(127, 240, 168, 0.15); }
.rel.feud { background: rgba(255, 138, 134, 0.18); }
.rk-note { display: flex; align-items: baseline; gap: 2px; }
.rk-note .num { font-size: 34px; color: var(--flood); }

/* ---------- Barre de stats en direct ---------- */
.hud { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; background: #061a10; border: 2px solid #1d4b35; border-radius: var(--r-md); padding: 8px 6px; margin-top: 10px; }
.hud.desk { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; position: sticky; top: 92px; z-index: 4; }
.hs { position: relative; text-align: center; line-height: 1.1; }
.hs b { display: block; font-size: 22px; }
.hs small { display: block; font-size: 10px; color: var(--chalk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs .hd { position: absolute; top: -6px; right: -2px; font-style: normal; font-weight: 800; font-size: 12px; padding: 0 5px; border-radius: 999px; animation: pop 0.5s cubic-bezier(.2, .9, .3, 1.4); }
.hs.hup b { color: #7ff0a8; } .hs.hup .hd { background: #7ff0a8; color: #06240f; }
.hs.hdown b { color: #ff8a86; } .hs.hdown .hd { background: #ff8a86; color: #2a0605; }
@keyframes pop { from { transform: scale(0.2) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 899px) { .strip { margin-bottom: 0; } }
@media (min-width: 900px) { .game .side { top: 92px; } }

/* ---------- Penalty ---------- */
.pitchgoal { position: relative; margin-top: 14px; padding: 0 2px 54px; overflow: hidden; }
.goal { position: relative; aspect-ratio: 2.6 / 1; border: 6px solid var(--chalk); border-bottom: 0; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(90deg, rgba(238,243,234,0.13) 0 1px, transparent 1px 16px), repeating-linear-gradient(0deg, rgba(238,243,234,0.13) 0 1px, transparent 1px 16px), rgba(0,0,0,0.25); }
.goal::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: -3px; height: 3px; background: var(--chalk); }
.gz { position: absolute; border: 2px dashed rgba(255, 210, 63, 0.55); background: rgba(255, 210, 63, 0.06); color: var(--chalk); border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 2px; z-index: 2; }
.gz span { font-size: 12px; font-weight: 700; background: rgba(0,0,0,0.45); padding: 1px 6px; border-radius: 6px; }
.gz:hover, .gz:focus-visible { background: rgba(255, 210, 63, 0.28); border-style: solid; }
.gz.picked { background: rgba(255, 210, 63, 0.45); }
.z-tl { left: 3%; top: 6%; width: 29%; height: 42%; } .z-tr { right: 3%; top: 6%; width: 29%; height: 42%; }
.z-bl { left: 3%; bottom: 4%; width: 29%; height: 44%; } .z-br { right: 3%; bottom: 4%; width: 29%; height: 44%; }
.z-c { left: 36%; top: 6%; width: 28%; height: 90%; }
.z-left { left: 2%; top: 5%; width: 31%; height: 90%; } .z-center { left: 35%; top: 5%; width: 30%; height: 90%; } .z-right { right: 2%; top: 5%; width: 31%; height: 90%; }
.keeper { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 46px; line-height: 1; z-index: 1; transition: none; }
.keeper.dive-left { transform: translateX(-190%) translateY(-30%) rotate(-75deg); }
.keeper.dive-right { transform: translateX(90%) translateY(-30%) rotate(75deg); }
.keeper.dive-center { transform: translateX(-50%) translateY(-25%); }
.ball { position: absolute; font-size: 30px; line-height: 1; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 3; }
.goal .ball { bottom: auto; }
.ball.shot-tl { left: 14%; top: 14%; } .ball.shot-tr { left: 84%; top: 14%; }
.ball.shot-bl { left: 14%; top: 64%; } .ball.shot-br { left: 84%; top: 64%; } .ball.shot-c { left: 50%; top: 40%; }
.ball.missed.shot-tl, .ball.missed.shot-tr { top: -34%; } .ball.missed.shot-bl { left: -6%; } .ball.missed.shot-br { left: 106%; } .ball.missed.shot-c { top: -34%; }
.ball.saved { filter: drop-shadow(0 0 6px #fff); }
.season-in .ball { animation: ballfly 0.75s cubic-bezier(.2, .7, .3, 1) both; }
.season-in .keeper { animation: dive 0.55s 0.15s cubic-bezier(.3, .8, .4, 1) both; }
@keyframes ballfly { from { left: 50%; top: 150%; transform: translateX(-50%) scale(1.4); } }
@keyframes dive { from { transform: translateX(-50%); } }
.penmsg { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: 0.02em; }
.pitchgoal.win .penmsg { color: var(--flood); } .pitchgoal.lose .penmsg { color: #ff8a86; }
.season-in .penmsg { animation: pop 0.4s 0.7s both; }
