/* =========================================================
   LÉGENDE 9 — Styles
   ========================================================= */

:root {
  --bg: #070a08;
  --bg-2: #0a0f0b;
  --panel: #0e1510;
  --panel-2: #121b14;
  --line: rgba(235, 245, 230, 0.09);
  --line-soft: rgba(235, 245, 230, 0.055);
  --white: #f2f5ec;
  --muted: #8c998d;
  --muted-2: #667267;
  --lime: #c9ff3d;
  --lime-soft: rgba(201, 255, 61, 0.12);
  --lime-line: rgba(201, 255, 61, 0.35);
  --red: #ff6b4a;
  --amber: #ffc65c;
  --blue: #74c4ff;
  --violet: #b18cff;
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(201, 255, 61, 0.07), transparent 65%),
    radial-gradient(700px 600px at -10% 40%, rgba(90, 160, 80, 0.05), transparent 60%),
    var(--bg);
}

::selection { background: var(--lime); color: #090c08; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; }

.hidden { display: none !important; }
.lime { color: var(--lime); }

.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn .ic { width: 17px; height: 17px; transition: transform 0.18s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--lime);
  color: #080b07;
  box-shadow: 0 10px 34px rgba(201, 255, 61, 0.13);
}
.btn-primary:hover { background: #d8ff70; box-shadow: 0 14px 40px rgba(201, 255, 61, 0.22); }

.btn-ghost {
  border-color: rgba(235, 245, 230, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: var(--white);
}
.btn-ghost:hover { border-color: rgba(235, 245, 230, 0.4); background: rgba(255, 255, 255, 0.06); }

.btn-sm { padding: 10px 18px; font-size: 11px; }
.btn-lg { padding: 18px 32px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--lime-line);
  padding-bottom: 5px;
}
.text-link .ic { width: 15px; height: 15px; transition: transform 0.2s ease; }
.text-link:hover .ic { transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 10, 8, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(235, 245, 230, 0.07);
}

.nav-inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 37px; height: 37px;
  border-radius: 9px;
  background: var(--lime);
  color: #080b07;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 1px rgba(201, 255, 61, 0.35), 0 8px 22px rgba(201, 255, 61, 0.14);
}

.brand-type {
  font-family: var(--display);
  font-size: 23px;
  line-height: 0.9;
  letter-spacing: 0.055em;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 8px;
}
.brand-type small {
  position: absolute;
  bottom: 0; left: 1px;
  font-family: var(--body);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.16s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-season {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lime);
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 50px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-pitch {
  position: absolute;
  left: -10%; right: -10%; bottom: -12%;
  height: 62%;
  background:
    repeating-linear-gradient(90deg, transparent 0 110px, rgba(255, 255, 255, 0.017) 110px 220px),
    linear-gradient(180deg, transparent, rgba(201, 255, 61, 0.025));
  transform: perspective(700px) rotateX(58deg);
  transform-origin: bottom;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-a { width: 520px; height: 520px; right: 2%; top: 12%; background: rgba(201, 255, 61, 0.09); }
.hero-glow-b { width: 420px; height: 420px; left: -8%; bottom: 4%; background: rgba(65, 130, 90, 0.14); }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 9px;
  border: 1px solid rgba(235, 245, 230, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #c4cec4;
  margin-bottom: 28px;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 255, 61, 0.12);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 255, 61, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(201, 255, 61, 0.03); }
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(78px, 9.6vw, 152px);
  line-height: 0.82;
  letter-spacing: 0.005em;
  font-weight: 400;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(242, 245, 236, 0.6);
}

