/* ============ LEGACY — Design néon signature ============ */
:root {
  --bg0: #05070f;
  --bg1: #0a0e1a;
  --bg2: #121a2e;
  --panel: rgba(20, 28, 50, 0.85);
  --panel-border: rgba(120, 160, 255, 0.14);
  --green: #00ff87;
  --cyan: #04f5ff;
  --gold: #ffd76a;
  --red: #ff5b5b;
  --warning: #ffb64d;
  --text-soft: #cfe0ff;
  --text: #eaf0ff;
  --text-dim: #8b97b8;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Arial Narrow', sans-serif;
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0, 255, 135, 0.07), transparent 60%),
    radial-gradient(900px 500px at 85% 110%, rgba(4, 245, 255, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  min-height: 100dvh;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hidden { display: none !important; }

/* ================= ÉCRANS ================= */
.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  animation: fadeIn 0.4s ease;
  padding-bottom: calc(24px + var(--safe-bottom));
}
.screen.active { display: flex; }
/* Le bandeau de consentement analytics est fixe en bas d'écran : on réserve sa place
   pour qu'aucun bouton ne se retrouve caché/inatteignable derrière lui (§consent-banner). */
body.has-consent-banner .screen.active { padding-bottom: calc(170px + var(--safe-bottom)); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 18px rgba(0, 255, 135, 0.35); } 50% { box-shadow: 0 0 34px rgba(0, 255, 135, 0.6); } }

/* ================= BOUTONS ================= */
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); filter: brightness(1.15); }
.btn:focus-visible,
.icon-btn:focus-visible,
.menu-item:focus-visible,
.pick:focus-visible,
.m-speed-btn:focus-visible,
.st-tab:focus-visible,
.btn-link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.copy-btn:focus-visible,
.withdraw-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--green), #00c96a);
  color: #04140b;
  box-shadow: 0 0 22px rgba(0, 255, 135, 0.3), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.btn-primary.btn-challenge {
  background: linear-gradient(135deg, var(--gold), #f0a84a);
  color: #211703;
  box-shadow: 0 0 22px rgba(255, 215, 106, 0.28), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.btn-big { padding: 19px; font-size: 19px; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--panel-border);
}

.btn-choice {
  background: linear-gradient(135deg, rgba(28, 40, 72, 0.95), rgba(16, 24, 46, 0.95));
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-color: rgba(4, 245, 255, 0.55);
  text-align: left;
  animation: slideUp 0.35s ease both;
}
.btn-choice:nth-child(2) { animation-delay: 0.07s; border-color: rgba(0, 255, 135, 0.55); }
.btn-choice:nth-child(3) { animation-delay: 0.14s; border-color: rgba(255, 215, 106, 0.55); }
.btn-choice:nth-child(4) { animation-delay: 0.21s; border-color: rgba(255, 91, 91, 0.55); }
.btn-danger { border-color: var(--red) !important; }

.choice-label { display: block; font-size: 16.5px; }
.choice-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  margin-top: 3px;
  text-transform: none;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  font-size: 15px;
  padding: 6px 9px;
  cursor: pointer;
}

/* ================= HUD ================= */
#hud {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.97), rgba(8, 12, 24, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  padding: calc(8px + var(--safe-top)) 14px 8px;
}
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hud-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hud-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #1d2c4e, #0c1326);
  border: 2px solid var(--green);
  flex-shrink: 0;
}
.hud-avatar svg { display: block; }
.hud-name-block { display: flex; flex-direction: column; min-width: 0; }
.hud-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-club { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.hud-badge svg { display: block; }
.hud-rating-chip {
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, #2a3a66, #16203c);
  border: 1px solid rgba(255, 215, 106, 0.4);
  border-radius: 9px;
  padding: 3px 9px;
  font-family: var(--font-display);
}
.hud-rating-chip span { font-size: 17px; font-weight: 700; color: var(--gold); line-height: 1; }
.hud-rating-chip small { font-size: 9px; color: var(--text-dim); letter-spacing: 0.1em; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.55);
}
.side-menu {
  position: fixed;
  top: 0; bottom: 0;
  /* Aligné sur le bord droit de #app (max-width 560px) : sur grand écran le panneau
     reste collé à la colonne de jeu au lieu de flotter au bord de l'écran. */
  right: max(0px, calc((100vw - 560px) / 2));
  z-index: 60;
  width: min(280px, 82vw);
  padding: calc(12px + var(--safe-top)) 12px calc(12px + var(--safe-bottom));
  overflow-y: auto;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid var(--panel-border);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.side-menu.open { transform: translateX(0); }
.sm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sm-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.12em; }
.sm-challenge-banner {
  margin-bottom: 8px; padding: 9px 12px;
  border: 1px solid rgba(255, 215, 106, 0.42); border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.14), rgba(240, 168, 74, 0.05));
  color: var(--gold); font-family: var(--font-display); font-size: 12.5px;
  letter-spacing: 0.06em; text-align: center;
}
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.menu-item:hover, .menu-item:active { background: rgba(255, 255, 255, 0.07); }
.mi-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); }
.mi-ico { width: 24px; flex-shrink: 0; font-size: 18px; text-align: center; }
.mi-label { font-size: 14px; }
.menu-lang { cursor: default; }
.menu-lang .mi-label { flex: 1; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(255, 215, 106, 0.28);
  border-radius: 10px;
  background: rgba(5, 35, 42, 0.88);
  box-shadow: inset 0 0 14px rgba(4, 245, 255, 0.05);
}
.lang-option {
  min-width: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.lang-option[aria-pressed="true"] {
  color: #1b1605;
  background: linear-gradient(135deg, var(--gold), #f0a84a);
  box-shadow: 0 2px 10px rgba(255, 183, 74, 0.25);
}
.lang-option:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.menu-volume { cursor: default; }
.menu-volume .mi-label { flex: 0 0 auto; }
.sound-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}
.sound-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.volume-slider {
  flex: 1;
  min-width: 60px;
  margin-left: 8px;
  height: 4px;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f0a84a);
  box-shadow: 0 2px 6px rgba(255, 183, 74, 0.35);
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f0a84a);
  box-shadow: 0 2px 6px rgba(255, 183, 74, 0.35);
  cursor: pointer;
}
.volume-slider:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.menu-select { cursor: default; }
.menu-select .mi-label { flex: 0 0 auto; }
.menu-dropdown {
  flex: 1;
  margin-left: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 215, 106, 0.28);
  border-radius: 10px;
  background: rgba(5, 35, 42, 0.88);
  color: var(--text);
  font-family: var(--font-body, inherit);
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.menu-dropdown:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.hud-stats { margin-top: 7px; gap: 8px; }
.hud-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.hud-stat label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.hud-stat span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.bar-stat { flex: 1.3; }
.mini-bar {
  width: 100%; height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.mini-bar div { height: 100%; border-radius: 3px; background: var(--green); transition: background 0.2s ease; }

/* ================= ÉCRAN TITRE ================= */
#screen-title { justify-content: center; position: relative; overflow: hidden; min-height: 100dvh; }
.title-lang {
  position: absolute;
  z-index: 2;
  top: calc(14px + var(--safe-top));
  right: 16px;
}
.title-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 50% 20%, rgba(0, 255, 135, 0.13), transparent 65%),
    radial-gradient(500px 300px at 20% 80%, rgba(4, 245, 255, 0.09), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.017) 46px 47px),
    linear-gradient(180deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.18) 32%, rgba(10, 14, 26, 0.55) 72%, rgba(10, 14, 26, 0.88) 100%),
    url('../assets/accueil.webp') center/cover no-repeat;
}
.title-content { position: relative; padding: 30px 26px; display: flex; flex-direction: column; gap: 34px; }
.title-logo { text-align: center; }
.title-kick { font-size: 46px; display: inline-block; animation: pulse 3s infinite; filter: drop-shadow(0 0 16px rgba(0, 255, 135, 0.6)); }
.title-logo h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 19vw, 96px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 20%, var(--green) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(0, 255, 135, 0.35));
}
.title-sub {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--cyan);
  margin-top: 8px;
}
.title-buttons { display: flex; flex-direction: column; gap: 12px; }
.btn-link { background:none; border:none; color:var(--text-dim); font-size:12px; text-decoration:underline; cursor:pointer; margin-top:8px; }
.title-credit { text-align: center; font-size: 12.5px; color: var(--text-dim); }

/* Accueil : connexion / inscription */
.auth-panel { display: flex; flex-direction: column; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .btn-link { align-self: center; }
/* Champs translucides : on laisse transparaître l'image d'accueil */
.auth-form .field input {
  background: rgba(8, 16, 13, 0.42);
  border-color: rgba(255, 255, 255, 0.16);
  color-scheme: dark;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.auth-form .field input::placeholder { color: rgba(255, 255, 255, 0.4); }
/* Neutralise le fond blanc/jaune de l'autofill Chrome */
.auth-form .field input:-webkit-autofill,
.auth-form .field input:-webkit-autofill:hover,
.auth-form .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(8, 16, 13, 0.42) inset;
  transition: background-color 9999s ease-out 0s;
}
.auth-benefit {
  text-align: center; font-size: 13px; line-height: 1.5; color: var(--text);
  background: rgba(0, 255, 135, 0.08); border: 1px solid rgba(0, 255, 135, 0.28);
  border-radius: 12px; padding: 11px 14px; margin-top: 4px;
}
.menu-account { text-align: center; font-size: 12.5px; color: var(--text-dim); }
.menu-account b { color: var(--green); }
.menu-account .btn-link { margin-top: 0; }

/* Bulle info du classement */
.lb-info-btn {
  background: none; border: none; cursor: pointer; padding: 0 4px;
  color: var(--cyan); font-size: 16px; line-height: 1; vertical-align: middle;
}
.lb-info {
  text-align: left; background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; color: var(--text);
}
.lb-info b { display: block; margin-bottom: 6px; }
.lb-info p { color: var(--text-dim); line-height: 1.5; margin: 6px 0; }
.lb-info ul { margin: 6px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.lb-info li { line-height: 1.45; }
.lb-ch-row { display: flex; flex-direction: column; gap: 8px; }
.lb-ch-header .pn-count { margin: 0; }
.lb-ch-conditions { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; text-align: center; }
.lb-ch-toolbar { display: flex; align-items: center; justify-content: center; gap: 8px; }
.lb-ch-toolbar .btn { padding: 6px 12px; font-size: 12px; }
.lb-ch-week-item {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 11px;
  color: var(--text); font-size: 13px; cursor: pointer;
}
.lb-ch-week-item:hover { background: rgba(255, 255, 255, 0.07); }

/* ================= CRÉATION ================= */
.create-wrap { padding: calc(18px + var(--safe-top)) 18px 10px; display: flex; flex-direction: column; gap: 18px; }
.screen-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--text);
}
.create-challenge-banner {
  padding: 14px 16px;
  border: 1px solid rgba(255, 215, 106, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.14), rgba(240, 168, 74, 0.05));
  box-shadow: inset 0 0 24px rgba(255, 215, 106, 0.04);
}
.create-challenge-banner h3 {
  margin-bottom: 7px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.create-challenge-banner p { color: var(--text-soft); font-size: 13px; line-height: 1.45; }
.create-challenge-banner p + p { margin-top: 5px; color: var(--gold); font-weight: 600; }
.create-grid { display: flex; flex-direction: column; gap: 18px; }
.create-form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 13px 15px;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.12); }

.pick-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pick {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  color: var(--text);
  padding: 9px 11px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 62px;
  flex: 1 0 auto;
  max-width: 46%;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.pick:active { transform: scale(0.96); }
.pick b { font-family: var(--font-display); font-size: 14.5px; letter-spacing: 0.04em; }
.pick small { font-size: 10.5px; color: var(--text-dim); text-align: center; line-height: 1.3; }
.pick.sel {
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(0, 255, 135, 0.28);
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.12), rgba(20, 28, 50, 0.9));
}
.pick-row.small .pick { min-width: 42px; padding: 8px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; display: block; border: 2px solid rgba(255, 255, 255, 0.25); }
.look-row { display: flex; flex-direction: column; gap: 10px; }
.look-group > span { font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 5px; }

/* ---- Carte de carrière ---- */
.create-card-preview { display: flex; justify-content: center; }
.player-card { width: 210px; }
.player-card.big { width: 240px; margin: 0 auto; }
.player-card-inner {
  position: relative;
  border-radius: 18px;
  padding: 16px 14px 14px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.card-bronze { background: linear-gradient(160deg, #6e4a2f, #3d2818 70%); }
.card-silver { background: linear-gradient(160deg, #9aa5b5, #4d5768 70%); }
.card-gold   { background: linear-gradient(160deg, #e8c465, #8a6a1e 70%); }
.card-legend {
  background: linear-gradient(160deg, #1c1440, #0c0a24 60%);
  border-color: var(--gold);
  animation: glowPulse 2.8s infinite;
}
.card-legend::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px 130px at 50% 0%, rgba(255, 215, 106, 0.25), transparent 70%);
}
.player-card-top { display: flex; align-items: center; gap: 6px; position: relative; }
.player-card-rating { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); line-height: 1; }
.player-card-pos { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.85); }
.player-card-flag { font-size: 20px; margin-left: auto; }
.player-card-avatar { position: relative; margin: 2px 0 4px; display: flex; justify-content: center; }
.player-card-name {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.player-card-sub { font-size: 10.5px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.75); margin-top: 3px; position: relative; }

/* ================= ÉVÉNEMENT ================= */
.ev-scene {
  width: 100%;
  aspect-ratio: 20/9;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--panel-border);
}
.ev-scene svg { width: 100%; height: 100%; display: block; }
/* Décor réaliste (photo) empilé au-dessus du SVG de repli */
.scene-stack { position: absolute; inset: 0; }
.scene-stack svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.45s ease;
}
.scene-photo.loaded { opacity: 1; }
/* Avatar 2D du joueur incrusté debout dans le décor (bas-centre) */
.scene-avatar {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  height: 70%; z-index: 3; pointer-events: none;
}
.scene-avatar svg {
  height: 100%; width: auto; display: block;
  /* ombre portée au sol + léger halo côté lumière pour détacher du décor */
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)) drop-shadow(-2px -1px 3px rgba(255, 246, 224, 0.18));
}
.ev-scene::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 15, 0.85));
  pointer-events: none;
}
.ev-body { padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 13px; }
.ev-tag {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
}
.ev-tag:empty { display: none; }
.ev-title { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: 0.03em; line-height: 1.15; }
.ev-text { font-size: 15.5px; line-height: 1.65; color: #cdd7ef; }
.ev-text b { color: var(--text); }
.ev-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* ---- QG entre les matchs (#screen-hub) ---- */
.hub-body { padding-bottom: 22px; }
.hub-ap {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0d0;
}
.hub-ap-dots { color: var(--green); font-size: 15px; letter-spacing: 0.12em; }
.hub-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(4, 245, 255, 0.22);
  border-radius: 14px;
  background: rgba(4, 245, 255, 0.05);
  animation: slideUp 0.3s ease;
}
.hub-panel-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hub-go { margin-top: 6px; }
.btn-disabled { opacity: 0.42; pointer-events: none; }

.ev-result {
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.08), rgba(4, 245, 255, 0.05));
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #d9e4f8;
  animation: slideUp 0.4s ease;
}
.deltas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.deltas:empty { display: none; }
.delta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.delta.up { color: var(--green); border-color: rgba(0, 255, 135, 0.4); background: rgba(0, 255, 135, 0.08); }
.delta.down { color: var(--red); border-color: rgba(255, 91, 91, 0.4); background: rgba(255, 91, 91, 0.08); }

/* ================= MATCH ================= */
.scene-wrap { position: relative; }
.match-scene { aspect-ratio: 21/9; }