.hero-sub {
  max-width: 500px;
  color: #a6b2a7;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 28px 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { width: 13px; height: 13px; color: var(--lime); stroke-width: 2.4; }

/* --- carte joueur hero --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.player-card {
  position: relative;
  width: 322px;
  height: 462px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(235, 245, 230, 0.14);
  background:
    radial-gradient(120% 60% at 88% 0%, rgba(201, 255, 61, 0.16), transparent 58%),
    linear-gradient(158deg, #1a251c 0%, #0b100c 52%, #121a13 100%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: rotate(-5deg);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.055) 46%, transparent 58%);
  pointer-events: none;
}
.hero-visual:hover .player-card { transform: rotate(-2.5deg) translateY(-6px); }

.pc-top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 2; }
.pc-club { display: flex; align-items: center; gap: 9px; }
.pc-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--lime);
}
.pc-club small { display: block; font-size: 7.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.pc-club b { display: block; font-size: 12px; letter-spacing: 0.02em; font-weight: 600; }
.pc-season { font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.42); }

.pc-ovr {
  position: absolute;
  top: 72px; left: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  line-height: 0.85;
}
.pc-rating { font-family: var(--display); font-size: 68px; color: var(--lime); letter-spacing: -0.01em; }
.pc-pos { font-family: var(--display); font-size: 17px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }

.pc-silhouette {
  position: absolute;
  inset: 46px -4px 0;
  z-index: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.pc-number {
  position: absolute;
  top: 12px; right: -8px;
  font-family: var(--display);
  font-size: 300px;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.028);
  letter-spacing: -0.04em;
}
.pc-figure { height: 100%; opacity: 0.9; }

.pc-bottom {
  position: absolute;
  left: 22px; right: 22px; bottom: 78px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 13px;
}
.pc-label { display: block; font-size: 7px; letter-spacing: 0.22em; color: var(--muted); font-weight: 700; }
.pc-bottom strong { font-family: var(--display); font-size: 27px; letter-spacing: 0.03em; font-weight: 400; line-height: 1.05; }
.pc-nationality { font-size: 20px; line-height: 1; }

.pc-stats {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 2;
}
.pc-stats div { display: flex; align-items: baseline; gap: 5px; }
.pc-stats b { font-family: var(--display); font-size: 20px; color: var(--white); font-weight: 400; }
.pc-stats small { font-size: 6.5px; letter-spacing: 0.15em; color: var(--muted); font-weight: 700; }

.orbit-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(235, 245, 230, 0.14);
  background: rgba(12, 17, 13, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  animation: float 5s ease-in-out infinite;
}
.orbit-chip small { display: block; font-size: 7.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.orbit-chip span:last-child { font-size: 12px; font-weight: 700; }
.orbit-chip .ic { width: 17px; height: 17px; color: var(--lime); }
.chip-forme { top: 12%; left: 2%; }
.chip-trophy { bottom: 12%; right: -1%; animation-delay: -2.4s; }
.chip-forme .chip-ic {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  color: var(--lime);
  font-weight: 800;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-caption {
  position: absolute;
  bottom: 6%;
  right: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  transform: rotate(-5deg);
}
.caption-line { width: 40px; height: 1px; background: rgba(235, 245, 230, 0.2); }

.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 7.5px;
  letter-spacing: 0.32em;
  color: var(--muted-2);
  font-weight: 700;
}
.scroll-line { width: 1px; height: 34px; background: linear-gradient(to bottom, rgba(235, 245, 230, 0.25), transparent); }

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  position: relative;
  z-index: 3;
  background: var(--lime);
  color: #080b07;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 10px 0 30px;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 13px 0;
  animation: marquee 38s linear infinite;
}
.ticker-track span {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.ticker-track i { font-style: normal; font-size: 14px; opacity: 0.65; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 108px 32px;
}

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head p { color: var(--muted); max-width: 580px; font-size: 15.5px; margin: 18px 0 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.eyebrow > span { width: 26px; height: 1px; background: var(--lime); display: block; }
.eyebrow.centered { justify-content: center; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
}

.stats-strip {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-block {
  padding: 34px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-block:last-child { border-right: 0; }
.stat-num {
  font-family: var(--display);
  font-size: 54px;
  line-height: 1;
  color: var(--lime);
  letter-spacing: 0.02em;
}
.stat-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* =========================================================
   FEATURES
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
  min-height: 290px;
  display: flex;
  flex-direction: column;
}
.feature:hover {
  border-color: rgba(201, 255, 61, 0.3);
  transform: translateY(-5px);
  background: linear-gradient(175deg, rgba(201, 255, 61, 0.055), rgba(255, 255, 255, 0.01));
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  color: var(--lime);
}
.feature-top .ic { width: 23px; height: 23px; opacity: 0.9; }
.feature-num {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}
.feature h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.feature p { color: var(--muted); font-size: 12.5px; line-height: 1.65; margin: 0 0 20px; }
.feature-tag {
  margin-top: auto;
  align-self: flex-start;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(201, 255, 61, 0.18);
  background: rgba(201, 255, 61, 0.05);
  padding: 5px 8px;
  border-radius: 5px;
}

/* =========================================================
   DEMO
   ========================================================= */
.demo-section { padding-top: 80px; }

.demo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.demo-copy h2 { margin-bottom: 26px; }
.demo-copy p { color: var(--muted); font-size: 15px; max-width: 430px; }
.demo-note { color: var(--muted-2) !important; font-size: 12px !important; margin: 14px 0 26px; }

.demo-card {
  position: relative;
  border: 1px solid rgba(201, 255, 61, 0.18);
  border-radius: 24px;
  padding: 30px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 255, 61, 0.09), transparent 55%),
    linear-gradient(165deg, #121a14, #090d0a);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.demo-card::before {
  content: "94’";
  position: absolute;
  right: 16px; bottom: -32px;
  font-family: var(--display);
  font-size: 180px;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
}
.demo-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; position: relative; z-index: 1; }
.demo-tag { font-size: 8px; font-weight: 800; letter-spacing: 0.2em; color: var(--lime); }
.demo-min { font-size: 8px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted-2); }
.demo-card h3 {
  position: relative; z-index: 1;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.demo-card > p { position: relative; z-index: 1; color: var(--muted); font-size: 13px; margin: 0 0 22px; }

.demo-options { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.demo-options button {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  border-radius: 11px;
  padding: 12px 15px;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.demo-options button:hover { border-color: rgba(201, 255, 61, 0.4); background: rgba(201, 255, 61, 0.05); transform: translateX(3px); }
.demo-options button.is-picked { border-color: var(--lime); background: rgba(201, 255, 61, 0.08); }
.demo-choice { font-size: 12.5px; font-weight: 600; }
.demo-effect { font-size: 8.5px; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }

.demo-result {
  position: relative; z-index: 1;
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 2px solid var(--lime);
  background: rgba(201, 255, 61, 0.04);
  border-radius: 0 8px 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.demo-result-label { font-size: 11.5px; color: #b8c4b9; }
.demo-result strong { color: var(--lime); }

.demo-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; margin-top: 6px; }
.mini-gauge > span { font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.mini-gauge > div { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); margin-top: 6px; overflow: hidden; }
.mini-gauge i { display: block; height: 100%; background: var(--lime); border-radius: 99px; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s; }

/* =========================================================
   APERÇU
   ========================================================= */
.preview-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }

.preview-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  padding: 24px;
  overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-title { font-family: var(--display); font-size: 21px; letter-spacing: 0.04em; }
.panel-badge { font-size: 7px; font-weight: 800; letter-spacing: 0.18em; color: var(--muted-2); border: 1px solid var(--line); padding: 4px 7px; border-radius: 4px; }

.table-wrap { overflow-x: auto; }
.history-preview { width: 100%; border-collapse: collapse; min-width: 420px; }
.history-preview th {
  text-align: left;
  font-size: 7.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  padding: 0 8px 9px;
  border-bottom: 1px solid var(--line);
}
.history-preview td { font-size: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); color: #c9d2c9; }
.history-preview td:first-child { color: var(--white); font-family: var(--display); font-size: 14px; letter-spacing: 0.05em; }
.history-preview tr:last-child td { border-bottom: 0; }
.history-preview td.lime { color: var(--lime); font-weight: 700; }

.preview-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 10px; color: var(--muted-2); letter-spacing: 0.04em; }
.preview-foot b { color: var(--lime); }

.trophy-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  position: relative;
}
.tp-ic {
  width: 31px; height: 31px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c, #c9ff3d) 12%, transparent);
  color: var(--c, var(--lime));
  flex: 0 0 auto;
}
.tp-ic .ic { width: 16px; height: 16px; }
.tp-item b { font-size: 10.5px; font-weight: 600; line-height: 1.15; }
.tp-item small { margin-left: auto; font-size: 9px; color: var(--lime); font-weight: 700; }
.tp-item.locked { opacity: 0.35; }
.tp-item.locked .tp-ic { background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.tp-item.locked small { color: var(--muted-2); }

/* =========================================================
   STEPS
   ========================================================= */
.steps-section { padding-top: 80px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step-num { font-family: var(--display); font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201, 255, 61, 0.55); }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 0.02em; margin: 18px 0 10px; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; max-width: 300px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-section { padding-top: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.03em;
  transition: color 0.16s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--lime); }
.faq-item summary .ic { width: 17px; height: 17px; color: var(--muted); transition: transform 0.2s ease; }
.faq-item[open] summary .ic { transform: rotate(180deg); color: var(--lime); }
.faq-item p { color: var(--muted); font-size: 13.5px; line-height: 1.75; max-width: 720px; margin: 0 0 24px; padding-right: 40px; }

/* =========================================================
   CTA FINAL
   ========================================================= */
.final-cta { max-width: 1240px; margin: 30px auto 90px; padding: 0 32px; }
.final-inner {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 80px 40px;
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(160deg, #d9ff70, #b6f02b 55%, #a4de1c);
  color: #080b07;
}
.final-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 90px, rgba(0, 0, 0, 0.028) 90px 180px);
  pointer-events: none;
}
.final-number {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  font-family: var(--display);
  font-size: 480px;
  line-height: 0.7;
  color: rgba(0, 0, 0, 0.045);
  pointer-events: none;
}
.final-inner .eyebrow { color: #1e3308; }
.final-inner .eyebrow > span { background: #1e3308; }
.final-inner h2 { position: relative; font-size: clamp(56px, 8vw, 104px); line-height: 0.86; margin-bottom: 20px; }
.final-inner p { position: relative; color: rgba(8, 11, 7, 0.66); font-size: 14px; max-width: 460px; margin: 0 auto 30px; font-weight: 500; }
.final-inner .btn { position: relative; }
.final-cta .btn-primary { background: #080b07; color: var(--lime); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2); }
.final-cta .btn-primary:hover { background: #121811; }
.final-note { position: relative; display: block; margin-top: 18px; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(8, 11, 7, 0.45); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 30px;
}
.footer-brand p { color: var(--muted-2); font-size: 11px; max-width: 300px; margin: 14px 0 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 10px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.footer-links a:hover { color: var(--lime); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; font-size: 9px; letter-spacing: 0.08em; color: var(--muted-2); text-align: right; }

/* =========================================================
   SETUP
   ========================================================= */
#setup { padding-top: calc(var(--nav-h) + 46px); min-height: 100vh; }
.setup-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 32px 80px; }
.setup-head { margin-bottom: 40px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  margin-bottom: 26px;
}
.back-link .ic { width: 15px; height: 15px; transform: rotate(180deg); }
.back-link:hover { color: var(--white); }
.setup-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 6.6vw, 88px);
  line-height: 0.88;
  margin: 0 0 16px;
}
.setup-head p { color: var(--muted); margin: 0; max-width: 480px; font-size: 14px; }

.setup-grid { display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }
.setup-form { display: flex; flex-direction: column; gap: 30px; }
.setup-block { display: flex; flex-direction: column; }
.setup-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 11px;
}
.text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
  color: var(--white);
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.text-input:focus { border-color: var(--lime); background: rgba(201, 255, 61, 0.03); }
.input-hint { font-size: 9.5px; color: var(--muted-2); margin-top: 7px; letter-spacing: 0.03em; }

.setup-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.setup-reroll {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 11px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.setup-reroll:hover { color: var(--lime); }

.choice-grid { display: grid; gap: 9px; }
.positions-grid { grid-template-columns: repeat(3, 1fr); }
.clubs-grid { grid-template-columns: repeat(2, 1fr); }

.choice {
  position: relative;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--white);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  overflow: hidden;
}
.choice:hover { border-color: rgba(201, 255, 61, 0.3); background: rgba(201, 255, 61, 0.035); }
.choice.is-selected { border-color: var(--lime); background: rgba(201, 255, 61, 0.07); }
.choice.is-selected::after {
  content: "";
  position: absolute;
  top: 11px; right: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 255, 61, 0.12);
}
.choice-code { font-family: var(--display); font-size: 25px; color: var(--lime); line-height: 1; letter-spacing: 0.05em; }
.choice-name { display: block; font-size: 11.5px; font-weight: 600; margin-top: 3px; }
.choice-desc { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.4; }
.choice-club-top { display: flex; align-items: center; gap: 8px; }
.choice-badge {
  width: 27px; height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 12px;
  color: var(--lime);
  flex: 0 0 auto;
}
.choice-club-top b { font-size: 12px; font-weight: 600; line-height: 1.1; }
.choice-club-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.choice-diff { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.diff-dots { display: flex; gap: 3px; }
.diff-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.diff-dots i.on { background: var(--lime); }

.setup-preview {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(201, 255, 61, 0.08), transparent 55%),
    linear-gradient(165deg, #111a13, #0a0f0b);
}
.sp-top { display: flex; align-items: flex-start; justify-content: space-between; }
.sp-club { display: flex; align-items: center; gap: 9px; }
.sp-club .choice-badge { width: 33px; height: 33px; }
.sp-club small { display: block; font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sp-club b { display: block; font-size: 12px; }
.sp-ovr { font-family: var(--display); font-size: 54px; line-height: 0.85; color: var(--lime); }
.sp-ovr small { display: block; font-family: var(--body); font-size: 7px; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; text-align: right; }
.sp-name { font-family: var(--display); font-size: 32px; letter-spacing: 0.03em; margin: 14px 0 2px; line-height: 1; text-transform: uppercase; }
.sp-meta { font-size: 10.5px; color: var(--muted); }
.sp-rule { height: 1px; background: var(--line); margin: 18px 0; }
.sp-attrs { display: flex; flex-direction: column; gap: 9px; }
.sp-attr { display: grid; grid-template-columns: 62px 1fr 24px; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.sp-attr div { height: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; }
.sp-attr i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.sp-attr b { font-size: 10px; color: var(--white); text-align: right; font-weight: 700; }
.sp-objective { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.sp-objective span { font-size: 7.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); font-weight: 800; }
.sp-objective p { margin: 5px 0 0; font-size: 10.5px; color: #b9c4ba; line-height: 1.5; }

.setup-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.setup-warning { font-size: 10px; color: var(--red); font-weight: 600; }

/* =========================================================
   GAME SHELL
   ========================================================= */
#game { padding-top: calc(var(--nav-h) + 26px); min-height: 100vh; }
.game-shell {
  max-width: 1340px;
  margin: 0 auto;
  padding: 16px 28px 70px;
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 12px; }
.game-main { min-width: 0; }

.game-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-bottom: 0;
}
.game-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
  margin-bottom: -1px;
}
.game-tab:hover { color: var(--white); }
.game-tab.is-active { color: var(--lime); border-color: var(--lime); }
.tab-save {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-save::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); opacity: 0.7; }

/* --- onglet "Ma carte" + panneau --- */
.tab-card {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 255, 61, 0.08);
  border: 1px solid rgba(212, 255, 61, 0.28);
  border-radius: 999px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.tab-card:hover { background: rgba(212, 255, 61, 0.16); border-color: rgba(212, 255, 61, 0.5); }
.tab-card .ic { width: 12px; height: 12px; }
.game-tabs .tab-save { margin-left: 10px; }

.card-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.card-sheet.is-open { opacity: 1; pointer-events: auto; }
.card-sheet-box {
  position: relative;
  width: min(360px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #141026, #07040d);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}
.card-sheet.is-open .card-sheet-box { transform: none; }
.card-sheet-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(9, 6, 18, 0.82);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.card-sheet-close:hover { color: var(--white); }
.card-sheet-close .ic { width: 14px; height: 14px; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   TIRS AU BUT — scène 3D
   ========================================================= */
.penalty-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(120% 85% at 50% -10%, rgba(26, 52, 96, 0.92), transparent 62%),
    rgba(3, 2, 8, 0.95);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow: auto;
}
.penalty-overlay.is-open { opacity: 1; pointer-events: auto; }
.pk-wrap { width: min(760px, 100%); display: flex; flex-direction: column; gap: 10px; }
.pk-head { text-align: center; }
.pk-eyebrow { font-size: 8px; letter-spacing: 0.32em; color: var(--lime); font-weight: 800; }
.pk-title { font-family: var(--display); font-size: clamp(30px, 5.5vw, 44px); margin: 2px 0 0; line-height: 0.94; letter-spacing: 0.02em; }
.pk-sub { color: var(--muted); font-size: 10.5px; margin: 4px 0 0; }

/* --- tableau de score --- */
.pk-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(20, 16, 38, 0.9), rgba(8, 5, 15, 0.9));
}
.pk-team { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pk-team.right { align-items: flex-end; text-align: right; }
.pk-team b { font-size: 10.5px; font-weight: 700; color: #dcd6ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.pk-dots { display: flex; gap: 4px; }
.pk-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pk-dots i.on { background: linear-gradient(135deg, #d4ff3d, #22d3ee); border-color: transparent; box-shadow: 0 0 9px rgba(34, 211, 238, 0.6); }
.pk-dots i.miss { background: rgba(251, 113, 133, 0.55); border-color: rgba(251, 113, 133, 0.8); }
.pk-score { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); }
.pk-score b { font-size: 32px; font-weight: 400; color: var(--white); line-height: 1; }
.pk-score span { color: var(--muted-2); font-size: 18px; }

/* --- scène --- */
.pk-scene {
  position: relative;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(#050a18 0%, #0a1730 40%, #071019 100%);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.75), 0 22px 60px rgba(0, 0, 0, 0.55);
  perspective: 1000px;
  isolation: isolate;
}
.pk-stadium {
  position: absolute;
  inset: 0 0 34% 0;
  background:
    radial-gradient(42% 62% at 12% 6%, rgba(212, 255, 61, 0.18), transparent 70%),
    radial-gradient(42% 62% at 88% 6%, rgba(34, 211, 238, 0.2), transparent 70%),
    linear-gradient(#0d1a35, #070d1c);
  overflow: hidden;
}
.pk-crowd {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(212, 255, 61, 0.12) 0 1px, transparent 1.4px);
  background-size: 9px 9px, 13px 13px;
  background-position: 0 0, 4px 5px;
  opacity: 0.55;
  mask-image: linear-gradient(#000 20%, transparent 92%);
}
.pk-flood {
  position: absolute;
  top: -18%;
  width: 34%; height: 60%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(190, 225, 255, 0.32), transparent 72%);
  filter: blur(2px);
}
.pk-flood.l { left: 4%; }
.pk-flood.r { right: 4%; }

.pk-pitch {
  position: absolute;
  left: -30%; right: -30%; bottom: -12%;
  height: 74%;
  transform: rotateX(66deg) scale(1.2);
  transform-origin: bottom center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 9%, transparent 9% 18%),
    linear-gradient(#16663f, #0d4426 55%, #061b0f);
  box-shadow: inset 0 40px 70px rgba(0, 0, 0, 0.5);
}
.pk-box {
  position: absolute;
  left: 50%; top: 6%;
  width: 62%; height: 46%;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top: 0;
}
.pk-spot {
  position: absolute;
  left: 50%; top: 62%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.pk-goal {
  position: absolute;
  left: 50%;
  top: 13%;
  transform: translateX(-50%);
  width: 62%;
  aspect-ratio: 3 / 1;
  background: rgba(6, 11, 20, 0.35);
  border: 5px solid #f2f8ff;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  box-shadow:
    0 0 40px rgba(150, 210, 255, 0.22),
    inset 0 0 60px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.pk-goal::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  bottom: -14px;
  height: 18px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
}
.pk-net {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 11px);
}
.pk-net.back { transform: scale(0.9); transform-origin: bottom center; opacity: 0.35; filter: blur(1px); }
.pk-net.front { opacity: 0.75; }
.pk-post {
  position: absolute;
  top: -6px;
  bottom: 0;
  width: 6px;
  background: linear-gradient(90deg, #ffffff, #cfe0f0);
  box-shadow: 0 0 20px rgba(190, 225, 255, 0.5);
  z-index: 3;
}
.pk-post.l { left: -6px; }
.pk-post.r { right: -6px; }
.pk-bar {
  position: absolute;
  left: -6px; right: -6px; top: -6px;
  height: 6px;
  background: linear-gradient(#ffffff, #cfe0f0);
  box-shadow: 0 0 20px rgba(190, 225, 255, 0.5);
  z-index: 3;
}

/* --- gardien --- */
.pk-keeper {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58px;
  height: 104px;
  transform: translateX(-50%);
  transform-origin: 50% 90%;
  transition: transform 0.4s cubic-bezier(0.2, 0.85, 0.3, 1);
  z-index: 4;
}
.pk-k-head {
  position: absolute;
  top: 0; left: 50%;
  width: 18px; height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe3c6, #c99466);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55);
}
.pk-k-torso {
  position: absolute;
  top: 16px; left: 50%;
  width: 32px; height: 40px;
  margin-left: -16px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(#3ee07a, #127a3d);
  box-shadow: inset 0 -8px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.pk-k-torso::after {
  content: "";
  position: absolute;
  left: 50%; top: 22px;
  width: 18px; height: 3px;
  margin-left: -9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
}
.pk-k-shorts {
  position: absolute;
  top: 54px; left: 50%;
  width: 30px; height: 16px;
  margin-left: -15px;
  border-radius: 3px;
  background: linear-gradient(#101a2b, #05070d);
  z-index: 2;
}
.pk-k-leg {
  position: absolute;
  top: 68px;
  width: 9px; height: 36px;
  border-radius: 5px;
  background: linear-gradient(#e8c9a8, #b98d63);
  z-index: 1;
}
.pk-k-leg.l { left: 50%; margin-left: -11px; transform: rotate(3deg); transform-origin: top center; }
.pk-k-leg.r { left: 50%; margin-left: 2px; transform: rotate(-3deg); transform-origin: top center; }
.pk-k-arm {
  position: absolute;
  top: 18px;
  width: 10px; height: 40px;
  border-radius: 6px;
  background: linear-gradient(#3ee07a, #127a3d);
  transform-origin: top center;
}
.pk-k-arm.l { left: -4px; transform: rotate(20deg); }
.pk-k-arm.r { right: -4px; transform: rotate(-20deg); }
.pk-k-arm::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50% 50% 45% 45%;
  background: #f4f8ff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Plongeons : gauche / centre / droite × haut / bas. */
.pk-keeper.dive-left-high  { transform: translateX(-215%) translateY(-26px) rotate(-48deg); }
.pk-keeper.dive-left-low   { transform: translateX(-200%) translateY(16px) rotate(-64deg); }
.pk-keeper.dive-right-high { transform: translateX(115%) translateY(-26px) rotate(48deg); }
.pk-keeper.dive-right-low  { transform: translateX(100%) translateY(16px) rotate(64deg); }
.pk-keeper.dive-center-high { transform: translateX(-50%) translateY(-24px) scaleY(1.12); }
.pk-keeper.dive-center-low  { transform: translateX(-50%) translateY(14px) scaleY(0.76); }

.pk-reticle {
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid #d4ff3d;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(212, 255, 61, 0.8), inset 0 0 12px rgba(212, 255, 61, 0.35);
  z-index: 5;
  pointer-events: none;
  will-change: left, top;
}
.pk-reticle::before, .pk-reticle::after {
  content: "";
  position: absolute;
  background: #d4ff3d;
  opacity: 0.9;
}
.pk-reticle::before { left: 50%; top: -7px; bottom: -7px; width: 1px; margin-left: -0.5px; }
.pk-reticle::after { top: 50%; left: -7px; right: -7px; height: 1px; margin-top: -0.5px; }
.pk-reticle.is-locked { border-color: #22d3ee; box-shadow: 0 0 18px rgba(34, 211, 238, 0.85); }
.pk-reticle.is-locked::before, .pk-reticle.is-locked::after { background: #22d3ee; }

.pk-ball {
  position: absolute;
  left: 50%;
  top: 90%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 27%, #ffffff, #e4edf8 52%, #a8b8cb 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.55);
  z-index: 6;
  transform: translate(0, 0);
}
.pk-ball i {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, #10161f 0 17%, transparent 18%),
    radial-gradient(circle at 72% 40%, #10161f 0 13%, transparent 14%),
    radial-gradient(circle at 46% 76%, #10161f 0 15%, transparent 16%);
  opacity: 0.8;
}
.pk-ball.is-flying { transition: transform 0.55s cubic-bezier(0.22, 0.62, 0.35, 1); }
.pk-ball.is-them { filter: hue-rotate(-12deg) saturate(1.05); }

.pk-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(34px, 8vw, 74px);
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}
.pk-message.is-goal { color: #d4ff3d; animation: pkPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
.pk-message.is-miss { color: #fb7185; animation: pkPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
@keyframes pkPop {
  from { transform: scale(0.62); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pk-controls { display: flex; flex-direction: column; gap: 8px; }
.pk-power-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}
.pk-power-head b { font-family: var(--display); font-size: 17px; color: var(--white); letter-spacing: 0.02em; }
.pk-power-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pk-power-bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #22d3ee, #d4ff3d 58%, #fb923c);
  box-shadow: 0 0 18px rgba(212, 255, 61, 0.5);
}
.pk-sweet {
  position: absolute;
  left: 55%; top: 0; bottom: 0;
  width: 33%;
  background: rgba(212, 255, 61, 0.14);
  border-left: 1px solid rgba(212, 255, 61, 0.5);
  border-right: 1px solid rgba(212, 255, 61, 0.5);
  pointer-events: none;
}
.pk-hint { font-size: 8.5px; color: var(--muted-2); text-align: center; line-height: 1.5; }
.pk-controls .btn { width: 100%; }

@media (max-width: 720px) {
  .pk-scene { height: 270px; }
  .pk-goal { width: 76%; }
  .pk-keeper { width: 48px; height: 88px; }
  .pk-k-torso { width: 27px; height: 34px; margin-left: -13.5px; }
  .pk-k-shorts { top: 47px; width: 26px; height: 13px; margin-left: -13px; }
  .pk-k-leg { top: 59px; height: 30px; }
  .pk-k-arm { height: 34px; }
  .pk-ball { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .pk-score b { font-size: 26px; }
  .pk-team b { font-size: 9.5px; max-width: 120px; }
}

/* --- pourcentages de performance --- */
.sc-pcts { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 13px; }
.sc-pcts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 7px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.sc-pcts-head small { font-size: 6px; letter-spacing: 0.12em; color: var(--muted-2); }
.pct-list { display: flex; flex-direction: column; gap: 7px; }
.pct-row { display: grid; grid-template-columns: 62px 1fr 30px 34px; align-items: center; gap: 7px; font-size: 8.5px; }
.pct-label { color: #bdb5d3; }
.pct-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pct-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--lime)); box-shadow: 0 0 8px color-mix(in srgb, var(--c, var(--lime)) 60%, transparent); }
.pct-row b { font-family: var(--display); font-size: 12px; font-weight: 400; text-align: right; color: var(--white); }
.pct-row em { font-style: normal; font-size: 7.5px; text-align: right; font-weight: 700; }
.pct-row em.up { color: var(--lime); }
.pct-row em.down { color: #fb7185; }
.pct-row em.flat { color: var(--muted-2); }
.pct-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.pct-chips span { font-size: 7px; letter-spacing: 0.04em; color: #bdb5d3; border: 1px solid var(--line-soft); border-radius: 4px; padding: 2px 5px; }
.sc-pcts-note { display: block; margin-top: 8px; font-size: 7px; color: var(--muted-2); line-height: 1.5; }

/* --- carte joueur sidebar --- */
.side-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background:
    radial-gradient(120% 65% at 100% 0%, rgba(201, 255, 61, 0.09), transparent 55%),
    linear-gradient(165deg, #121b14, #0a0f0b);
  overflow: hidden;
  position: relative;
}
.side-card::after {
  content: "";
  position: absolute;
  right: -40px; top: 32px;
  width: 160px; height: 160px;
  border: 1px solid rgba(201, 255, 61, 0.07);
  border-radius: 50%;
  pointer-events: none;
}
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sc-club { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 13px;
  color: var(--lime);
  flex: 0 0 auto;
}
.sc-club small { display: block; font-size: 6.5px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.sc-club b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sc-age { font-family: var(--display); font-size: 15px; color: var(--muted); letter-spacing: 0.05em; }

.sc-main { display: flex; align-items: center; gap: 15px; margin-top: 18px; }
.ovr-ring {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--v) * 1%), rgba(255, 255, 255, 0.08) 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ovr-ring > div {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: #0b110c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.9;
}
.ovr-ring b { font-family: var(--display); font-size: 30px; font-weight: 400; color: var(--white); }
.ovr-ring small { font-size: 6.5px; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; }
.sc-name { font-family: var(--display); font-size: 26px; letter-spacing: 0.03em; line-height: 0.95; text-transform: uppercase; }
.sc-pos { font-size: 9px; letter-spacing: 0.12em; color: var(--lime); font-weight: 700; text-transform: uppercase; margin-top: 4px; }
.sc-rep { font-size: 9px; color: var(--muted); margin-top: 3px; }

.sc-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 58px 1fr 24px; align-items: center; gap: 7px; }
.bar-row span { font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bar-row div { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar-row i { display: block; height: 100%; border-radius: 99px; background: var(--lime); transition: width 0.4s ease; }
.bar-row b { font-size: 8.5px; color: #b9c4ba; text-align: right; font-weight: 600; }
.bar-row.mid i { background: var(--amber); }
.bar-row.low i { background: var(--red); }

.sc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.sc-foot small { display: block; font-size: 6.5px; letter-spacing: 0.14em; color: var(--muted-2); text-transform: uppercase; font-weight: 700; }
.sc-foot b { font-size: 11px; font-weight: 600; }
.sc-foot .right { text-align: right; }

.side-mini {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.side-mini span { font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.side-mini b { display: block; font-size: 11px; margin-top: 2px; color: var(--white); font-weight: 600; }
.side-mini .ic { width: 16px; height: 16px; color: var(--lime); }

/* =========================================================
   SAISON — DÉCISIONS
   ========================================================= */
.season-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.season-head h2 { font-size: 40px; line-height: 0.95; }
.season-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.season-head .eyebrow { margin-bottom: 9px; }
.decision-count {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 3px;
}
.decision-count b { color: var(--lime); font-weight: 400; }

.progress { height: 3px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; margin-bottom: 24px; }
.progress i { display: block; height: 100%; background: var(--lime); border-radius: 99px; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 12px rgba(201, 255, 61, 0.4); }

.event-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  background:
    radial-gradient(110% 65% at 100% 0%, rgba(201, 255, 61, 0.055), transparent 55%),
    linear-gradient(168deg, #111a13, #0a0f0b);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
}
.event-card::before {
  content: "";
  position: absolute;
  top: 0; left: 30px; right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 255, 61, 0.45), transparent);
}
.event-tag {
  display: inline-flex;
  align-items: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(201, 255, 61, 0.2);
  background: rgba(201, 255, 61, 0.05);
  padding: 5px 9px;
  border-radius: 5px;
  margin-bottom: 16px;
}
.event-card h3 { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 0.98; letter-spacing: 0.02em; margin: 0 0 12px; }
.event-context { color: #a3afa4; font-size: 13.5px; line-height: 1.72; margin: 0 0 24px; max-width: 720px; }

.options { display: flex; flex-direction: column; gap: 9px; }
.option-btn {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  border-radius: 13px;
  padding: 15px 17px;
  cursor: pointer;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  position: relative;
}
.option-btn::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(201, 255, 61, 0.6);
  position: absolute;
  left: -2px; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.option-btn:hover { border-color: rgba(201, 255, 61, 0.42); background: rgba(201, 255, 61, 0.045); transform: translateX(4px); }
.option-btn:hover::before { opacity: 1; }
.option-main { min-width: 0; }
.option-label { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.option-hint { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.option-risk {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 198, 92, 0.22);
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 5px; grid-column: 1 / -1; margin-top: 7px; }
.chip {
  font-size: 8px;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(201, 255, 61, 0.07);
  color: #cfe89c;
  border: 1px solid rgba(201, 255, 61, 0.12);
}
.chip.neg { background: rgba(255, 107, 74, 0.07); color: #ffa994; border-color: rgba(255, 107, 74, 0.14); }

/* outcome */
.outcome-card {
  border: 1px solid rgba(201, 255, 61, 0.3);
  border-radius: 22px;
  padding: 28px;
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(201, 255, 61, 0.08), transparent 60%),
    linear-gradient(168deg, #121c14, #0a100b);
  animation: fadeUp 0.35s ease both;
}
.outcome-card.is-risk { border-color: rgba(255, 107, 74, 0.35); background: radial-gradient(100% 80% at 0% 0%, rgba(255, 107, 74, 0.07), transparent 60%), linear-gradient(168deg, #1a1210, #0d0b0a); }
.outcome-top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.outcome-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime);
  color: #0a0d08;
  flex: 0 0 auto;
}
.outcome-icon .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.outcome-card.is-risk .outcome-icon { background: var(--red); }
.outcome-kicker { font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); font-weight: 800; }
.outcome-card.is-risk .outcome-kicker { color: var(--red); }
.outcome-card h3 { font-family: var(--display); font-weight: 400; font-size: 33px; line-height: 1; margin: 0 0 10px; }
.outcome-text { color: #b3bfb4; font-size: 13.5px; line-height: 1.7; margin: 0 0 14px; }
.outcome-risk-note { font-size: 11px; color: #ffa994; border-left: 2px solid var(--red); padding-left: 10px; margin: 0 0 14px; }
.outcome-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.outcome-actions .hint { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* ready */
.ready-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(201, 255, 61, 0.08), transparent 60%),
    linear-gradient(168deg, #111a13, #0a0f0b);
  text-align: center;
  animation: fadeUp 0.4s ease both;
}
.ready-ball { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--lime); }
.ready-ball .ic { width: 54px; height: 54px; stroke-width: 1.2; }
.ready-card h3 { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1; margin: 0 0 10px; }
.ready-card > p { color: var(--muted); font-size: 13px; max-width: 480px; margin: 0 auto 24px; }
.ready-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 26px; }
.ready-recap span {
  font-size: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 99px;
  padding: 6px 10px;
  color: #b9c4ba;
}
.ready-recap span b { color: var(--lime); font-weight: 600; }

/* =========================================================
   SIMULATION
   ========================================================= */
.sim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 7, 5, 0.93);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fadeIn 0.3s ease both;
}
.sim-inner { text-align: center; max-width: 520px; width: 100%; }
.sim-pitch {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(201, 255, 61, 0.22);
  border-radius: 14px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(201, 255, 61, 0.035) 40px 80px),
    radial-gradient(80% 90% at 50% 50%, rgba(201, 255, 61, 0.07), transparent 70%),
    #0a130c;
}
.sim-pitch::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sim-pitch::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 90px; height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.sim-ball {
  position: absolute;
  left: 12%;
  top: 50%;
  width: 13px; height: 13px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(201, 255, 61, 0.6);
  animation: ballRun 2.3s cubic-bezier(0.4, 0, 0.3, 1) forwards;
}
@keyframes ballRun {
  0% { left: 12%; top: 50%; transform: scale(1); }
  35% { left: 36%; top: 31%; }
  65% { left: 62%; top: 62%; }
  100% { left: 88%; top: 44%; transform: scale(0.6); }
}
.sim-title { font-family: var(--display); font-size: 40px; letter-spacing: 0.03em; line-height: 1; margin: 0 0 8px; }
.sim-sub { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.sim-dots { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.sim-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: blink 1s infinite; }
.sim-dots i:nth-child(2) { animation-delay: 0.18s; }
.sim-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* =========================================================
   RÉSULTATS
   ========================================================= */
.result-hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 30px;
  background:
    radial-gradient(110% 90% at 90% 0%, rgba(201, 255, 61, 0.13), transparent 55%),
    linear-gradient(155deg, #162119, #0a0f0b 65%);
  overflow: hidden;
  margin-bottom: 14px;
  animation: fadeUp 0.4s ease both;
}
.result-hero::after {
  content: attr(data-year);
  position: absolute;
  right: 10px; bottom: -18px;
  font-family: var(--display);
  font-size: 130px;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.rh-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.rh-kicker { font-size: 8px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime); }
.rh-club { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.result-hero h2 { font-family: var(--display); font-weight: 400; font-size: 50px; line-height: 0.92; margin: 0 0 18px; }
.rh-tagline { color: #b6c1b7; font-size: 13px; max-width: 640px; margin: 0; position: relative; z-index: 1; }
.rh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.rh-stat { border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; background: rgba(255, 255, 255, 0.025); }
.rh-stat span { display: block; font-size: 7.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rh-stat b { display: block; font-family: var(--display); font-size: 31px; font-weight: 400; line-height: 1.1; }
.rh-stat b small { font-family: var(--body); font-size: 9px; color: var(--muted); margin-left: 3px; }
.rh-stat.good b { color: var(--lime); }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  animation: fadeUp 0.45s ease both;
}
.result-card h4 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 20px; font-weight: 400; letter-spacing: 0.05em; margin: 0 0 16px; color: var(--white); }
.result-card h4 .ic { width: 16px; height: 16px; color: var(--lime); }
.rc-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
.rc-line:last-child { border-bottom: 0; padding-bottom: 0; }
.rc-line span { color: var(--muted); }
.rc-line b { font-weight: 600; color: #d5ded5; text-align: right; }
.rc-line b.lime { color: var(--lime); }
.rc-line b.red { color: var(--red); }

.league-mini { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.league-mini th { text-align: left; font-size: 7px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); padding-bottom: 7px; font-weight: 700; }
.league-mini td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); color: #b9c4ba; white-space: nowrap; }
.league-mini tr:last-child td { border-bottom: 0; }
.league-mini tr.is-us td { color: var(--lime); font-weight: 600; }
.league-mini td:last-child { text-align: right; }
.league-mini td:first-child { width: 24px; color: var(--muted-2); }

.awards-list { display: flex; flex-direction: column; gap: 8px; }
.award-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(201, 255, 61, 0.03); }
.award-row.locked { opacity: 0.4; }
.award-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(201, 255, 61, 0.08); color: var(--lime); flex: 0 0 auto; }
.award-ic .ic { width: 14px; height: 14px; }
.award-row span { font-size: 10.5px; font-weight: 600; }
.award-row small { margin-left: auto; font-size: 8px; color: var(--muted); letter-spacing: 0.04em; }

.delta-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.delta { font-size: 9px; border: 1px solid var(--line); border-radius: 5px; padding: 4px 7px; color: #b9c4ba; background: rgba(255, 255, 255, 0.02); }
.delta.up { color: var(--lime); border-color: rgba(201, 255, 61, 0.18); background: rgba(201, 255, 61, 0.04); }
.delta.down { color: #ffa994; border-color: rgba(255, 107, 74, 0.18); background: rgba(255, 107, 74, 0.04); }

.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.result-actions .hint { color: var(--muted-2); font-size: 9.5px; letter-spacing: 0.04em; }

/* =========================================================
   MERCATO
   ========================================================= */
.market-head { margin-bottom: 22px; }
.market-head h2 { font-size: 42px; margin-bottom: 8px; }
.market-head p { color: var(--muted); font-size: 13px; max-width: 600px; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.empty-market {
  margin: 16px 0 0;
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  border-left: 2px solid rgba(201, 255, 61, 0.3);
  padding-left: 10px;
}
.offer-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 255, 61, 0.07), transparent 55%),
    linear-gradient(165deg, #111a13, #0a0f0b);
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.4s ease both;
}
.offer-top { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.offer-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--lime);
  flex: 0 0 auto;
}
.offer-club small { display: block; font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.offer-club b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: 0.03em; line-height: 1.05; }
.offer-project { font-size: 11px; color: var(--muted); line-height: 1.55; margin: 0 0 16px; min-height: 34px; }
.offer-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.offer-meta div { border: 1px solid var(--line-soft); border-radius: 8px; padding: 7px 9px; background: rgba(255, 255, 255, 0.018); }
.offer-meta span { display: block; font-size: 6.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.offer-meta b { font-size: 11px; font-weight: 600; }
.offer-card .btn { margin-top: auto; }
.offer-card.retire-card { background: linear-gradient(165deg, #1a1512, #0d0a09); }
.offer-card.retire-card .offer-badge { color: var(--amber); }
.offer-card.stay-card { border-color: rgba(201, 255, 61, 0.2); }

/* =========================================================
   HISTORIQUE
   ========================================================= */
.history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.history-head h2 { font-size: 40px; }
.history-head p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }

.totals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 20px; }
.total-box { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: rgba(255, 255, 255, 0.022); }
.total-box span { display: block; font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.total-box b { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.1; }
.total-box b small { font-family: var(--body); font-size: 8px; color: var(--muted); }
.total-box.lime b { color: var(--lime); }

.career-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 11px 14px;
  margin: -6px 0 20px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.career-extra b { color: var(--white); font-weight: 600; }

.history-table { width: 100%; border-collapse: collapse; }
.history-table th { text-align: left; font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.history-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: #c3cdc3; white-space: nowrap; }
.history-table td:first-child { font-family: var(--display); font-size: 14px; letter-spacing: 0.04em; color: var(--white); }
.history-table td.club-cell { color: #d5ded5; font-weight: 500; }
.history-table td.lime { color: var(--lime); font-weight: 700; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table th:last-child, .history-table td:last-child { text-align: right; }
.history-table .tr-trophies { font-size: 10px; color: var(--amber); letter-spacing: 1px; }
.history-table .ovr-up { color: #9fda7a; font-size: 9px; }

.history-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.history-subhead {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-subhead::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hist-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}
.hist-card summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hist-card summary::-webkit-details-marker { display: none; }
.hist-card summary:hover { background: rgba(255, 255, 255, 0.02); }
.hist-year { font-family: var(--display); font-size: 20px; letter-spacing: 0.04em; color: var(--white); min-width: 62px; }
.hist-club { font-size: 11px; color: var(--muted); min-width: 110px; }
.hist-nums { display: flex; gap: 14px; margin-left: auto; font-size: 10px; color: var(--muted); }
.hist-nums b { color: var(--white); font-weight: 600; }
.hist-nums .lime { color: var(--lime); }
.hist-arrow { color: var(--muted-2); }
.hist-arrow .ic { width: 15px; height: 15px; transition: transform 0.2s ease; }
.hist-card[open] .hist-arrow .ic { transform: rotate(180deg); }
.hist-detail { padding: 0 18px 18px; border-top: 1px solid var(--line-soft); margin-top: 0; }
.hist-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 14px; }
.hist-detail h5 { font-size: 7.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin: 0 0 8px; font-weight: 800; }
.hist-detail ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hist-detail li { font-size: 10px; color: #aab6ab; display: flex; gap: 7px; }
.hist-detail li::before { content: "—"; color: var(--lime); opacity: 0.6; }
.club-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.club-chip { font-size: 8.5px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 9px; color: #b9c4ba; }
.club-chip b { color: var(--lime); }

.empty-state {
  border: 1px dashed rgba(235, 245, 230, 0.15);
  border-radius: 18px;
  padding: 54px 24px;
  text-align: center;
}
.empty-state .ic { width: 34px; height: 34px; color: var(--muted-2); margin: 0 auto 14px; }
.empty-state h3 { font-family: var(--display); font-size: 28px; font-weight: 400; margin: 0 0 6px; }
.empty-state p { color: var(--muted); font-size: 12px; margin: 0; }

/* =========================================================
   TROPHÉES
   ========================================================= */
.cabinet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.cabinet-head h2 { font-size: 40px; }
.cabinet-head p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.cabinet-count { font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; color: var(--muted); }
.cabinet-count b { color: var(--lime); font-weight: 400; font-size: 32px; }

.cabinet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.cab-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cab-item:not(.locked):hover { transform: translateY(-3px); border-color: rgba(201, 255, 61, 0.25); }
.cab-item::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--tcolor, var(--lime));
  opacity: 0.055;
  filter: blur(4px);
}
.cab-ic {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tcolor, var(--lime)) 12%, transparent);
  color: var(--tcolor, var(--lime));
  margin-bottom: 8px;
}
.cab-ic .ic { width: 19px; height: 19px; }
.cab-item b { font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: 0.03em; line-height: 1.05; }
.cab-item small { font-size: 8.5px; color: var(--muted); letter-spacing: 0.02em; }
.cab-years { margin-top: auto; font-size: 7.5px; letter-spacing: 0.04em; color: var(--tcolor, var(--lime)); opacity: 0.85; padding-top: 8px; }
.cab-count { position: absolute; top: 14px; right: 15px; font-family: var(--display); font-size: 17px; color: var(--tcolor, var(--lime)); }
.cab-item.locked { opacity: 0.4; filter: grayscale(0.7); }
.cab-item.locked .cab-ic { background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.cab-item.locked::after { display: none; }
.cab-locked-label { position: absolute; top: 14px; right: 15px; font-size: 8px; color: var(--muted-2); display: flex; align-items: center; gap: 4px; }
.cab-locked-label .ic { width: 11px; height: 11px; }

.cabinet-banner {
  margin-top: 16px;
  border: 1px solid rgba(201, 255, 61, 0.16);
  border-radius: 16px;
  padding: 20px 22px;
  background: linear-gradient(110deg, rgba(201, 255, 61, 0.06), rgba(255, 255, 255, 0.015));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cabinet-banner p { margin: 0; font-size: 11.5px; color: #b9c4ba; max-width: 480px; }
.cabinet-banner b { color: var(--lime); }

/* =========================================================
   RETRAITE
   ========================================================= */
#retired { padding-top: calc(var(--nav-h) + 40px); min-height: 100vh; }
.retired-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 32px 90px; }
.retired-hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 50px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(201, 255, 61, 0.1), transparent 60%),
    linear-gradient(165deg, #131d15, #080c09);
  text-align: center;
  overflow: hidden;
  margin-bottom: 18px;
}
.retired-hero::before {
  content: "9";
  position: absolute;
  top: -60px; right: 0;
  font-family: var(--display);
  font-size: 420px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
}
.retired-hero .eyebrow { justify-content: center; }
.retired-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 8vw, 100px); line-height: 0.86; margin: 0 0 10px; }
.retired-hero p { color: var(--muted); font-size: 14px; max-width: 540px; margin: 0 auto; }
.retired-name { font-family: var(--display); font-size: 26px; letter-spacing: 0.08em; color: var(--lime); margin-bottom: 10px; }
.retired-score { margin-top: 26px; display: inline-flex; flex-direction: column; align-items: center; border: 1px solid rgba(201, 255, 61, 0.22); border-radius: 14px; padding: 14px 30px; background: rgba(201, 255, 61, 0.04); }
.retired-score span { font-size: 7.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.retired-score b { font-family: var(--display); font-size: 44px; font-weight: 400; color: var(--lime); line-height: 1.1; }
.retired-rank { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); font-weight: 700; margin-top: 8px; }

.retired-totals { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 18px; }
.retired-totals .total-box b { font-size: 27px; }

.retired-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.retired-section { margin-top: 34px; }
.retired-section h3 { font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: 0.03em; margin: 0 0 14px; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 500;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #111a13;
  border: 1px solid rgba(201, 255, 61, 0.3);
  color: var(--white);
  font-size: 11px;
  padding: 11px 17px;
  border-radius: 99px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { min-height: 230px; }
  .demo-grid { gap: 40px; }
  .game-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .sc-club b { max-width: 125px; }
  .cabinet-grid { grid-template-columns: repeat(2, 1fr); }
  .retired-totals { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-bottom: 80px; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 60px); }
  .hero-visual { min-height: 480px; margin-top: 10px; }
  .hero-scroll { display: none; }
  .hero-caption { right: 12%; }
  .hero-copy { max-width: 660px; }
  .hero h1 { font-size: clamp(74px, 13vw, 120px); }
  .preview-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-copy p { max-width: 600px; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-preview { position: static; }
  .game-shell { grid-template-columns: 1fr; }
  .game-main { order: -1; margin-top: 4px; }
  .sidebar { order: 1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .side-card { grid-row: span 2; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: 0; }
  .stat-block:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-meta { text-align: left; flex-direction: row; gap: 12px; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 62px; }
  .nav-inner { padding: 0 18px; }
  .nav-right .btn-ghost { display: none; }
  .nav-season { display: none; }
  .hero-inner { padding: 0 20px 70px; }
  .hero h1 { font-size: clamp(62px, 17vw, 96px); }
  .hero-sub { font-size: 14px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 12px; }
  .hero-visual { min-height: 440px; }
  .orbit-chip { display: none; }
  .player-card { width: 290px; height: 414px; transform: rotate(-4deg); }
  .pc-rating { font-size: 58px; }
  .pc-number { font-size: 250px; }
  .pc-bottom strong { font-size: 23px; }
  .chip-forme { left: 0; top: 6%; }
  .chip-trophy { right: 0; bottom: 4%; }
  .hero-caption { display: none; }
  .ticker-track span { font-size: 21px; }

  .section { padding: 72px 20px; }
  .section-head { margin-bottom: 34px; }
  .news-section { padding-left: 20px; padding-right: 20px; }
  h2 { font-size: clamp(40px, 11vw, 58px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .stats-strip { padding: 0 20px; }
  .stat-block { padding: 24px 18px; }
  .stat-num { font-size: 42px; }
  .demo-card { padding: 22px; }
  .demo-card h3 { font-size: 26px; }
  .demo-effect { display: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .final-cta { padding: 0 20px; margin-bottom: 60px; }
  .final-inner { padding: 56px 22px; border-radius: 22px; }
  .final-inner h2 { font-size: clamp(48px, 13vw, 72px); }
  .footer-inner { padding: 35px 20px; }

  .setup-wrap { padding: 20px 20px 60px; }
  .positions-grid { grid-template-columns: repeat(2, 1fr); }
  .clubs-grid { grid-template-columns: 1fr; }
  .setup-actions { flex-direction: column; align-items: stretch; }
  .setup-warning { text-align: center; }

  .game-shell { padding: 10px 16px 50px; }
  .sidebar { grid-template-columns: 1fr; }
  .side-card { grid-row: auto; }
  .tab-save { display: none; }
  .season-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .season-head h2 { font-size: 32px; }
  .event-card { padding: 22px 18px; }
  .event-card h3 { font-size: 31px; }
  .option-btn { grid-template-columns: 1fr; }
  .option-risk { justify-self: start; }
  .outcome-card { padding: 22px 18px; }
  .result-hero { padding: 22px 18px; }
  .result-hero h2 { font-size: 40px; }
  .rh-stats { grid-template-columns: repeat(2, 1fr); }
  .rh-stat b { font-size: 27px; }
  .market-grid { grid-template-columns: 1fr; }
  .market-head h2 { font-size: 34px; }
  .totals-grid { grid-template-columns: repeat(2, 1fr); }
  .cabinet-grid { grid-template-columns: 1fr 1fr; }
  .cab-item { min-height: 130px; padding: 14px; }
  .history-table th:nth-child(5), .history-table td:nth-child(5) { display: none; }
  .history-table th:nth-child(4), .history-table td:nth-child(4) { display: none; }
  .retired-wrap { padding: 10px 20px 60px; }
  .retired-hero { padding: 34px 20px; }
  .retired-totals { grid-template-columns: repeat(2, 1fr); }
  .result-actions { flex-direction: column; align-items: stretch; }
  .result-actions .hint { text-align: center; }
  .hist-club { display: none; }
  .hist-nums { gap: 9px; }
  .hist-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   THEME VIBRANT + MATCH PAR MATCH
   ========================================================= */

:root {
  --bg: #08060f;
  --bg-2: #0d0a1b;
  --panel: #141026;
  --panel-2: #1a1433;
  --line: rgba(237, 232, 255, 0.1);
  --line-soft: rgba(237, 232, 255, 0.06);
  --white: #f7f3ff;
  --muted: #a29bbc;
  --muted-2: #746e93;
  --lime: #d4ff3d;
  --lime-soft: rgba(212, 255, 61, 0.13);
  --lime-line: rgba(212, 255, 61, 0.38);
  --violet: #a855f7;
  --violet-soft: rgba(168, 85, 247, 0.15);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --pink: #fb7185;
  --pink-soft: rgba(251, 113, 133, 0.12);
  --orange: #fb923c;
  --amber: #fbbf24;
  --red: #fb7185;
  --blue: #60a5fa;
}

body::before {
  background:
    radial-gradient(1200px 800px at 88% -12%, rgba(168, 85, 247, 0.3), transparent 62%),
    radial-gradient(900px 700px at -12% 18%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(800px 600px at 52% 108%, rgba(251, 113, 133, 0.12), transparent 62%),
    linear-gradient(180deg, #08060f 0%, #0c0919 45%, #08060f 100%);
}

.nav {
  background: rgba(9, 7, 20, 0.72);
  border-bottom-color: rgba(237, 232, 255, 0.09);
}

.brand-mark {
  background: linear-gradient(135deg, #d4ff3d 0%, #7dffb2 45%, #22d3ee 100%);
  box-shadow: 0 0 0 1px rgba(212, 255, 61, 0.45), 0 10px 28px rgba(34, 211, 238, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, #d4ff3d 0%, #9dff82 48%, #22d3ee 135%);
  box-shadow: 0 12px 38px rgba(34, 211, 238, 0.16);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e2ff78 0%, #afff9a 45%, #5ee7f5 130%);
  box-shadow: 0 16px 46px rgba(34, 211, 238, 0.26);
}

.hero-glow-a { background: rgba(168, 85, 247, 0.24); filter: blur(95px); }
.hero-glow-b { background: rgba(34, 211, 238, 0.18); filter: blur(90px); }

.hero h1 .lime {
  background: linear-gradient(100deg, #d4ff3d 0%, #7dffb2 55%, #22d3ee 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.player-card {
  background:
    radial-gradient(110% 65% at 88% 0%, rgba(168, 85, 247, 0.34), transparent 58%),
    radial-gradient(100% 70% at 0% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(158deg, #211a3b 0%, #0b0918 54%, #141129 100%);
  border-color: rgba(237, 232, 255, 0.18);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(168, 85, 247, 0.13);
}
.pc-rating {
  background: linear-gradient(135deg, #d4ff3d, #7dffb2 55%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pc-badge, .pc-club b, .pc-season { color: var(--white); }
.pc-badge, .sc-badge { color: var(--lime); }

.orbit-chip { border-color: rgba(237, 232, 255, 0.2); }
.chip-forme .chip-ic { background: var(--cyan-soft); color: var(--cyan); }
.chip-trophy .ic { color: var(--violet); }

.ticker {
  background: linear-gradient(90deg, #d4ff3d 0%, #7dffb2 28%, #22d3ee 58%, #a855f7 100%);
  color: #090612;
}

.stat-block:nth-child(1) .stat-num { color: #d4ff3d; }
.stat-block:nth-child(2) .stat-num { color: #22d3ee; }
.stat-block:nth-child(3) .stat-num { color: #fb7185; }
.stat-block:nth-child(4) .stat-num { color: #a855f7; }

.feature { --accent: var(--lime); }
.feature:nth-child(1) { --accent: #a855f7; }
.feature:nth-child(2) { --accent: #22d3ee; }
.feature:nth-child(3) { --accent: #fb7185; }
.feature:nth-child(4) { --accent: #d4ff3d; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(175deg, color-mix(in srgb, var(--accent) 8%, transparent), rgba(255,255,255,.012)); }
.feature-top { color: var(--accent); }
.feature-tag { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 28%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.feature h3 { color: var(--white); }

.demo-card {
  border-color: rgba(168, 85, 247, 0.35);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(168, 85, 247, 0.24), transparent 58%),
    radial-gradient(90% 60% at 0% 100%, rgba(34, 211, 238, 0.09), transparent 60%),
    linear-gradient(165deg, #1a1430, #0a0815);
}
.demo-options button:hover { border-color: rgba(34, 211, 238, 0.5); background: rgba(34, 211, 238, 0.06); }
.demo-options button.is-picked { border-color: var(--lime); background: rgba(212, 255, 61, 0.08); }

.preview-panel, .result-card, .match-list-card, .mini-table-card {
  border-color: var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.step:nth-child(1) .step-num { -webkit-text-stroke-color: #a855f7; }
.step:nth-child(2) .step-num { -webkit-text-stroke-color: #22d3ee; }
.step:nth-child(3) .step-num { -webkit-text-stroke-color: #fb7185; }

.final-inner {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.34), transparent 60%),
    linear-gradient(145deg, #d4ff3d 0%, #83ffb0 34%, #22d3ee 68%, #a855f7 125%);
}
.final-number { color: rgba(10, 8, 22, 0.06); }
.final-inner p { color: rgba(8, 7, 15, 0.68); }
.final-note { color: rgba(8, 7, 15, 0.5); }

/* --- sidebar / jeu --- */
.ovr-ring {
  background: conic-gradient(from -90deg, #d4ff3d 0%, #22d3ee calc(var(--v) * 0.6%), #a855f7 calc(var(--v) * 1%), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}
.ovr-ring > div { background: #0c0918; }
.sc-card, .side-card {
  background:
    radial-gradient(120% 65% at 100% 0%, rgba(168, 85, 247, 0.24), transparent 56%),
    radial-gradient(100% 90% at 0% 100%, rgba(34, 211, 238, 0.09), transparent 60%),
    linear-gradient(165deg, #17122b, #0a0814);
  border-color: rgba(237, 232, 255, 0.12);
}
.sc-bars .bar-row:nth-child(1) i { background: #d4ff3d; }
.sc-bars .bar-row:nth-child(2) i { background: #fbbf24; }
.sc-bars .bar-row:nth-child(3) i { background: #22d3ee; }
.sc-bars .bar-row:nth-child(4) i { background: #a855f7; }
.sc-bars .bar-row:nth-child(5) i { background: #fb7185; }
.sc-bars .bar-row:nth-child(6) i { background: #fb923c; }
.sc-bars .bar-row.low i { background: #fb7185; }
.sc-bars .bar-row.mid i { background: #fbbf24; }

.side-mini {
  border-color: var(--line);
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.08), rgba(34, 211, 238, 0.04));
}
.side-mini .ic { color: var(--cyan); }

.game-tab.is-active { color: #7dffb2; border-color: #7dffb2; }
.tab-save::before { background: #7dffb2; box-shadow: 0 0 8px rgba(125, 255, 178, 0.8); }

/* --- cartes de décision --- */
.event-card {
  border-color: rgba(168, 85, 247, 0.26);
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(168, 85, 247, 0.16), transparent 56%),
    radial-gradient(90% 70% at 0% 100%, rgba(34, 211, 238, 0.06), transparent 60%),
    linear-gradient(168deg, #17112b, #0a0814);
}
.event-card::before {
  background: linear-gradient(90deg, transparent, #22d3ee, #a855f7, transparent);
  opacity: 0.8;
}
.event-tag { color: #7dffb2; border-color: rgba(125, 255, 178, 0.3); background: rgba(125, 255, 178, 0.08); }
.event-surprise {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  padding: 4px 7px;
  border-radius: 4px;
}
.option-btn:hover { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.055); }
.option-btn::before { border-color: #22d3ee; }
.chip { background: rgba(34, 211, 238, 0.07); color: #b8f3ff; border-color: rgba(34, 211, 238, 0.18); }
.chip.neg { background: rgba(251, 113, 133, 0.08); color: #ffb3c0; border-color: rgba(251, 113, 133, 0.18); }
.outcome-card { border-color: rgba(125, 255, 178, 0.32); }
.outcome-icon { background: linear-gradient(135deg, #d4ff3d, #22d3ee); }
.outcome-card.is-risk .outcome-icon { background: linear-gradient(135deg, #fb7185, #fb923c); }

.progress i { background: linear-gradient(90deg, #d4ff3d, #22d3ee, #a855f7); box-shadow: 0 0 14px rgba(34, 211, 238, 0.38); }

.decision-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.decision-head .decision-count { padding-bottom: 0; }
.decision-context { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* --- centre de match --- */
.match-head { margin-bottom: 20px; }
.match-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.match-title { font-size: 42px; }
.match-sub { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.match-count { font-family: var(--display); color: var(--muted); font-size: 14px; letter-spacing: 0.08em; display: flex; align-items: baseline; gap: 6px; }
.match-count b { font-size: 34px; font-weight: 400; color: #7dffb2; line-height: 1; }
.match-count span { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.season-progress { margin-bottom: 0; }

.match-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.6fr); gap: 14px; }
.next-match-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 22px;
  padding: 26px;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(168, 85, 247, 0.18), transparent 58%),
    linear-gradient(155deg, #18122e, #090713);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.nm-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -110px;
  top: -120px;
  background: rgba(168, 85, 247, 0.18);
  filter: blur(50px);
  pointer-events: none;
}
.nm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 5px 8px;
  border: 1px solid transparent;
}
.comp-league { color: #d4ff3d; background: rgba(212, 255, 61, 0.08); border-color: rgba(212, 255, 61, 0.25); }
.comp-cup { color: #fb7185; background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.26); }
.comp-europe { color: #c084fc; background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.32); }
.nm-venue { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nm-stage { margin: 13px 0 4px; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; position: relative; z-index: 1; }
.nm-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 16px 0 18px; position: relative; z-index: 1; }
.nm-team { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.nm-team.right { align-items: flex-end; text-align: right; }
.nm-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--c, #d4ff3d);
  background: color-mix(in srgb, var(--c, #d4ff3d) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #d4ff3d) 34%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--c, #d4ff3d) 12%, transparent);
}
.nm-team b { font-family: var(--display); font-size: 25px; font-weight: 400; letter-spacing: 0.02em; line-height: 1.05; }
.nm-team small { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.nm-vs { font-family: var(--display); font-size: 17px; color: var(--muted-2); letter-spacing: 0.1em; }
.nm-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 9px; color: var(--muted); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 11px 0; position: relative; z-index: 1; }
.nm-diff {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.nm-diff.easy { color: #7dffb2; }
.nm-diff.ok { color: #bef264; }
.nm-diff.even { color: #94a3b8; }
.nm-diff.hard { color: #fbbf24; }
.nm-diff.veryhard { color: #fb7185; }
.nm-status { display: flex; align-items: center; gap: 9px; margin: 14px 0 18px; position: relative; z-index: 1; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7dffb2; box-shadow: 0 0 0 4px rgba(125, 255, 178, 0.1); flex: 0 0 auto; }
.nm-status.is-out .status-dot { background: #fb7185; box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.1); }
.nm-status b { display: block; font-size: 11px; font-weight: 600; }
.nm-status small { display: block; font-size: 9px; color: var(--muted-2); margin-top: 1px; }
.nm-actions { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; }
.nm-actions .btn { flex: 1 1 auto; }

.match-side { display: flex; flex-direction: column; gap: 10px; }
.mini-table-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.mini-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 8px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.mini-position { font-family: var(--display); font-size: 17px; color: #7dffb2; letter-spacing: 0.04em; }
.league-mini.live th { font-size: 6.5px; padding-bottom: 6px; }
.league-mini.live td { font-size: 9.5px; padding: 5px 0; }
.league-mini.live td:nth-child(3) { text-align: center; color: var(--muted-2); width: 24px; }
.league-mini.live td:nth-child(1) { width: 18px; }
.league-mini.live tr.is-us td { color: #7dffb2; }

.season-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.season-stat { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: rgba(255,255,255,.02); }
.season-stat span { display: block; font-size: 6.5px; letter-spacing: 0.14em; color: var(--muted-2); font-weight: 800; }
.season-stat b { font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1.15; }
.season-stat.lime b { color: #d4ff3d; }
.form-card { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255,255,255,.02); }
.form-card > span { font-size: 6.5px; letter-spacing: 0.14em; color: var(--muted-2); font-weight: 800; }
.form-guide { display: flex; gap: 4px; align-items: center; }
.form-dot { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 8px; font-weight: 800; color: #090612; }
.form-w { background: #7dffb2; }
.form-d { background: #fbbf24; }
.form-l { background: #fb7185; }
.form-empty { font-size: 8px; color: var(--muted-2); }

.match-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.match-list-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.result-rows { display: flex; flex-direction: column; gap: 5px; }
.result-row { display: grid; grid-template-columns: 20px minmax(70px, 1fr) auto auto 34px; gap: 8px; align-items: center; font-size: 9px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.result-row:last-child { border-bottom: 0; }
.res-badge { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 8px; font-weight: 800; color: #090612; }
.res-badge.w { background: #7dffb2; }
.res-badge.d { background: #fbbf24; }
.res-badge.l { background: #fb7185; }
.res-opp { color: #d7d0ea; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-score { font-family: var(--display); font-size: 15px; color: var(--white); letter-spacing: 0.04em; }
.res-perf { color: var(--muted-2); white-space: nowrap; }
.res-rating { font-family: var(--display); font-size: 15px; color: #7dffb2; text-align: right; }
.result-row.upcoming { opacity: 0.8; border-style: dashed; }
.res-comp { font-size: 6.5px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 4px; border-radius: 3px; border: 1px solid var(--line); text-align: center; }
.res-comp.comp-league { color: #d4ff3d; }
.res-comp.comp-cup { color: #fb7185; }
.res-comp.comp-europe { color: #c084fc; }
.res-stage { color: var(--muted-2); font-size: 8px; text-align: right; white-space: nowrap; }
.empty-mini { font-size: 9px; color: var(--muted-2); margin: 8px 0 2px; }

/* --- résultat de match --- */
.match-result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 22px;
  padding: 26px;
  background:
    radial-gradient(100% 90% at 50% 0%, rgba(168, 85, 247, 0.2), transparent 60%),
    radial-gradient(100% 80% at 0% 100%, rgba(34, 211, 238, 0.07), transparent 60%),
    linear-gradient(160deg, #18122e, #090713);
  animation: fadeUp 0.4s ease both;
}
.match-result-card.win { border-color: rgba(125, 255, 178, 0.35); }
.match-result-card.loss { border-color: rgba(251, 113, 133, 0.3); }
.mr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mr-stage { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.mr-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 26px 0 12px; }
.mr-team { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mr-team.right { align-items: flex-end; text-align: right; }
.mr-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 19px; color: var(--c, #d4ff3d); background: color-mix(in srgb, var(--c, #d4ff3d) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, #d4ff3d) 34%, transparent); }
.mr-team b { font-family: var(--display); font-size: 23px; font-weight: 400; letter-spacing: 0.02em; line-height: 1.05; }
.mr-score { display: flex; align-items: center; gap: 12px; }
.mr-score b { font-family: var(--display); font-size: clamp(58px, 7vw, 86px); font-weight: 400; line-height: 0.85; color: var(--white); }
.mr-score span { color: var(--muted-2); font-size: 22px; }
.match-result-card.win .mr-score b { color: #7dffb2; }
.match-result-card.loss .mr-score b { color: #fb7185; }
.mr-outcome { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mr-outcome span { font-family: var(--display); font-size: 18px; letter-spacing: 0.14em; color: #7dffb2; }
.match-result-card.loss .mr-outcome span { color: #fb7185; }
.match-result-card.draw .mr-outcome span { color: #fbbf24; }
.mr-outcome small { font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 7px; }
.mr-narrative { text-align: center; color: #bdb5d3; font-size: 12.5px; max-width: 500px; margin: 0 auto 20px; line-height: 1.6; }
.mr-player { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.025); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mr-player-rating { width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(#d4ff3d calc(var(--v, 70) * 1%), rgba(255,255,255,.08) 0); display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(212,255,61,.08); border: 1px solid rgba(212,255,61,.3); }
.mr-player-rating b { font-family: var(--display); font-size: 27px; font-weight: 400; color: #d4ff3d; line-height: 1; }
.mr-player-rating small { font-size: 6px; letter-spacing: 0.16em; color: var(--muted); font-weight: 700; }
.mr-player-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.mr-player-stats div { display: flex; flex-direction: column; }
.mr-player-stats b { font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1; }
.mr-player-stats span { font-size: 6.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-top: 3px; }
.mr-player-out { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.mr-player-out .ic { width: 24px; height: 24px; color: #fb923c; }
.mr-player-out b { display: block; font-size: 11px; color: var(--white); }
.mr-player-out small { display: block; font-size: 9px; color: var(--muted-2); }
.mr-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.mr-context { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 9px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.mr-context b { color: var(--white); font-weight: 600; }

/* --- série automatique --- */
.auto-list { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); }
.auto-row { display: grid; grid-template-columns: 20px minmax(120px, 1fr) minmax(80px, 0.8fr) auto minmax(110px, 0.8fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 9.5px; color: var(--muted); }
.auto-row:last-child { border-bottom: 0; }
.auto-opp { color: var(--white); font-weight: 600; }
.auto-stage { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.auto-score { font-family: var(--display); font-size: 18px; color: var(--white); letter-spacing: 0.05em; }
.auto-perf { color: var(--muted); text-align: right; font-size: 8.5px; }
.auto-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

.season-finished-card { border: 1px solid var(--line); border-radius: 22px; padding: 50px 24px; text-align: center; background: radial-gradient(90% 80% at 50% 0%, rgba(168,85,247,.15), transparent 60%), linear-gradient(160deg, #17112b, #090713); }
.season-finished-card h3 { font-family: var(--display); font-size: 40px; font-weight: 400; margin: 0 0 8px; }
.season-finished-card p { color: var(--muted); font-size: 12px; margin: 0 0 22px; }
.ready-ball { margin: 0 auto 10px; width: 46px; height: 46px; color: #7dffb2; }
.ready-ball .ic { width: 46px; height: 46px; stroke-width: 1.2; }

/* --- responsive match --- */
@media (max-width: 1100px) {
  .match-grid { grid-template-columns: 1fr; }
  .match-side { display: grid; grid-template-columns: 1fr 1fr; }
  .mini-table-card { grid-row: span 2; }
}
@media (max-width: 820px) {
  .match-lists { grid-template-columns: 1fr; }
  .mr-scoreboard { gap: 10px; }
  .mr-team b { font-size: 19px; }
  .mr-score b { font-size: 58px; }
  .match-side { grid-template-columns: 1fr; }
  .mini-table-card { grid-row: auto; }
  .auto-row { grid-template-columns: 20px 1fr auto; gap: 8px; }
  .auto-stage { display: none; }
  .auto-perf { grid-column: 2 / -1; text-align: left; }
}
@media (max-width: 640px) {
  .match-title { font-size: 32px; }
  .match-head-row { align-items: flex-start; }
  .match-count b { font-size: 27px; }
  .next-match-card, .match-result-card { padding: 20px 17px; }
  .nm-teams { gap: 6px; }
  .nm-team b { font-size: 20px; }
  .nm-badge, .mr-badge { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
  .nm-actions .btn { width: 100%; flex: 1 0 100%; }
  .mr-team b { font-size: 16px; }
  .mr-badge { width: 34px; height: 34px; font-size: 14px; }
  .mr-score b { font-size: 46px; }
  .mr-score { gap: 7px; }
  .mr-score span { font-size: 15px; }
  .mr-player { gap: 12px; }
  .mr-player-stats { gap: 16px; }
  .mr-footer { align-items: stretch; flex-direction: column; }
  .mr-footer .btn { width: 100%; }
  .result-row { grid-template-columns: 20px 1fr auto 34px; }
  .res-perf { display: none; }
  .decision-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .decision-context { display: none; }
  .auto-row { grid-template-columns: 20px 1fr auto; }
}

.rh-match-meta {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 6px 0 16px;
  font-weight: 700;
}

.retired-hero {
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(168, 85, 247, 0.24), transparent 62%),
    radial-gradient(80% 70% at 0% 100%, rgba(34, 211, 238, 0.09), transparent 60%),
    linear-gradient(165deg, #17112c, #080612);
}
.retired-hero::before { color: rgba(168, 85, 247, 0.06); }
.retired-score { border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.05); }
.retired-score b { background: linear-gradient(100deg, #d4ff3d, #22d3ee, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   ROUE DU MATCH
   ========================================================= */

.wheel-head { margin-bottom: 18px; }
.wheel-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wheel-title { font-size: 44px; }
.wheel-sub { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.wheel-mini-score { display: flex; align-items: center; gap: 8px; font-family: var(--display); color: var(--muted-2); font-size: 14px; }
.wheel-mini-score .nm-badge { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }

.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 20px; align-items: start; }
.wheel-stage {
  --wheel-r: 118px;
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 24px;
  padding: 34px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(168, 85, 247, 0.18), transparent 70%),
    radial-gradient(60% 50% at 100% 0%, rgba(34, 211, 238, 0.1), transparent 60%),
    linear-gradient(165deg, #17112c, #090612);
  overflow: hidden;
}
.wheel-stage::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(212, 255, 61, 0.07);
  pointer-events: none;
}
.wheel-pointer {
  position: absolute;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #d4ff3d;
  filter: drop-shadow(0 0 10px rgba(212, 255, 61, 0.7));
}
.wheel-ring {
  position: relative;
  width: 380px; height: 380px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(145deg, rgba(212,255,61,.55), rgba(34,211,238,.35) 48%, rgba(168,85,247,.55));
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 70px rgba(0,0,0,.45), 0 0 60px rgba(168,85,247,.18);
  margin: 12px auto 22px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.wheel-ring:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 26px 74px rgba(0,0,0,.5), 0 0 74px rgba(168,85,247,.3);
  transform: translateY(-1px);
}
.wheel-ring:active { transform: scale(0.996); }
.wheel-ring:focus-visible { outline: 2px solid rgba(212,255,61,.75); outline-offset: 6px; }
.wheel-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
}
.wheel-disc {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 4.4s cubic-bezier(.12,.72,.16,1);
  transform-origin: 50% 50%;
  will-change: transform;
  box-shadow: inset 0 0 0 1px rgba(9,6,18,.35), inset 0 0 50px rgba(9,6,18,.25);
}
.wheel-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.wheel-slices path {
  transition: fill-opacity 0.2s ease;
}
.wheel-label {
  position: absolute;
  left: 50%; top: 50%;
  width: 46px;
  margin: 0;
  transform: translate(-50%, -50%) rotate(calc(var(--a) - 90deg)) translateX(var(--wheel-r));
  text-align: center;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #07040f;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}
.wheel-label.flip {
  transform: translate(-50%, -50%) rotate(calc(var(--a) - 90deg)) translateX(var(--wheel-r)) rotate(180deg);
}
.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #22193e, #090612 70%);
  border: 1px solid rgba(212, 255, 61, 0.45);
  box-shadow: 0 0 0 7px rgba(9,6,18,.55), 0 0 30px rgba(212,255,61,.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.wheel-hub span { font-family: var(--display); font-size: 30px; line-height: 0.9; background: linear-gradient(120deg, #d4ff3d, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wheel-hub small { font-size: 6px; letter-spacing: 0.22em; color: var(--muted); font-weight: 800; margin-top: 4px; }
.wheel-stage.is-spinning .wheel-ring { box-shadow: 0 0 0 1px rgba(212,255,61,.4), 0 0 60px rgba(34,211,238,.25), 0 24px 70px rgba(0,0,0,.45); }
.wheel-stage.is-spinning .wheel-hub { animation: pulse 1s infinite; }
.wheel-attempts { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.attempt-dots { display: flex; gap: 5px; }
.attempt-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); }
.attempt-dots i.on { background: linear-gradient(135deg, #d4ff3d, #22d3ee); border-color: transparent; box-shadow: 0 0 10px rgba(34,211,238,.5); }
.wheel-attempts > span { font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.wheel-status { margin-top: 9px; font-size: 9.5px; color: #bdb5d3; letter-spacing: 0.03em; min-height: 15px; }

.wheel-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(34, 211, 238, 0.07), transparent 55%),
    linear-gradient(165deg, #121024, #090612);
}
.wheel-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.wheel-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; border: 1px solid var(--line-soft); border-radius: 11px; padding: 11px; background: rgba(255,255,255,.015); }
.wheel-legend-item { display: flex; align-items: center; gap: 6px; font-size: 8.5px; color: #bdb5d3; }
.wheel-legend-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #d4ff3d); box-shadow: 0 0 6px color-mix(in srgb, var(--c, #d4ff3d) 60%, transparent); flex: 0 0 auto; }

.wheel-result { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; padding: 13px; margin-top: 12px; background: rgba(255,255,255,.025); min-height: 92px; }
.wheel-result.good { border-color: rgba(125,255,178,.28); background: rgba(125,255,178,.035); }
.wheel-result.bad { border-color: rgba(251,113,133,.28); background: rgba(251,113,133,.035); }
.wheel-result.empty { border-style: dashed; color: var(--muted); }
.wheel-result-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--c, #d4ff3d); background: color-mix(in srgb, var(--c, #d4ff3d) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, #d4ff3d) 28%, transparent); flex: 0 0 auto; }
.wheel-result-icon .ic { width: 18px; height: 18px; }
.wheel-result-label { font-size: 7.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.wheel-result h4 { font-family: var(--display); font-size: 20px; font-weight: 400; line-height: 1.1; letter-spacing: 0.02em; margin: 3px 0 7px; }
.wheel-result p { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.5; }
.wheel-history { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.wheel-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 7.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--c, #d4ff3d); border: 1px solid color-mix(in srgb, var(--c, #d4ff3d) 28%, transparent); background: color-mix(in srgb, var(--c, #d4ff3d) 7%, transparent); border-radius: 4px; padding: 3px 6px; }
.wheel-pill .ic { width: 10px; height: 10px; }
.wheel-actions { display: flex; gap: 8px; margin-top: 14px; }
.wheel-actions .btn { flex: 1 1 0; }
.wheel-actions .btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.wheel-hint { display: block; margin-top: 8px; font-size: 8.5px; color: var(--muted-2); line-height: 1.5; }
.wheel-match-strip { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wheel-match-label { font-size: 7px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; }
.nm-wheel-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 8px; letter-spacing: 0.04em; color: var(--muted-2); }
.nm-wheel-note .ic { width: 12px; height: 12px; color: #d4ff3d; }

@media (max-width: 1080px) {
  .wheel-layout { grid-template-columns: 1fr; }
  .wheel-panel { display: flex; flex-direction: column; }
  .wheel-stage { padding-top: 28px; }
}
@media (max-width: 640px) {
  .wheel-title { font-size: 34px; }
  .wheel-head-row { align-items: flex-start; }
  .wheel-mini-score { display: none; }
  .wheel-stage { --wheel-r: 92px; padding: 26px 12px 18px; border-radius: 18px; }
  .wheel-ring { width: 300px; height: 300px; margin-bottom: 16px; }
  .wheel-label { font-size: 10px; width: 34px; }
  .wheel-hub { width: 72px; height: 72px; }
  .wheel-hub span { font-size: 24px; }
  .wheel-pointer { top: 20px; }
  .wheel-panel { padding: 15px; }
  .wheel-legend { grid-template-columns: 1fr 1fr; gap: 5px 7px; padding: 9px; }
  .wheel-legend-item { font-size: 8px; }
  .wheel-actions { flex-direction: column; }
  .wheel-actions .btn { width: 100%; }
}

.wheel-stage .wheel-actions { width: 100%; max-width: 390px; margin-top: 14px; }
.wheel-stage .wheel-hint { text-align: center; max-width: 390px; }

@media (max-width: 1080px) {
  .wheel-panel { display: flex; flex-direction: column; }
  .wheel-panel-head { order: 1; }
  .wheel-result { order: 2; margin-top: 0; }
  .wheel-history { order: 3; }
  .wheel-legend { order: 4; margin-top: 10px; }
}

/* Suspense de la roue */
.wheel-stage.is-spinning .wheel-ring {
  animation: wheelRingPulse 1.05s ease-in-out infinite;
}
.wheel-stage.is-spinning .wheel-pointer {
  animation: pointerFlash 0.32s ease-in-out infinite alternate;
}
.wheel-stage.is-spinning .wheel-status {
  color: #d4ff3d;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wheel-stage.is-spinning .wheel-status::before {
  content: "● ";
  color: #22d3ee;
  animation: blink 0.7s infinite;
}
.wheel-stage.is-spinning .wheel-hub {
  animation: hubSuspense 0.9s ease-in-out infinite;
}
.wheel-result {
  animation: wheelReveal 0.55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes wheelRingPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212,255,61,.4), 0 0 40px rgba(34,211,238,.2), 0 24px 70px rgba(0,0,0,.45); }
  50% { box-shadow: 0 0 0 2px rgba(212,255,61,.65), 0 0 95px rgba(168,85,247,.38), 0 24px 70px rgba(0,0,0,.45); }
}
@keyframes pointerFlash {
  from { filter: drop-shadow(0 0 6px rgba(212,255,61,.55)); transform: translateX(-50%) translateY(0); }
  to { filter: drop-shadow(0 0 18px rgba(34,211,238,.95)); transform: translateX(-50%) translateY(3px); }
}
@keyframes hubSuspense {
  0%, 100% { box-shadow: 0 0 0 7px rgba(9,6,18,.55), 0 0 24px rgba(212,255,61,.15); }
  50% { box-shadow: 0 0 0 7px rgba(9,6,18,.55), 0 0 48px rgba(34,211,238,.4); }
}
@keyframes wheelReveal {
  0% { opacity: 0; transform: translateY(14px) scale(.97); filter: brightness(1.8); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.005); filter: brightness(1.15); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-disc { transition-duration: 1.4s !important; }
}

/* Stats retenues de la roue */
.wheel-stat-line { display: flex; align-items: baseline; gap: 9px; margin: 2px 0 2px; }
.wheel-stat-line div { display: flex; align-items: baseline; gap: 4px; }
.wheel-stat-line b { font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 400; color: var(--c, #d4ff3d); }
.wheel-stat-line span { font-size: 6.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.wheel-stat-line i { font-style: normal; color: var(--muted-2); font-size: 18px; }
.wheel-result.neutral { border-color: var(--line); background: rgba(255,255,255,.025); }
.wheel-result.epic { border-color: rgba(255,214,107,.5); background: linear-gradient(120deg, rgba(255,214,107,.1), rgba(168,85,247,.06)); box-shadow: 0 0 30px rgba(255,214,107,.08); }
.wheel-legend-item em { margin-left: auto; font-style: normal; font-size: 6.5px; color: var(--muted-2); font-weight: 700; }
.wheel-pill.retained { border-color: var(--c, #d4ff3d); box-shadow: 0 0 12px color-mix(in srgb, var(--c, #d4ff3d) 25%, transparent); font-weight: 800; }
.wheel-match-stat { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--display); font-size: 17px; color: var(--c, #d4ff3d); letter-spacing: 0.03em; }
.wheel-match-stat b { font-weight: 400; font-size: 22px; }
.wheel-match-stat i { font-style: normal; color: var(--muted-2); font-size: 11px; }
.wheel-match-line { font-size: 9px; color: var(--muted); }
.wheel-match-attempts { font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); border-left: 1px solid var(--line); padding-left: 10px; }

.competition-objective {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(212, 255, 61, 0.18);
  background: rgba(212, 255, 61, 0.045);
  font-size: 9px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.competition-objective .ic { width: 13px; height: 13px; color: #d4ff3d; }
.competition-objective b { color: #d4ff3d; font-weight: 700; }
.wheel-comp-chip {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--white);
  border-left: 1px solid var(--line);
  padding-left: 9px;
  margin-left: 2px;
}

.rh-stats { grid-template-columns: repeat(5, 1fr); }
.wheel-ga {
  margin-left: 6px;
  align-self: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--c, #d4ff3d);
  border: 1px solid color-mix(in srgb, var(--c, #d4ff3d) 30%, transparent);
  background: color-mix(in srgb, var(--c, #d4ff3d) 8%, transparent);
  border-radius: 99px;
  padding: 4px 7px;
  white-space: nowrap;
}
.wheel-match-ga {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
}
@media (max-width: 720px) {
  .rh-stats { grid-template-columns: repeat(2, 1fr); }
}

.wheel-legend { grid-template-columns: 1fr; gap: 4px; }
.wheel-legend-item { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.035); }
.wheel-legend-item:last-child { border-bottom: 0; }
.wheel-legend-item em { font-size: 7px; color: var(--muted); }

.wheel-legend-item small { margin-left: 7px; font-size: 7px; font-weight: 800; color: #d4ff3d; min-width: 30px; text-align: right; }

.ballon-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 107, 0.45);
  background:
    radial-gradient(80% 150% at 0% 50%, rgba(255, 214, 107, 0.18), transparent 60%),
    linear-gradient(120deg, rgba(255, 214, 107, 0.12), rgba(168, 85, 247, 0.08));
  box-shadow: 0 12px 44px rgba(255, 214, 107, 0.08);
  animation: wheelReveal 0.6s ease both;
}
.ballon-orb {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  color: #ffd66b;
  background: radial-gradient(circle at 35% 30%, rgba(255, 214, 107, .25), rgba(9, 6, 18, .6));
  border: 1px solid rgba(255, 214, 107, .5);
  box-shadow: 0 0 26px rgba(255, 214, 107, .2);
  flex: 0 0 auto;
}
.ballon-orb .ic { width: 25px; height: 25px; }
.ballon-banner span { display: block; font-size: 7.5px; font-weight: 800; letter-spacing: 0.2em; color: #ffd66b; }
.ballon-banner b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: 0.02em; color: var(--white); margin-top: 3px; }

/* =========================================================
   MATCH EN DIRECT
   ========================================================= */
.live-overlay {
  position: fixed;
  inset: 0;
  z-index: 125;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(20, 44, 88, 0.94), rgba(3, 2, 8, 0.97) 70%);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.live-overlay.is-open { opacity: 1; pointer-events: auto; }
.live-overlay.flash-us { animation: lmShake 0.55s ease; }
@keyframes lmShake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-3px); }
}

.lm-wrap { width: min(620px, 100%); display: flex; flex-direction: column; gap: 9px; }
.lm-comp { text-align: center; font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lime); font-weight: 800; }

.lm-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(20, 16, 38, 0.92), rgba(8, 5, 15, 0.92));
}
.lm-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lm-team.right { justify-content: flex-end; }
.lm-team b { font-size: 12px; color: #e7e2f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-badge {
  width: 30px; height: 30px; flex: 0 0 auto;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--display);
  font-size: 13px;
  color: var(--lime);
}
.lm-score { display: flex; align-items: baseline; gap: 8px; }
.lm-score b { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; color: var(--white); }
.lm-score span { color: var(--muted-2); }

.lm-clock { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.lm-clock b { font-family: var(--display); font-size: 22px; color: var(--lime); letter-spacing: 0.04em; }
.lm-clock span { font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }

.lm-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lm-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #d4ff3d); box-shadow: 0 0 14px rgba(212, 255, 61, 0.5); }
.lm-track .lm-ht { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.25); }

.lm-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 130px;
  max-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.lm-line { display: flex; gap: 8px; font-size: 9.5px; color: #bdb5d3; animation: lmLine 0.35s ease both; }
.lm-line b { font-family: var(--display); color: var(--muted-2); min-width: 26px; font-weight: 400; font-size: 11px; }
.lm-line.us span { color: #d4ff3d; font-weight: 700; }
.lm-line.them span { color: #fb7185; font-weight: 600; }
@keyframes lmLine { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.lm-flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(44px, 10vw, 90px);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.lm-flash.is-on { opacity: 1; animation: lmFlash 1.1s ease both; }
.lm-flash.is-us { color: #d4ff3d; text-shadow: 0 0 40px rgba(212, 255, 61, 0.6); }
.lm-flash.is-them { color: #fb7185; text-shadow: 0 0 40px rgba(251, 113, 133, 0.5); }
@keyframes lmFlash {
  0% { transform: scale(0.6); opacity: 0; }
  18% { transform: scale(1.08); opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

.lm-bottom { display: flex; flex-direction: column; gap: 8px; }
.lm-mvp { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--muted); min-height: 18px; }
.lm-mvp span { font-size: 7px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--muted-2); }
.lm-mvp b { color: var(--white); font-size: 11px; }
.lm-mvp i { font-style: normal; font-family: var(--display); color: var(--lime); font-size: 15px; }
.lm-bottom .btn { width: 100%; }

/* =========================================================
   INTERVIEW
   ========================================================= */
.interview-overlay {
  position: fixed;
  inset: 0;
  z-index: 128;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 2, 8, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.interview-overlay.is-open { opacity: 1; pointer-events: auto; }
.iv-box {
  width: min(480px, 100%);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(34, 211, 238, 0.1), transparent 60%),
    linear-gradient(165deg, #141026, #07040d);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.iv-eyebrow { font-size: 8px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--lime); font-weight: 800; }
.iv-question { font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.05; margin: 8px 0 16px; }
.iv-options { display: flex; flex-direction: column; gap: 8px; }
.iv-option {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dcd6ec;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.iv-option:hover { border-color: rgba(212, 255, 61, 0.5); background: rgba(212, 255, 61, 0.07); transform: translateX(2px); }

.mr-mvp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(212, 255, 61, 0.04);
  font-size: 9px;
}
.mr-mvp span { font-size: 7px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; }
.mr-mvp b { color: var(--white); font-size: 11px; }
.mr-mvp i { margin-left: auto; font-style: normal; font-family: var(--display); color: var(--lime); font-size: 16px; }
.lm-speed {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.lm-speed:hover { color: var(--white); border-color: rgba(212, 255, 61, 0.5); }
.lm-speed.is-fast {
  color: #07040f;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px rgba(212, 255, 61, 0.5);
}
.pk-stop {
  align-self: center;
  background: none;
  border: 0;
  padding: 2px 0;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
.pk-stop:hover { color: #fb7185; }
/* Mode gardien : le joueur choisit son plongeon. */
.penalty-overlay.is-keeper .pk-reticle {
  border-color: #22d3ee;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.9), inset 0 0 12px rgba(34, 211, 238, 0.4);
}
.penalty-overlay.is-keeper .pk-reticle::before,
.penalty-overlay.is-keeper .pk-reticle::after { background: #22d3ee; }
.penalty-overlay.is-keeper .pk-keeper { filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.55)); }
.penalty-overlay.is-keeper .pk-scene { box-shadow: inset 0 0 0 2px rgba(34, 211, 238, 0.16), inset 0 0 100px rgba(0, 0, 0, 0.75); }
/* =========================================================
   AVATAR DU JOUEUR
   ========================================================= */
.avatar { width: 100%; height: 100%; display: block; }

.sc-avatar {
  width: 50px; height: 50px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 255, 61, 0.35);
  box-shadow: 0 0 14px rgba(212, 255, 61, 0.12);
  background: #070a12;
}
.side-card .ovr-ring { width: 66px; height: 66px; }
.side-card .ovr-ring > div { width: 56px; height: 56px; }
.side-card .ovr-ring b { font-size: 22px; }

.sp-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-bottom: 14px; }
.sp-avatar {
  width: 104px; height: 104px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 255, 61, 0.35);
  box-shadow: 0 0 26px rgba(212, 255, 61, 0.16);
}
.sp-avatar-hint { font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
/* --- éditeur d'avatar --- */
.ae {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 14px;
}
.ae-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ae-row > span { font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.ae-dots { display: flex; gap: 5px; }
.ae-dot {
  width: 16px; height: 16px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ae-dot:hover { transform: scale(1.12); }
.ae-dot.is-on { box-shadow: 0 0 0 2px #0b0f18, 0 0 0 3.5px var(--lime); }
.ae-stepper { display: flex; align-items: center; gap: 8px; }
.ae-stepper button {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.ae-stepper button:hover { color: var(--white); border-color: rgba(212, 255, 61, 0.5); }
.ae-stepper b { font-size: 10px; color: #dcd6ec; min-width: 72px; text-align: center; }
.ae-compact { padding: 8px 10px; gap: 6px; margin-bottom: 0; }
.card-ae { margin-top: 12px; }
/* =========================================================
   ONGLET ARGENT
   ========================================================= */
.money-balance { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.money-balance span { font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.money-balance b { font-family: var(--display); font-size: 34px; color: var(--lime); line-height: 1; font-weight: 400; }
.money-balance small { font-size: 8px; color: var(--muted-2); }

.money-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 20px; }
.money-strip > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 4px; }
.money-strip span { font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.money-strip b { font-family: var(--display); font-size: 18px; font-weight: 400; color: var(--white); }

.money-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.money-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(20, 30, 20, 0.7), rgba(8, 12, 9, 0.85));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.money-card.is-maxed { opacity: 0.6; }
.money-card-top { display: flex; align-items: center; gap: 8px; }
.money-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(212, 255, 61, 0.08); border: 1px solid rgba(212, 255, 61, 0.22); color: var(--lime); }
.money-ic .ic { width: 15px; height: 15px; }
.money-card-top b { font-size: 12px; }
.money-card p { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.5; }
.money-effects { display: flex; flex-wrap: wrap; gap: 4px; }
.money-effects span { font-size: 7.5px; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(34, 211, 238, 0.25); background: rgba(34, 211, 238, 0.07); color: #9fe8f5; }
.money-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.money-foot > b { font-family: var(--display); font-size: 18px; color: var(--white); font-weight: 400; }
.money-count { font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

@media (max-width: 720px) {
  .money-grid { grid-template-columns: 1fr; }
  .money-strip { grid-template-columns: 1fr; }
  .money-balance { align-items: flex-start; }
}
/* --- terrain vu du dessus --- */
.lm-pitch {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: repeating-linear-gradient(90deg, #14532d 0 8.33%, #17633a 8.33% 16.66%);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.3s ease;
}
.lm-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.lm-players { position: absolute; inset: 0; }
.lm-dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: left 0.6s ease, top 0.6s ease;
}
.lm-dot.away { border-color: rgba(255, 255, 255, 0.4); }
.lm-ball2 {
  position: absolute;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  transition: left 0.5s ease, top 0.5s ease;
  z-index: 3;
}
.lm-pitch.is-goal-us { box-shadow: inset 0 0 0 2px #d4ff3d, inset 0 0 55px rgba(212, 255, 61, 0.35); }
.lm-pitch.is-goal-them { box-shadow: inset 0 0 0 2px #fb7185, inset 0 0 55px rgba(251, 113, 133, 0.3); }

@media (max-width: 720px) {
  .lm-pitch { aspect-ratio: 1.8 / 1; }
  .lm-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
}
.lm-feed { min-height: 80px; max-height: 100px; }

.lm-action {
  position: absolute;
  top: 8px; left: 10px;
  z-index: 4;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(4, 8, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dcd6ec;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-action.is-shot { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); }
.lm-action.is-goal { color: #d4ff3d; border-color: rgba(212, 255, 61, 0.6); background: rgba(20, 40, 10, 0.8); }
.lm-action.is-save { color: #22d3ee; border-color: rgba(34, 211, 238, 0.5); }
/* Choix à l'aveugle : la conséquence n'apparaît qu'après la décision. */
.option-unknown {
  display: block;
  margin-top: 5px;
  font-size: 6.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
}
.option-btn:hover .option-unknown { color: rgba(212, 255, 61, 0.55); }