/* Habillage TV : bug « DIRECT » de la chaîne */
.tv-live {
  position: absolute;
  top: 9px; left: 10px;
  z-index: 4;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  background: rgba(6, 10, 20, 0.82);
  border: 1px solid rgba(120, 160, 255, 0.22);
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.16em; color: #fff;
}
.tv-logo {
  font-weight: 700; letter-spacing: 0.02em;
  color: #04140b;
  background: linear-gradient(135deg, var(--green), #00c96a);
  padding: 1px 5px; border-radius: 4px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.3s infinite; }

/* Bandeau « lower third » qui glisse à chaque but */
.tv-banner {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  z-index: 4;
  display: flex; align-items: stretch;
  margin: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-display);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translateX(-115%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s;
}
.tv-banner.show { transform: none; opacity: 1; }
.tv-banner .tvb-tag {
  display: flex; align-items: center;
  padding: 6px 10px;
  font-size: 12px; letter-spacing: 0.1em; color: #04140b;
  background: linear-gradient(135deg, var(--green), #00c96a);
}
.tv-banner.bad .tvb-tag { background: linear-gradient(135deg, var(--red), #c62f2f); color: #fff; }
.tv-banner .tvb-txt {
  flex: 1;
  display: flex; align-items: center;
  padding: 6px 11px;
  font-size: 13px; letter-spacing: 0.03em; color: #fff;
  background: rgba(8, 12, 24, 0.94);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-banner .tvb-score {
  display: flex; align-items: center;
  padding: 6px 11px;
  font-size: 15px; font-weight: 700; color: #fff;
  background: rgba(16, 24, 46, 0.98);
  border-left: 1px solid rgba(120, 160, 255, 0.2);
}

/* Panneau de statistiques télé (mi-temps + coup de sifflet final) */
.tv-panel { border-color: rgba(120, 160, 255, 0.3) !important; background: linear-gradient(180deg, rgba(16, 24, 46, 0.96), rgba(10, 14, 26, 0.96)) !important; }
.tvp-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 0.14em; color: var(--gold);
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}
.tvp-head .tvp-score { margin-left: auto; color: #fff; font-size: 12px; letter-spacing: 0.02em; }
.tvp-poss { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-family: var(--font-display); font-size: 13px; color: #fff; }
.tvp-bar { flex: 1; height: 7px; border-radius: 4px; overflow: hidden; background: rgba(255, 91, 91, 0.35); }
.tvp-bar > div { height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.tvp-row {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  padding: 4px 0;
  font-family: var(--font-display);
}
.tvp-row b { color: #fff; font-size: 14px; }
.tvp-row b:last-child { text-align: right; }
.tvp-row span { text-align: center; font-family: var(--font-body); font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; }
.tvp-note { grid-template-columns: 1fr auto; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--panel-border); }
.tvp-note span { text-align: left; color: var(--gold); }
.tvp-note b { color: var(--gold); font-size: 16px; }
.match-board {
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.98), rgba(10, 14, 26, 0.95));
  border-bottom: 1px solid var(--panel-border);
  padding: 10px 16px 13px;
}
.match-comp {
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 8px;
}
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.score-team {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1; min-width: 0;
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.05em;
}
.score-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.score-badge svg { display: block; }
.flag-badge { font-size: 30px; line-height: 1; }
.score-center { text-align: center; flex-shrink: 0; }
.score {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 255, 135, 0.35);
  line-height: 1;
}
.minute {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--green);
  animation: pulse 1.6s infinite;
  margin-top: 3px;
}
.m-momentum {
  position: relative;
  width: 70px; height: 3px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
#m-momentum-fill {
  position: absolute; left: 50%; top: 0;
  width: 0; height: 100%;
  background: var(--green);
  transition: left 0.35s ease, width 0.35s ease, background 0.35s ease;
}
.m-tactic {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px 0;
  font-family: var(--font-display);
}
.m-tactic span { margin-right: 4px; font-size: 11px; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; }
.m-tactic button {
  width: 34px; height: 28px;
  border: 1px solid var(--panel-border); border-radius: 7px;
  color: var(--text); background: var(--panel);
  cursor: pointer;
}
.m-tactic button.active { border-color: var(--green); background: rgba(0, 255, 135, 0.13); box-shadow: 0 0 10px rgba(0, 255, 135, 0.14); }

.match-feed { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feed-line {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #c3cee8;
  animation: slideUp 0.3s ease;
}
.feed-line b { color: var(--cyan); font-family: var(--font-display); letter-spacing: 0.04em; }
.feed-goal { border-color: rgba(0, 255, 135, 0.5); background: rgba(0, 255, 135, 0.09); color: #dcffe9; }
.feed-goal b { color: var(--green); }
.feed-save { border-color: rgba(110, 224, 255, 0.5); background: rgba(110, 224, 255, 0.09); color: #eaffff; }
.feed-save b { color: var(--cyan); }
.feed-bad { border-color: rgba(255, 91, 91, 0.4); background: rgba(255, 91, 91, 0.07); }
.feed-bad b { color: var(--red); }
.feed-player { border-color: rgba(4, 245, 255, 0.35); }
.match-continue { margin-bottom: 4px; animation: slideUp 0.4s ease; }

.match-action {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.match-action.show { opacity: 1; }
.match-action > * { max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; }
.action-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 215, 106, 0.4);
  animation: pulse 1.2s infinite;
}
.action-text { font-size: 16px; line-height: 1.6; color: #dbe4f8; text-align: center; margin: 14px auto 20px; }

/* Cinématique de but : surimpression plein écran au-dessus de tout */
.m-cine {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 5, 12, 0.85);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.m-cine.show { opacity: 1; }
.m-cine svg {
  width: 100%;
  max-width: 540px;
  border-radius: 18px;
  border: 1px solid rgba(120, 160, 255, 0.25);
  box-shadow: 0 14px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 255, 135, 0.12);
}

/* ================= BILAN DE SAISON ================= */
.season-wrap { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.season-header { text-align: center; }
.season-year {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.season-sub { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.season-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  padding: 13px 6px;
  text-align: center;
}
.stat-num { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: #fff; }
.stat-card.up .stat-num { color: var(--green); }
.stat-card.down .stat-num { color: var(--red); }
.stat-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }

.season-awards { display: flex; flex-direction: column; gap: 9px; }
.award {
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.1), rgba(20, 28, 50, 0.9));
  border: 1px solid rgba(255, 215, 106, 0.35);
  border-radius: 13px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.5;
  animation: slideUp 0.4s ease;
}
.award.ballon { border-color: var(--gold); box-shadow: 0 0 24px rgba(255, 215, 106, 0.25); }
.award.empty { border-color: var(--panel-border); background: var(--panel); color: var(--text-dim); }
.award-icon { font-size: 26px; flex-shrink: 0; }

/* ================= FIN DE CARRIÈRE ================= */
.end-wrap { padding: calc(26px + var(--safe-top)) 20px 30px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.end-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 480px; height: 300px;
  background: radial-gradient(closest-side, rgba(255, 215, 106, 0.18), transparent);
  pointer-events: none;
}
.end-title {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff 30%, var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.end-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  margin-bottom: 8px;
}
.end-story { font-size: 15.5px; line-height: 1.7; color: #cdd7ef; text-align: center; }
.end-palmares h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 20px 0 9px;
}
.palmares-list { display: flex; flex-direction: column; gap: 6px; }
.palmares-item {
  background: var(--panel);
  border: 1px solid rgba(255, 215, 106, 0.25);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 14px;
}
.palmares-item.empty { border-color: var(--panel-border); color: var(--text-dim); }
.end-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.end-table td, .end-table th {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.end-table td:last-child, .end-table th:last-child { text-align: right; }
.end-table th { color: var(--text-dim); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.end-table.seasons td:nth-child(3), .end-table.seasons th:nth-child(3) { text-align: center; }

/* ===== Fin de carrière — séquence cinématique ===== */
#screen-end { position: relative; }
.end-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.end-floods { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 1.2s ease; }
.end-floods.on { opacity: 1; }
.end-floods::before, .end-floods::after {
  content: ''; position: absolute; top: -10%; width: 60vw; height: 120vh;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent 70%); filter: blur(20px);
}
.end-floods::before { left: -14vw; transform: rotate(12deg); }
.end-floods::after { right: -14vw; transform: rotate(-12deg); }
.end-wrap { position: relative; z-index: 10; }

/* Révélation générique par étape */
.end-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.end-reveal.show { opacity: 1; transform: none; }

/* Titre : kicker en fondu + rang tamponné */
.end-title .end-kicker { opacity: 0; transform: translateY(8px); transition: 0.6s; }
.end-title .end-kicker.show { opacity: 1; transform: none; }
.end-rank { display: block; opacity: 0; }
.end-rank.hit { animation: end-stamp 0.5s cubic-bezier(0.2, 0.9, 0.25, 1) forwards; }
@keyframes end-stamp {
  0% { opacity: 0; transform: scale(1.4); filter: blur(6px); }
  60% { opacity: 1; transform: scale(0.97); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.end-underline { height: 2px; width: 0; margin: 8px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); transition: width 0.8s ease 0.1s; }
.end-underline.show { width: min(320px, 70%); }

/* Bandeau rareté */
.end-rarity { display: flex; align-items: center; gap: 12px; justify-content: center; max-width: 440px; margin: 0 auto;
  padding: 10px 18px; border: 1px solid rgba(255, 215, 106, 0.4); border-radius: 14px; background: rgba(255, 215, 106, 0.1);
  opacity: 0; transform: translateY(10px) scale(0.96); transition: 0.6s; }
.end-rarity.show { opacity: 1; transform: none; }
.end-rarity:empty { display: none; }
.end-rarity .rar-pct { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--gold); line-height: 1; white-space: nowrap; }
.end-rarity .rar-txt { font-size: 12.5px; line-height: 1.45; color: #d9d3c6; text-align: left; }

/* Parcours de clubs (pastilles reliées) */
.end-clubs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); transition: 0.6s; }
.end-clubs.show { opacity: 1; transform: none; }
.end-clubs:empty { display: none; }
.end-club-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid rgba(255, 215, 106, 0.3); font-size: 12px; color: #e7e0d2; white-space: nowrap; }
.end-club-arrow { color: var(--text-dim); font-size: 12px; }

/* Stats en compteurs */
.end-stats-title { text-align: center; }
.end-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.end-stat { background: linear-gradient(160deg, rgba(30, 40, 68, 0.9), rgba(14, 20, 38, 0.95)); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 14px 8px; text-align: center; opacity: 0; transform: translateY(14px) scale(0.96); }
.end-stat.show { animation: end-stat-in 0.55s cubic-bezier(0.2, 0.9, 0.25, 1) forwards; }
@keyframes end-stat-in { to { opacity: 1; transform: none; } }
.end-stat .end-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--gold); line-height: 1; }
.end-stat .end-stat-num.small { font-size: 19px; }
.end-stat .end-stat-cap { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
.end-stat .end-stat-sub { font-size: 9px; color: var(--text-dim); margin-top: 2px; opacity: 0.85; }

/* Palmarès : trophées qui tombent */
.end-trophy-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.end-trophy { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 215, 106, 0.12); border: 1px solid rgba(255, 215, 106, 0.35); color: #ffe9a8; font-size: 13px;
  opacity: 0; transform: translateY(-16px) scale(0.8); }
.end-trophy.drop { animation: end-drop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) forwards; }
@keyframes end-drop { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.end-palmares-extra { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }

/* Monument */
.end-monument { display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(24px); transition: 1s ease; }
.end-monument.show { opacity: 1; transform: none; }
.end-plinth { position: relative; width: min(300px, 84%); height: 200px; border-radius: 14px 14px 6px 6px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 215, 106, 0.16), transparent 55%), linear-gradient(180deg, #141b21, #0a0f13);
  border: 1px solid var(--panel-border); display: flex; align-items: flex-end; justify-content: center; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.end-beam { position: absolute; top: -40%; left: 50%; width: 70%; height: 160%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.12), transparent 70%); filter: blur(8px); }
.end-statue-wrap { display: flex; align-items: flex-end; height: 100%; padding-bottom: 6px; filter: drop-shadow(0 0 22px rgba(255, 215, 106, 0.25)); }
.end-monument.show .end-statue-wrap { animation: end-rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both; }
@keyframes end-rise { from { transform: translateY(120px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.end-plaque { margin-top: 14px; text-align: center; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; font-size: 20px; color: var(--gold); }
.end-plaque small { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0.14em; color: var(--text-dim); margin-top: 6px; }

@media (max-width: 560px) {
  .end-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================= PANTHÉON ================= */
.hof-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 6, 12, 0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  overflow-y: auto;
}
.hof-box {
  background: var(--bg2);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 22px;
  width: 100%; max-width: 440px;
  max-height: min(80dvh, 80svh);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 11px;
  flex-shrink: 0;
}
.hof-box h3 { font-family: var(--font-display); letter-spacing: 0.15em; font-size: 19px; text-align: center; }
/* Empêche Safari/iOS de tasser le titre, les onglets ou le bouton fermer quand le
   contenu dépasse max-height : chaque enfant garde sa taille naturelle et c'est
   .hof-box qui défile (overflow-y ci-dessus), jamais ses enfants qui rétrécissent. */
.hof-box > * { flex-shrink: 0; }
.careers-box { max-width: 560px; }
.slot-card { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panel-border); border-radius: 12px; padding: 13px; }
.slot-card.up { border-color: rgba(0, 255, 135, 0.4); }
.slot-card.down { border-color: rgba(255, 91, 91, 0.4); }
.slot-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.slot-card-head > b { line-height: 1.35; }
.slot-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.slot-badge { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; color: var(--text-dim); font-size: 9px; letter-spacing: 0.05em; padding: 3px 7px; white-space: nowrap; }
.slot-badge.active { border-color: var(--green); color: var(--green); }
.slot-info, .slot-empty, .slot-limit, .save-export-warning { color: var(--text-dim); font-size: 11px; line-height: 1.45; }
.slot-info { margin: 8px 0 10px; }
.slot-actions { display: flex; gap: 8px; }
.slot-actions .btn { flex: 1; padding: 9px 12px; }
.btn-danger { border: 1px solid #c84b55; background: rgba(200, 75, 85, 0.12); color: #ff8f98; }
.slot-limit, .slot-empty { margin: 5px 0; text-align: center; }
.acc-hint { min-height: 16px; margin: -4px 0 2px; font-size: 12px; color: var(--text-dim); }
.acc-hint.good { color: var(--green); }
.acc-hint.bad { color: #ff8f98; }
.ref-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
  background: linear-gradient(135deg, #2a3a66, #16203c);
  border: 1px solid rgba(255, 215, 106, 0.4); border-radius: 999px;
  padding: 4px 11px 4px 8px; font-size: 11.5px; color: var(--gold);
  font-family: var(--font-display); letter-spacing: 0.02em;
}
.pf-head { text-align: center; }
.pf-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.08em; }
.pf-tier { margin-top: 6px; font-size: 12px; color: var(--gold); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); border: 1px dashed var(--panel-border); border-radius: 13px; padding: 12px 14px; }
.code-box .lbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.code-val { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.16em; color: var(--cyan); }
.copy-btn { font-size: 11px; background: rgba(4,245,255,0.1); border: 1px solid var(--cyan); color: var(--cyan); border-radius: 8px; padding: 6px 10px; font-family: var(--font-body); }
.bank { background: linear-gradient(135deg, rgba(0,255,135,0.09), rgba(20,28,50,0.9)); border: 1px solid rgba(0,255,135,0.3); border-radius: 15px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.bank-lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.bank-amount { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--green); }
.bank-hint { font-size: 11.5px; color: var(--text-dim); }
.withdraw-btn { width: 100%; border: none; border-radius: 13px; padding: 13px; margin-top: 2px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; background: linear-gradient(135deg, var(--green), #00c96a); color: #04140b; box-shadow: 0 0 18px rgba(0,255,135,0.3); }
.withdraw-btn:disabled { opacity: 0.5; box-shadow: none; }
.fill-list, .acc-titles-list { display: flex; flex-direction: column; gap: 10px; }
.acc-challenge { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--panel-border); }
.fill-row { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 13px; padding: 12px 13px; }
.fill-top { display: flex; align-items: center; justify-content: space-between; }
.fill-name { font-size: 14px; font-weight: 600; }
.fill-earned { font-size: 12.5px; color: var(--green); font-family: var(--font-display); }
.fill-steps { display: flex; align-items: center; gap: 4px; margin-top: 9px; }
.step { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.step.done { background: var(--green); }
.fill-stage { font-size: 10.5px; color: var(--text-dim); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.fill-stage b { color: var(--text); }
.acc-nudge { margin: 2px 0; font-size: 12px; line-height: 1.4; color: var(--text-dim); }
.save-export-warning { margin: -2px 0 3px; }
.tut-overlay {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.tut-card {
  width: 100%; max-width: 480px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.tut-card h3 { margin-bottom: 7px; font-family: var(--font-display); letter-spacing: 0.12em; font-size: 15px; }
.tut-card p { margin-bottom: 12px; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.tut-card .btn { width: 100%; }
.webview-warning-actions { display: flex; flex-direction: column; gap: 8px; }
.help-box section { padding: 8px 0; border-bottom: 1px solid var(--panel-border); }
.help-box section b { color: var(--green); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; }
.help-box section p { margin: 4px 0 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.help-box section ul { margin: 4px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.help-box section li { margin-top: 3px; }
.hof-row {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  padding: 10px 13px;
  display: flex; flex-direction: column; gap: 2px;
}
.hof-row span { color: var(--gold); font-size: 12.5px; font-family: var(--font-display); letter-spacing: 0.08em; }
.hof-row small { color: var(--text-dim); font-size: 11.5px; }

/* ================= AJOUTS V2 ================= */
.hud-calendar {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--cyan);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
.hud-ctx { color: var(--text-dim); font-family: var(--font-body); letter-spacing: 0.02em; }

.game-select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2300ff87' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.game-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.12); }
.game-select:disabled { opacity: 0.72; cursor: not-allowed; }

.season-chapter {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 3px;
}

.factors {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}
.factors-title { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.22em; color: var(--text-dim); margin-bottom: 2px; }
.factor { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #c3cee8; }
.factor b { font-family: var(--font-display); font-size: 14px; }
.factor.up b { color: var(--green); }
.factor.down b { color: var(--red); }

.profile-sub { text-align: center; font-size: 12px; color: var(--text-dim); margin: -4px 0 4px; }
.profile-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
}
.profile-row span { flex: 0 0 128px; color: #c3cee8; }
.profile-row b { flex: 0 0 26px; text-align: right; font-family: var(--font-display); }
.mini-bar.big { height: 8px; flex: 1; }
.mini-bar.big div { transition: background 0.2s ease; }

.btn-save { border-color: var(--cyan) !important; opacity: 0.9; }

/* ================= DESKTOP ================= */
@media (min-width: 700px) {
  body::before {
    content: '';
    position: fixed; inset: 0;
    background:
      radial-gradient(800px 500px at 15% 20%, rgba(0, 255, 135, 0.05), transparent 60%),
      radial-gradient(700px 500px at 85% 80%, rgba(4, 245, 255, 0.05), transparent 60%);
    pointer-events: none;
  }
  #app {
    border-left: 1px solid var(--panel-border);
    border-right: 1px solid var(--panel-border);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
    background: rgba(8, 11, 21, 0.5);
  }
}

/* ================= CRÉATION SUR GRAND ÉCRAN =================
   L'app garde sa colonne de 560px partout, sauf l'écran de création
   qui s'élargit (formulaire 2 colonnes + carte épinglée à droite). */
@media (min-width: 1000px) {
  #app.wide { max-width: 1100px; }
  #app.wide .create-wrap { padding-left: 32px; padding-right: 32px; }
  #app.wide .create-grid { flex-direction: row; align-items: flex-start; gap: 44px; }
  #app.wide .create-form {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    align-items: start;
  }
  #app.wide .field-full { grid-column: 1 / -1; }
  #app.wide .create-card-preview {
    position: sticky; top: 20px;
    flex: 0 0 450px;
    align-items: flex-start;
  }
  #app.wide .look-row { flex-direction: row; flex-wrap: wrap; gap: 10px 26px; }
}

/* ================= BADGE BLESSURE (HUD) ================= */
.hud-injury {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--red);
  background: rgba(255, 91, 91, 0.12);
  border: 1px solid rgba(255, 91, 91, 0.35);
  border-radius: 20px;
  padding: 1px 8px;
  white-space: nowrap;
}

/* ================= VARIABLES DE DÉPART (création) ================= */
.create-vars {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.cv-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.cv-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  padding: 2.5px 0;
  color: #c3cee8;
}
.cv-row b { font-family: var(--font-display); font-size: 13px; color: var(--text); }
.cv-row.boosted span { color: var(--text); }
.cv-row i { font-style: normal; font-size: 11px; }
.cv-row i.up { color: var(--green); }
.cv-row i.down { color: var(--red); }

/* ================= ATTRIBUTS DE SIMULATION ================= */
.player-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 10px;
  padding: 4px 14px 2px;
}
.player-card-stat {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.player-card-stat b { font-family: var(--font-display); font-size: 15px; }
.player-card-stat span { font-size: 9px; letter-spacing: 0.08em; opacity: 0.75; }

.profile-attrs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 4px 0 8px;
}
.profile-attrs .pa {
  background: rgba(120, 160, 255, 0.08);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  text-align: center;
  padding: 5px 0 4px;
}
.profile-attrs .pa b { display: block; font-family: var(--font-display); font-size: 15px; }
.profile-attrs .pa span { font-size: 9px; letter-spacing: 0.08em; color: var(--text-dim); }

.end-reconv {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

/* ================= CARTE DE CARRIÈRE ANIMÉE ================= */
.player-card, .player-card.big { perspective: 700px; }
.player-card-inner {
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
}
/* Reflet holographique qui balaye toutes les cartes */
.player-card-inner::after {
  content: '';
  position: absolute;
  top: -40%; left: -80%;
  width: 55%; height: 190%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.05) 65%,
    transparent 100%);
  transform: rotate(14deg);
  animation: holo-sweep 5.2s ease-in-out infinite;
  pointer-events: none;
}
/* Renforcé pour les rangs élevés — effet « carte rare » */
.player-card-inner.card-legend::after,
.player-card-inner.card-gold::after {
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 32%,
    rgba(255, 255, 255, 0.46) 50%,
    rgba(255, 255, 255, 0.08) 68%,
    transparent 100%);
  animation-duration: 3.7s;
}
@keyframes holo-sweep {
  0%, 52%  { left: -90%; }
  78%, 100% { left: 160%; }
}
.card-gold { animation: gold-pulse 3.2s ease-in-out infinite; }
@keyframes gold-pulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 14px rgba(255, 215, 106, 0.2); }
  50%      { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 215, 106, 0.45); }
}
.card-legend { animation: legend-pulse 2.6s ease-in-out infinite; }
@keyframes legend-pulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 215, 106, 0.35), 0 0 44px rgba(160, 110, 255, 0.15); }
  50%      { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 215, 106, 0.65), 0 0 66px rgba(160, 110, 255, 0.35); }
}

/* ================= JOUEUR EN PIED ================= */
.profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.profile-figure { flex: 0 0 auto; margin-top: -4px; }
.season-head-flex { display: flex; justify-content: center; align-items: center; gap: 18px; }
.season-figure { flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }

/* ================= ALBUM PANINI (graphisme 7) ================= */
.pn-box { max-width: 480px; }
.pn-count { text-align: center; font-family: var(--font-display); letter-spacing: 0.1em; color: var(--cyan); font-size: 13px; margin-top: -4px; }
.pn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.pn-sticker {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px 7px 10px;
  text-align: center;
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(30, 40, 68, 0.9), rgba(14, 20, 38, 0.95));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 118px;
}
.pn-troph-title { text-align: center; font-family: var(--font-display); letter-spacing: 0.08em; font-size: 14px; color: var(--gold); margin: 4px 0 2px; }
.pn-troph .pn-name { margin-top: 2px; }
.pn-mult {
  position: absolute; top: 6px; right: 6px;
  min-width: 22px; height: 22px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: #05070f; background: var(--green);
  border-radius: 11px; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.pn-icon { font-size: 32px; line-height: 1.1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
.pn-name { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.03em; color: #fff; line-height: 1.15; }
.pn-desc { font-size: 10px; line-height: 1.3; color: var(--text-dim); }
.pn-locked { filter: grayscale(1); opacity: 0.5; }
.pn-locked .pn-icon { opacity: 0.6; }

/* Reflet holographique qui traverse les vignettes débloquées */
.pn-shine { position: absolute; inset: 0; pointer-events: none; }
.pn-sticker:not(.pn-locked) .pn-shine::before {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: pn-sweep 4.5s ease-in-out infinite;
}
@keyframes pn-sweep { 0%, 60% { left: -60%; } 88%, 100% { left: 130%; } }

.pn-bronze { border-color: rgba(205, 140, 90, 0.55); box-shadow: inset 0 0 16px rgba(205, 140, 90, 0.12); }
.pn-silver { border-color: rgba(200, 214, 235, 0.55); box-shadow: inset 0 0 16px rgba(200, 214, 235, 0.14); }
.pn-gold   { border-color: rgba(255, 215, 106, 0.6); box-shadow: inset 0 0 18px rgba(255, 215, 106, 0.18); }
.pn-legend {
  border-color: rgba(255, 215, 106, 0.7);
  background: linear-gradient(160deg, rgba(58, 40, 80, 0.92), rgba(20, 16, 40, 0.96));
  box-shadow: inset 0 0 22px rgba(180, 130, 255, 0.22), 0 0 14px rgba(255, 215, 106, 0.15);
}
.pn-legend .pn-name { color: var(--gold); }

/* Toast de déblocage */
.pn-toast {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 28, 50, 0.98), rgba(10, 14, 26, 0.98));
  border: 1px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 215, 106, 0.25);
  transition: transform 0.4s cubic-bezier(0.2, 1.1, 0.35, 1);
  max-width: min(420px, 92vw);
}
.pn-toast.show { transform: translate(-50%, 0); }
.pn-toast-icon { font-size: 30px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)); }
.pn-toast-body { display: flex; flex-direction: column; gap: 1px; }
.pn-toast-tag { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.18em; color: var(--gold); }
.pn-toast-body b { font-size: 15px; color: #fff; font-family: var(--font-display); letter-spacing: 0.03em; }
.pn-toast.pn-legend { border-color: rgba(180, 130, 255, 0.9); }

/* Toast générique : récap des points après match (D1) + progression (D2) */
.pn-generic { border-color: rgba(120, 160, 255, 0.5); }
.pn-generic.up { border-color: rgba(0, 255, 135, 0.6); }
.pn-generic.down { border-color: rgba(255, 91, 91, 0.6); }
.pn-generic-body { font-size: 13px; color: #eaf0ff; }
.tr-title { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.16em; color: var(--gold); display: block; margin-bottom: 5px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tr-chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 8px; border: 1px solid; }
.tr-chip.up { color: var(--green); border-color: rgba(0, 255, 135, 0.4); background: rgba(0, 255, 135, 0.08); }
.tr-chip.down { color: var(--red); border-color: rgba(255, 91, 91, 0.4); background: rgba(255, 91, 91, 0.08); }

/* Bouton de vitesse des commentaires en match (D3) */
.m-speed-btn {
  position: absolute;
  top: 9px; right: 10px;
  z-index: 5;
  padding: 4px 10px;
  background: rgba(6, 10, 20, 0.82);
  border: 1px solid rgba(120, 160, 255, 0.3);
  border-radius: 7px;
  color: #cfe0ff;
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 0.06em;
  cursor: pointer;
}
.m-speed-btn:active { filter: brightness(0.9); }

/* Numéro de maillot sur la carte de carrière (F2) */
.player-card-number {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--gold);
  padding: 0 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
/* Valeur chiffrée forme/moral dans le HUD (D2) */
.bar-val { color: var(--text-soft); font-size: 11px; font-weight: 700; }
/* B1 — flèche de tendance ↗︎/↘︎ des variables du HUD (érosion / remontée) */
.trend { font-size: 10px; margin-left: 2px; font-weight: 800; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

/* C3 — Écran Entourage : PNJ, jauges de relation, souvenirs, arcs */
.ent-row { margin: 8px 0 10px; }
.ent-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.ent-icon { font-size: 18px; }
.ent-id { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.ent-id b { font-size: 13px; }
.ent-id small { color: #8fa3c8; font-size: 10px; }
.ent-val { font-size: 13px; color: #cfe0ff; }
.ent-mem { font-size: 10px; color: #8fa3c8; font-style: italic; margin-top: 3px; }
.ent-arcs { display: flex; flex-direction: column; gap: 4px; }
.ent-arc { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #cfe0ff; background: rgba(255,255,255,0.04); border-radius: 6px; padding: 4px 8px; }
.ent-arc b { letter-spacing: 2px; color: var(--gold); font-size: 10px; }
.ent-arc.done { opacity: 0.75; }
.ent-arc.done b { color: var(--green); }

@media (max-width: 380px) {
  .pn-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-card-head, .slot-actions { flex-direction: column; }
  .slot-badges { justify-content: flex-start; }
  .slot-actions .btn { width: 100%; }
}

/* ================= MODE TACTILE (visée tactile) ================= */
.m-skill {
  position: fixed;
  inset: 0;
  z-index: 115; /* au-dessus de l'action texte, sous la cinématique de but */
  background:
    radial-gradient(circle at 50% 32%, rgba(17, 79, 78, 0.28), transparent 42%),
    rgba(2, 6, 14, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.m-skill.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .screen { animation: none; }
  .player-card-inner { transform: none !important; }
}

@media (forced-colors: active) {
  .btn, .pick, .menu-item, .game-select, .field input { border: 1px solid ButtonText; }
  .btn:focus-visible, .pick:focus-visible, .menu-item:focus-visible { outline-color: Highlight; }
}
.sk-head { width: 100%; max-width: 540px; margin: 0 auto; text-align: center; }
.sk-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #ffc15c;
  text-shadow: 0 0 20px rgba(255, 178, 74, 0.38), 0 2px 8px rgba(0, 0, 0, 0.8);
}
.sk-opp { font-size: 12px; color: #79d9d0; opacity: 0.9; margin-top: 3px; letter-spacing: 0.05em; }
.sk-hint { font-size: 13px; line-height: 1.5; color: #d9eceb; margin-top: 8px; }
.sk-but, .sk-reussi, .sk-note { max-width: 100%; overflow-wrap: anywhere; }
.sk-but { color: #eefafa; font-weight: 600; }
.sk-reussi { color: #9de5d1; font-size: 12px; margin-top: 2px; }
.sk-note { color: #aabdbc; font-size: 11px; margin-top: 2px; }
.sk-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  touch-action: none;           /* pas de scroll pendant la visée (Pointer Events) */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: crosshair;
}
.sk-stage svg {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(101, 218, 205, 0.3);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.75), 0 0 36px rgba(38, 160, 146, 0.13), inset 0 0 0 1px rgba(255, 193, 92, 0.06);
  pointer-events: none;         /* les gestes se lisent sur .sk-stage, pas sur le SVG */
}
.sk-signal, .sk-cadence {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  z-index: 4; min-width: 140px; padding: 16px 22px; border-radius: 16px;
  text-align: center; font-family: var(--font-display); font-size: 24px; letter-spacing: 0.08em;
  color: #ffc15c; background: linear-gradient(145deg, rgba(5, 18, 27, 0.96), rgba(8, 43, 45, 0.94));
  border: 1px solid rgba(255, 193, 92, 0.58);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.58), 0 0 22px rgba(255, 178, 74, 0.12);
}
.sk-signal.go { color: #061b1a; background: linear-gradient(135deg, #83ead8, #3db9a9); border-color: #dffff7; }
.sk-signal.ko { color: #fff; background: linear-gradient(135deg, #b52d3f, #e05a45); border-color: #ffb18e; font-size: 18px; }
.sk-cadence { display: flex; flex-direction: column; gap: 7px; }
.sk-cadence span { display: inline-block; font-size: 34px; line-height: 1; color: #79d9d0; text-shadow: 0 0 18px rgba(121, 217, 208, 0.75); transition: transform 90ms ease-out, color 90ms ease-out, text-shadow 90ms ease-out; }
.sk-cadence.pulse span { transform: scale(2.05); color: #fff0b8; text-shadow: 0 0 10px #fff, 0 0 30px #ffc15c, 0 0 48px rgba(255, 193, 92, 0.9); }
.sk-cadence b { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.06em; color: #ffe0a3; }
.sk-cad-hint { font-size: 13px; font-style: normal; letter-spacing: 0.03em; color: #bfe6df; opacity: 0.92; }
.sk-mash {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  z-index: 4; width: min(78%, 320px); padding: 18px 22px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 12px; text-align: center;
  color: #ffc15c; background: linear-gradient(145deg, rgba(5, 18, 27, 0.96), rgba(8, 43, 45, 0.94));
  border: 1px solid rgba(121, 217, 208, 0.55);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.58), 0 0 22px rgba(121, 217, 208, 0.14);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.sk-mash em { font-family: var(--font-display); font-size: 16px; font-style: normal; letter-spacing: 0.05em; color: #bfe6df; }
.sk-mash b { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.06em; color: #ffe0a3; }
.sk-mash-bar { height: 18px; overflow: hidden; border-radius: 999px; background: rgba(1, 10, 17, 0.72); border: 1px solid rgba(121, 217, 208, 0.28); }
.sk-mash-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #46cfc0, #ffc15c); box-shadow: 0 0 18px rgba(121, 217, 208, 0.55); transition: width 90ms ease-out; pointer-events: none; }
.sk-mash.pulse { transform: translate(-50%, -50%) scale(1.025); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.58), 0 0 30px rgba(255, 193, 92, 0.3); }
.sk-hold-zone { fill: rgba(255,178,74,0.12); stroke: #ffb24a; stroke-width: 4; }
.sk-hotzone {
  color: #ffb24a;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: skHotPulse 1.6s ease-in-out infinite;
}
.sk-hotzone circle { fill: rgba(255,178,74,0.08); stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 3; }
.sk-hotzone path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#sk-hotzones { pointer-events: none; transition: opacity 180ms ease-out; }
@keyframes skHotPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
.sk-mate-live > circle:last-child {
  stroke: #7ff8eb;
  animation: skMatePulse 1.6s ease-in-out infinite;
}
@keyframes skMatePulse {
  0%, 100% { opacity: 0.72; stroke-width: 1.6; }
  50% { opacity: 1; stroke-width: 2.4; }
}
.sk-seq-target circle { fill: rgba(46,181,168,0.2); stroke: #79d9d0; stroke-width: 3; }
.sk-seq-target text { fill: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.sk-seq-target.done { opacity: 0.25; }
.sk-seq-target.wrong circle { fill: rgba(224,70,78,0.78); stroke: #ffd1bd; }
.sk-seq-target.pop-in circle { transform-box: fill-box; transform-origin: center; animation: skSeqPopIn 180ms ease-out both; }
@keyframes skSeqPopIn {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
/* Sas « Prêt ? » — le geste ne se lance qu'au clic : on laisse lire la consigne, aucun chrono avant */
.sk-go-btn {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #081b1b;
  background: linear-gradient(135deg, #ffd17a, #f19a3e);
  border: 1px solid #ffe5b0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(241, 154, 62, 0.38), 0 0 18px rgba(255, 193, 92, 0.2);
  cursor: pointer;
  z-index: 5;
  animation: skGoPulse 1.1s ease-in-out infinite;
}
@keyframes skGoPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.06); }
}
.sk-go-btn:active { filter: brightness(0.9); }
.sk-preview-cap, .sk-discover-badge {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 4;
  max-width: calc(100% - 28px); padding: 6px 12px; border-radius: 999px;
  text-align: center; pointer-events: none; backdrop-filter: blur(5px);
}
.sk-preview-cap {
  top: 8px; color: #edf9f6; background: rgba(4, 18, 25, 0.82);
  border: 1px solid rgba(121, 217, 208, 0.3); font-size: 12px;
}
/* En mode découverte, le badge occupe le haut : la légende descend juste en dessous */
.sk-preview-cap.is-lower { top: 56px; }
.sk-discover-badge {
  top: 8px; color: #fff3d4; background: rgba(116, 68, 11, 0.88);
  border: 1px solid rgba(255, 209, 122, 0.65); font-size: 12px; font-weight: 700;
}
/* Jauge de puissance du glissé (se remplit pendant la visée) */
.sk-meter {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  height: 10px;
  border-radius: 7px;
  background: rgba(3, 16, 23, 0.84);
  border: 1px solid rgba(105, 211, 199, 0.3);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 0 12px rgba(60, 190, 174, 0.08);
  overflow: hidden;
  pointer-events: none;
}
.sk-meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, #39bba9, #ffc15c, #e05a45); box-shadow: 0 0 10px rgba(255, 193, 92, 0.36); transition: width 0.05s linear; }
/* Verdict du geste (parfait / moyen / raté) */
.sk-verdict {
  position: absolute;
  top: 34%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 26px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(4, 16, 24, 0.94), rgba(7, 34, 37, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.62);
  font-family: var(--font-display);
  text-align: center;
  pointer-events: none;
  animation: skvPop 0.34s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.sk-verdict .skv-ico { font-size: 40px; line-height: 1; }
.sk-verdict .skv-word { font-size: 26px; font-weight: 700; letter-spacing: 0.1em; text-shadow: 0 0 16px currentColor; }
.sk-verdict .skv-sub { font-size: 13px; letter-spacing: 0.04em; color: #cfe4e0; opacity: 0.9; font-family: var(--font-body, inherit); }
@keyframes skvPop { 0% { opacity: 0; transform: translateX(-50%) scale(0.8); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
.sk-verdict.ok .skv-word { color: #79e3ce; }
.sk-verdict.mid .skv-word { color: #ffc15c; }
.sk-verdict.ko .skv-word { color: #ff6b62; }
/* Jauge de timing (le curseur balaie, taper dans le vert) */
.sk-bar {
  position: absolute;
  left: 8%; right: 8%; bottom: 18px;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #8f302e, #641f22);
  border: 1px solid rgba(105, 211, 199, 0.38);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.58), 0 8px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  pointer-events: none;
}
.sk-bar-orange {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(180deg, #d87a2d, #a95523);
  border-left: 1px solid #f0a14a;
  border-right: 1px solid #f0a14a;
}
.sk-bar-green {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(54, 185, 167, 0.38), rgba(121, 227, 206, 0.68), rgba(54, 185, 167, 0.38));
  border-left: 2px solid #79e3ce;
  border-right: 2px solid #79e3ce;
  box-shadow: 0 0 14px rgba(121, 227, 206, 0.28);
}
.sk-bar-cursor {
  position: absolute; top: -2px; bottom: -2px;
  width: 4px; margin-left: -2px;
  background: #ffc15c;
  box-shadow: 0 0 12px #ffb24a, 0 0 3px #fff;
}
/* Interrupteur HUD : grisé quand le mode est désactivé */
#btn-skillmode.off { opacity: 0.4; filter: grayscale(1); }

/* ---------- F4 · Classement du championnat ---------- */
.st-box { max-width: 560px; width: 92%; }
.st-scroll { max-height: 56vh; overflow-y: auto; overscroll-behavior: contain; margin: 8px 0; border-radius: 10px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table thead th { position: sticky; top: 0; background: #12172a; color: #8ea0c8; font-weight: 600; padding: 7px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
.st-table td { padding: 6px 4px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.05); color: #dfe6f5; }
.st-table .st-rank { color: #7f8db0; width: 22px; }
.st-table .st-club { display: flex; align-items: center; gap: 6px; text-align: left; white-space: nowrap; font-weight: 600; }
.st-table .st-club .flag { font-size: 13px; line-height: 1; }
.st-table .st-club b { color: #ffd76a; font-weight: 700; font-size: 11px; }
.lb-champ-badge { margin-left: 2px; font-size: 10px; font-weight: 600; color: var(--gold); }
.st-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.st-table .st-pts { font-weight: 800; color: #fff; }
.st-table .st-gd { color: #9fb0d0; }
.st-table tr.st-me td { background: rgba(255,215,106,.12); }
.st-table tr.st-me .st-rank { color: #ffd76a; font-weight: 800; }
.lb-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.lb-pager .btn { padding: 6px 12px; font-size: 12px; }
.lb-pager .btn[disabled] { opacity: .4; pointer-events: none; }
.lb-pager .pn-count { margin: 0; }
.st-table tr.st-ucl .st-rank { box-shadow: inset 3px 0 0 #3ad07a; }
.st-table tr.st-uel .st-rank { box-shadow: inset 3px 0 0 #4d9bff; }
.st-table tr.st-rel .st-rank { box-shadow: inset 3px 0 0 #e5544b; }
.st-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; font-size: 11px; color: #9fb0d0; margin: 6px 0 12px; align-items: center; }
.st-k { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 3px; vertical-align: middle; }
.st-k.st-ucl { background: #3ad07a; } .st-k.st-uel { background: #4d9bff; } .st-k.st-rel { background: #e5544b; }

/* ---------- F4 · Onglets + arbre Ligue des Champions ---------- */
.st-tabs { display: flex; gap: 6px; margin: 6px 0 4px; }
.st-tab { flex: 1; padding: 8px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #12172a; color: #8ea0c8; font: 600 12px/1 'Inter',sans-serif; cursor: pointer; }
.st-tab.active { background: linear-gradient(135deg,#1d6b3f,#2e9d5b); color: #fff; border-color: transparent; }
.st-box > .st-tabs { overflow-x: auto; padding-bottom: 3px; }
.st-box > .st-tabs > .st-tab { flex: 0 0 auto; min-width: 86px; }
/* Onglets principaux du classement (Carrière/Saison/Par poste/Défi) : 4 boutons, texte
   plus long ("🏆 Défi") — mêmes écrans étroits que le tri Ligue des Champions ci-dessus. */
.lb-main-tabs { overflow-x: auto; padding-bottom: 3px; flex-wrap: nowrap; }
.lb-main-tabs > .st-tab { flex: 0 0 auto; min-width: 86px; }
/* Phase 2b — sous-onglets D1/D2 (division du pays du joueur) */
.st-subtabs { margin: 2px 0 6px; }
.st-subtabs .st-dtab { padding: 6px 6px; font-size: 11px; }
.st-subtabs .st-dtab.active { background: linear-gradient(135deg,#2a4d86,#3a6fc4); }
.br-wrap { display: flex; align-items: stretch; gap: 24px; padding: 8px 4px 14px; overflow-x: auto; }
.br-round { display: flex; flex: 0 0 170px; min-width: 0; flex-direction: column; }
.br-title { color: #8ea0c8; font: 700 11px/1 'Inter',sans-serif; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; text-align: center; }
.br-round-ties { display: flex; flex: 1; flex-direction: column; justify-content: space-around; gap: 10px; }
.br-tie { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #12172a; }
.br-round:not(:last-of-type) .br-tie::after { content: ""; position: absolute; top: 50%; left: 100%; width: 25px; border-top: 1px solid rgba(142,160,200,.42); }
.br-team { display: flex; min-width: 0; align-items: center; gap: 5px; font: 600 12px/1.6 'Inter',sans-serif; color: #7f8db0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-team.br-win { color: #eaf1ff; }
.br-team.br-win .st-dot { box-shadow: 0 0 0 1px #3ad07a, 0 0 6px #3ad07a; }
.br-team:not(.br-win):not(.br-you) { opacity: .58; }
.br-you { color: #ffd76a !important; font-weight: 800; }
.br-leg { color: #8ea0c8; font-size: 10px; margin-top: 3px; }
.br-flag { flex: 0 0 20px; text-align: center; }
.br-champ { align-self: center; flex: 0 0 170px; text-align: center; font: 800 15px/1.2 'Oswald',sans-serif; color: #ffd76a; padding: 14px 10px; background: rgba(255,215,106,.1); border-radius: 10px; }
.nt-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; margin: 8px 0 14px; }
.nt-groups .br-round { min-width: 0; padding: 8px; border-radius: 10px; background: #12172a; }

/* ---- Monde vivant (écran 🌍) ---- */
/* Tableaux du Monde : mise en page figée → la dernière colonne (Niv./Buts) tient toujours.
   En table-layout:fixed, les largeurs de colonne sont prises sur la 1re ligne (les <th>). */
.wr-table { table-layout: fixed; width: 100%; }
.wr-table th, .wr-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-table th:first-child { width: 26px; }
.wr-table th:last-child { width: 44px; }
.wr-table .st-pts { text-align: right; }
.wr-table-sc th:nth-child(3) { width: 62px; }
.wr-table-sc td:nth-child(3) { color: #9fb0d0; font-size: 11px; }
.wr-pos { color: #7d8dad; font-size: 10px; font-weight: 700; margin-left: 5px; }
.wr-podium { display: inline-block; line-height: 1.7; margin: 3px 0; }
.wr-sc { color: #9fb0d0; font-size: 12px; }
.wr-rival { padding: 4px 2px; }
.wr-rival-head { font: 800 18px/1.2 'Oswald',sans-serif; color: #ff8a5b; }
.wr-rival-sub { color: #9fb0d0; font-size: 12px; margin: 2px 0 12px; }
.wr-tag { font-size: 11px; color: #9fb0d0; font-weight: 600; }
.wr-h2h td, .wr-h2h th { text-align: center; }
.wr-h2h td:first-child, .wr-h2h th:first-child { text-align: left; color: #9fb0d0; }
.wr-h2h .wr-win { color: #ffd76a; font-weight: 800; }
.wr-news { display: flex; flex-direction: column; gap: 7px; }
.wr-news-line { font-size: 13px; color: #dce6f5; background: rgba(255,255,255,.03); border-radius: 8px; padding: 8px 10px; }
.wr-yr { color: #7d8dad; font-size: 11px; float: right; }

/* ---- Retours joueurs ---- */
.feedback-box { max-width: 540px; max-height: 88vh; overflow-y: auto; text-align: left; }
.feedback-box h3 { text-align: center; }
.feedback-intro, .feedback-privacy { color: #9fb0d0; font-size: 12px; line-height: 1.5; }
.feedback-form { display: flex; flex-direction: column; gap: 11px; }
.feedback-form > label { display: flex; flex-direction: column; gap: 5px; color: #dfe6f5; font-size: 12px; font-weight: 700; }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  box-sizing: border-box; width: 100%; border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; background: #12172a; color: #fff; padding: 10px 11px;
  font: 400 16px/1.35 var(--font-body);
}
.feedback-form textarea { min-height: 120px; resize: vertical; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus {
  border-color: #ffd76a; outline: 2px solid rgba(255,215,106,.2);
}
.feedback-check { flex-direction: row !important; align-items: flex-start; font-weight: 500 !important; line-height: 1.4; }
.feedback-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #ffd76a; }
.feedback-privacy { margin: 0; }
.feedback-status { min-height: 18px; font-size: 12px; font-weight: 700; text-align: center; }
.feedback-status.success { color: #66e09a; }
.feedback-status.error { color: #ff8a82; }
.feedback-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feedback-hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---- Bandeau de consentement analytics (RGPD / Loi 25) ---- */
/* Anim dédiée (pas la slideUp partagée) : slideUp remet transform:none à la fin,
   ce qui effacerait le translateX(-50%) qui centre le bandeau. */
@keyframes consentSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to { opacity: 1; transform: translateX(-50%); }
}
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 150;
  width: calc(100% - 28px);
  max-width: 532px;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.98), rgba(10, 14, 26, 0.98));
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: consentSlideUp 0.35s ease both;
}
.consent-text { font-size: 12.5px; line-height: 1.5; color: var(--text-soft); }
.consent-status { font-size: 11.5px; color: var(--text-dim); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions .btn { padding: 11px; font-size: 13px; }

/* Ciblage libre d'un club via l'agent (mercato) : filtre championnat → division → club */
.agent-cascade { margin-top: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; }
.agent-cascade-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.agent-cascade-selects { display: grid; gap: 8px; }
.agent-sel { width: 100%; padding: 10px; font-size: 14px; color: var(--text); background: rgba(16, 24, 46, 0.95); border: 1px solid var(--panel-border); border-radius: 9px; }
.agent-sel:disabled { opacity: 0.5; }
.agent-cascade-result { margin-top: 8px; }
.agent-cascade-result .ac-locked { padding: 11px; font-size: 13px; color: var(--text-dim); background: rgba(16, 24, 46, 0.6); border: 1px dashed var(--panel-border); border-radius: 9px; }

/* ================= OBJECTIFS DE LÉGENDE ================= */
.lo-box { width: 100%; max-width: 460px; max-height: min(90dvh, 90svh); gap: 14px; text-align: left; }
.lo-hero {
  position: relative; overflow: hidden; padding: 16px;
  border: 1px solid var(--panel-border); border-radius: 16px;
  background: linear-gradient(160deg, #132241, #0b1424);
}
.lo-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 120% at 88% -10%, rgba(255, 215, 106, 0.16), transparent 55%); pointer-events: none; }
.lo-htop { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lo-box .lo-hero-title { margin: 0; color: var(--gold); font: 800 12px/1 var(--font-display); letter-spacing: 0.2em; text-align: left; text-transform: uppercase; }
.lo-hcount { color: var(--text-dim); font: 700 12px/1 var(--font-display); white-space: nowrap; }
.lo-hcount b { color: var(--text); font-size: 15px; }
.lo-ring { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.lo-dial {
  --p: 0; display: grid; flex: 0 0 auto; width: 66px; height: 66px; place-items: center;
  border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
}
.lo-dial i { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #0b1424; color: var(--gold); font: 800 15px/1 var(--font-display); font-style: normal; }
.lo-hnext { flex: 1; min-width: 0; }
.lo-lbl { color: #7fd7ff; font: 700 10px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.lo-nextobj { margin: 3px 0 6px; color: var(--text); font-size: 14.5px; font-weight: 700; }
.lo-nextbar, .lo-pbar { overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.lo-nextbar { height: 8px; }
.lo-nextbar > span, .lo-pbar > span { display: block; height: 100%; border-radius: 99px; }
.lo-nextbar > span, .lo-pbar.g > span { background: linear-gradient(90deg, var(--green), #7fd7ff); }
.lo-num { margin-top: 5px; color: var(--text-dim); font: 600 11.5px/1 var(--font-display); }
.lo-num b { color: var(--text); }
.lo-all-done { flex: 1; padding: 12px; border: 1px solid rgba(255, 215, 106, 0.28); border-radius: 12px; color: var(--gold); font-size: 14px; font-weight: 800; text-align: center; }
.lo-rankcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--panel-border); border-radius: 14px; background: linear-gradient(150deg, #101d33, #0c1626); }
.lo-rank-copy { flex: 1; min-width: 0; }
.lo-rank-title { color: var(--text); font-size: 13.5px; font-weight: 700; }
.lo-rank-sub, .lo-rank-note { color: var(--text-dim); font-size: 12px; line-height: 1.35; }
.lo-rank-result { display: flex; flex: 0 1 auto; flex-direction: column; align-items: flex-end; gap: 7px; }
.lo-rank-value { color: var(--gold); font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lo-pill { padding: 5px 9px; border-radius: 99px; font: 700 10px/1 var(--font-display); white-space: nowrap; }
.lo-pill.ok { color: #04120b; background: linear-gradient(135deg, var(--green), #00c96a); }
.lo-pill.pend { color: #7fd7ff; border: 1px solid rgba(127, 215, 255, 0.3); background: rgba(127, 215, 255, 0.12); }
.lo-account.btn { width: auto; padding: 7px 9px; border-radius: 9px; font-size: 10px; white-space: nowrap; }
.lo-sec { display: flex; flex-direction: column; gap: 9px; }
.lo-sechead { display: flex; align-items: center; gap: 8px; margin: 4px 2px 0; }
.lo-box .lo-sechead h3 { margin: 0; color: var(--text); font: 800 11px/1 var(--font-display); letter-spacing: 0.18em; text-align: left; text-transform: uppercase; }
.lo-sechead h3 span { color: var(--gold); }
.lo-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--panel-border), transparent); }
.lo-tg { color: var(--text-dim); font: 700 10px/1 var(--font-display); white-space: nowrap; }
.lo-list { display: flex; flex-direction: column; gap: 9px; }
.lo-obj-card { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--panel-border); border-radius: 13px; background: #0e1626; }
.lo-obj-card.done { border-color: rgba(0, 255, 135, 0.28); background: linear-gradient(150deg, rgba(0, 255, 135, 0.08), #0e1626); }
.lo-obj-card.lock { opacity: 0.62; }
.lo-tier { width: 4px; align-self: stretch; border-radius: 99px; }
.lo-tier.bronze { background: #c98f5a; }
.lo-tier.silver { background: #c7d2e6; }
.lo-tier.gold { background: var(--gold); }
.lo-tier.legend { background: #ffb84d; }
.lo-ico { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border: 1px solid var(--panel-border); border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 19px; }
.lo-obj-card.done .lo-ico { border-color: rgba(0, 255, 135, 0.35); background: rgba(0, 255, 135, 0.12); }
.lo-cbody { flex: 1; min-width: 0; }
.lo-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lo-nm { color: var(--text); font-size: 14px; font-weight: 700; }
.lo-st { font: 700 10.5px/1 var(--font-display); white-space: nowrap; }
.lo-st.done { color: var(--green); }
.lo-st.lock { color: var(--text-dim); }
.lo-st.prog { color: #7fd7ff; font-variant-numeric: tabular-nums; }
.lo-desc { margin-top: 1px; color: var(--text-dim); font-size: 11.5px; line-height: 1.4; }
.lo-pbar { height: 6px; margin-top: 7px; }
.lo-pbar.gold > span { background: linear-gradient(90deg, var(--gold), #f0a84a); }

@media (max-width: 380px) {
  .lo-htop { align-items: flex-start; flex-direction: column; }
  .lo-rankcard { flex-wrap: wrap; }
  .lo-rank-result { width: 100%; flex-direction: row; align-items: center; justify-content: flex-end; }
  .lo-row1 { align-items: flex-start; }
}

/* ===== 🏛️ Dévoilement de la statue (Lot 4) ===== */
.sr-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px 14px; overflow-y: auto; background: radial-gradient(120% 90% at 50% -10%, #0c1730 0%, #0a0f1f 45%, #05070f 100%); }
.sr-wrap { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 14px; margin: auto; }
.sr-stage { position: relative; aspect-ratio: 16/9; width: 100%; border-radius: 16px; overflow: hidden; background: #05070f; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03); isolation: isolate; }
.sr-stage::before, .sr-stage::after { content: ''; position: absolute; left: 0; right: 0; height: 5.5%; z-index: 9; background: #04060d; pointer-events: none; }
.sr-stage::before { top: 0; } .sr-stage::after { bottom: 0; }
.sr-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.sr-cam { position: absolute; inset: 0; transform-origin: 50% 40%; will-change: transform; z-index: 1; }
.sr-stage.play .sr-cam { animation: srDolly 6400ms cubic-bezier(.22, .61, .24, 1) forwards; }
@keyframes srDolly { 0% { transform: scale(1.16); } 100% { transform: scale(1.03); } }
.sr-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-grade { z-index: 2; background: linear-gradient(180deg, rgba(4, 8, 16, 0.35), rgba(4, 8, 16, 0.15)); opacity: 1; }
.sr-stage.play .sr-grade { animation: srGrade 2600ms ease-out .8s forwards; }
@keyframes srGrade { to { opacity: 0; } }
.sr-fx { z-index: 6; mix-blend-mode: screen; }
.sr-grain { z-index: 7; opacity: 0.05; mix-blend-mode: overlay; pointer-events: none; }
.sr-vign { z-index: 8; pointer-events: none; background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.5) 100%); }
.sr-veil { position: absolute; z-index: 5; left: 32%; right: 32%; top: 5.5%; height: 70%; transform-origin: 50% 0; }
.sr-stage.play .sr-veil { animation: srVeilDrop 1700ms cubic-bezier(.5, .02, .3, 1) .95s forwards; }
@keyframes srVeilDrop { 0% { transform: translateY(0) scaleY(1); opacity: 1; } 55% { opacity: 1; } 100% { transform: translateY(62%) scaleY(.06); opacity: 0; } }
.sr-veil svg { width: 100%; height: 100%; display: block; }
.sr-plate { position: absolute; z-index: 6; left: 50%; bottom: 9%; transform: translateX(-50%); text-align: center; width: min(46%, 360px); }
.sr-plateInner { padding: 7px 14px; border-radius: 5px; background: linear-gradient(180deg, rgba(28, 22, 10, 0.72), rgba(14, 10, 4, 0.72)); box-shadow: inset 0 1px 0 rgba(255, 215, 106, 0.25), 0 6px 18px rgba(0, 0, 0, 0.5); }
.sr-engrave { font: 800 clamp(13px, 2.6vw, 22px)/1 Georgia, serif; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; position: relative; display: flex; justify-content: center; gap: 0.05em; flex-wrap: wrap; }
.sr-engrave span { opacity: 0; color: transparent; -webkit-background-clip: text; background-clip: text; background: linear-gradient(180deg, #fff0c6, #ffd76a 45%, #b8863a 80%, #8a5f24); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6); }
.sr-stage.play .sr-engrave span { animation: srCarve 480ms ease-out forwards; }
@keyframes srCarve { from { opacity: 0; filter: brightness(2.6); transform: translateY(-3px); } to { opacity: 1; filter: brightness(1); transform: none; } }
.sr-glint { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.85) 50%, transparent 60%); background-size: 220% 100%; }
.sr-stage.play .sr-glint { animation: srGlint 900ms ease-in-out 4.6s forwards; }
@keyframes srGlint { 0% { opacity: 0; background-position: 120% 0; } 25% { opacity: 0.9; } 100% { opacity: 0; background-position: -40% 0; } }
.sr-years { margin: 5px 0 0; font: 600 10px/1.3 system-ui; letter-spacing: 0.22em; text-transform: uppercase; color: #f0e6cf; opacity: 0; }
.sr-stage.play .sr-years { animation: srFadeUp 600ms ease-out 4.6s forwards; }
@keyframes srFadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 0.95; transform: none; } }
.sr-tag { position: absolute; z-index: 8; top: 10%; left: 50%; transform: translate(-50%, -8px); font: 700 11px/1 system-ui; letter-spacing: 0.26em; text-transform: uppercase; color: #04120b; background: linear-gradient(135deg, #00ff87, #00c96a); padding: 7px 15px; border-radius: 999px; opacity: 0; box-shadow: 0 8px 26px rgba(0, 255, 135, 0.3); }
.sr-stage.play .sr-tag { animation: srTagIn 650ms cubic-bezier(.2, .8, .2, 1) 4.9s forwards; }
@keyframes srTagIn { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sr-lines { display: flex; flex-direction: column; gap: 8px; }
.sr-line { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid #1e2c48; border-radius: 11px; background: rgba(17, 26, 46, 0.55); opacity: 0; transform: translateY(6px); }
.sr-stage.play ~ .sr-lines .sr-line { animation: srLineIn 520ms ease-out forwards; }
.sr-stage.play ~ .sr-lines .sr-l1 { animation-delay: 0.4s; }
.sr-stage.play ~ .sr-lines .sr-l2 { animation-delay: 2.3s; }
.sr-stage.play ~ .sr-lines .sr-l3 { animation-delay: 4.7s; }
@keyframes srLineIn { to { opacity: 1; transform: none; } }
.sr-line b { color: #ffd76a; }
.sr-line p { margin: 0; font-size: 13.5px; color: #d9e4f8; }
.sr-beat { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(0, 255, 135, 0.12); color: #00ff87; border: 1px solid rgba(0, 255, 135, 0.3); }
.sr-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .sr-stage.play .sr-cam { animation: none; transform: scale(1.03); }
  .sr-stage.play .sr-grade { opacity: 0; animation: none; }
  .sr-stage.play .sr-veil { opacity: 0; animation: none; }
  .sr-stage.play .sr-glint { display: none; }
  .sr-stage.play .sr-engrave span, .sr-stage.play .sr-years, .sr-stage.play .sr-tag { opacity: 1; transform: none; animation: none; }
  .sr-stage.play ~ .sr-lines .sr-line { opacity: 1; transform: none; animation: none; }
}
