/* ── Reset & Variables ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100vw; overflow-x: hidden; }
html { overflow-y: scroll !important; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Lucide Icons ──────────────────────────────────────────────────────── */
[data-lucide], .lucide {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px;
  display: inline-block;
  flex-shrink: 0;
}
h1 [data-lucide], h1 .lucide { width: 22px; height: 22px; }
.btn [data-lucide], .btn .lucide { width: 16px; height: 16px; vertical-align: -2px; }
.nav-links [data-lucide] { width: 16px; height: 16px; vertical-align: -3px; opacity: .7; }
.actu-section-icon [data-lucide] { width: 18px; height: 18px; }
.booster-icon [data-lucide] { width: 48px; height: 48px; color: var(--text-muted); }

:root {
  --bg:          #131315;
  --bg-card:     #1c1b1f;
  --bg-card-2:   #26242a;
  --bg-card-dark: #17161a;
  --border:      #332f38;
  --text:        #ece9f0;
  --text-muted:  #908a96;
  --text-dim:    #5c5e64;
  --text-light:  #f5f5f4;
  --accent:      #4f8ef7;
  --green:       #27ae60;
  --red:         #e74c3c;
  --gold:        #f9c74f;
  --purple:      #9b59b6;
  --blue:        #3498db;
  --grey:        #6c757d;
  --club-primary: #1a73e8;
  --club-secondary: #ffffff;

  --rarity-common:    #aeb2bb;
  --rarity-rare:      #3f82d8;
  --rarity-epic:      #9a5cd6;
  --rarity-legendary: #d6a83c;
  --rarity-iconic: #f4f4f8;
  --iconic-gradient: linear-gradient(135deg, #ffffff, #cfd2de, #ffffff, #dfe1ea);

  --radius:      10px;
  --radius-sm:   6px;
  --radius-xs:   4px;
  --shadow:      0 4px 24px rgba(0,0,0,.45);
  --shadow-lg:   0 12px 34px rgba(0,0,0,.32);
  --shadow-xl:   0 20px 60px rgba(0,0,0,.6);

  --text-xs:  .65rem;
  --text-sm:  .75rem;
  --text-base: .88rem;
  --text-md:  .95rem;
  --text-lg:  1.1rem;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 100%, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: 0;
}
@media (max-width: 768px) {
  body { padding-bottom: 64px; }
}

/* ── Display Typography ────────────────────────────────────────────────── */
h1, .page-title {
  font-family: Archivo, sans-serif;
  font-weight: 900;
  letter-spacing: -.5px;
  text-transform: uppercase;
}
h2 { font-family: Archivo, sans-serif; font-weight: 800; }

/* ── Global Animations ─────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInUpCentered {
  from { opacity: 0; transform: translateY(calc(-50% + 12px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
.main-content { animation: fadeInUp .35s ease; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.5rem;
  background: rgba(19,19,21,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; color: var(--text);
  white-space: nowrap;
}

.nav-logo { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-placeholder { width: 32px; height: 32px; border-radius: 50%; }

.nav-countdown {
  display: flex; align-items: center; gap: .4rem;
  padding: .25rem .6rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-cd-logo {
  width: 22px; height: 22px; object-fit: contain; border-radius: 3px;
}
.nav-cd-logo-fb {
  width: 22px; height: 22px; border-radius: 3px; flex-shrink: 0;
}
.nav-cd-logo-tbd {
  border: 1.5px dashed var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  font: 800 .65rem/1 Archivo, sans-serif; color: var(--text-muted);
}
.nav-countdown-live { border-color: rgba(229,57,53,.4); text-decoration: none; cursor: pointer; }
.nav-cd-live-text { display: flex; align-items: center; gap: .3rem; color: var(--red, #e53935); }
.nav-cd-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red, #e53935); animation: pulse 1s infinite; }
.nav-cd-timer {
  font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: .03em; color: var(--text); min-width: 52px; text-align: center;
}

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-block; padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-muted);
  font-size: .88rem; font-weight: 500;
  transition: color .15s, background .15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg-card-2);
}
.nav-links a.active {
  border-bottom: 2px solid var(--accent);
}

.btn-logout {
  color: var(--red) !important;
  border: 1px solid transparent;
}
.btn-logout:hover { border-color: var(--red) !important; background: transparent !important; }

.nav-toggle {
  display: none; background: none; border: none; color: var(--text);
  cursor: pointer;
  width: 44px; height: 44px;
  padding: 10px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle svg, .nav-toggle i { pointer-events: none; }

/* ── Mobile Bottom Tab Bar ─────────────────────────────────────────────── */
.mobile-tab-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(19,19,21,.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 4px 0 env(safe-area-inset-bottom, 4px);
  justify-content: space-around; align-items: center;
}
@media (max-width: 768px) {
  .mobile-tab-bar { display: flex; }
}
/* Bouton flottant Pass — mobile uniquement, au-dessus de la tab bar */
.pass-fab {
  display: none;
  position: fixed; right: 14px;
  bottom: calc(58px + env(safe-area-inset-bottom, 4px) + 12px);
  z-index: 199;
  width: 52px; height: 52px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--pass-color, var(--accent)) 22%, var(--bg-card));
  border: 2px solid var(--pass-color, var(--accent));
  box-shadow: 0 4px 18px rgba(0,0,0,.45), 0 0 14px color-mix(in srgb, var(--pass-color, var(--accent)) 40%, transparent);
  color: var(--pass-color, var(--accent));
  text-decoration: none;
}
.pass-fab [data-lucide] { width: 24px; height: 24px; }
.pass-fab:active { transform: scale(.94); }
@media (max-width: 768px) {
  .pass-fab { display: flex; }
}

.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; min-width: 56px;
  background: none; border: none; cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .6rem; font-weight: 600;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tab-item [data-lucide], .tab-item svg { width: 22px; height: 22px; pointer-events: none; }
.tab-item span { pointer-events: none; }
.tab-item.active { color: var(--accent); }
.tab-item:active { transform: scale(.9); }

/* FAB Starter Cup — flotte au-dessus de la barre */
.tab-fab {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000; font-size: .5rem; font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -2px 16px rgba(255,215,0,.4), 0 0 0 3px rgba(19,19,21,.96);
  position: absolute;
  right: 16px; bottom: calc(100% + 10px);
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  animation: fabPulse 2s ease-in-out infinite;
}
@media (max-width: 768px) { .tab-fab { display: flex; } }
.tab-fab [data-lucide] { width: 20px; height: 20px; color: #000; pointer-events: none; }
.tab-fab span { pointer-events: none; text-transform: uppercase; letter-spacing: .04em; }
.tab-fab:active { transform: scale(.9); }
.tab-fab.active { box-shadow: 0 -2px 24px rgba(255,215,0,.6), 0 0 0 3px rgba(19,19,21,.96); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 -2px 16px rgba(255,215,0,.4), 0 0 0 3px rgba(19,19,21,.96); }
  50%      { box-shadow: 0 -2px 24px rgba(255,215,0,.6), 0 0 0 3px rgba(19,19,21,.96); }
}
.tab-item { position: relative; }
.tab-badge {
  position: absolute; top: 2px; right: 8px;
  min-width: 16px; height: 16px;
  background: var(--red); color: #fff;
  font-size: .6rem; font-weight: 800;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Tab Drawer (slide-up sheet) ───────────────────────────────────────── */
.tab-drawer {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.5);
  align-items: flex-end; justify-content: center;
}
.tab-drawer.open { display: flex; animation: fadeIn .15s ease; }
.tab-drawer-sheet {
  width: 100%; max-width: 420px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 12px 8px calc(68px + env(safe-area-inset-bottom, 0px));
  animation: slideUp .25s ease;
  display: flex; flex-direction: column; gap: 2px;
}
.drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
  font-size: .9rem; font-weight: 600;
  transition: background .15s;
}
.drawer-link:hover, .drawer-link.active { background: var(--bg-card-2); }
.drawer-link [data-lucide] { width: 20px; height: 20px; color: var(--text-muted); }
.drawer-logout { color: var(--red); }
.drawer-logout [data-lucide] { color: var(--red); }
.drawer-coins {
  margin-left: auto;
  font-size: .75rem; font-weight: 800; color: var(--gold);
  background: rgba(249,199,79,.1);
  padding: 2px 8px; border-radius: 20px;
}

.nav-coins {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 700; color: var(--gold); font-size: .82rem;
}
.nav-mobile-actions { display: none; align-items: center; gap: .5rem; margin-left: auto; }
@media (max-width: 768px) { .nav-mobile-actions { display: flex; } }

.nav-coins-mobile {
  display: flex; align-items: center; gap: .25rem;
  font: 700 .8rem/1 Archivo, sans-serif;
  color: var(--gold); text-decoration: none;
  background: rgba(255,215,0,.08);
  border: 1px solid rgba(255,215,0,.2);
  padding: .3rem .6rem; border-radius: 20px;
}
.nav-coins-mobile [data-lucide] { width: 14px; height: 14px; }

.nav-bell-mobile {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none;
}
.nav-bell-mobile [data-lucide] { width: 17px; height: 17px; }
.nav-bell-mobile .nav-notif-badge { top: -3px; right: -3px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.main-content { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 3rem; width: 100%; overflow-x: hidden; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font: 900 1.8rem/.92 Archivo, sans-serif;
  letter-spacing: -.5px; text-transform: uppercase;
  color: var(--text-light);
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  animation: fadeInUp .4s ease both;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--club-primary), color-mix(in srgb, var(--club-primary) 70%, #fff));
  color: #fff; border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.3); opacity: .92; }
.btn-ghost { background: var(--bg-card-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: .35rem .75rem; font-size: .82rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger  { background: rgba(231,76,60,.15); color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: rgba(231,76,60,.25); }
.btn-success { background: rgba(39,174,96,.15); color: var(--green); border: 1px solid var(--green); }
.btn-success:hover { background: rgba(39,174,96,.25); }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .9rem;
  border: 1px solid transparent;
}
.alert-error   { background: rgba(231,76,60,.15); border-color: var(--red); color: #ff8080; }
.alert-success { background: rgba(39,174,96,.15); border-color: var(--green); color: #7effa0; }
.alert-info    { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: color-mix(in srgb, var(--accent) 60%, #fff); }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .75rem; font-weight: 600;
  background: var(--bg-card-2);
  color: var(--text-muted);
  margin-left: .5rem;
}

/* ── Auth page ──────────────────────────────────────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.auth-container {
  width: 100%; max-width: 420px;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo-img { width: 48px; max-width: 48px; height: auto; display: block; margin: 0 auto .4rem; filter: invert(1); }
.auth-icon { font-size: 3rem; margin-bottom: .5rem; }
.auth-logo h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.auth-logo h1 span { color: var(--gold); }

.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.tab-btn {
  flex: 1; padding: .5rem;
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.tab-btn.active { background: var(--club-primary); color: #fff; border-color: var(--club-primary); }

.auth-form { display: none; }
.auth-form.active { display: block; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-muted); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group select {
  width: 100%; padding: .55rem .9rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'Outfit', sans-serif; font-size: .9rem;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group input[type="color"] {
  width: 100%; height: 42px; padding: .2rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Filters ────────────────────────────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.25rem;
}
.filters input { flex: 1; min-width: 180px; padding: .45rem .8rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: 'Outfit', sans-serif; font-size: .88rem; }
.filters select { padding: .45rem .8rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: 'Outfit', sans-serif; font-size: .88rem; }

/* ── Player Cards ───────────────────────────────────────────────────────── */
.cards-grid {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; align-items: flex-start;
}

/* ── Card animations ──────────────────────────────────────────────────── */
@keyframes scShine {
  0%   { transform: translateX(-160%) skewX(-18deg); }
  100% { transform: translateX(260%) skewX(-18deg); }
}
@keyframes scPulse {
  0%,100% { opacity: .55; }
  50%     { opacity: 1; }
}
@keyframes scSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes scBadgePop {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-1.5px); }
}
@keyframes legendary-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(214,168,60,.4), 0 0 0 2px rgba(214,168,60,.42); }
  50%      { box-shadow: 0 0 36px rgba(214,168,60,.6), 0 0 60px rgba(214,168,60,.25), 0 0 0 3px rgba(214,168,60,.54); }
}

/* ── Player Card (new design) ─────────────────────────────────────────── */
.player-card {
  width: 210px;
  background: var(--bg-card-dark);
  border-radius: 13px;
  border: 1px solid rgba(174,178,187,.28);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: default;
  font-family: Archivo, sans-serif;
}
.player-card:hover { transform: translateY(-5px); }
.cards-grid .player-card { cursor: pointer; }

.player-card.common   { border-color: rgba(174,178,187,.28); }
.player-card.rare     { border-color: rgba(63,130,216,.55); box-shadow: var(--shadow-lg), 0 0 30px rgba(63,130,216,.22), 0 0 0 2px rgba(63,130,216,.42); }
.player-card.epic     { border-color: rgba(154,92,214,.62); box-shadow: var(--shadow-lg), 0 0 42px rgba(154,92,214,.34), 0 0 0 3px rgba(154,92,214,.54); }
.player-card.legendary {
  border-color: rgba(214,168,60,.72);
  box-shadow: var(--shadow-lg), 0 0 57px rgba(214,168,60,.46), 0 0 60px rgba(214,168,60,.45), 0 0 0 4px rgba(214,168,60,.66);
  animation: legendary-glow 2.5s ease-in-out infinite;
}
.player-card.iconic {
  border-color: rgba(255,255,255,.85);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255,255,255,.35), 0 0 0 2px rgba(20,20,26,.9), 0 0 0 4px rgba(255,255,255,.9), inset 0 0 24px rgba(255,255,255,.08);
  position: relative;
}
.player-card.iconic::before {
  content: '◆';
  position: absolute; top: 8px; left: 10px; z-index: 3;
  font-size: 13px; color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 12px rgba(180,200,255,.6);
  pointer-events: none;
}
.player-card.iconic:hover .card-overlay::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  background-size: 250% 250%;
  animation: iconShine .9s ease forwards;
}
@keyframes iconShine {
  0%   { background-position: 120% 0%; opacity: 0; }
  15%  { opacity: 1; }
  100% { background-position: -20% 100%; opacity: 0; }
}

/* Overlay gradients per rarity */
.card-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.rare .card-overlay     { background: radial-gradient(130% 80% at 100% 0%, rgba(63,130,216,.13), transparent 55%); }
.epic .card-overlay     { background: radial-gradient(130% 80% at 100% 0%, rgba(154,92,214,.22), transparent 55%); }
.legendary .card-overlay {
  background:
    radial-gradient(130% 75% at 50% -12%, rgba(214,168,60,.32), transparent 60%),
    repeating-linear-gradient(118deg, transparent 0 13px, rgba(255,255,255,.035) 13px 14px);
}
.iconic .card-overlay {
  background:
    radial-gradient(130% 75% at 50% -12%, rgba(255,255,255,.3), transparent 60%),
    repeating-linear-gradient(118deg, transparent 0 11px, rgba(255,255,255,.08) 11px 12px),
    repeating-linear-gradient(62deg, transparent 0 15px, rgba(180,200,255,.05) 15px 16px);
}

/* Halo behind photo */
.card-halo {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: 108%; aspect-ratio: 1/1; border-radius: 50%; z-index: 0; pointer-events: none;
}
.common .card-halo    { background: radial-gradient(circle, rgba(174,178,187,.40) 0%, rgba(174,178,187,.15) 32%, rgba(174,178,187,.03) 54%, transparent 68%); }
.rare .card-halo      { background: radial-gradient(circle, rgba(63,130,216,.40) 0%, rgba(63,130,216,.15) 32%, rgba(63,130,216,.03) 54%, transparent 68%); }
.epic .card-halo      { background: radial-gradient(circle, rgba(154,92,214,.40) 0%, rgba(154,92,214,.15) 32%, rgba(154,92,214,.03) 54%, transparent 68%); }
.legendary .card-halo { background: radial-gradient(circle, rgba(214,168,60,.40) 0%, rgba(214,168,60,.15) 32%, rgba(214,168,60,.03) 54%, transparent 68%); }
.iconic .card-halo { background: radial-gradient(circle, rgba(255,255,255,.5) 0%, rgba(255,255,255,.18) 32%, rgba(255,255,255,.04) 54%, transparent 68%); }

/* Rays (legendary only) */
.card-rays {
  display: none;
}
.legendary .card-rays {
  display: block;
  position: absolute; top: -30%; left: 50%; width: 160%; height: 160%;
  transform: translateX(-50%); z-index: 1; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 38%, transparent 0deg, rgba(214,168,60,.16) 8deg, transparent 16deg, transparent 28deg, rgba(214,168,60,.12) 36deg, transparent 44deg);
  animation: scSpin 14s linear infinite; opacity: .7;
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 62%);
}
/* Facettes statiques (pas d'animation — coûteux à répéter sur beaucoup de cartes) */
.iconic .card-rays {
  display: block;
  position: absolute; top: -30%; left: 50%; width: 160%; height: 160%;
  transform: translateX(-50%); z-index: 1; pointer-events: none; opacity: .8;
  background: conic-gradient(from 0deg at 50% 38%,
    rgba(255,255,255,.14) 0deg, transparent 10deg, transparent 30deg,
    rgba(255,255,255,.1) 40deg, transparent 50deg, transparent 70deg,
    rgba(255,255,255,.14) 80deg, transparent 90deg, transparent 110deg,
    rgba(255,255,255,.1) 120deg, transparent 130deg, transparent 150deg,
    rgba(255,255,255,.14) 160deg, transparent 170deg, transparent 190deg,
    rgba(255,255,255,.1) 200deg, transparent 210deg, transparent 230deg,
    rgba(255,255,255,.14) 240deg, transparent 250deg, transparent 270deg,
    rgba(255,255,255,.1) 280deg, transparent 290deg, transparent 310deg,
    rgba(255,255,255,.14) 320deg, transparent 330deg, transparent 350deg);
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 62%);
}

/* Card content layer */
.card-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; flex: 1; min-height: 0;
}

/* Top accent bar */
.card-bar {
  height: 4px; flex: none;
}
.common .card-bar    { background: linear-gradient(90deg, var(--rarity-common), rgba(174,178,187,.35)); }
.rare .card-bar      { background: linear-gradient(90deg, var(--rarity-rare), rgba(63,130,216,.35)); }
.epic .card-bar      { background: linear-gradient(90deg, var(--rarity-epic), rgba(154,92,214,.35)); }
.legendary .card-bar { background: linear-gradient(90deg, var(--rarity-legendary), rgba(214,168,60,.35)); }
.iconic .card-bar { background: var(--iconic-gradient); }

/* Header */
.card-header {
  padding: 12px 12px 8px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.card-header-left {
  display: flex; flex-direction: column; gap: 6px;
}
.card-header-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
}

/* Overall rating */
.card-overall {
  font: 800 36px/.82 Archivo, sans-serif;
  letter-spacing: -2px;
  color: var(--text-light);
}

/* Position chips */
.card-position {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.card-pos-main {
  font: 800 10px/1 Archivo, sans-serif;
  letter-spacing: .5px; color: #101114;
  padding: 4px 6px; border-radius: 4px;
}
.common .card-pos-main    { background: var(--rarity-common); }
.rare .card-pos-main      { background: var(--rarity-rare); }
.epic .card-pos-main      { background: var(--rarity-epic); }
.legendary .card-pos-main { background: var(--rarity-legendary); }
.iconic .card-pos-main { background: var(--iconic-gradient); color: #101114; }

.card-pos-alt {
  font: 700 10px/1 Archivo, sans-serif;
  letter-spacing: .5px; color: #fff;
  padding: 3px 5px; border-radius: 4px;
}
.common .card-pos-alt    { border: 1px solid rgba(174,178,187,.6); }
.rare .card-pos-alt      { border: 1px solid rgba(63,130,216,.6); }
.epic .card-pos-alt      { border: 1px solid rgba(154,92,214,.6); }
.legendary .card-pos-alt { border: 1px solid rgba(214,168,60,.6); }
.iconic .card-pos-alt { border: 1px solid rgba(255,255,255,.75); }

/* Flag */
.card-flag {
  width: 34px; height: 23px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.22);
}
.card-flag img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Écusson du club, sous le drapeau */
.card-club-badge {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}
.card-club-badge img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

/* Libellé sous le drapeau : club (ou code pays en repli) */
.card-country {
  font: 700 9px/1.15 'Space Mono', monospace;
  letter-spacing: .5px; color: #fff;
  max-width: 62px; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Photo area */
.card-photo {
  flex: none; width: 100%; aspect-ratio: 4/3;
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-portrait {
  position: absolute; inset: 0; z-index: 1;
  background-size: auto 96%; background-position: center 44%; background-repeat: no-repeat;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
}
.card-mask-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 2; pointer-events: none;
  /* Hardcoded #15161a / rgb(21,22,26) must match --bg-card-dark; can't use var() inside rgba() in gradients */
  background: linear-gradient(to top, #15161a 0%, rgba(21,22,26,.92) 18%, rgba(21,22,26,.7) 38%, rgba(21,22,26,.4) 60%, rgba(21,22,26,.15) 80%, rgba(21,22,26,0) 100%);
}

/* Avatar placeholder (fallback when no photo) */
.card-avatar {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.avatar-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-card-2);
  display: flex; align-items: center; justify-content: center;
  font: 800 28px/1 Archivo, sans-serif; color: var(--text-dim);
  overflow: hidden;
}
.avatar-placeholder.avatar-photo {
  width: 100%; height: 100%; border-radius: 0; background: transparent;
}
.avatar-placeholder.avatar-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.avatar-placeholder.avatar-photo span {
  width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card-2); font: 800 28px/1 Archivo, sans-serif; color: var(--text-dim); border-radius: 50%;
}

/* Name block */
.card-name-block {
  flex: none; background: var(--bg-card-dark);
  padding: 14px 12px 10px; margin-top: -1px;
}
.card-name {
  font: 900 18px/.92 Archivo, sans-serif;
  letter-spacing: -.3px; text-transform: uppercase;
  color: var(--text-light);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  text-wrap: balance;
}
.iconic .card-name { text-shadow: 0 1px 6px rgba(0,0,0,.6), 0 0 14px rgba(255,255,255,.45); }
.card-underline { width: 24px; height: 3px; margin-top: 6px; border-radius: 2px; }
.common .card-underline    { background: var(--rarity-common); }
.rare .card-underline      { background: var(--rarity-rare); }
.epic .card-underline      { background: var(--rarity-epic); }
.legendary .card-underline { background: var(--rarity-legendary); }
.iconic .card-underline { background: var(--iconic-gradient); }

/* Stats row */
.card-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
  padding: 4px 8px 10px; background: var(--bg-card-dark); flex: none;
}
.cs {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.cs span {
  font: 800 12px/1 Archivo, sans-serif; color: var(--text-light);
}
.cs small {
  font: 700 7px/1 'Space Mono', monospace;
  letter-spacing: 1px; color: #b9bcc4; text-transform: uppercase;
}

/* Locked stats fallback */
.locked-stats {
  padding: 8px 12px 10px; text-align: center;
  font: 700 12px/1 'Space Mono', monospace;
  color: var(--text-dim); letter-spacing: 2px;
}

/* Rarity badge (hidden by default in new design — accent bar replaces it) */
.card-rarity-badge { display: none; }

/* Nationality text (hidden in new design — replaced by flag) */
.card-nat { display: none; }

/* ── Collection summary ─────────────────────────────────────────────────── */
.collection-summary {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 1.25rem;
}
.rarity-count {
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600;
  border: 1px solid;
  display: flex; gap: .4rem; align-items: center;
}
.rarity-count span { font-size: 1.1rem; font-weight: 800; }
.rarity-count.legendary { border-color: var(--gold); color: var(--gold); background: rgba(249,199,79,.08); }
.rarity-count.iconic {
  border-color: rgba(255,255,255,.6); color: #101114;
  background: var(--iconic-gradient);
}
.rarity-count.iconic span { color: #101114; }
.rarity-count.epic      { border-color: var(--purple); color: var(--purple); background: rgba(155,89,182,.08); }
.rarity-count.rare      { border-color: var(--blue); color: var(--blue); background: rgba(52,152,219,.08); }
.rarity-count.common    { border-color: var(--grey); color: var(--grey); background: rgba(108,117,125,.08); }

/* ── Booster ────────────────────────────────────────────────────────────── */
.booster-wait {
  position: relative; overflow: hidden;
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 3.5rem;
  text-align: left; padding: 3rem 4rem;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
}
.booster-icon { font-size: 4rem; margin-bottom: 1rem; }
.wait-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.booster-wait h2 { font-size: 1.55rem; margin-bottom: .55rem; }
.booster-wait p {
  color: var(--text-muted); font-size: 1.05rem;
  display: flex; align-items: center; gap: .45rem;
}
.wait-inline-flame { width: 18px; height: 18px; color: #ff6b35; }
.countdown { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; color: var(--gold); }

.wait-ring {
  --pct: 0%;
  position: relative; z-index: 1; flex: none;
  width: 168px; height: 168px;
  border-radius: 50%;
  background: conic-gradient(#ff3b1f var(--pct), rgba(255,255,255,.08) 0);
  box-shadow: 0 0 32px rgba(255,59,16,.35);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) {
  .booster-wait { flex-direction: column; text-align: center; padding: 2.5rem 2rem; gap: 1.75rem; }
  .booster-wait p { justify-content: center; }
}
.wait-ring-inner {
  width: 136px; height: 136px; border-radius: 50%;
  background: var(--bg-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
}
.wait-ring-inner i { width: 32px; height: 32px; color: #ff7a3d; }
.wait-countdown { font: 800 1.35rem/1 Archivo, sans-serif; color: #fff; letter-spacing: .3px; }

.wait-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.wait-embers span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #ffb238, #ff3b1f 70%, transparent);
  opacity: 0; animation: waitEmberRise 4s ease-in infinite;
}
.wait-embers span:nth-child(1) { left: 10%; animation-delay: 0s; }
.wait-embers span:nth-child(2) { left: 28%; animation-delay: .8s; }
.wait-embers span:nth-child(3) { left: 50%; animation-delay: 1.6s; }
.wait-embers span:nth-child(4) { left: 70%; animation-delay: .4s; }
.wait-embers span:nth-child(5) { left: 88%; animation-delay: 2.2s; }
@keyframes waitEmberRise {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translateY(-150px) scale(1.1); opacity: 0; }
}

.booster-area { text-align: center; }
.booster-intro { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

.booster-cards {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; margin-top: 1.5rem; margin-bottom: 1.5rem;
}

.booster-card-wrapper { perspective: 1000px; }

.booster-card {
  width: 155px; min-height: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  border-radius: var(--radius);
  transition: transform .6s;
  transform-style: preserve-3d;
}

.card-back {
  width: 155px; min-height: 240px;
  background: linear-gradient(135deg, #1a1d2e, #2d3152);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem;
  transition: transform .15s;
}
.card-back span { font-size: 3rem; }
.card-back small { color: var(--text-muted); font-size: .78rem; }
.card-back:hover { border-color: var(--accent); transform: scale(1.03); }

.booster-card.flip .card-back { display: none; }

/* Particules */
.particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFly linear forwards;
  z-index: 10;
}
@keyframes particleFly {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-80px) scale(0); opacity: 0; }
}

/* ── Club page ──────────────────────────────────────────────────────────── */
.club-container {
  display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem;
}

.club-banner {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center; border-radius: var(--radius) var(--radius) 0 0;
}
.club-logo-big { width: 80px; height: 80px; object-fit: contain; margin-bottom: .75rem; }
.club-logo-placeholder-big { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 2.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }

.club-stats-preview {
  display: flex; justify-content: space-around;
  padding: 1rem;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-val { font-size: 1.5rem; font-weight: 800; }
.stat-lbl { font-size: .75rem; color: var(--text-muted); }

.club-form h3 { margin-bottom: 1rem; }

/* ── Équipe / Terrain ───────────────────────────────────────────────────── */
.team-container {
  /* minmax(0,1fr) : la colonne terrain peut rétrécir sous sa largeur "naturelle",
     ce qui empêche la grille de déborder du conteneur (les 5 boutons de mentalité
     passaient la largeur minimale à ~900px et poussaient la liste hors écran). */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 480px); gap: 1.25rem;
  align-items: stretch;
}
.pitch-wrapper h3, .pitch-wrapper .formation-select { margin-bottom: .75rem; }
.formation-select { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: var(--text-muted); }
.formation-select select {
  padding: .35rem .7rem; font-size: .85rem; font-weight: 700; font-family: 'Outfit', sans-serif;
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer; outline: none;
}
.formation-select select:focus { border-color: var(--accent); }

/* ── Barre d'outils équipe (formation + tactique) ── */
.team-toolbar {
  display: flex; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap;
  padding: .6rem .75rem;
  background: var(--bg-card-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: .55rem;
}
.toolbar-field { display: flex; align-items: center; gap: .45rem; }
.toolbar-label {
  font-size: .62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-muted);
}
.team-toolbar select {
  height: 34px; padding: 0 .7rem; font-size: .85rem; font-weight: 700; font-family: 'Outfit', sans-serif;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer; outline: none;
}
.team-toolbar select:focus { border-color: var(--accent); }

/* Contrôle segmenté tactique */
.tactic-seg {
  display: flex; gap: 0; flex-wrap: nowrap;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: visible; background: var(--bg-card);
}
.team-toolbar .tactic-btn [data-lucide] { display: none; }
.team-toolbar .tactic-btn { white-space: nowrap; }
.tactic-btn {
  position: relative;
  display: flex; align-items: center; gap: .35rem;
  height: 32px; padding: 0 .5rem;
  font-size: .7rem; font-weight: 700; font-family: 'Outfit', sans-serif;
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s;
}
.tactic-btn + .tactic-btn { border-left: 1px solid var(--border); }
.tactic-btn:first-child { border-radius: calc(var(--radius-sm) - 1px) 0 0 calc(var(--radius-sm) - 1px); }
.tactic-btn:last-child { border-radius: 0 calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0; }
.tactic-btn [data-lucide] { width: 15px; height: 15px; flex-shrink: 0; }
.tactic-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.tactic-btn.active {
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-card));
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Tooltip riche au survol */
.tactic-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px);
  width: 215px; padding: .65rem .75rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60; text-align: left; cursor: default;
}
.tactic-tip::before {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px; background: var(--bg-card);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.tactic-btn:hover .tactic-tip, .tactic-btn:focus-visible .tactic-tip {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.tt-head { font-size: .8rem; font-weight: 800; margin-bottom: .25rem; }
.tt-desc { font-size: .7rem; color: var(--text-muted); line-height: 1.45; margin-bottom: .5rem; font-weight: 500; }
.tt-stats { display: flex; flex-direction: column; gap: .25rem; border-top: 1px solid var(--border); padding-top: .5rem; }
.tt-stat { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-muted); font-weight: 600; }
.tt-stat b { font-weight: 800; }
.tt-up   { color: var(--green); }
.tt-down { color: var(--red); }
.tt-n    { color: var(--text-muted); }
.tt-matchups {
  display: flex; flex-direction: column; gap: .2rem;
  border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem;
}
.tt-vs { font-size: .68rem; font-weight: 700; }
.tt-vs-good { color: var(--green); }
.tt-vs-bad  { color: var(--red); }

@media (max-width: 768px) {
  .team-toolbar { gap: .75rem; padding: .5rem .6rem; }
  .tactic-btn { padding: 0 .55rem; }
  .tactic-btn .tactic-name { display: none; }
  .tactic-btn.active .tactic-name { display: inline; }
  .tactic-tip { display: none; }
}

.pitch.no-transition, .pitch.no-transition * { transition: none !important; animation: none !important; }

/* Taille des cartes du terrain calculée depuis la hauteur du viewport :
   5 lignes de terrain + le banc doivent tenir à l'écran sans scroll.
   Petit écran → cartes 72px de haut ; grand écran → 118px max. */
.pitch-wrapper {
  /* Plancher à 92px : en dessous les noms deviennent illisibles — on préfère un
     léger scroll sur les petits écrans à des cartes indéchiffrables. */
  --slot-h: clamp(92px, calc((100vh - 405px) / 5.8), 118px);
  --slot-w: calc(var(--slot-h) * 0.68);
}
.pitch {
  background: #2d6a35;
  background-image:
    linear-gradient(rgba(0,0,0,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.1) 1px, transparent 1px);
  background-size: 60px 60px;
  border-radius: 8px;
  padding: .6rem .5rem;
  display: flex; flex-direction: column-reverse; gap: .5rem;
  min-height: 0; min-width: min(380px, 100%);
  border: 3px solid rgba(255,255,255,.15);
  position: relative;
}

.pitch::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
}

.pitch-row {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: nowrap;
}

.pitch-slot {
  width: var(--slot-w, 74px); height: var(--slot-h, 106px);
  background: rgba(0,0,0,.4);
  border: 2px dashed rgba(255,255,255,.3);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; text-align: center;
  transition: all .18s; position: relative;
  font-size: .75rem;
  padding: .25rem .2rem;
}
.pitch-slot:hover  { border-color: rgba(255,255,255,.6); background: rgba(0,0,0,.6); }
.pitch-slot.filled { border-style: solid; background: transparent; border: none; overflow: visible; }

/* Carte joueur dédiée au terrain — inspirée des cartes de la collection, mais conçue pour le petit format du slot */
.slot-pitch-card-wrap {
  position: absolute; inset: 0;
  pointer-events: none;
}
.pitch-card {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-card-2);
  border: 2px solid rgba(174,178,187,.45);
  box-shadow: 0 6px 10px rgba(0,0,0,.45);
}
.pitch-card.rare      { border-color: var(--rarity-rare); box-shadow: 0 6px 10px rgba(0,0,0,.45), 0 0 12px rgba(63,130,216,.45); }
.pitch-card.epic      { border-color: var(--rarity-epic); box-shadow: 0 6px 10px rgba(0,0,0,.45), 0 0 14px rgba(154,92,214,.5); }
.pitch-card.legendary { border-color: var(--rarity-legendary); box-shadow: 0 6px 10px rgba(0,0,0,.45), 0 0 16px rgba(214,168,60,.55); }
.pitch-card.iconic { border-color: rgba(255,255,255,.75); box-shadow: 0 6px 10px rgba(0,0,0,.45), 0 0 18px rgba(255,255,255,.5); }

.pc-photo {
  position: absolute; top: 0; left: 0; right: 0; height: 64%;
  background-size: auto 112%; background-position: center 6%;
  background-repeat: no-repeat;
}
.pc-avatar {
  position: absolute; top: 0; left: 0; right: 0; height: 64%;
  display: flex; align-items: center; justify-content: center;
  font: 800 22px/1 Archivo, sans-serif; color: var(--text-dim);
}
.pc-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 4px 4px 8px;
  background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}
.pc-overall {
  font: 800 15px/1 Archivo, sans-serif; letter-spacing: -.5px;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.pc-pos {
  font: 800 8px/1 Archivo, sans-serif; letter-spacing: .3px;
  color: #101114; padding: 2px 4px; border-radius: 3px;
  background: var(--rarity-common);
}
.pitch-card.rare .pc-pos      { background: var(--rarity-rare); }
.pitch-card.epic .pc-pos      { background: var(--rarity-epic); }
.pitch-card.legendary .pc-pos { background: var(--rarity-legendary); }
.pitch-card.iconic .pc-pos { background: var(--iconic-gradient); color: #101114; }

.pc-name-plate {
  position: absolute; left: 0; right: 0; bottom: 0; top: 64%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 0 3px;
  background: var(--bg-card-dark);
  border-top: 2px solid rgba(174,178,187,.4);
  text-align: center;
}
.pitch-card.rare .pc-name-plate      { border-top-color: var(--rarity-rare); }
.pitch-card.epic .pc-name-plate      { border-top-color: var(--rarity-epic); }
.pitch-card.legendary .pc-name-plate { border-top-color: var(--rarity-legendary); }
.pitch-card.iconic .pc-name-plate { border-top-color: #fff; }
.pc-name {
  font: 800 9px/1.1 Archivo, sans-serif; letter-spacing: -.1px; text-transform: uppercase;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
/* Nation + club sous le nom, en icônes discrètes */
.pc-meta { display: flex; align-items: center; justify-content: center; gap: 3px; line-height: 1; }
/* Tooltip stylisé nation / club (equipe.php) */
.nat-tip {
  position: fixed; z-index: 3000; pointer-events: none;
  display: flex; align-items: center; gap: .45rem;
  background: #1e1e24; border: 1px solid rgba(255,255,255,.15); border-radius: .5rem;
  padding: .35rem .65rem; font-size: .78rem; font-weight: 600; color: #fff;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
}
.nat-tip.visible { opacity: 1; transform: none; }
.nat-tip-item  { display: inline-flex; align-items: center; gap: .35rem; }
.nat-tip-flag  { width: 16px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 3px rgba(0,0,0,.5); }
.nat-tip-crest { width: 15px; height: 15px; object-fit: contain; }
.nat-tip-sep   { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.35); }
/* Tooltip stylisé des badges de prestige (global, voir js/main.js) */
.badge-tip {
  position: fixed; z-index: 3000; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #1e1e24; border: 1px solid rgba(255,255,255,.15); border-radius: .5rem;
  padding: .4rem .7rem; text-align: center;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
}
.badge-tip.visible { opacity: 1; transform: none; }
.badge-tip-label { font-size: .78rem; font-weight: 800; }
.badge-tip-desc  { font-size: .7rem; color: rgba(255,255,255,.65); }
.pc-flag  { width: 12px; height: 9px; object-fit: cover; border-radius: 1px; box-shadow: 0 0 2px rgba(0,0,0,.6); }
.pc-crest { width: 11px; height: 11px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0,0,0,.5)); }

/* Badge bonus synergie coin bas-droite de la carte */
.slot-syn-popup {
  position: absolute; bottom: calc(var(--slot-h, 106px) * .33); right: 2px;
  font: 800 9px/1 Archivo, sans-serif;
  padding: 2px 4px; border-radius: 20px;
  pointer-events: none; white-space: nowrap;
  z-index: 10;
  border: 1.5px solid rgba(0,0,0,.55);
}
.slot-syn-popup.slot-syn-gold   { background: #ffd700; color: #1a1500; box-shadow: 0 0 6px rgba(255,215,0,.7); }
.slot-syn-popup.slot-syn-silver { background: #c0c0c0; color: #111; box-shadow: 0 0 6px rgba(192,192,192,.6); }
.slot-syn-popup.slot-syn-bronze { background: #cd7f32; color: #fff; box-shadow: 0 0 6px rgba(205,127,50,.6); }
.pitch-slot.pos-mismatch { border-color: var(--red) !important; box-shadow: 0 0 8px rgba(231,76,60,.4) !important; }
.slot-syn {
  font-size: .45rem; font-weight: 800;
  margin-left: 1px;
}
.slot-syn-gold { color: #ffd700; }
.slot-syn-silver { color: #c0c0c0; }
.slot-syn-bronze { color: #cd7f32; }

/* Contours rareté sur le terrain */
.pitch-slot.filled.legendary { box-shadow: none; }
.pitch-slot.filled.iconic { box-shadow: none; }
.pitch-slot.filled.epic      { box-shadow: none; }
.pitch-slot.filled.rare      { box-shadow: none; }
.pitch-slot.filled.common    { box-shadow: none; }

/* Photo dans le slot */
.slot-photo-wrap {
  width: 34px; height: 34px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .15rem;
  border: 2px solid rgba(255,255,255,.2);
}
.pitch-slot.filled.legendary .slot-photo-wrap { border-color: rgba(249,199,79,.6); }
.pitch-slot.filled.iconic .slot-photo-wrap { border-color: rgba(255,255,255,.75); box-shadow: 0 0 10px rgba(255,255,255,.5); }
.pitch-slot.filled.epic      .slot-photo-wrap { border-color: rgba(155,89,182,.6); }
.pitch-slot.filled.rare      .slot-photo-wrap { border-color: rgba(52,152,219,.5); }

.slot-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.slot-photo-init { font-size: .95rem; font-weight: 800; color: rgba(255,255,255,.7); }

.slot-label { color: rgba(255,255,255,.5); font-size: .7rem; font-weight: 700; }
.slot-ovr  { font-size: .68rem; font-weight: 800; color: var(--gold); line-height: 1; }
.slot-name { font-size: var(--text-xs); font-weight: 700; color: #fff; line-height: 1.1; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-pos  { font-size: var(--text-xs); color: rgba(255,255,255,.55); }
.slot-pos-badge {
  font-size: .5rem; font-weight: 800; letter-spacing: .03em;
  color: #fff; background: rgba(0,0,0,.55);
  padding: 1px 4px; border-radius: 3px; line-height: 1.4;
}
.slot-warn {
  position: absolute; top: -5px; left: -5px; z-index: 4;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.85);
  box-shadow: 0 0 8px rgba(231,76,60,.7);
}
.slot-warn [data-lucide], .slot-warn svg { width: 10px; height: 10px; }

.save-status { font-size: .88rem; color: var(--green); min-height: 1.2rem; }

.team-overall { font-size: .9rem; color: var(--text-muted); }
.team-overall strong { color: var(--gold); font: 900 1.5rem/1 Archivo, sans-serif; }
.slots-filled { font-size: .8rem; }

/* Player list panel */
.player-list-panel h3 { margin-bottom: .5rem; font-size: .95rem; }
.plist-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.plist-header h3 { margin-bottom: 0; }
.view-toggle { display: flex; gap: .2rem; margin-bottom: .5rem; }
.view-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); cursor: pointer; transition: all .12s;
}
.view-toggle-btn:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.view-toggle-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.view-toggle-btn .lucide-icon { width: 14px; height: 14px; }

.player-table-wrap { max-height: calc(100vh - 200px); overflow: auto; }
.player-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.player-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-card-2); color: var(--text-muted);
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: .35rem .3rem; text-align: center; border-bottom: 1px solid var(--border);
}
/* Masquage par les filtres : posé en classe car les lignes du tableau forcent
   « display: table-row !important », qui écraserait un style inline. */
.player-grid-item.pgi-hidden,
.player-table tbody tr.player-grid-item.pgi-hidden { display: none !important; }

.player-table tbody tr.player-grid-item {
  display: table-row !important;
  cursor: grab; transition: background .12s;
  padding: 0; border: none; border-bottom: 1px solid var(--border);
  background: transparent; position: static; text-align: left; overflow: visible;
}
.player-table tbody tr.player-grid-item:hover { background: var(--bg-card-2); }
.player-table tbody tr.common    { border-left: 3px solid var(--grey); }
.player-table tbody tr.rare      { border-left: 3px solid var(--blue); }
.player-table tbody tr.epic      { border-left: 3px solid var(--purple); }
.player-table tbody tr.legendary { border-left: 3px solid var(--gold); }
.player-table tbody tr.iconic { border-left: 3px solid transparent; border-image: var(--iconic-gradient) 1; }
.player-table td { padding: .3rem; text-align: center; white-space: nowrap; }
.player-table td.pt-ovr { font-weight: 900; }
.player-table td.pt-name { text-align: left; font-weight: 700; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.player-table td.pt-pos { color: var(--text-muted); font-weight: 700; }
.player-table td.pt-nat { color: var(--text-muted); text-transform: uppercase; font-size: .62rem; }
.player-table td.pgi-onpitch { position: static; display: table-cell !important; width: 18px; }
.player-table .pgi-check-icon { display: none; width: 13px; height: 13px; color: var(--green); }
.player-table tr.on-pitch .pgi-check-icon { display: inline-block; }
.player-table tr.on-pitch { opacity: .45; background: rgba(39,174,96,.08); }
.player-table tr.dragging { opacity: .35; }
.player-table tr.pgi-selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.plist-search {
  width: 100%; padding: .35rem .6rem; margin-bottom: .5rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: .78rem; outline: none;
}
.plist-search:focus { border-color: var(--accent); }
.plist-search::placeholder { color: var(--text-muted); }
.player-list-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .35rem; margin-bottom: .6rem; align-items: center; }
.player-list-filters .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.plist-nat-select {
  padding: .2rem .4rem; font-size: .7rem; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); outline: none; width: 100%; min-width: 0;
}
.plist-nat-select:focus { border-color: var(--accent); }

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  grid-auto-rows: 82px;
  gap: .35rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.player-grid::-webkit-scrollbar { width: 4px; }
.player-grid::-webkit-scrollbar-track { background: var(--bg); }
.player-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.player-grid-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: .35rem .2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  cursor: grab; user-select: none; transition: all .12s;
  position: relative; text-align: center; overflow: hidden;
}
.player-grid-item:hover { background: var(--bg-card-2); border-color: rgba(255,255,255,.15); }
.player-grid-item.common    { border-bottom: 2px solid var(--grey); }
.player-grid-item.rare      { border-bottom: 2px solid var(--blue); }
.player-grid-item.epic      { border-bottom: 2px solid var(--purple); }
.player-grid-item.legendary { border-bottom: 2px solid var(--gold); }
.player-grid-item.iconic { border-bottom: 2px solid #fff; }

.pgi-ovr  { font-size: .85rem; font-weight: 900; line-height: 1; }
.pgi-pos  { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.pgi-pos-main { font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); }
.pgi-pos-alt  { font-size: var(--text-xs); font-weight: 700; color: rgba(255,255,255,.28); }
.pgi-name { font-size: .6rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Bloc joueur : drapeau du pays + écusson du club, pour une lecture immédiate */
.pgi-nat  { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 11px; }
.pgi-nat-txt { font-size: .5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.pgi-flag  { width: 13px; height: 9px; object-fit: cover; border-radius: 1px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.pgi-crest { width: 12px; height: 12px; object-fit: contain; flex-shrink: 0; }
.pt-nat    { white-space: nowrap; }
.pt-nat .pgi-flag, .pt-nat .pgi-crest { display: inline-block; vertical-align: middle; margin-right: 2px; }
.pgi-onpitch {
  display: none; position: absolute; top: 2px; right: 3px;
  color: var(--green); font-size: .6rem; font-weight: 800;
}

/* ── Classement ─────────────────────────────────────────────────────────── */
.table-wrapper { padding: 0; overflow-x: auto; }

/* ── Match page ─────────────────────────────────────────────────────────── */
.match-container { display: flex; flex-direction: column; gap: 1rem; max-width: 700px; margin: 0 auto; }

.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem; text-align: center;
  padding: 1.5rem;
}
.team-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.team-pseudo { font-size: .8rem; color: var(--text-muted); }

.score-display {
  display: flex; align-items: center; gap: .75rem;
  font-size: 2.5rem; font-weight: 800;
}
.score-sep { color: var(--text-muted); font-size: 2rem; }

.match-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 1rem;
  background: var(--bg-card-2); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text-muted);
}

.match-feed {
  padding: .75rem;
  max-height: 500px; overflow-y: auto;
  display: flex; flex-direction: column; gap: .4rem;
}

.match-event {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: var(--bg-card-2);
  border-left: 3px solid transparent;
  transition: background .2s;
}
.match-event.ev-home { border-left-color: var(--home-color, var(--accent)); }
.match-event.ev-away { border-left-color: var(--away-color, var(--red)); }
.match-event.ev-new  { background: rgba(79,142,247,.15); }

.ev-minute { font-size: .75rem; font-weight: 700; color: var(--text-muted); width: 28px; flex-shrink: 0; }
.ev-icon   { font-size: 1rem; flex-shrink: 0; }
.ev-desc   { flex: 1; }
.ev-score  { font-weight: 700; font-size: .88rem; color: var(--gold); flex-shrink: 0; }
.feed-empty { color: var(--text-muted); font-size: .88rem; text-align: center; padding: 2rem; }

/* ── Historique ─────────────────────────────────────────────────────────── */
.match-history { display: flex; flex-direction: column; gap: .75rem; }

.history-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1rem;
  flex-wrap: wrap;
}

.result-badge {
  width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.result-win  { background: rgba(39,174,96,.2); color: var(--green); border: 2px solid var(--green); }
.result-draw { background: rgba(108,117,125,.2); color: var(--grey); border: 2px solid var(--grey); }
.result-loss { background: rgba(231,76,60,.2); color: var(--red); border: 2px solid var(--red); }
.result-live { background: rgba(231,76,60,.1); color: var(--red); border: 2px solid var(--red); }

.history-opp { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 160px; }
.opp-color { width: 10px; height: 36px; border-radius: 3px; flex-shrink: 0; }
.opp-club   { font-weight: 700; font-size: .9rem; }
.opp-pseudo { font-size: .75rem; color: var(--text-muted); }

.history-score {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.2rem; font-weight: 800;
}
.history-date { font-size: .8rem; color: var(--text-muted); }

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state a { color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center; padding: 1.5rem;
  font-size: .8rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* ── Nav badge ───────────────────────────────────────────────────────────── */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  background: var(--red); color: #fff;
  border-radius: 9px; font-size: .65rem; font-weight: 800;
  padding: 0 .3rem;
  vertical-align: middle; margin-left: .2rem;
}
.nav-bell { position: relative; display: flex; align-items: center; }
.nav-bell [data-lucide] { width: 20px; height: 20px; }
.nav-notif-badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px; background: var(--red); color: #fff;
  border-radius: 8px; font-size: .6rem; font-weight: 800; padding: 0 .25rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Notifications page ─────────────────────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; gap: .5rem; }
.notif-item {
  display: flex; align-items: center; gap: .85rem;
  background: var(--card); border: 1px solid var(--border); border-radius: .8rem;
  padding: .85rem 1rem; transition: background .15s;
}
.notif-item.notif-unread { border-color: rgba(99,102,241,.35); background: rgba(99,102,241,.06); }
.notif-item.notif-reward { border-color: rgba(250,204,21,.3); background: rgba(250,204,21,.05); }
.notif-icon-wrap { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon-wrap [data-lucide] { width: 18px; height: 18px; color: var(--text-muted); }
.notif-icon-reward { background: rgba(250,204,21,.15); }
.notif-icon-reward [data-lucide] { color: #facc15; }
.notif-icon-like { background: rgba(244,63,94,.15); }
.notif-icon-like [data-lucide] { color: #f43f5e; }
.notif-icon-repost { background: rgba(34,197,94,.15); }
.notif-icon-repost [data-lucide] { color: #22c55e; }
.notif-body { flex: 1; min-width: 0; }
.notif-msg { font-size: .88rem; font-weight: 600; color: var(--text); }
.notif-reward-detail { font-size: .78rem; color: #facc15; margin-top: .2rem; display: flex; align-items: center; gap: .3rem; }
.notif-reward-detail [data-lucide] { width: 13px; height: 13px; }
.notif-time { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }
.notif-claimed { font-size: .78rem; color: var(--text-muted); font-style: italic; flex-shrink: 0; }

/* Admin notif form (ANF) */
#notifForm { display: flex; flex-direction: column; gap: 1.25rem; }
.anf-block { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: .85rem; padding: 1.1rem 1.25rem; }
.anf-block-title { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .85rem; }
.anf-block-title [data-lucide] { width: 15px; height: 15px; }
.anf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .72rem; color: var(--text-muted); opacity: .7; }
.anf-target-tabs { display: flex; gap: .4rem; margin-bottom: .85rem; flex-wrap: wrap; }
.anf-target-tab { display: flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: .5rem; border: 1px solid var(--border); background: none; color: var(--text-muted); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.anf-target-tab [data-lucide] { width: 14px; height: 14px; }
.anf-target-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.anf-target-tab:hover:not(.active) { background: rgba(255,255,255,.07); color: var(--text); }
.anf-player-grid { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .65rem; }
.anf-player-chip { display: flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 2rem; border: 1px solid var(--border); background: rgba(255,255,255,.04); cursor: pointer; font-size: .8rem; transition: all .15s; user-select: none; }
.anf-player-chip input { display: none; }
.anf-player-chip:hover { border-color: var(--accent); }
.anf-player-chip.selected { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.6); color: #a5b4fc; }
.anf-chip-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 2px; }
.anf-chip-league { font-size: .65rem; color: var(--text-muted); background: rgba(255,255,255,.08); padding: 0 .3rem; border-radius: .25rem; }
.anf-select-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.anf-count { font-size: .78rem; color: var(--accent); font-weight: 700; margin-left: auto; }
.anf-textarea { resize: vertical; min-height: 90px; width: 100%; }
.anf-rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .65rem; }
.anf-reward-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .75rem; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: .75rem; cursor: pointer; transition: all .15s; text-align: center; }
.anf-reward-card:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.anf-reward-icon [data-lucide] { width: 26px; height: 26px; }
.anf-reward-label { font-size: .78rem; font-weight: 600; color: var(--text); }
.anf-reward-input { width: 70px; text-align: center; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: .4rem; color: var(--text); padding: .3rem .4rem; font-size: .9rem; font-weight: 700; }
.anf-reward-toggle { flex-direction: row; justify-content: space-between; align-items: center; }
.anf-reward-toggle .anf-reward-label { text-align: left; }
.anf-reward-check { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.anf-submit { align-self: flex-start; }
.anf-history { display: flex; flex-direction: column; gap: .6rem; margin-top: .75rem; }
.anf-hist-item { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: .7rem; padding: .8rem 1rem; }
.anf-hist-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .4rem; flex-wrap: wrap; }
.anf-hist-msg { font-size: .85rem; font-weight: 600; }
.anf-hist-meta { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.anf-hist-rewards { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .4rem; }
.anf-hist-tag { display: flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: .35rem; }
.anf-hist-tag [data-lucide] { width: 11px; height: 11px; }
.anf-hist-tag.coins  { background: rgba(250,204,21,.15); color: #facc15; }
.anf-hist-tag.boost  { background: rgba(96,165,250,.15); color: #60a5fa; }
.anf-hist-tag.epic   { background: rgba(167,139,250,.15); color: #a78bfa; }
.anf-hist-tag.unlock { background: rgba(52,211,153,.15); color: #34d399; }
.anf-hist-players { display: flex; flex-wrap: wrap; gap: .3rem; }
.anf-hist-player { font-size: .72rem; padding: .15rem .45rem; border-radius: .3rem; background: rgba(255,255,255,.06); color: var(--text-muted); }
.anf-hist-player.seen { color: var(--text); background: rgba(255,255,255,.1); }
.anf-hist-batch-id { font-size: .7rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.anf-hist-table { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; }
.anf-hist-row { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: .45rem; background: rgba(255,255,255,.03); }
.anf-hist-who { display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0; font-size: .82rem; font-weight: 600; }
.anf-hist-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.anf-hist-row-rewards { display: flex; gap: .3rem; flex-shrink: 0; }
.anf-hist-row-status { display: flex; gap: .3rem; font-size: .8rem; flex-shrink: 0; min-width: 40px; justify-content: flex-end; }
.anf-status-seen { color: #4ade80; }
.anf-status-unseen { color: var(--text-muted); }
.anf-status-claimed { }
.anf-status-unclaimed { opacity: .5; }
.anf-hist-single { margin-top: .5rem; }
.anf-hist-msg-text { font-size: .82rem; color: var(--text-muted); margin-top: .25rem; line-height: 1.4; }

/* ── Pokédex ─────────────────────────────────────────────────────────────── */
.mode-tabs {
  display: flex; gap: .4rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .mode-tabs .btn { font-size: .72rem; padding: .3rem .5rem; flex: 1; justify-content: center; }
}

.pokedex-progress { margin-bottom: 1rem; }
.cards-grid-pokedex {
  gap: 6px !important;
  zoom: 0.45;
}
@media (max-width: 768px) {
  .cards-grid-pokedex { zoom: 0.38; }
}
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.progress-bar { height: 8px; background: var(--bg-card-2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; transition: width .4s ease; }

.player-card.locked {
  filter: grayscale(1) brightness(.22);
  animation: none !important;
  box-shadow: none !important;
  border-color: var(--border) !important;
  cursor: default;
}
.player-card.locked:hover { transform: none; }
.locked-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  filter: brightness(5);
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
}
.locked-avatar { background: rgba(255,255,255,.05) !important; color: rgba(255,255,255,.3) !important; }
.player-card.locked .locked-stats { font-size: .78rem; color: rgba(255,255,255,.3); text-align: center; padding: .25rem 0; }

/* ── Drag & Drop Équipe ─────────────────────────────────────────────────── */
.player-grid-item:active { cursor: grabbing; }
.player-grid-item.dragging { opacity: .35; transform: scale(.93); }

.player-grid-item.on-pitch {
  opacity: .4;
  background: rgba(39,174,96,.08) !important;
  border-color: var(--green) !important;
}
.player-grid-item.on-pitch .pgi-onpitch { display: block; }

.pitch-slot.filled { cursor: grab; }
.pitch-slot.filled:active { cursor: grabbing; }
.pitch-slot.dragging { opacity: .45; cursor: grabbing; }

.pitch-slot.drag-over {
  border-color: var(--gold) !important;
  border-style: solid !important;
  background: rgba(249,199,79,.15) !important;
  transform: scale(1.06);
  transition: transform .1s;
}

.pitch-slot.slot-highlight {
  border-color: var(--green) !important;
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 10px;
  background: rgba(39,174,96,.2) !important;
  box-shadow: 0 0 12px rgba(39,174,96,.4);
  animation: slotPulse 1s ease-in-out infinite;
}
/* Cases déjà occupées : voile vert PAR-DESSUS la carte du joueur pour bien voir la cible */
.pitch-slot.filled.slot-highlight::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 10px;
  background: rgba(39,174,96,.4);
  border: 2px solid var(--green);
  box-shadow: inset 0 0 14px rgba(39,174,96,.55);
  z-index: 5;
  pointer-events: none;
}
@keyframes slotPulse { 0%,100%{box-shadow:0 0 8px rgba(39,174,96,.3)} 50%{box-shadow:0 0 16px rgba(39,174,96,.6)} }

/* Mobile tap-to-assign selection */
.pgi-selected { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Mobile tap hint */
.tap-hint { display: none; text-align: center; font-size: .75rem; color: var(--text-muted); padding: .4rem; }
@media (max-width: 768px) { .tap-hint { display: block; } }

/* Empty state player list */
.player-grid-empty { text-align: center; padding: 1.5rem .75rem; color: var(--text-muted); font-size: .85rem; font-style: italic; grid-column: 1 / -1; }

.slot-remove {
  position: absolute; top: 3px; right: 3px;
  width: 17px; height: 17px;
  border: none; border-radius: 50%;
  background: rgba(231,76,60,.85);
  color: #fff;
  font-size: .7rem; font-weight: 900;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  line-height: 1; padding: 0;
  z-index: 5;
}
.slot-remove:hover { background: var(--red); }
.pitch-slot.filled:hover .slot-remove { display: flex; }

.pitch-actions { display: flex; align-items: center; gap: 1rem; margin-top: .55rem; }

/* ── Communauté ─────────────────────────────────────────────────────────── */
/* ── Communauté sidebar layout ─────────────────────────────────────────── */
.comm-layout {
  min-height: 60vh;
  margin-left: -1rem;
}
.comm-sidebar {
  display: flex; flex-direction: column; gap: 2px;
  align-items: center; justify-content: center;
  width: 64px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: .5rem .4rem;
  position: fixed; top: 0; left: 0;
  height: 100vh; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  padding-top: 60px;
  z-index: 10;
  animation: none;
}
.comm-sidebar::-webkit-scrollbar { display: none; }
.comm-content { animation: none; }
.comm-content { margin-left: 64px; padding-left: 1rem; min-height: calc(100vh - 56px); }
.comm-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; height: 54px;
  padding: .3rem;
  background: none; border: none;
  color: var(--text-muted); font-family: 'Outfit', sans-serif;
  font-size: .55rem; font-weight: 600; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .15s; position: relative;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  text-decoration: none; text-align: center;
}
.comm-tab [data-lucide] { width: 20px; height: 20px; flex-shrink: 0; }
.comm-tab span { pointer-events: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-tab:hover { background: var(--bg-card-2); color: var(--text); }
.comm-tab.active { background: var(--accent); color: #fff; }
.comm-tab.active [data-lucide] { color: #fff; }
.comm-sep { width: 100%; height: 1px; background: var(--border); margin: .2rem 0; flex-shrink: 0; }
@media (max-width: 768px) {
  .comm-layout { flex-direction: column; margin-left: 0; gap: 0; }
  .comm-sidebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%; height: auto;
    position: sticky; top: 0; z-index: 10;
    background: var(--bg-card);
    border-right: none; border-bottom: 1px solid var(--border);
    padding: 6px; gap: 4px;
    justify-items: center;
    overflow-y: visible;
  }
  .comm-sep { display: none; }
  .comm-tab {
    flex-direction: column; gap: 2px;
    width: 100%; height: auto;
    padding: .5rem .25rem;
    font-size: .55rem;
    border-radius: 10px;
  }
  .comm-tab [data-lucide] { width: 20px; height: 20px; }
  .comm-tab.active { border-radius: 10px; }
  .comm-content { margin-left: 0; padding-left: 0; }
}
.notif-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  background: var(--red); color: #fff;
  border-radius: 9px; font-size: .65rem; font-weight: 800;
  padding: 0 .3rem; margin-left: .3rem;
}

.comm-panel { display: none; }
.comm-panel.active { display: block; animation: fadeTab .25s ease; }

/* ── Adversaires IA (amicaux) ─────────────────────────────────────────── */
.ai-opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.ai-opp-card {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .7rem; border-radius: 10px;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.ai-opp-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.ai-opp-logo-fb { border-radius: 50%; }
.ai-opp-info { flex: 1; min-width: 0; }
.ai-opp-club { font: 800 .85rem/1.15 Archivo, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-opp-tag { display: flex; align-items: center; gap: .25rem; font-size: .68rem; color: var(--gold); font-weight: 700; margin-top: .15rem; }
.ai-opp-tag [data-lucide] { width: 12px; height: 12px; }
.ai-opp-btn { flex-shrink: 0; }

/* ── Messages Privés (DM) ─────────────────────────────────────────────── */
#tab-dm.active { display: block; }
#tab-chat.active { display: flex; }
.dm-container { display: flex; height: calc(100vh - 160px); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
.dm-sidebar { width: 280px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.dm-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.dm-sidebar-header h3 { font: 800 1rem/1 Archivo, sans-serif; text-transform: uppercase; }
.dm-conv-list { flex: 1; overflow-y: auto; }
.dm-conv-item { display: flex; align-items: center; gap: .6rem; padding: .65rem .75rem; cursor: pointer; transition: background .15s; }
.dm-conv-item:hover { background: var(--bg-card-2); }
.dm-conv-active { background: var(--bg-card-2) !important; }
.dm-conv-info { flex: 1; min-width: 0; }
.dm-conv-name { font-size: .85rem; font-weight: 700; }
.dm-conv-preview { font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-conv-unread { min-width: 20px; height: 20px; background: var(--accent); color: #fff; border-radius: 10px; font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; flex-shrink: 0; }
.dm-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

.dm-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dm-av-fb { display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 800; color: #fff; }

.dm-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dm-chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--text-muted); font-size: .9rem; }
.dm-chat-header { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dm-chat-name { font-size: .9rem; font-weight: 700; }
.dm-chat-club { font-size: .7rem; color: var(--text-muted); }

.dm-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.dm-msg { display: flex; flex-direction: column; max-width: 75%; }
.dm-msg-me { align-self: flex-end; align-items: flex-end; }
.dm-msg-other { align-self: flex-start; align-items: flex-start; }
.dm-msg-bubble { padding: .5rem .75rem; border-radius: 16px; font-size: .85rem; line-height: 1.4; word-break: break-word; }
.dm-msg-me .dm-msg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.dm-msg-other .dm-msg-bubble { background: var(--bg-card-2); color: var(--text); border-bottom-left-radius: 4px; }
.dm-msg-time { font-size: .6rem; color: var(--text-dim); margin-top: 2px; }

.dm-input-wrap { display: flex; gap: .5rem; padding: .6rem .75rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.dm-input { flex: 1; padding: .5rem .75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; color: var(--text); font-family: 'Outfit', sans-serif; font-size: .85rem; outline: none; }
.dm-input:focus { border-color: var(--accent); }

/* DM New message modal */
.dm-new-modal { display: none; position: fixed; inset: 0; z-index: 1002; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.dm-new-modal.open { display: flex; animation: fadeIn .15s ease; }
.dm-new-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; width: min(400px, 92vw); max-height: 70vh; display: flex; flex-direction: column; animation: fadeInUp .25s ease; }
.dm-new-title { font: 800 1rem/1 Archivo, sans-serif; text-transform: uppercase; padding: 1rem; border-bottom: 1px solid var(--border); }
.dm-new-search { padding: .6rem 1rem; background: var(--bg); border: none; border-bottom: 1px solid var(--border); color: var(--text); font-family: 'Outfit', sans-serif; font-size: .85rem; outline: none; }
.dm-new-list { overflow-y: auto; flex: 1; }
.dm-new-user { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; cursor: pointer; transition: background .15s; }
.dm-new-user:hover { background: var(--bg-card-2); }
.dm-new-pseudo { font-size: .85rem; font-weight: 700; }
.dm-new-club { font-size: .7rem; color: var(--text-muted); }

/* ── Friend Ranking ────────────────────────────────────────────────────── */
.rank-sort-bar {
  display: flex; gap: 4px; margin-bottom: .75rem; flex-wrap: wrap;
}
.rank-sort-btn {
  padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 20px;
  background: none; color: var(--text-muted); font-family: 'Outfit', sans-serif;
  font-size: .72rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.rank-sort-btn:hover { border-color: var(--text-muted); color: var(--text); }
.rank-sort-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .75rem; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: background .15s;
}
.rank-row:hover { background: var(--bg-card-2); }
.rank-me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-card)); }
.rank-pos { font: 800 1rem/1 Archivo, sans-serif; min-width: 24px; text-align: center; color: var(--text-muted); }
.rank-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rank-av-fb { display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: #fff; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: .85rem; font-weight: 700; }
.rank-club { font-size: .7rem; color: var(--text-muted); }
.rank-stats { text-align: right; flex-shrink: 0; }
.rank-val { display: block; font: 800 1.1rem/1 Archivo, sans-serif; }
.rank-detail { font-size: .6rem; color: var(--text-muted); letter-spacing: .5px; }

/* ── Ideas / Boîte à idées ────────────────────────────────────────────── */
.idea-card {
  display: flex !important; gap: .75rem;
  padding: .75rem !important; margin-bottom: .5rem;
}
.idea-votes-col {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  flex-shrink: 0; min-width: 36px;
}
.idea-vote-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); padding: 2px;
  transition: color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.idea-vote-btn:hover { color: var(--text); }
.idea-vote-btn:active { transform: scale(1.2); }
.idea-vote-btn [data-lucide] { width: 22px; height: 22px; pointer-events: none; }
.idea-up.idea-voted { color: var(--green); }
.idea-down.idea-voted-down { color: var(--red); }
.idea-score {
  font: 800 1rem/1 Archivo, sans-serif;
  color: var(--text);
}
.idea-body { flex: 1; min-width: 0; }
.idea-header {
  display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem;
}
.idea-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.idea-av-fb { display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; color: #fff; }
.idea-pseudo { font-size: .78rem; font-weight: 700; }
.idea-del {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--text-dim); transition: color .15s;
}
.idea-del:hover { color: var(--red); }
.idea-del [data-lucide] { width: 14px; height: 14px; pointer-events: none; }
.idea-content { font-size: .88rem; line-height: 1.4; word-break: break-word; }

/* ── Market Grid ──────────────────────────────────────────────────────── */
.market-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem;
}
.market-item { padding: .75rem !important; }

@media (max-width: 768px) {
  .dm-container { flex-direction: column; height: calc(100vh - 220px); }
  .dm-sidebar { width: 100%; max-height: 40%; border-right: none; border-bottom: 1px solid var(--border); }
  #tab-chat { height: calc(100vh - 220px); }
  .market-grid { grid-template-columns: 1fr; }
}
@keyframes fadeTab { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title { font-size: .88rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin: 1rem 0 .5rem; }

.friends-list, #searchResults, #tradesList { display: flex; flex-direction: column; gap: .6rem; }

.search-bar { margin-bottom: 1rem; }
.search-bar input { width: 100%; padding: .65rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: 'Outfit', sans-serif; font-size: .95rem; }
.search-bar input:focus { outline: none; border-color: var(--accent); }

.friend-row {
  display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem;
  flex-wrap: wrap;
}
.friend-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff;
}
.friend-info { flex: 1; min-width: 0; }
.friend-pseudo { font-weight: 700; font-size: .95rem; }
.friend-club   { font-size: .78rem; color: var(--text-muted); }
.friend-stats  { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.tag-pending { font-size: .78rem; color: var(--text-muted); font-style: italic; }
.tag-friend  { font-size: .78rem; color: var(--green); font-weight: 700; }
.btn-remove  { opacity: .5; } .btn-remove:hover { opacity: 1; color: var(--red); }

.loading-msg { color: var(--text-muted); padding: 1.5rem; text-align: center; font-size: .9rem; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 780px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.1rem; }
.modal-close {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--bg-card-2); color: var(--text);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { overflow-y: auto; padding: 1rem 1.25rem; flex: 1; }
.modal-intro { font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; }
.modal-cards-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.modal-card { cursor: pointer; }
.modal-card:hover { border-color: var(--gold) !important; }
.exchange-hint {
  margin-top: .3rem; font-size: .68rem; font-weight: 700;
  color: var(--gold); text-align: center;
}

/* Offer list */
.offer-filters { display: flex; gap: .35rem; margin-bottom: .75rem; flex-wrap: wrap; }
.offer-filters .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.offer-cards-list { display: flex; flex-direction: column; gap: .4rem; max-height: 360px; overflow-y: auto; }
.offer-card-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; transition: all .12s;
}
.offer-card-row:hover { background: var(--bg-card-2); border-color: var(--accent); }
.offer-card-row.legendary { border-left: 3px solid var(--gold); }
.offer-card-row.iconic { border-left: 3px solid transparent; border-image: var(--iconic-gradient) 1; }
.offer-card-row.epic      { border-left: 3px solid var(--purple); }
.offer-card-row.rare      { border-left: 3px solid var(--blue); }
.offer-card-row.common    { border-left: 3px solid var(--grey); }
.ocr-rarity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ocr-rarity-dot.legendary { background: var(--gold); }
.ocr-rarity-dot.iconic { background: var(--iconic-gradient); }
.ocr-rarity-dot.epic      { background: var(--purple); }
.ocr-rarity-dot.rare      { background: var(--blue); }
.ocr-rarity-dot.common    { background: var(--grey); }
.ocr-photo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-card-2); display: flex; align-items: center; justify-content: center; }
.ocr-photo img { width: 100%; height: 100%; object-fit: cover; }
.ocr-initials { font-size: .9rem; font-weight: 800; color: var(--text-muted); }
.ocr-info { flex: 1; min-width: 0; }
.ocr-name   { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocr-detail { font-size: .7rem; color: var(--text-muted); }
.ocr-ovr    { font-size: .88rem; font-weight: 800; color: var(--gold); }
.offer-context { font-size: .88rem; margin-bottom: .75rem; }

/* Trades */
.trade-row { padding: 1rem; }
.trade-sent { opacity: .85; }
.trade-from { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.trade-cards { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.trade-side { text-align: center; }
.trade-side-label { font-size: .72rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: .35rem; }
.trade-arrow { font-size: 1.5rem; color: var(--text-muted); }
.trade-card-mini {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: .6rem .5rem;
  border-radius: 8px; border: 2px solid var(--border);
  background: var(--bg-card-2);
  min-width: 90px;
}
.trade-card-mini.legendary { border-color: var(--gold); }
.trade-card-mini.iconic { border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,.5); }
.trade-card-mini.epic      { border-color: var(--purple); }
.trade-card-mini.rare      { border-color: var(--blue); }
.tcm-photo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; margin-bottom: .3rem; }
.tcm-photo img { width: 100%; height: 100%; object-fit: cover; }
.tcm-init  { font-size: 1rem; font-weight: 800; color: var(--text-muted); }
.tcm-ovr   { font-size: .75rem; font-weight: 800; color: var(--gold); }
.tcm-name  { font-size: .7rem; font-weight: 700; max-width: 80px; text-align: center; line-height: 1.2; }
.tcm-pos   { font-size: .62rem; color: var(--text-muted); }
.trade-message { font-size: .82rem; color: var(--text-muted); font-style: italic; margin-bottom: .6rem; padding: .4rem .75rem; background: var(--bg-card-2); border-radius: var(--radius-sm); }
.trade-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .team-container { grid-template-columns: 1fr !important; }
  .club-container { grid-template-columns: 1fr; }
  .player-list    { max-height: 300px; }
  .pitch-body { flex-direction: column !important; }
  .synergies-panel {
    width: 100% !important; max-width: none !important; max-height: none !important;
    border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.06);
    margin-right: 0 !important; padding: .4rem .5rem !important; overflow-x: auto;
  }
  .syn-title { font-size: var(--text-xs); margin-bottom: .3rem; }
  .syn-list { flex-direction: row !important; flex-wrap: nowrap !important; gap: .3rem; overflow-x: auto; }
  .syn-item { flex: 0 0 auto; min-width: 118px; padding: .25rem .4rem; }
  .syn-name { font-size: .6rem; }
  .syn-bonus { font-size: .6rem; }
  .syn-prog-txt { font-size: .52rem; }
  .syn-ico { width: 16px; }
  .syn-ico-nation, .syn-ico-fallback { height: 11px; line-height: 11px; }
  .syn-ico-club { height: 16px; }
}

@media (max-width: 768px) {
  .main-content { padding: 1rem .5rem 2rem !important; }
  .navbar { padding: .5rem .6rem !important; gap: .5rem !important; }
  .nav-links { display: none !important; }
  .nav-toggle { display: none !important; }
  .navbar-brand .brand-name { display: none; }
  .nav-countdown { display: none !important; }
  .page-header h1 { font-size: 1.4rem !important; }
  .card { overflow: hidden; }
  .ranking-table { font-size: .7rem !important; }
  .ranking-table th, .ranking-table td { padding: .3rem .25rem !important; }
  .club-cell { gap: .3rem !important; min-width: 0 !important; }
  .club-name-cell { font-size: .68rem !important; }
  .club-logo-sm { width: 20px !important; height: 20px !important; }
  .clt-grid { grid-template-columns: 1fr !important; }
  .cal-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .actu-grid { grid-template-columns: 1fr !important; }
  .cal-club { font-size: var(--text-xs) !important; }
  .users-table { font-size: .7rem; }
  .users-table th, .users-table td { padding: .25rem .3rem; white-space: nowrap; }
  .cards-grid { gap: 16px; }
  .cards-grid .player-card { width: min(44vw, 180px); }

  .scoreboard { grid-template-columns: 1fr; gap: .5rem; }
  .score-display { justify-content: center; }

  .history-row { gap: .5rem; }
  .history-score { font-size: 1rem; }
}

@media (max-width: 600px) {
  .pitch { min-height: 0 !important; min-width: 0 !important; padding: .5rem .3rem !important; gap: .35rem !important; overflow: hidden; }
  .pitch-row { gap: .25rem !important; flex-wrap: nowrap !important; }
  .pitch-slot { width: 18vw !important; height: 22vw !important; font-size: .6rem !important; padding: .1rem !important; }
  .pitch-slot .slot-photo-wrap { width: 28px !important; height: 28px !important; }
  .pitch-slot .slot-ovr { font-size: .6rem !important; }
  .pitch-slot .slot-name { font-size: var(--text-xs) !important; }
  .pitch-slot .slot-nat { font-size: var(--text-xs) !important; }
  .pitch-slot .slot-pos-badge { font-size: var(--text-xs) !important; }
  .pitch-slot .pc-name-plate { gap: 1px; }
  .pitch-slot .pc-flag  { width: 10px; height: 8px; }
  .pitch-slot .pc-crest { width: 9px; height: 9px; }
  .pitch-slot .slot-remove { font-size: var(--text-xs) !important; width: 13px !important; height: 13px !important; }
  .formation-select { font-size: .72rem !important; gap: .25rem !important; }
  .formation-select .btn { font-size: var(--text-xs) !important; padding: .15rem .4rem !important; }
  .pitch::before { width: 40px !important; height: 40px !important; }
  .player-grid { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)) !important; }
  .player-grid-item { min-height: 54px !important; }
}

/* ── Extracted from actu.php ── */

/* ── Block 1: lines 164–445 ── */
.actu-page { max-width: 100%; margin: 0 auto; }

/* ── Layout grille + post ────────────────────────────────────────── */

/* ── Post card (grande, droite) ──────────────────────────────────── */
.actu-post-card {
  padding: 1rem;
  overflow-y: auto;
}
.ap-header { display:flex; align-items:center; gap:.5rem; margin-bottom:.6rem; }
.ap-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.ap-avatar-fb { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.9rem; font-weight:800; color:#fff; }
.ap-pseudo { font-size:.78rem; font-weight:800; }
.ap-club { font-size:.68rem; color:var(--text-muted); }
.ap-time { font-size:.62rem; color:var(--text-muted); }
.ap-message { font-size:.95rem; line-height:1.45; margin-bottom:.75rem; word-break:break-word; }
.ap-gif-wrap { border-radius:10px; overflow:hidden; max-height:140px; }
.ap-gif { width:100%; display:block; }
.ap-gif-embed { position:relative; padding-bottom:56%; overflow:hidden; border-radius:8px; }
.ap-gif-iframe { position:absolute; inset:0; width:100%; height:100%; }
.ap-gif-link { color:var(--accent); font-weight:700; font-size:.85rem; }
.ap-quote-embed { border:1px solid var(--border); border-radius:.65rem; padding:.55rem .75rem; background:rgba(255,255,255,.03); margin-top:.5rem; }
.ap-quote-header { display:flex; align-items:center; gap:.35rem; margin-bottom:.2rem; }
.ap-quote-av { width:18px; height:18px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.ap-quote-av-fb { display:flex; align-items:center; justify-content:center; font-size:.55rem; font-weight:800; color:#fff; }
.ap-quote-name { font-size:.78rem; font-weight:700; }
.ap-quote-club { font-size:.73rem; color:var(--text-muted); }
.ap-quote-msg { font-size:.83rem; color:var(--text); opacity:.9; word-break:break-word; }

/* ── Tweet-style Modal ───────────────────────────────────────────── */
.tw-modal { display:none; position:fixed; inset:0; z-index:1001; background:rgba(0,0,0,.75); align-items:flex-start; justify-content:center; padding-top:5vh; }
.tw-container { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; width:min(560px,92vw); max-height:88vh; overflow-y:auto; position:relative; }
.tw-container::-webkit-scrollbar { width:4px; }
.tw-container::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }
.tw-close { position:absolute; top:.6rem; right:.8rem; background:none; border:none; color:var(--text-muted); font-size:1.4rem; cursor:pointer; z-index:2; }
.tw-close:hover { color:var(--text); }

/* ── Post feed (Twitter/Insta style) ────────────────────────────────── */
.tw-feed { display:flex; flex-direction:column; background:var(--bg-card); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.tw-feed-item { cursor:pointer; transition:background .18s; border-bottom:1px solid rgba(255,255,255,.05); }
.tw-feed-item:last-child { border-bottom:none; }
.tw-feed-item:hover { background:rgba(255,255,255,.025); }
.tw-feed-loading { display:none; text-align:center; padding:.75rem; font-size:.78rem; color:var(--text-muted); }

.tw-post { display:flex; gap:.85rem; padding:1rem 1rem .65rem; }
.tw-left { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.tw-avatar { width:46px; height:46px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 2.5px var(--tw-ring, var(--border)); }
.tw-avatar-fb { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:800; color:#fff; box-shadow:0 0 0 2.5px var(--tw-ring, var(--border)); }
.tw-thread-line { width:2px; flex:1; background:var(--border); margin-top:.4rem; border-radius:1px; min-height:8px; }
.tw-right { flex:1; min-width:0; }
.tw-header { display:flex; align-items:baseline; gap:.35rem; flex-wrap:wrap; margin-bottom:.25rem; }
.tw-name { font-size:.93rem; font-weight:800; text-decoration:none; color:var(--tw-name-color, var(--text)); transition:opacity .15s; }
.tw-name:hover { opacity:.8; }
.tw-handle { font-size:.8rem; color:var(--text-muted); font-weight:400; }
.tw-dot { color:var(--text-muted); font-size:.75rem; }
.tw-time { font-size:.78rem; color:var(--text-muted); margin-left:auto; }
.tw-body { font-size:.97rem; line-height:1.55; margin-bottom:.65rem; word-break:break-word; color:var(--text); }
.tw-media { width:100%; max-width:100%; height:auto; max-height:520px; object-fit:contain; display:block; border-radius:12px; margin-bottom:.6rem; background:rgba(255,255,255,.03); border:1px solid var(--border); }
.tw-media-feed { max-height:220px; object-fit:cover; }
.tw-media-embed { position:relative; padding-bottom:56%; overflow:hidden; border-radius:12px; margin-bottom:.6rem; border:1px solid var(--border); }
.tw-media-embed.tw-media-feed { max-height:220px; padding-bottom:0; height:220px; }
.tw-media-iframe { position:absolute; inset:0; width:100%; height:100%; }

.tw-actions { display:flex; gap:0; padding:.5rem 0 .1rem; border-top:1px solid rgba(255,255,255,.05); margin-top:.1rem; }
.tw-action-btn { background:none; border:none; color:var(--text-muted); font-size:.8rem; cursor:pointer; display:flex; align-items:center; gap:.35rem; padding:.35rem .75rem .35rem 0; transition:color .15s; border-radius:999px; }
.tw-action-btn:hover { color:var(--accent); }
.tw-like-btn:hover { color:#f43f5e; }
.tw-like-btn[disabled] { color:#f43f5e; cursor:default; opacity:1; }
.tw-repost-btn.active { color:#22c55e; }
.tw-repost-btn:hover { color:#22c55e; }
.tw-action-status { font-size:.72rem; color:var(--green); }
.tw-repost-label { font-size:.74rem; font-weight:700; display:flex; align-items:center; gap:.3rem; padding:.4rem 1rem .1rem; opacity:.85; }
.tw-repost-label [data-lucide] { width:13px; height:13px; }

/* Modal choix repost */
.rp-choice-sheet { background:var(--card); border-radius:1.1rem; padding:.5rem; min-width:260px; max-width:340px; width:90%; display:flex; flex-direction:column; gap:.25rem; box-shadow:0 8px 40px rgba(0,0,0,.55); }
.rp-choice-btn { display:flex; align-items:center; gap:.9rem; padding:.85rem 1.1rem; background:none; border:none; color:var(--text); font-size:.95rem; border-radius:.75rem; cursor:pointer; text-align:left; transition:background .15s; }
.rp-choice-btn:hover { background:rgba(255,255,255,.07); }
.rp-choice-btn [data-lucide] { width:22px; height:22px; color:var(--accent); flex-shrink:0; }
.rp-choice-btn div { display:flex; flex-direction:column; gap:.1rem; }
.rp-choice-btn strong { font-weight:700; font-size:.93rem; }
.rp-choice-btn span { font-size:.78rem; color:var(--text-muted); }
.rp-choice-cancel { margin-top:.15rem; padding:.7rem; background:none; border:1px solid var(--border); border-radius:.75rem; color:var(--text-muted); font-size:.88rem; cursor:pointer; transition:background .15s; }
.rp-choice-cancel:hover { background:rgba(255,255,255,.05); }

/* Citation (quote-repost) */
.tw-quote-embed { margin-top:.55rem; border:1px solid var(--border); border-radius:.65rem; padding:.6rem .8rem; background:rgba(255,255,255,.03); font-size:.83rem; }
.tw-quote-header { display:flex; align-items:center; gap:.4rem; margin-bottom:.25rem; }
.tw-quote-body { color:var(--text); opacity:.9; }

/* Réponses style tweet */
.tw-replies { border-top:1px solid var(--border); }
.tw-reply { display:flex; gap:.65rem; padding:.65rem 1rem; border-bottom:1px solid rgba(255,255,255,.04); }
.tw-reply-av { width:34px; height:34px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.tw-reply-av-fb { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:800; color:#fff; flex-shrink:0; }
.tw-reply-right { flex:1; min-width:0; }
.tw-reply-header { display:flex; align-items:baseline; gap:.3rem; margin-bottom:.15rem; flex-wrap:wrap; }
.tw-reply-name { font-size:.83rem; font-weight:700; text-decoration:none; color:var(--tw-name-color, var(--text)); }
.tw-reply-handle { font-size:.74rem; color:var(--text-muted); }
.tw-reply-time { font-size:.7rem; color:var(--text-muted); margin-left:auto; }
.tw-reply-body { font-size:.88rem; line-height:1.45; }

.tw-reply-box { padding:.75rem 1rem; border-top:1px solid var(--border); }
.tw-reply-input-wrap { display:flex; gap:.5rem; align-items:center; }
.tw-reply-input { flex:1; padding:.45rem .85rem; background:var(--bg); border:1px solid var(--border); border-radius:20px; color:var(--text); font-size:.85rem; font-family:'Outfit',sans-serif; outline:none; }
.tw-reply-input:focus { border-color:var(--accent); }
.tw-reply-input::placeholder { color:var(--text-muted); }

/* ── Bannière titre ───────────────────────────────────────────────── */
.actu-banner {
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: .7rem;
  border-bottom: 3px double rgba(255,255,255,.1);
}
.actu-banner h1 {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.actu-date {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .25rem;
}

/* ── Grille 2x2 ──────────────────────────────────────────────────── */
.actu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: minmax(240px, auto);
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
@media (max-width: 900px) { .actu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .actu-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.actu-grid > .actu-section { margin-bottom: 0; display: flex; flex-direction: column; }
.actu-grid > .actu-section > .card {
  flex: 1; overflow: hidden; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: flex-start;
}
/* Les états vides et le carrousel restent centrés verticalement */
.actu-grid > .actu-section > .card:has(.actu-empty),
.actu-grid > .actu-section > .carousel-card { justify-content: center; }
.actu-span2 { grid-column: span 2; }
@media (max-width: 600px) { .actu-span2 { grid-column: auto; } }
.actu-section-title { font-size: .85rem; }

/* Actu utility cards */
.actu-list-card { padding: 0 !important; overflow: hidden; }
.actu-vote-card { padding: .75rem; overflow: hidden; }
.actu-post-preview { padding: .75rem; overflow: hidden; cursor: pointer; transition: border-color .2s; }
.actu-post-preview:hover { border-color: var(--accent); }
.actu-stats-card {
  padding: .75rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
}
.actu-stat-row {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem;
}
.actu-stat-row [data-lucide] { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.actu-stat-row span { flex: 1; }
.actu-stat-row strong { font: 800 1rem/1 Archivo, sans-serif; }

/* Actu modal (trades etc) */
.actu-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.actu-modal-overlay.open { display: flex; animation: fadeIn .15s ease; }
.actu-modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; width: min(500px, 90vw);
  max-height: 80vh; overflow-y: auto; padding: 1.25rem;
  animation: fadeInUp .25s ease;
}
.actu-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .75rem;
}
.actu-modal-header h3 { font: 800 .95rem/1 Archivo, sans-serif; text-transform: uppercase; }
.actu-modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.actu-modal-close:hover { color: var(--text); }

/* Carousel arrows bigger on mobile */
@media (max-width: 768px) {
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}
.actu-grid > .actu-section > .card::-webkit-scrollbar { width: 3px; }
.actu-grid > .actu-section > .card::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Section ──────────────────────────────────────────────────────── */
.actu-section {
  margin-bottom: 1.75rem;
}
.actu-section-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid rgba(255,255,255,.08);
  margin-bottom: .6rem;
}
.actu-section-title {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.actu-section-icon { font-size: 1rem; }
.actu-section-link {
  margin-left: auto; display: flex; align-items: center; gap: .25rem;
  font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); text-decoration: none; transition: color .15s;
}
.actu-section-link:hover { color: var(--accent); }
.actu-section-link [data-lucide] { width: 12px; height: 12px; }

/* ── Planning ─────────────────────────────────────────────────────── */
.actu-plan-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .6rem;
  font-size: .8rem;
}
.actu-plan-row + .actu-plan-row { border-top: 1px solid rgba(255,255,255,.04); }
.actu-plan-time { font-weight: 800; min-width: 40px; color: var(--text-muted); font-size: .75rem; }
.actu-plan-vs { color: var(--text-muted); font-weight: 700; font-size: .7rem; margin: 0 .25rem; }
.actu-plan-club { font-weight: 700; font-size: .78rem; }
.actu-plan-score { font-weight: 900; font-size: .85rem; min-width: 40px; text-align: center; }
.actu-plan-badge {
  font-size: .6rem; font-weight: 800; padding: 1px 5px; border-radius: 3px;
  margin-left: auto;
}
.actu-badge-live { background: rgba(229,57,53,.2); color: #e53935; animation: pulse 1s infinite; }
.actu-badge-fin  { background: rgba(67,160,71,.15); color: #43a047; }
.actu-badge-pend { background: rgba(255,255,255,.06); color: var(--text-muted); }
.actu-plan-mine { border-left: 3px solid var(--accent); }

/* ── Résultats ────────────────────────────────────────────────────── */
.actu-result {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .6rem;
  font-size: .78rem;
  text-decoration: none; color: inherit;
  transition: background .15s;
}
a.actu-result:hover { background: rgba(255,255,255,.04); }
.actu-result + .actu-result { border-top: 1px solid rgba(255,255,255,.04); }
.actu-result-date { font-size: .65rem; color: var(--text-muted); min-width: 30px; }
.actu-result-score {
  font-weight: 900; min-width: 40px; text-align: center;
  background: rgba(255,255,255,.06); border-radius: 5px; padding: 2px 6px; font-size: .75rem;
}
.actu-result-club { font-weight: 600; color: var(--text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actu-result-club.ar-win { color: var(--text); font-weight: 800; }
.actu-result-club-r { text-align: right; }
.ar-logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; flex-shrink: 0; display: inline-block; }
.ar-logo-fb { border-radius: 50%; }
.ar-mine { box-shadow: inset 3px 0 0 var(--accent); }

/* ── Gros packs ───────────────────────────────────────────────────── */
.actu-pull {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  font-size: .78rem;
}
.actu-pull + .actu-pull { border-top: 1px solid rgba(255,255,255,.04); }
.actu-pull-time { font-size: .65rem; color: var(--text-muted); min-width: 30px; }
.actu-pull-who { font-weight: 700; color: var(--accent); }
.actu-pull-card { font-weight: 800; }
.actu-pull-card { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.actu-pull-ovr {
  font-size: .7rem; font-weight: 900;
  background: rgba(255,255,255,.08);
  padding: 1px 5px; border-radius: 3px;
  margin-left: auto; flex-shrink: 0;
}
.actu-rarity {
  font-size: .6rem; font-weight: 800; padding: 1px 5px; border-radius: 3px;
  text-transform: uppercase;
}
.actu-rarity.legendary { background: rgba(255,215,0,.2); color: #ffd700; }
.actu-rarity.iconic { background: var(--iconic-gradient); color: #101114; }
.actu-rarity.epic      { background: rgba(155,89,182,.2); color: #9b59b6; }

/* ── Trades ───────────────────────────────────────────────────────── */
.actu-trade {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .6rem;
  font-size: .78rem;
  flex-wrap: wrap;
}
.actu-trade + .actu-trade { border-top: 1px solid rgba(255,255,255,.04); }
.actu-trade-time { font-size: .65rem; color: var(--text-muted); min-width: 30px; }
.actu-trade-who { font-weight: 700; }
.actu-trade-arrow { color: var(--text-muted); font-size: .7rem; }
.actu-trade-card { font-weight: 600; }

/* ── Carrousel matchs ─────────────────────────────────────────────── */
.carousel-card {
  padding: 0 !important; overflow: hidden; position: relative;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: background .2s;
}
.carousel-arrow:hover { background: rgba(0,0,0,.6); }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
.carousel { position: relative; flex:1; display:flex; align-items:center; justify-content:center; }
.carousel-slide {
  display: none; align-items: center; justify-content: center;
  gap: .75rem; padding: .3rem .5rem;
  text-decoration: none; color: inherit;
}
.carousel-slide.active { display: flex; }
.carousel-slide.active .cs-team { animation: fadeTeam .6s ease; }
.carousel-slide.active .cs-time,
.carousel-slide.active .cs-score,
.carousel-slide.active .cs-min,
.carousel-slide.active .cs-badge-live,
.carousel-slide.active .cs-badge-fin { animation: fadeTeam .6s ease; }
@keyframes fadeTeam { from { opacity:0; transform:translateY(6px) } to { opacity:1; transform:none } }

.cs-team { display: flex; flex-direction: column; align-items: center; gap: .2rem; flex: 1; min-width: 0; }
.cs-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; }
.cs-logo-fb { width: 72px; height: 72px; border-radius: 50%; }
.cs-club { font: 700 .8rem/1.2 Archivo, sans-serif; text-align: center; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cs-center { text-align: center; flex-shrink: 0; width: 80px; }
.cs-league {
  display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .08em;
  color: var(--text-muted); background: rgba(255,255,255,.06);
  padding: 2px 8px; border-radius: 10px; margin-bottom: .3rem;
}
.cs-vs { font-size: 1.3rem; font-weight: 900; color: var(--text-muted); }
.cs-time { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }
.cs-score { font-size: 1.3rem; font-weight: 900; letter-spacing: .03em; }
.cs-min { font-size: .7rem; color: var(--text-muted); }
.cs-badge-live {
  font-size: .65rem; font-weight: 800; color: #e53935;
  animation: pulse 1s infinite; margin-bottom: .15rem;
}
.cs-badge-fin { font-size: .65rem; font-weight: 800; color: var(--green, #43a047); margin-top: .15rem; }


/* ── Carrousel transferts ─────────────────────────────────────────── */
.trade-carousel-card { padding:0 !important; display:flex; flex-direction:column; }
.trade-carousel { position:relative; flex:1; display:flex; }
.trade-slide {
  display:none; flex-direction:column; justify-content:center; gap:.3rem;
  padding:.5rem .75rem; animation:tradeSlideIn .4s ease;
  width:100%; flex:1;
}
.trade-slide.active { display:flex; }
@keyframes tradeSlideIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.ts-time { font-size:.65rem; color:var(--text-muted); text-align:center; }
.ts-row { display:flex; align-items:center; justify-content:center; gap:.75rem; }
.ts-arrow { font-size:1.1rem; color:var(--text-muted); flex-shrink:0; }
.ts-mini-card {
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:.5rem .5rem; border-radius:8px; border:1px solid var(--border);
  background:var(--bg); flex:1;
}
.ts-mini-card.common { border-bottom:2px solid var(--grey); }
.ts-mini-card.rare { border-bottom:2px solid var(--blue); }
.ts-mini-card.epic { border-bottom:2px solid var(--purple); }
.ts-mini-card.legendary { border-bottom:2px solid var(--gold); }
.ts-mini-card.iconic { border-bottom:2px solid #fff; }
.ts-mini-avatar { width:36px; height:36px; border-radius:50%; overflow:hidden; background:var(--bg-card-2); display:flex; align-items:center; justify-content:center; margin-bottom:.2rem; }
.ts-mini-photo { width:100%; height:100%; object-fit:cover; }
.ts-mini-init { font-size:.85rem; font-weight:800; color:var(--text-muted); }
.ts-mini-ovr { font-size:.85rem; font-weight:900; }
.ts-mini-name { font-size:.65rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.ts-mini-from { font-size:.55rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.trade-see-more {
  display:flex; align-items:center; justify-content:center; gap:.25rem;
  text-align:center; padding:.4rem; font-size:.72rem; font-weight:700;
  color:var(--accent); cursor:pointer; border-top:1px solid rgba(255,255,255,.06);
  transition:background .15s;
}
.trade-see-more [data-lucide] { width:13px; height:13px; }
.trade-see-more:hover { background:rgba(255,255,255,.04); }

/* ── Empty ────────────────────────────────────────────────────────── */
.actu-empty { padding: 1rem; text-align: center; font-size: .8rem; color: var(--text-muted); font-style: italic; }

/* ── Block 2: lines 907–940 ── */
.vote-results { display:flex; gap:.75rem; }
.vr-section { flex:1; }
.vr-label { font-size:.7rem; font-weight:800; display:block; margin-bottom:.3rem; }
.vr-row {
  display:flex; align-items:center; gap:.35rem; font-size:.75rem;
  padding:.28rem .35rem; position:relative; border-radius:5px; overflow:hidden;
}
.vr-row::before {
  content:''; position:absolute; inset:0; width:var(--vr-pct, 0%);
  background:rgba(255,255,255,.06); border-radius:5px;
}
.vr-section:first-child .vr-row::before { background:rgba(74,222,128,.13); }
.vr-section:last-child .vr-row::before { background:rgba(239,68,68,.11); }
.vr-row > * { position:relative; }
.vr-row + .vr-row { margin-top:2px; }
.vr-logo { width:18px; height:18px; object-fit:contain; border-radius:3px; flex-shrink:0; }
.vr-logo-fb { width:18px; height:18px; border-radius:3px; flex-shrink:0; }
.vr-name { font-weight:600; flex:1; }
.vr-count { color:var(--text-muted); font-weight:800; font-size:.7rem; }
.vote-form { display:flex; flex-direction:column; gap:.5rem; }
.vf-group { display:flex; flex-direction:column; gap:.2rem; }
.vf-label { font-size:.72rem; font-weight:700; }
.vf-logos { display:flex; flex-wrap:wrap; gap:.35rem; }
.vf-logo-btn {
  width:32px; height:32px; border-radius:6px; cursor:pointer;
  border:2px solid transparent; transition:border-color .15s, transform .15s;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-card-2); padding:2px;
}
.vf-logo-btn:hover { border-color:rgba(255,255,255,.3); transform:scale(1.1); }
.vf-logo-btn { position:relative; }
.vf-logo-btn:hover::after {
  content:attr(title); position:absolute; bottom:calc(100% + 4px); left:50%; transform:translateX(-50%);
  background:var(--bg-card); border:1px solid var(--border); color:var(--text);
  font-size:.65rem; font-weight:700; padding:2px 6px; border-radius:4px; white-space:nowrap; z-index:10;
  pointer-events:none; box-shadow:0 2px 8px rgba(0,0,0,.4);
}
.actu-section.vote-section > .card { overflow:visible !important; justify-content:flex-start !important; }
.vf-logos { position:relative; z-index:5; }
.vf-logo-btn.selected { border-color:var(--accent); transform:scale(1.15); box-shadow:0 0 8px rgba(79,142,247,.4); }
.vf-logo-img { width:100%; height:100%; object-fit:contain; border-radius:4px; }
.vf-logo-fb { width:100%; height:100%; border-radius:4px; }

/* ── Block 3: lines 1140–1196 ── */
/* ── Story bar ─── */
.stories-strip {
  margin-bottom: 1rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.story-bar-card { padding: 0 !important; }
.story-bar {
  display: flex; gap: 1rem; overflow-x: auto;
  padding: .25rem .5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.story-bar::-webkit-scrollbar { display: none; }
.story-bar-empty { font-size: .78rem; color: var(--text-muted); padding: .5rem; text-align: center; width: 100%; }
.sb-item { display:flex; flex-direction:column; align-items:center; gap:.25rem; cursor:pointer; flex-shrink:0; }
.sb-ring {
  width:52px; height:52px; border-radius:50%; padding:3px;
  background:conic-gradient(var(--ring-color), var(--ring-color));
  display:flex; align-items:center; justify-content:center;
}
.sb-ring img, .sb-ring .sb-init {
  width:100%; height:100%; border-radius:50%; object-fit:cover;
  border:2px solid var(--bg-card);
  background:var(--bg-card); display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:.8rem; color:var(--text-muted);
}
.sv-logo { object-fit:cover !important; }
.sb-name { font-size:.58rem; color:var(--text-muted); font-weight:600; max-width:52px; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Story viewer fullscreen ─── */
.story-viewer {
  position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,.92);
  display:flex; align-items:center; justify-content:center;
}
.sv-content {
  position:relative; width:min(400px, 92vw); height:min(700px, 90vh);
  background:#000; border-radius:12px; overflow:hidden;
  display:flex; flex-direction:column;
}
.sv-header {
  position:absolute; top:0; left:0; right:0; z-index:3;
  display:flex; justify-content:space-between; align-items:center;
  padding:.6rem .75rem; background:linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}
.sv-user { display:flex; align-items:center; gap:.5rem; }
.sv-logo { width:32px; height:32px; border-radius:50%; object-fit:contain; background:rgba(255,255,255,.1); }
.sv-club { font-size:.85rem; font-weight:700; color:#fff; }
.sv-time { font-size:.65rem; color:rgba(255,255,255,.5); }
.sv-close { background:none; border:none; color:#fff; font-size:1.8rem; cursor:pointer; line-height:1; }

.sv-progress {
  position:absolute; top:.3rem; left:.5rem; right:.5rem; z-index:4;
  display:flex; gap:3px; height:3px;
}
.sv-seg { flex:1; background:rgba(255,255,255,.25); border-radius:2px; }
.sv-seg-done { background:rgba(255,255,255,.85); }
.sv-seg-active { background:rgba(255,255,255,.85); animation:segFill 5s linear; }
@keyframes segFill { from{background:linear-gradient(to right,rgba(255,255,255,.85) 0%,rgba(255,255,255,.25) 0%)} to{background:rgba(255,255,255,.85)} }

.sv-img {
  width:100%; flex:1; object-fit:contain; position:relative; z-index:1;
  margin:auto 0;
}
.sv-nav { position:absolute; inset:0; z-index:2; display:flex; }
.sv-nav-left, .sv-nav-right { flex:1; cursor:pointer; }

/* ── Extracted from booster.php ── */

/* ── Block 1: lines 424–762 ── */
/* ── Pack booster 3D ──────────────────────────────────────────────────── */
.bp-pack-row { display:flex; justify-content:center; padding:1.5rem 0; }
.bp-pack-3d {
  perspective:800px;
  width:200px; height:310px;
  animation:packFloat 4.5s ease-in-out infinite;
}
@keyframes packFloat {
  0%,100% { transform:translateY(0) rotate(-1.2deg); }
  50%     { transform:translateY(-7px) rotate(1.1deg); }
}
.bp-pack {
  width:100%; height:100%; border-radius:7px; cursor:pointer;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope="0.055"/></feComponentTransfer></filter><rect width="140" height="140" filter="url(%23n)"/></svg>'),
    radial-gradient(ellipse at 30% 18%, rgba(70,85,160,.35), transparent 58%),
    radial-gradient(ellipse at 72% 85%, rgba(28,20,70,.55), transparent 60%),
    linear-gradient(160deg, #10142e 0%, #1a2450 38%, #20305f 55%, #111737 100%);
  border:1px solid rgba(255,225,120,.22);
  display:flex; flex-direction:column; align-items:center;
  position:relative; overflow:hidden;
  transition:box-shadow .2s ease;
  box-shadow:0 10px 30px rgba(0,0,0,.65), inset 0 0 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.03);
  transform-style:preserve-3d;
  will-change:transform;
}
/* Sertissures façon sachet scellé */
.bp-pack-crimp {
  position:absolute; left:0; right:0; height:17px; z-index:4; pointer-events:none;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.13) 0 2px, rgba(255,255,255,.03) 2px 5px,
      rgba(0,0,0,.32) 5px 7px, rgba(255,235,170,.07) 7px 10px),
    linear-gradient(180deg, #1b2452, #141a3e);
}
.bp-pack-crimp-top    { top:0;    clip-path:polygon(0% 100%, 0% 45%, 3.12% 0%, 6.25% 45%, 9.38% 0%, 12.50% 45%, 15.62% 0%, 18.75% 45%, 21.88% 0%, 25.00% 45%, 28.12% 0%, 31.25% 45%, 34.38% 0%, 37.50% 45%, 40.62% 0%, 43.75% 45%, 46.88% 0%, 50.00% 45%, 53.12% 0%, 56.25% 45%, 59.38% 0%, 62.50% 45%, 65.62% 0%, 68.75% 45%, 71.88% 0%, 75.00% 45%, 78.12% 0%, 81.25% 45%, 84.38% 0%, 87.50% 45%, 90.62% 0%, 93.75% 45%, 96.88% 0%, 100.00% 45%, 100% 100%); }
.bp-pack-crimp-bottom { bottom:0; clip-path:polygon(0% 0%, 0% 55%, 3.12% 100%, 6.25% 55%, 9.38% 100%, 12.50% 55%, 15.62% 100%, 18.75% 55%, 21.88% 100%, 25.00% 55%, 28.12% 100%, 31.25% 55%, 34.38% 100%, 37.50% 55%, 40.62% 100%, 43.75% 55%, 46.88% 100%, 50.00% 55%, 53.12% 100%, 56.25% 55%, 59.38% 100%, 62.50% 55%, 65.62% 100%, 68.75% 55%, 71.88% 100%, 75.00% 55%, 78.12% 100%, 81.25% 55%, 84.38% 100%, 87.50% 55%, 90.62% 100%, 93.75% 55%, 96.88% 100%, 100.00% 55%, 100% 0%); }
/* Perforation « ouvrir ici » */
.bp-pack-tearline {
  position:absolute; top:22px; left:0; right:0; z-index:4; pointer-events:none;
  display:flex; align-items:center; gap:.45rem; padding:0 .7rem;
  font-size:.52rem; font-weight:800; letter-spacing:.22em; color:rgba(255,255,255,.32);
}
.bp-pack-tearline span { font-size:.68rem; transform:scaleX(-1); letter-spacing:0; }
.bp-pack-tearline::before,
.bp-pack-tearline::after { content:''; flex:1; border-top:2px dashed rgba(255,255,255,.18); }
/* Froissures du papier */
.bp-pack-wrinkles {
  position:absolute; inset:0; z-index:1; pointer-events:none; border-radius:7px;
  background:
    linear-gradient(112deg, transparent 40%, rgba(255,255,255,.055) 44%, transparent 49%),
    linear-gradient(78deg,  transparent 58%, rgba(0,0,0,.20) 64%, transparent 71%),
    linear-gradient(155deg, transparent 18%, rgba(255,255,255,.04) 22%, transparent 28%),
    linear-gradient(100deg, transparent 80%, rgba(0,0,0,.16) 86%, transparent 93%);
}
.bp-pack:hover {
  box-shadow:0 16px 48px rgba(0,0,0,.7), 0 0 30px rgba(255,215,0,.12), 0 0 0 1px rgba(255,215,0,.15);
}
.bp-pack-content {
  position:relative; z-index:2; width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; gap:.45rem;
  padding:2.8rem .75rem 1.6rem;
}
.bp-pack-mid {
  flex:1; min-height:0; width:100%;
  display:flex; align-items:center; justify-content:center;
}
.bp-pack-foot {
  display:flex; flex-direction:column; align-items:center; gap:.45rem;
}
.bp-pack-top { width:100%; text-align:center; margin-bottom:.15rem; }
.bp-pack-top-text {
  font:900 .78rem/1 Archivo, sans-serif; text-transform:uppercase; letter-spacing:.2em;
  color:rgba(255,225,120,.75);
  border-bottom:1px solid rgba(255,215,0,.14); padding-bottom:.4rem;
}
.bp-pack-logo {
  width:76%; max-height:100%; height:auto; object-fit:contain;
  filter:drop-shadow(0 0 18px rgba(255,215,0,.28));
  transition:filter .3s;
}
.bp-pack:hover .bp-pack-logo { filter:drop-shadow(0 0 22px rgba(255,215,0,.4)); }
.bp-pack-label {
  font:900 1.3rem/1 Archivo, sans-serif; letter-spacing:.16em; text-transform:uppercase;
  color:#ffd700; text-shadow:0 0 12px rgba(255,215,0,.35);
}
.bp-pack-sub {
  font:800 .6rem/1 Archivo, sans-serif; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(255,225,140,.85);
  border:1px solid rgba(255,215,0,.28); border-radius:999px;
  padding:.3rem .85rem;
  background:rgba(255,215,0,.06);
}

/* Foil holographique */
.bp-pack-foil {
  position:absolute; inset:0; z-index:1; border-radius:7px;
  background:
    linear-gradient(125deg,
      transparent 0%, rgba(255,215,0,.06) 15%, transparent 30%,
      rgba(100,200,255,.05) 50%, transparent 65%,
      rgba(255,100,255,.04) 85%, transparent 100%);
  mix-blend-mode:screen;
  opacity:0; transition:opacity .3s;
  pointer-events:none;
}
.bp-pack:hover .bp-pack-foil { opacity:1; }

/* Reflet shine */
.bp-pack-shine {
  position:absolute; inset:0; z-index:3; border-radius:7px;
  background:linear-gradient(105deg, transparent 38%, rgba(255,255,255,.1) 50%, transparent 62%);
  transform:translateX(-160%);
  pointer-events:none;
  animation:shineMove 3.5s ease-in-out infinite;
}
@keyframes shineMove { 0%,100%{transform:translateX(-160%)} 50%{transform:translateX(160%)} }

/* Edge light */
.bp-pack::before {
  content:''; position:absolute; inset:-1px; border-radius:8px; z-index:0;
  background:linear-gradient(135deg, rgba(255,215,0,.15), transparent 40%, transparent 60%, rgba(255,215,0,.1));
  opacity:0; transition:opacity .3s;
  pointer-events:none;
}
.bp-pack:hover::before { opacity:1; }

.bp-choice-btns { display:flex; flex-direction:column; align-items:center; gap:.4rem; margin-top:.5rem; }
.bp-hint { font-size:.78rem; color:var(--text-muted); margin:0; }
.saved-confirm { display:flex; align-items:center; gap:.75rem; padding:.75rem 1rem; color:var(--green); font-weight:700; }

/* ── Shake (crescendo) ────────────────────────────────────────────────── */
.bp-shake { animation:packShake .85s ease !important; }
@keyframes packShake {
  0%,100%{transform:rotateX(0) rotateY(0) rotate(0)}
  8% {transform:rotate(-1deg) scale(1.005)}
  16%{transform:rotate(1.5deg) scale(1.01)}
  24%{transform:rotate(-2deg) scale(1.02)}
  32%{transform:rotate(2.5deg) scale(1.025)}
  40%{transform:rotate(-3deg) scale(1.03)}
  48%{transform:rotate(3.5deg) scale(1.04)}
  56%{transform:rotate(-4deg) scale(1.05)}
  64%{transform:rotate(5deg) scale(1.06)}
  72%{transform:rotate(-5.5deg) scale(1.065)}
  80%{transform:rotate(6deg) scale(1.07)}
  88%{transform:rotate(-4deg) scale(1.05)}
  94%{transform:rotate(2deg) scale(1.03)}
}

/* ── Glow burst ──────────────────────────────────────────────────────── */
.bp-glow-burst {
  box-shadow:0 0 40px rgba(255,215,0,.4), 0 0 80px rgba(255,215,0,.2), 0 0 0 2px rgba(255,215,0,.5) !important;
  border-color:rgba(255,215,0,.6) !important;
  transition:box-shadow .3s, border-color .3s !important;
}

/* ── Arrachage de la languette (le long de la perforation) ──────────── */
.bp-rip-piece {
  position:fixed; overflow:hidden; pointer-events:none; z-index:9997;
}
.bp-rip-piece .bp-pack { cursor:default; animation:none; }
.bp-rip-strip {
  clip-path:polygon(0% 0%, 100% 0%, 100% 76%, 96.43% 100%, 92.86% 76%, 89.29% 100%, 85.71% 76%, 82.14% 100%, 78.57% 76%, 75.00% 100%, 71.43% 76%, 67.86% 100%, 64.29% 76%, 60.71% 100%, 57.14% 76%, 53.57% 100%, 50.00% 76%, 46.43% 100%, 42.86% 76%, 39.29% 100%, 35.71% 76%, 32.14% 100%, 28.57% 76%, 25.00% 100%, 21.43% 76%, 17.86% 100%, 14.29% 76%, 10.71% 100%, 7.14% 76%, 3.57% 100%, 0.00% 76%);
  transition:transform .55s cubic-bezier(.3,.7,.3,1), opacity .5s ease .1s;
  transform-origin:0% 100%;
}
.bp-rip-strip.bp-rip-go {
  transform:translate(46%,-150%) rotate(21deg); opacity:0;
}
.bp-rip-body {
  clip-path:polygon(0% 100%, 0% 9%, 3.57% 0%, 7.14% 9%, 10.71% 0%, 14.29% 9%, 17.86% 0%, 21.43% 9%, 25.00% 0%, 28.57% 9%, 32.14% 0%, 35.71% 9%, 39.29% 0%, 42.86% 9%, 46.43% 0%, 50.00% 9%, 53.57% 0%, 57.14% 9%, 60.71% 0%, 64.29% 9%, 67.86% 0%, 71.43% 9%, 75.00% 0%, 78.57% 9%, 82.14% 0%, 85.71% 9%, 89.29% 0%, 92.86% 9%, 96.43% 0%, 100.00% 9%, 100% 100%);
  transition:transform .5s cubic-bezier(.4,.1,.6,1) .18s, opacity .45s ease .28s;
}
.bp-rip-body.bp-rip-go {
  transform:translateY(30%) rotate(2.5deg) scale(.95); opacity:0;
}

/* ── Particules ──────────────────────────────────────────────────────── */
.bp-burst {
  position:fixed; width:11px; height:7px; border-radius:1.5px; z-index:9999; pointer-events:none;
  animation:burstFly .95s cubic-bezier(.2,.7,.4,1) forwards;
}
@keyframes burstFly {
  0%   { transform:translate(0,0) rotate(0deg) scale(1); opacity:1; }
  100% { transform:translate(var(--bx),var(--by)) rotate(var(--br,260deg)) scale(.35); opacity:0; }
}

/* ── Reveal zone (pile de cartes) ────────────────────────────────────── */
.bp-reveal-zone {
  display:flex; flex-direction:column; align-items:center; gap:.75rem; padding:1.5rem 0 2rem;
  min-height:400px;
  animation:revealFadeIn .4s ease both;
}
@keyframes revealFadeIn {
  from { opacity:0; transform:scale(.95); }
  to   { opacity:1; transform:scale(1); }
}
.bp-reveal-counter {
  font-size:.85rem; color:var(--text-muted); font-weight:700; letter-spacing:.1em;
}

.bp-reveal-stage {
  display:grid; grid-template-areas:"stack";
  width:210px;
  cursor:pointer;
}

/* Carte empilée */
.bp-stack-card {
  grid-area:stack;
  border-radius:13px; overflow:hidden;
  transition:transform .25s cubic-bezier(.4,.0,.2,1), opacity .2s ease;
}
.bp-stack-card .player-card {
  width:100%; cursor:pointer;
}
.bp-stack-card .player-card:hover {
  transform:none !important; box-shadow:none !important;
}
.bp-stack-dismissed {
  transform:translateY(-130%) scale(.92) rotate(-5deg) !important;
  opacity:0 !important;
  pointer-events:none;
}

/* Glow rareté sur pile */
.bp-stack-glow-gold  { filter:drop-shadow(0 0 20px rgba(255,215,0,.45)); }
.bp-stack-glow-purple { filter:drop-shadow(0 0 18px rgba(155,89,182,.4)); }

/* ── Couverture mystère (cartes à walkout) ───────────────────────────── */
.bp-stack-card { position:relative; }
.bp-walkout-cover {
  position:absolute; inset:0; z-index:5; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(160deg, #191325 0%, #0e0a18 100%);
  transition:opacity .45s ease, transform .45s ease;
}
.bp-wo-cover-halo {
  position:absolute; inset:0; border-radius:13px;
  animation:woCoverPulse 1.6s ease-in-out infinite;
}
.bp-wo-cover-epic .bp-wo-cover-halo      { box-shadow:inset 0 0 42px rgba(155,89,182,.5); }
.bp-wo-cover-legendary .bp-wo-cover-halo { box-shadow:inset 0 0 42px rgba(255,215,0,.45); }
.bp-wo-cover-iconic .bp-wo-cover-halo    { box-shadow:inset 0 0 42px rgba(255,255,255,.5); }
@keyframes woCoverPulse { 0%,100%{opacity:.55} 50%{opacity:1} }
.bp-wo-cover-q {
  font:900 3.6rem/1 Archivo, sans-serif; color:rgba(255,255,255,.85);
  text-shadow:0 0 24px rgba(255,255,255,.35);
  animation:woQFloat 2s ease-in-out infinite;
}
@keyframes woQFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-6px) scale(1.06)} }
.bp-cover-out { opacity:0; transform:scale(1.12); pointer-events:none; }

/* ── Walkout plein écran ─────────────────────────────────────────────── */
.bp-walkout {
  position:fixed; inset:0; z-index:10000;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(ellipse at 50% 42%, #1a1626 0%, #0a0812 68%, #050409 100%);
  opacity:0; transition:opacity .35s ease;
  cursor:pointer;
}
.bp-wo-open { opacity:1; }
.bp-wo-fog {
  position:absolute; inset:-20%;
  filter:blur(60px); opacity:.55;
  animation:woFogDrift 7s ease-in-out infinite alternate;
}
.bp-wo-epic .bp-wo-fog {
  background:
    radial-gradient(circle at 30% 60%, rgba(155,89,182,.4), transparent 45%),
    radial-gradient(circle at 72% 35%, rgba(90,40,140,.45), transparent 50%);
}
.bp-wo-legendary .bp-wo-fog {
  background:
    radial-gradient(circle at 30% 60%, rgba(255,200,40,.32), transparent 45%),
    radial-gradient(circle at 72% 35%, rgba(200,140,10,.38), transparent 50%);
}
.bp-wo-iconic .bp-wo-fog {
  background:
    radial-gradient(circle at 30% 60%, rgba(255,255,255,.28), transparent 45%),
    radial-gradient(circle at 72% 35%, rgba(180,190,255,.3), transparent 50%);
}
@keyframes woFogDrift { from{transform:translate(-3%,2%) scale(1)} to{transform:translate(3%,-2%) scale(1.08)} }
.bp-wo-rays {
  position:absolute; left:50%; top:50%; width:150vmax; height:150vmax;
  transform:translate(-50%,-50%);
  background:repeating-conic-gradient(from 0deg,
    transparent 0deg 11deg, rgba(255,255,255,.045) 11deg 15deg);
  -webkit-mask-image:radial-gradient(circle, #000 0%, transparent 62%);
  mask-image:radial-gradient(circle, #000 0%, transparent 62%);
  animation:woRaysSpin 26s linear infinite;
  opacity:.8;
}
@keyframes woRaysSpin { to { transform:translate(-50%,-50%) rotate(360deg); } }
.bp-wo-reveal .bp-wo-rays { opacity:1;
  background:repeating-conic-gradient(from 0deg,
    transparent 0deg 10deg, rgba(255,255,255,.08) 10deg 14deg); }

.bp-wo-stage { position:relative; z-index:2; }
.bp-wo-skip {
  position:absolute; bottom:5vh; left:0; right:0; z-index:2;
  text-align:center; font:700 .74rem/1 Outfit, sans-serif; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(255,255,255,.38);
  animation:woSkipBlink 2s ease-in-out infinite;
}
@keyframes woSkipBlink { 0%,100%{opacity:.3} 50%{opacity:.8} }
.bp-wo-beat {
  display:flex; flex-direction:column; align-items:center; gap:1.1rem;
  animation:woBeatIn .9s cubic-bezier(.2,.85,.3,1.02) both;
}
@keyframes woBeatIn {
  0%   { opacity:0; transform:scale(1.85); filter:blur(16px); }
  100% { opacity:1; transform:scale(1);    filter:blur(0); }
}
/* Respiration pendant le beat (l'élément reste vivant sans clic) */
.bp-wo-flag, .bp-wo-crest, .bp-wo-crest-fb {
  animation:woBreath 2.6s ease-in-out .9s infinite alternate;
}
@keyframes woBreath { from{transform:scale(1)} to{transform:scale(1.05)} }
.bp-wo-flag {
  width:210px; max-width:56vw; border-radius:10px;
  box-shadow:0 12px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.14);
}
.bp-wo-crest { width:170px; height:170px; max-width:46vw; object-fit:contain;
  filter:drop-shadow(0 12px 36px rgba(0,0,0,.65)); }
.bp-wo-crest-fb {
  width:150px; height:150px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, #2a2438, #171222);
  border:2px solid rgba(255,255,255,.15);
  font:900 4rem/1 Archivo, sans-serif; color:rgba(255,255,255,.8);
}
.bp-wo-label {
  font:900 clamp(1.3rem, 4.5vw, 2.1rem)/1.15 Archivo, sans-serif;
  text-transform:uppercase; letter-spacing:.1em; text-align:center;
  color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.8);
}
.bp-wo-epic .bp-wo-label      { text-shadow:0 0 26px rgba(155,89,182,.8), 0 2px 18px rgba(0,0,0,.8); }
.bp-wo-legendary .bp-wo-label { text-shadow:0 0 26px rgba(255,215,0,.7), 0 2px 18px rgba(0,0,0,.8); }
.bp-wo-beat-card { animation:woCardIn .6s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes woCardIn {
  0%   { opacity:0; transform:scale(.45) translateY(50px); filter:brightness(3) blur(8px); }
  60%  { filter:brightness(1.5) blur(0); }
  100% { opacity:1; transform:scale(1) translateY(0); filter:brightness(1); }
}
.bp-wo-card { width:250px; max-width:64vw; }
.bp-wo-card .player-card { width:100%; }
.bp-wo-epic .bp-wo-card      { filter:drop-shadow(0 0 34px rgba(155,89,182,.55)); }
.bp-wo-legendary .bp-wo-card { filter:drop-shadow(0 0 38px rgba(255,215,0,.55)); }
.bp-wo-iconic .bp-wo-card    { filter:drop-shadow(0 0 38px rgba(255,255,255,.6)); }


/* ── Recap ───────────────────────────────────────────────────────────── */
.bp-recap { padding:1rem 0; }
.bp-bonus-bar {
  text-align:center; margin:1.25rem auto .5rem; padding:.75rem 1.5rem;
  background:rgba(255,59,16,.12); border:1px solid rgba(255,59,16,.4);
  border-radius:.75rem; color:#ff6b3d; font-weight:700; font-size:1rem;
  max-width:480px; animation:recapPop .4s cubic-bezier(.2,.8,.3,1.1) both;
}
.bp-recap-title {
  text-align:center; font-size:1.1rem; font-weight:800; color:var(--gold);
  margin-bottom:1rem; letter-spacing:.05em;
}
.bp-recap-cards {
  display:flex; gap:1rem; justify-content:center; flex-wrap:wrap;
  padding:0 1rem;
}
.bp-recap-card {
  position:relative;
}
.bp-recap-card .player-card { pointer-events:none; width:210px; }
.bp-recap-pop {
  animation:recapPop .4s cubic-bezier(.2,.8,.3,1.1) both;
}
@keyframes recapPop {
  from { opacity:0; transform:scale(.6) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.bp-recap-dup {
  position:absolute; bottom:6px; right:6px; z-index:5;
  background:rgba(0,0,0,.7); color:#ffd700; font-size:.7rem; font-weight:800;
  padding:.2rem .5rem; border-radius:6px;
}

/* ── Cartes flip (réutilisé) ─────────────────────────────────────────── */
.bp-cards-row {
  display:flex; gap:1.25rem; justify-content:center; align-items:center;
  padding:.5rem 1rem 1rem; flex-wrap:wrap;
}

@media (max-width:800px) {
  .bp-flip-card { width:140px; height:240px; }
  .bp-pack-3d { width:160px; height:260px; }
  .bp-reveal-stage { width:180px; }
  .bp-reveal-stage .player-card,
  .bp-recap-card .player-card { width:180px; }
}
@media (max-width:600px) {
  .bp-pack-3d { width:min(44vw,170px); height:min(66vw,265px); }
  .bp-pack-content { padding:2.6rem .55rem 1.25rem; gap:.35rem; }
  .bp-pack-top-text { font-size:.62rem; }
  .bp-pack-label { font-size:1.02rem; }
  .bp-pack-sub { font-size:.52rem; padding:.24rem .65rem; }
  .bp-pack-row { justify-content:center; }
  .bp-reveal-stage { width:min(48vw,180px); }
  .bp-reveal-stage .player-card,
  .bp-recap-card .player-card { width:min(48vw,180px); }
  .bp-recap-cards { gap:.6rem; }
}

.bp-flip-wrapper {
  perspective:800px; position:relative;
}
.bp-flip-card {
  width:175px; height:290px; cursor:pointer;
  position:relative; overflow:visible;
}
.bp-flip-inner {
  width:100%; height:100%; position:relative;
  transition:transform .5s;
  transform-style:preserve-3d;
  will-change:transform;
}
.bp-flip-card.flipped .bp-flip-inner { transform:rotateY(180deg); }

.bp-flip-back, .bp-flip-front {
  position:absolute; inset:0; backface-visibility:hidden;
  border-radius:10px; overflow:hidden;
}
.bp-flip-back {
  background:linear-gradient(145deg, #1a1a2e, #16213e);
  border:2px solid rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  z-index:2;
}
.bp-flip-card:not(.flipped) .bp-flip-back:hover { border-color:rgba(255,215,0,.4); }
.bp-flip-card.flipped { cursor:default; }
.bp-back-logo { width:70px; height:70px; object-fit:contain; opacity:.25; }
.bp-flip-front {
  transform:rotateY(180deg);
  z-index:1;
}
.bp-flip-front.player-card {
  width:100%; position:absolute; inset:0;
}
.bp-flip-front.player-card:hover { transform:rotateY(180deg) !important; box-shadow:none !important; }

/* ── Glow après flip ─────────────────────────────────────────────────── */
.bp-glow-gold .bp-flip-card { filter:drop-shadow(0 0 20px rgba(255,215,0,.5)); }
.bp-glow-purple .bp-flip-card { filter:drop-shadow(0 0 18px rgba(155,89,182,.45)); }

/* ── Doublon badge ───────────────────────────────────────────────────── */
.bp-dup-badge {
  position:absolute; top:4px; right:4px; z-index:10;
  background:#ffd700; color:#000; font-size:.6rem; font-weight:900;
  padding:.15rem .4rem; border-radius:5px;
  animation:dupBounce .5s ease .6s both;
}
@keyframes dupBounce { 0%{transform:scale(0)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }

/* ── Particles ───────────────────────────────────────────────────────── */
.bp-particle {
  position:absolute; width:5px; height:5px; border-radius:50%;
  top:50%; left:50%; pointer-events:none;
  animation:particleBurst .8s ease-out forwards;
}
@keyframes particleBurst {
  0% { transform:translate(0,0) scale(1); opacity:1; }
  100% { transform:translate(var(--tx),var(--ty)) scale(0); opacity:0; }
}

/* ── Burn doublon ─────────────────────────────────────────────────────── */
.bp-burn .bp-flip-inner {
  animation: burnCard .8s ease forwards;
}
@keyframes burnCard {
  0%   { filter:brightness(1); transform:rotateY(180deg) scale(1); }
  30%  { filter:brightness(1.5) sepia(1) saturate(3) hue-rotate(-10deg); transform:rotateY(180deg) scale(1.02); }
  60%  { filter:brightness(2) sepia(1) saturate(5) hue-rotate(-20deg); transform:rotateY(180deg) scale(.95); opacity:.7; }
  100% { filter:brightness(3); transform:rotateY(180deg) scale(.3); opacity:0; }
}
.bp-coin-result {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%; height:100%;
  animation: coinAppear .5s ease;
}
.bp-coin-icon { font-size:3rem; animation: coinBounce .6s ease; }
.bp-coin-text {
  font-size:1.1rem; font-weight:900; color:#ffd700;
  margin-top:.3rem; text-shadow:0 0 10px rgba(255,215,0,.5);
}
@keyframes coinAppear { from{opacity:0;transform:scale(.5)} to{opacity:1;transform:scale(1)} }
@keyframes coinBounce { 0%{transform:scale(0) rotate(-20deg)} 60%{transform:scale(1.3) rotate(5deg)} 100%{transform:scale(1) rotate(0)} }

.bp-ghost-card {
  position:absolute; inset:0; z-index:5;
  border-radius:13px; overflow:hidden;
  opacity:0; pointer-events:none;
  transition:opacity .3s ease;
}
.bp-ghost-card.visible { opacity:1; }
.bp-ghost-card .player-card {
  width:100%; filter:grayscale(1);
  pointer-events:none;
  transform:none !important;
}

/* ── Saved section ───────────────────────────────────────────────────── */
.saved-badge { font-size:.8rem; background:var(--bg-card-2); border:1px solid var(--border); padding:.25rem .7rem; border-radius:20px; color:var(--gold); font-weight:700; display:inline-flex; align-items:center; gap:.35rem; }
.saved-section { padding:1.25rem; margin-top:1.5rem; border-left:3px solid var(--gold); }
.saved-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.saved-title { font-size:1rem; font-weight:700; color:var(--gold); margin-bottom:.2rem; }
.saved-sub { font-size:.83rem; color:var(--text-muted); }

/* ── Booster page header ─────────────────────────────────────────────── */
.booster-page-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.bph-title { font:800 1.15rem/1 Archivo, sans-serif; display:flex; align-items:center; gap:.5rem; color:var(--text); }
.bph-title i { color:var(--gold); width:20px; height:20px; }

/* ── Streak widget ────────────────────────────────────────────────────── */
.streak-widget {
  max-width:1000px; margin:2rem auto 0; padding:1.6rem 2.4rem;
  background:linear-gradient(135deg, var(--bg-card-2), var(--bg-card));
  border:1px solid var(--border); border-radius:var(--radius-sm);
  transition: box-shadow .4s ease, transform .3s ease;
}
.streak-pulse { animation:streakPulse 1.4s ease; }
@keyframes streakPulse {
  0%   { box-shadow:0 0 0 rgba(255,59,16,0); }
  30%  { box-shadow:0 0 28px rgba(255,59,16,.65); transform:scale(1.02); }
  100% { box-shadow:0 0 0 rgba(255,59,16,0); transform:scale(1); }
}
.streak-row { display:flex; align-items:center; gap:1.1rem; }
.streak-flame {
  flex:none; width:46px; height:46px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(108,117,125,.15); color:var(--text-dim);
  transition: background .3s ease, color .3s ease;
}
.streak-flame i { width:24px; height:24px; }
.streak-flame-hot { background:rgba(255,107,53,.18); color:#ff6b35; animation:flameFlicker 1.6s ease-in-out infinite; }
@keyframes flameFlicker {
  0%, 100% { filter:drop-shadow(0 0 2px rgba(255,107,53,.5)); }
  50%      { filter:drop-shadow(0 0 8px rgba(255,107,53,.85)); }
}
.streak-info { flex:1; min-width:0; }
.streak-title { font-size:.92rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; }
.streak-sub { font-size:1.02rem; color:var(--text); margin-top:.2rem; }
.streak-sub strong { color:#ff5a36; }
.streak-dots { position:relative; display:flex; gap:6px; margin-top:1.75rem; justify-content:space-between; }
.streak-track {
  position:absolute; left:24px; right:24px; top:50%; height:4px;
  background:rgba(255,255,255,.08); border-radius:2px; transform:translateY(-50%); z-index:0;
}
.streak-track-fill {
  height:100%; border-radius:2px; width:0%;
  background:linear-gradient(90deg, #ff2d10, #ff8a3d);
  box-shadow:0 0 6px rgba(255,59,16,.55);
  transition: width .5s ease;
}
.streak-dot {
  position:relative; z-index:1; flex:none;
  width:48px; height:48px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-card-2); border:2px solid var(--border);
  font:800 16px/1 Archivo, sans-serif; color:var(--text-dim);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease, color .3s ease;
}
.streak-dot.filled {
  background:linear-gradient(135deg, #ff7a4d, #ff2d10);
  border-color:#ff2d10; color:#fff;
  box-shadow:0 0 10px rgba(255,59,16,.6);
  transform:scale(1.08);
}
.streak-dot-bonus { color:#ff7a3d; border-color:rgba(255,90,30,.5); }
.streak-dot-bonus i { width:20px; height:20px; }
.streak-dot-bonus.filled { background:linear-gradient(135deg, #ff9a5c, #ff2d10); box-shadow:0 0 16px rgba(255,59,16,.85); }
.streak-dot-bonus.filled i { color:#fff; }

.streak-dot-next {
  overflow:visible;
  border-color:#ff3b1f; color:#fff;
  background:radial-gradient(circle at 50% 130%, rgba(255,60,10,.55), var(--bg-card-2) 65%);
  animation:streakDotFire 1.1s ease-in-out infinite;
}
.streak-dot-next i { width:21px; height:21px; color:#ffd9a0; filter:drop-shadow(0 0 4px rgba(255,90,30,.85)); position:relative; z-index:2; animation:streakFlameFlicker 1.1s ease-in-out infinite; }
@keyframes streakDotFire {
  0%, 100% { border-color:#ff3b1f; box-shadow:0 0 8px rgba(255,40,10,.6), inset 0 0 6px rgba(255,60,10,.3); }
  50%      { border-color:#ff7a1f; box-shadow:0 0 22px rgba(255,80,10,1), inset 0 0 10px rgba(255,80,10,.5); }
}
@keyframes streakFlameFlicker {
  0%, 100% { transform:scale(1) translateY(0); filter:drop-shadow(0 0 3px rgba(255,90,30,.7)); }
  50%      { transform:scale(1.12) translateY(-1px); filter:drop-shadow(0 0 7px rgba(255,140,40,1)); }
}

/* Vraie flamme animée léchant le contour du rond actif */
.streak-fire-tongue {
  position:absolute; left:50%; bottom:55%;
  width:14px; height:23px; margin-left:-7px;
  background:linear-gradient(180deg, #fff3c4 0%, #ffb238 30%, #ff4500 65%, transparent 100%);
  border-radius:50% 50% 50% 50% / 65% 65% 35% 35%;
  transform-origin:bottom center;
  z-index:0; opacity:.9; filter:blur(.3px);
}
.streak-fire-tongue.t1 { animation:streakFireTongue 0.9s ease-in-out infinite; }
.streak-fire-tongue.t2 { left:24%; animation:streakFireTongueLeft 1.15s ease-in-out infinite .15s; }
.streak-fire-tongue.t3 { left:76%; animation:streakFireTongueRight 1.05s ease-in-out infinite .3s; }

@media (max-width:600px) {
  .streak-widget { padding:1.25rem 1.1rem; }
  .streak-row { gap:.75rem; }
  .streak-flame { width:38px; height:38px; }
  .streak-flame i { width:20px; height:20px; }
  .streak-title { font-size:.78rem; }
  .streak-sub { font-size:.88rem; }
  .streak-dots { gap:3px; margin-top:1.5rem; }
  .streak-track { left:17px; right:17px; }
  .streak-dot { width:34px; height:34px; font-size:13px; }
  .streak-dot-bonus i, .streak-dot-next i { width:16px; height:16px; }
  .streak-fire-tongue { width:11px; height:18px; margin-left:-5.5px; }
}
@keyframes streakFireTongue {
  0%, 100% { transform:scaleY(.8) rotate(-5deg); opacity:.7; }
  50%      { transform:scaleY(1.35) rotate(5deg); opacity:1; }
}
@keyframes streakFireTongueLeft {
  0%, 100% { transform:rotate(-22deg) scale(.7); opacity:.65; }
  50%      { transform:rotate(-12deg) scale(.95); opacity:1; }
}
@keyframes streakFireTongueRight {
  0%, 100% { transform:rotate(22deg) scale(.7); opacity:.65; }
  50%      { transform:rotate(12deg) scale(.95); opacity:1; }
}

/* ── Extracted from collection.php ── */

/* ── Block 1: lines 282–298 ── */
.ach-section { margin-bottom:1.25rem; }
.ach-section-title { font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; color:var(--text-muted); margin-bottom:.5rem; }
.ach-item { display:flex; align-items:center; gap:.75rem; padding:.6rem .75rem; border-radius:8px; background:var(--bg-card); border:1px solid var(--border); margin-bottom:.4rem; }
.ach-item.ach-done { border-color:rgba(39,174,96,.3); background:rgba(39,174,96,.04); }
.ach-item.ach-claimed { opacity:.6; }
.ach-icon { font-size:1.2rem; flex-shrink:0; }
.ach-info { flex:1; min-width:0; }
.ach-name { font-size:.82rem; font-weight:700; }
.ach-desc { font-size:.68rem; color:var(--text-muted); }
.ach-bar { height:5px; background:var(--bg-card-2); border-radius:3px; margin-top:.3rem; overflow:hidden; }
.ach-bar-fill { height:100%; background:linear-gradient(90deg,var(--accent),var(--green)); border-radius:3px; }
.ach-progress { font-size:.65rem; color:var(--text-muted); margin-top:.15rem; }
.ach-reward { flex-shrink:0; }
.ach-reward-locked { font-size:.72rem; color:var(--text-muted); opacity:.5; }
.ach-reward-claimed { font-size:.72rem; color:var(--green); font-weight:700; }
/* Achievement grid — blocs compacts */
.ach-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.ach-block {
  padding: 1.25rem 1rem !important; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .4rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.ach-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ach-block-icon {
  position: absolute; top: -8px; right: -8px;
  opacity: .08; pointer-events: none;
}
.ach-block-icon[data-lucide] { width: 60px; height: 60px; }
.ach-ring { width: 72px; height: 72px; }
.ach-block-title {
  font: 800 .85rem/1.2 Archivo, sans-serif;
  text-transform: uppercase; letter-spacing: -.2px;
}
.ach-block-sub { font-size: .7rem; color: var(--text-muted); }
.ach-block-badge {
  position: absolute; top: 6px; right: 6px;
  color: var(--gold); animation: pulse 1.5s ease-in-out infinite;
}
.ach-block-badge [data-lucide] { width: 16px; height: 16px; }
.ach-block-complete {
  position: absolute; bottom: 6px; right: 6px;
  color: var(--green);
}
.ach-block-complete [data-lucide] { width: 18px; height: 18px; }
.ach-glow { border-color: rgba(255,215,0,.4) !important; box-shadow: 0 0 12px rgba(255,215,0,.15); }

/* Modal succès */
.ach-modal {
  display: none; position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.ach-modal.open { display: flex; animation: fadeIn .15s ease; }
.ach-modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; width: min(480px, 92vw);
  max-height: 80vh; overflow-y: auto;
  padding: 1.25rem; position: relative;
  animation: fadeInUp .25s ease;
}
.ach-modal-close {
  position: absolute; top: .6rem; right: .8rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.ach-modal-close:hover { color: var(--text); }
.ach-modal-title {
  font: 800 1.1rem/1 Archivo, sans-serif;
  text-transform: uppercase; margin-bottom: .75rem;
}
.ach-done-section {
  margin-top: .75rem; border-top: 1px solid var(--border); padding-top: .5rem;
}
.ach-done-toggle {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; gap: .3rem;
  padding: .3rem 0; list-style: none;
}
.ach-done-toggle::-webkit-details-marker { display: none; }
.ach-done-toggle [data-lucide] { width: 14px; height: 14px; }
.ach-done-toggle::after {
  content: '›'; margin-left: auto; font-size: 1rem;
  transition: transform .2s;
}
details[open] > .ach-done-toggle::after { transform: rotate(90deg); }

/* ── Block 2: lines 465–493 ── */
.cz-overlay {
  position:fixed; inset:0; z-index:10000; background:rgba(0,0,0,.85);
  display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(6px);
  transition:opacity .25s ease;
}
.cz-content { display:flex; flex-direction:column; align-items:center; gap:.8rem; }
.cz-close {
  position:fixed; top:1.5rem; right:1.5rem;
  background:none; border:none; color:rgba(255,255,255,.45); font-size:2.2rem; cursor:pointer;
  transition:color .2s; line-height:1; z-index:10001;
}
.cz-close:hover { color:#fff; }
.cz-card-wrap .player-card {
  transform:scale(1.45) !important;
  transform-origin:center center;
  cursor:default !important;
}
.cz-card-wrap .player-card:hover { transform:scale(1.45) !important; }
.cz-date {
  font-size:.78rem; color:rgba(255,255,255,.4); font-weight:600;
  text-align:center; font-style:italic; margin-top:1.5rem;
}
@media (max-width:600px) {
  .cz-card-wrap .player-card { transform:scale(1.25) !important; }
  .cz-card-wrap .player-card:hover { transform:scale(1.25) !important; }
  .cz-date { margin-top:1rem; }
}

/* ── Extracted from match.php ── */

/* ── <style> block: lines 349-545 ── */
.match-layout {
  display:grid; grid-template-columns:1fr minmax(auto, 680px) 1fr; gap:1rem; align-items:start;
}
.match-wrap { width:100%; }
@media (max-width:1100px) {
  .match-layout { grid-template-columns:1fr; }
  .match-lineup { display: none; }
  .ms-logo { cursor: pointer; }
}

/* Popup lineup mobile */
.lineup-modal {
  display: none; position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.lineup-modal.open { display: flex; animation: fadeIn .15s ease; }
.lineup-modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; width: min(400px, 92vw);
  max-height: 85vh; overflow-y: auto;
  padding: 1.25rem; position: relative;
  animation: fadeInUp .25s ease;
}
.lineup-modal-close {
  position: absolute; top: .5rem; right: .75rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.lineup-modal-close:hover { color: var(--text); }
.match-wrap { width:100%; }

/* ── Compositions mini-pitch ──────────────────────────────────── */
.match-lineup { text-align:center; }
.ml-title { font: 900 1rem/1.2 Archivo, sans-serif; text-transform:uppercase; letter-spacing:-.2px; margin-top:.5rem; margin-bottom:.5rem; }
.mp-pitch {
  background:#2d6a35;
  background-image:linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size:40px 40px;
  border-radius:8px; border:2px solid rgba(255,255,255,.1);
  padding:.6rem .4rem; position:relative;
  display:flex; flex-direction:column; justify-content:space-between;
  width:260px; height:360px; box-sizing:border-box;
}

/* ── Skin de pelouse « Grand Stade — Saison 1 » (palier 20 du pass) ─────────
   Couches (de haut en bas) : lumière de projecteurs, point + rond central,
   ligne médiane, damier de tonte (2 gradients croisés), vert de base. */
.pitch.pitch-skin-saison1 {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, transparent 0 46px, rgba(255,255,255,.4) 46px 48px, transparent 49px),
    linear-gradient(transparent 0 calc(50% - 1px), rgba(255,255,255,.4) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 46px, transparent 46px 92px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 46px, transparent 46px 92px),
    #2d6a35;
}
.mp-pitch.pitch-skin-saison1 {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.09), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, transparent 0 30px, rgba(255,255,255,.4) 30px 32px, transparent 33px),
    linear-gradient(transparent 0 calc(50% - 1px), rgba(255,255,255,.4) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 30px, transparent 30px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 30px, transparent 30px 60px),
    #2d6a35;
}

.mp-formation {
  position:absolute; top:.3rem; right:.4rem;
  font-size:.6rem; font-weight:700; color:rgba(255,255,255,.4);
}
.mp-row { display:flex; justify-content:center; gap:.2rem; }
.mp-slot {
  display:flex; flex-direction:column; align-items:center;
  width:48px; text-align:center;
}
.mp-empty { opacity:.3; }
.mp-slot-label { font-size:.55rem; color:rgba(255,255,255,.4); font-weight:700; margin-top:.8rem; }
.mp-photo-wrap {
  width:32px; height:32px; border-radius:50%; overflow:hidden;
  border:2px solid rgba(255,255,255,.3);
  background:rgba(0,0,0,.3);
  display:flex; align-items:center; justify-content:center;
}
.mp-slot.legendary .mp-photo-wrap { border-color:var(--gold); box-shadow:0 0 6px rgba(249,199,79,.5); }
.mp-slot.iconic .mp-photo-wrap { border-color:#fff; box-shadow:0 0 8px rgba(255,255,255,.6); }
.mp-slot.epic .mp-photo-wrap { border-color:var(--purple); box-shadow:0 0 5px rgba(155,89,182,.4); }
.mp-slot.rare .mp-photo-wrap { border-color:var(--blue); }
.mp-photo { width:100%; height:100%; object-fit:cover; }
.mp-init { font-size:.65rem; font-weight:800; color:rgba(255,255,255,.5); }
.mp-ovr { font-size:.68rem; font-weight:900; color:#fff; margin-top:.1rem; }
.mp-name { font-size:.52rem; font-weight:700; color:rgba(255,255,255,.8); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:48px; }

/* ── Stats sous terrain ──────────────────────────────────────────── */
.ml-stats {
  margin-top:.6rem; padding:.6rem; background:var(--bg-card);
  border:1px solid var(--border); border-radius:8px;
}
.mls-row {
  display:flex; justify-content:space-between; align-items:center;
  font-size:.75rem; padding:.2rem 0;
}
.mls-row + .mls-row { border-top:1px solid rgba(255,255,255,.04); }
.mls-label { color:var(--text-muted); font-weight:600; }
.mls-form-label { font-size:.7rem; font-weight:700; color:var(--text-muted); margin-top:.4rem; margin-bottom:.3rem; }
.mls-form { display:flex; gap:.35rem; flex-wrap:wrap; flex-direction:row-reverse; justify-content:center; }
.mls-form-item {
  display:flex; flex-direction:column; align-items:center; gap:.15rem;
  padding:.2rem; border-radius:5px; min-width:32px;
}
.mls-win { background:rgba(39,174,96,.12); }
.mls-loss { background:rgba(231,76,60,.12); }
.mls-draw { background:rgba(255,255,255,.05); }
.mls-form-res { font-size:.65rem; font-weight:900; }
.mls-win .mls-form-res { color:var(--green); }
.mls-loss .mls-form-res { color:var(--red); }
.mls-draw .mls-form-res { color:var(--text-muted); }
.mls-opp-logo { width:20px; height:20px; object-fit:contain; border-radius:3px; }
.mls-opp-fb { width:20px; height:20px; border-radius:3px; }

/* ── Synergies match ─────────────────────────────────────────────── */
.mls-syn { margin-top:.4rem; }
.mls-syn-list { display:flex; gap:.3rem; flex-wrap:wrap; justify-content:center; }
.mls-syn-item {
  display:flex; align-items:center; gap:.3rem;
  padding:.2rem .4rem; border-radius:5px;
  border-left:2px solid transparent;
  font-size:.72rem; cursor:default; position:relative;
}
.mls-syn-bronze { border-left-color:#cd7f32; background:rgba(205,127,50,.1); }
.mls-syn-silver { border-left-color:#c0c0c0; background:rgba(192,192,192,.1); }
.mls-syn-gold   { border-left-color:#ffd700; background:rgba(255,215,0,.12); }
.mls-syn-hex {
  width:18px; height:18px; display:flex; align-items:center; justify-content:center;
  font-size:.65rem; font-weight:900; background:rgba(255,255,255,.08);
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.mls-syn-bronze .mls-syn-hex { background:rgba(205,127,50,.3); color:#cd7f32; }
.mls-syn-silver .mls-syn-hex { background:rgba(192,192,192,.3); color:#e0e0e0; }
.mls-syn-gold   .mls-syn-hex { background:rgba(255,215,0,.3);   color:#ffd700; }
.mls-syn-name { font-weight:700; }
.mls-syn-item:hover::after {
  content:attr(data-club); position:absolute; bottom:calc(100% + 4px); left:50%; transform:translateX(-50%);
  background:var(--bg-card); border:1px solid var(--border); color:var(--text);
  font-size:.65rem; font-weight:700; padding:2px 6px; border-radius:4px; white-space:nowrap; z-index:10;
  box-shadow:0 2px 8px rgba(0,0,0,.4); pointer-events:none;
}
.mls-form-item { position:relative; cursor:default; }
.mls-form-item:hover::after {
  content:attr(data-club); position:absolute; bottom:calc(100% + 4px); left:50%; transform:translateX(-50%);
  background:var(--bg-card); border:1px solid var(--border); color:var(--text);
  font-size:.65rem; font-weight:700; padding:2px 6px; border-radius:4px; white-space:nowrap; z-index:10;
  box-shadow:0 2px 8px rgba(0,0,0,.4); pointer-events:none;
}

.match-scoreboard {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center; gap:1rem; padding:1.75rem 1.25rem;
  background:linear-gradient(135deg,var(--bg-card) 0%,rgba(26,115,232,.06) 100%);
  border:1px solid rgba(26,115,232,.2); border-radius:16px; margin-bottom:1rem;
}
.ms-team { display:flex; flex-direction:column; align-items:center; gap:.5rem; min-width:0; max-width:100%; }
.ms-team-right { }
.ms-logo { display:flex; justify-content:center; }
.ms-name { font: 900 1.1rem/1.2 Archivo, sans-serif; text-align:center; text-transform:uppercase; letter-spacing:-.3px; max-width:100%; overflow-wrap:break-word; }
.ms-name.ms-name-sm { font-size:.85rem; letter-spacing:0; }
.ms-name.ms-name-xs { font-size:.68rem; letter-spacing:0; }
.ms-pseudo { font-size:.72rem; color:var(--text-muted); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-center { display:flex; flex-direction:column; align-items:center; gap:.55rem; }
.ms-score {
  display:flex; align-items:center; gap:.6rem;
  font: 900 3.5rem/1 Archivo, sans-serif; letter-spacing:-1px;
  text-shadow:0 2px 8px rgba(0,0,0,.4);
}
.ms-sep { font-size:2rem; color:var(--text-muted); }
.ms-pens { font: 700 .95rem/1 Archivo, sans-serif; color: var(--text-muted); letter-spacing: .3px; }
.ms-tab-dots { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: .35rem; }
.ms-tab-dots-row { display: flex; align-items: center; gap: 4px; }
.tab-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.15); flex-shrink: 0; }
.tab-dot.scored { background: var(--green, #43a047); }
.tab-dot.missed { background: var(--red, #e53935); }
.ms-clock-wrap { display:flex; align-items:center; gap:.45rem; }
.ms-live-dot { width:9px; height:9px; border-radius:50%; background:var(--red); flex-shrink:0; animation:pulse 1s infinite; }
.ms-live-dot.paused { background:var(--gold); animation:none; }
#matchClock { font-size:1.45rem; font-weight:900; letter-spacing:2px; font-variant-numeric:tabular-nums; color:var(--text); font-family:monospace; }

.match-status-bar {
  display:flex; justify-content:center; align-items:center;
  padding:.55rem 1rem; background:var(--bg-card-2); border-radius:10px;
  font-size:.85rem; color:var(--text-muted); margin-bottom:1rem;
}
.status-live { color:var(--red); font-weight:700; animation:pulse 1.2s infinite; }

.match-feed {
  display:flex; flex-direction:column; gap:.35rem;
  max-height:55vh; overflow-y:auto; padding:.75rem;
  background:var(--bg-card); border-radius:12px;
  scrollbar-width:thin; scrollbar-color:var(--accent) var(--bg-card-2);
}
.match-feed::-webkit-scrollbar { width:5px; }
.match-feed::-webkit-scrollbar-track { background:var(--bg-card-2); border-radius:3px; }
.match-feed::-webkit-scrollbar-thumb { background:var(--accent); border-radius:3px; }
.match-feed::-webkit-scrollbar-thumb:hover { background:var(--text-muted); }
.feed-empty { color:var(--text-muted); text-align:center; padding:3rem; font-size:.9rem; }
.match-event {
  display:flex; align-items:center; gap:.6rem;
  padding:.45rem .75rem; border-radius:8px;
  font-size:.84rem; background:var(--bg-card-2);
  border-left:3px solid transparent; transition:background .3s;
}
.match-event.ev-neutral { background:rgba(255,193,7,.06); }
.match-event[data-type="commentaire"] { opacity:.8; font-size:.8rem; }
.match-event.ev-new { background:rgba(26,115,232,.18); }
.ev-team-logo { width:18px; height:18px; object-fit:contain; border-radius:3px; flex-shrink:0; }
.ev-team-logo-fb { width:18px; height:18px; border-radius:3px; flex-shrink:0; }
.ev-min { font-size:.72rem; font-weight:800; color:var(--text-muted); min-width:28px; }
.ev-ico { font-size:1rem; flex-shrink:0; }
.ev-txt { flex:1; line-height:1.35; }
.ev-scr { font-weight:800; font-size:.88rem; color:var(--gold); white-space:nowrap; }


/* ── Animation but ─────────────────────────────────────────────────── */
/* ── Goal Animation ────────────────────────────────────────────────────── */
.goal-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  animation: goalFlash 2.5s ease forwards;
}
@keyframes goalFlash {
  0%   { background: rgba(255,215,0,0); }
  8%   { background: rgba(255,215,0,.25); }
  15%  { background: rgba(255,215,0,.08); }
  20%  { background: rgba(255,215,0,.15); }
  30%  { background: rgba(255,215,0,.05); }
  100% { background: rgba(255,215,0,0); opacity: 0; }
}
.goal-title {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font: 900 5rem/1 Archivo, sans-serif;
  text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 40px rgba(255,215,0,.8), 0 0 80px rgba(255,215,0,.4), 0 4px 20px rgba(0,0,0,.5);
  z-index: 10000; pointer-events: none;
  animation: goalTitleIn 2.5s ease both;
}
@keyframes goalTitleIn {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(-8deg); opacity: 0; }
  10%  { transform: translate(-50%,-50%) scale(1.15) rotate(2deg); opacity: 1; }
  15%  { transform: translate(-50%,-50%) scale(1) rotate(0); opacity: 1; }
  80%  { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}
.goal-subtitle {
  font: 700 1.2rem/1 Outfit, sans-serif;
  color: rgba(255,255,255,.7);
  letter-spacing: .15em; text-transform: uppercase;
  animation: goalSubIn .4s ease .3s both;
}
.goal-gif {
  position: fixed; top: 68%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  max-width: min(320px, 80vw); max-height: 220px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 10000; pointer-events: none;
  animation: goalTitleIn 2.5s ease .1s both;
}
@keyframes goalSubIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.goal-confetti {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 8px; height: 16px; border-radius: 2px;
  animation: confettiFall var(--fall-dur, 2s) ease-out forwards;
}
@keyframes confettiFall {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--cx, 0), var(--cy, 400px)) rotate(var(--cr, 720deg)) scale(0.3); opacity: 0; }
}
@keyframes goalShake {
  0%, 100% { transform: none; }
  10% { transform: translate(-4px, 2px); }
  20% { transform: translate(4px, -2px); }
  30% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -1px); }
  50% { transform: translate(-2px, 1px); }
}
@media (max-width: 768px) {
  .goal-title { font-size: 3rem; }
  .goal-subtitle { font-size: .9rem; }
}

/* ═══ Skin de but « Chapitre 2 » : ÉRUPTION cinématique ═══════════════════
   Séquence multi-couches, entièrement aux couleurs du club qui marque (--c) :
   onde de choc + rayons tournants + explosion de particules + slam du titre
   avec aberration chromatique + traînée de lumière. Tout dans un wrapper .g2-fx
   posé/retiré par le JS (match.php / aperçu communaute). ~2.8 s. */
.g2-fx {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden;
  --c: #38bdf8; /* couleur fixe de l'éruption Chapitre 2 (bleu électrique) */
  perspective: 900px;
}

/* Coup de projecteur radial */
.g2-punch {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--c) 60%, transparent) 0%, transparent 62%);
  animation: g2Punch 2.6s ease forwards; mix-blend-mode: screen;
}
@keyframes g2Punch {
  0% { opacity: 0; transform: scale(.55); }
  5% { opacity: 1; transform: scale(1); }
  22% { opacity: .3; } 100% { opacity: 0; }
}

/* Rayons de gloire tournants */
.g2-rays {
  position: absolute; top: 50%; left: 50%;
  width: 220vmax; height: 220vmax;
  background: repeating-conic-gradient(from 0deg,
    color-mix(in srgb, var(--c) 24%, transparent) 0deg 5deg, transparent 5deg 16deg);
  transform: translate(-50%,-50%) rotate(0) scale(.3);
  animation: g2Rays 2.6s ease-out forwards; mix-blend-mode: screen;
}
@keyframes g2Rays {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(0) scale(.3); }
  10% { opacity: .95; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(55deg) scale(1); }
}

/* Ondes de choc concentriques */
.g2-shock {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid color-mix(in srgb, var(--c) 75%, #fff);
  box-shadow: 0 0 34px var(--c), inset 0 0 20px color-mix(in srgb, var(--c) 60%, transparent);
  transform: translate(-50%,-50%) scale(0);
  animation: g2Shock 1s ease-out forwards;
}
@keyframes g2Shock {
  0% { opacity: .95; transform: translate(-50%,-50%) scale(0); border-width: 6px; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(32); border-width: 1px; }
}

/* Explosion de particules (jaillissent du centre vers --tx/--ty) */
.g2-particle {
  position: absolute; top: 50%; left: 50%; border-radius: 2px;
  background: color-mix(in srgb, var(--c) 85%, #fff);
  box-shadow: 0 0 10px var(--c), 0 0 22px var(--c);
  transform: translate(-50%,-50%);
  animation: g2Part var(--pd, .9s) cubic-bezier(.12,.7,.25,1) forwards;
}
@keyframes g2Part {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(1.2); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.15); }
}

/* Traînée de lumière balayant l'écran */
.g2-streak {
  position: absolute; top: 0; left: -70%; width: 65%; height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 65%, #fff) 50%, transparent);
  animation: g2Streak 1.05s ease-in .12s forwards; mix-blend-mode: screen;
}
@keyframes g2Streak { 0% { left: -70%; opacity: 0; } 22% { opacity: .85; } 100% { left: 125%; opacity: 0; } }

/* Titre : slam depuis la profondeur + aberration chromatique */
.g2-title {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font: 900 clamp(3.5rem, 15vw, 9.5rem)/1 Archivo, sans-serif;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 26px var(--c), 0 0 64px var(--c), 0 6px 30px rgba(0,0,0,.55);
  animation: g2Title 2.6s cubic-bezier(.2,1.35,.3,1) both;
}
.g2-title::before, .g2-title::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
  pointer-events: none;
}
.g2-title::before { color: color-mix(in srgb, var(--c) 90%, #fff); animation: g2ChromA .45s steps(2) 5 both; }
.g2-title::after  { color: #fff; opacity: .45; animation: g2ChromB .45s steps(2) 5 both; }
@keyframes g2Title {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(2.3) translateZ(0); filter: blur(16px); }
  8%   { opacity: 1; transform: translate(-50%,-50%) scale(.88); filter: blur(0); }
  14%  { transform: translate(-50%,-50%) scale(1.06); }
  20%  { transform: translate(-50%,-50%) scale(1); }
  82%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.16); }
}
@keyframes g2ChromA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-5px,3px); } }
@keyframes g2ChromB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5px,-3px); } }

/* ── Salon des skins (onglet Mon Club) ────────────────────────────────────
   Accent = couleur du club (--club-color, posée en inline par communaute.php). */
.skins-salon { --club-color: var(--accent); }
.skins-salon-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.skins-salon-head h3 { display: flex; align-items: center; gap: .45rem; font-size: .98rem; margin: 0; }
.skins-salon-head h3 [data-lucide] { width: 18px; height: 18px; color: var(--club-color); }
.skins-pass-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font: 800 .66rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  padding: .28rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--club-color) 14%, transparent);
  color: var(--club-color);
  border: 1px solid color-mix(in srgb, var(--club-color) 35%, transparent);
  text-decoration: none;
}
.skins-pass-badge [data-lucide] { width: 13px; height: 13px; }
.skins-pass-cta { background: rgba(148,163,184,.12); color: var(--text-muted); border-color: var(--border); }
.skins-salon-sub { font-size: .78rem; color: var(--text-muted); margin: .35rem 0 .9rem; }
.skins-locked .skins-choice:not(.disabled) { opacity: 1; }
.skins-section { margin-top: .3rem; }
.skins-label { display: flex; align-items: center; gap: .4rem; font: 800 .82rem/1 Archivo, sans-serif; }
.skins-label [data-lucide] { width: 15px; height: 15px; color: var(--club-color); }
.skins-hint { font-size: .74rem; color: var(--text-muted); margin: .3rem 0 .7rem; }
.skins-choices { display: flex; flex-direction: column; gap: .5rem; }
.skins-choice {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.skins-choice:hover { border-color: color-mix(in srgb, var(--club-color) 40%, transparent); }
.skins-choice.selected {
  border-color: var(--club-color);
  background: color-mix(in srgb, var(--club-color) 8%, transparent);
}
.skins-choice.disabled { cursor: not-allowed; opacity: .55; }
.skins-choice input { accent-color: var(--club-color); flex-shrink: 0; }
.skins-choice-main { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.skins-choice-title { display: flex; align-items: center; gap: .4rem; font: 700 .88rem/1.2 Outfit, sans-serif; }
.skins-choice-desc { font-size: .74rem; color: var(--text-muted); }
.skins-choice-locknote { font-size: .72rem; color: var(--club-color); margin-top: .15rem; font-weight: 700; }
/* Aperçus miniatures des pelouses dans le sélecteur */
.pitch-swatch {
  width: 42px; height: 42px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.18);
}
/* Aperçu de la pelouse en overlay plein écran (détail d'un palier du pass) */
.pitch-preview-overlay {
  position: fixed; inset: 0; z-index: 9998; cursor: pointer;
  background: rgba(0,0,0,.62); backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  animation: fadeIn .18s ease;
}
.pitch-preview-big {
  width: min(250px, 70vw); height: min(340px, 60vh);
  border-radius: 12px; border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.09), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 50% 50%, transparent 0 32px, rgba(255,255,255,.4) 32px 34px, transparent 35px),
    linear-gradient(transparent 0 calc(50% - 1px), rgba(255,255,255,.4) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 30px, transparent 30px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 30px, transparent 30px 60px),
    #2d6a35;
}
.pitch-preview-hint { color: #fff; font: 700 .85rem/1 Outfit, sans-serif; opacity: .85; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pitch-swatch-classic { background: #2d6a35; }
.pitch-swatch-saison1 {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 8px, rgba(255,255,255,.5) 8px 9px, transparent 10px),
    linear-gradient(transparent 0 calc(50% - 1px), rgba(255,255,255,.5) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 7px, transparent 7px 14px),
    #2d6a35;
}
.skins-tag {
  font: 800 .58rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  padding: .15rem .35rem; border-radius: 4px;
  background: color-mix(in srgb, var(--club-color) 16%, transparent); color: var(--club-color);
}
.skins-lock-ico { width: 13px; height: 13px; color: var(--text-muted); }
.skins-preview-btn { flex-shrink: 0; }

/* Photo de joueur favori */
.skins-fav { margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.skins-fav-locked {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-muted);
  padding: .6rem .8rem; border: 1px dashed var(--border); border-radius: var(--radius-sm);
}
.skins-fav-locked [data-lucide] { width: 15px; height: 15px; }
.skins-fav-locked a { color: var(--club-color); font-weight: 700; }
.skins-fav-current {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .7rem; margin-bottom: .7rem;
  border: 1px solid color-mix(in srgb, var(--club-color) 35%, transparent);
  background: color-mix(in srgb, var(--club-color) 7%, transparent);
  border-radius: var(--radius-sm);
}
.skins-fav-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.skins-fav-cur-info { display: flex; flex-direction: column; gap: .1rem; }
.skins-fav-cur-name { font: 700 .9rem/1.2 Outfit, sans-serif; }
.skins-fav-cur-sub { font-size: .72rem; color: var(--club-color); font-weight: 700; }
.skins-fav-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.skins-fav-row select { flex: 1; min-width: 160px; }
.skins-fav-file { flex: 1; min-width: 160px; font-size: .8rem; }

/* Badges à côté du pseudo (rendu partout : classements, communauté, match…) */
.user-badges { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; vertical-align: middle; }
.user-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--bdg) 20%, transparent);
  color: var(--bdg); border: 1px solid color-mix(in srgb, var(--bdg) 45%, transparent);
}
.user-badge [data-lucide] { width: 10px; height: 10px; }
/* Badge illustré (trophée PNG) : l'image remplit la pastille, sans fond ni bord */
/* Badges illustrés (trophées PNG) : même gabarit que les badges icône,
   avec une lueur à la couleur du titre (L1 dorée, L2 argentée, BêtiseCup bleutée) */
.user-badge-img {
  background: none; border: none; width: 16px; height: 16px;
}
.user-badge-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 0 2px var(--bdg)) drop-shadow(0 0 5px color-mix(in srgb, var(--bdg) 65%, transparent));
}

/* Sélecteur de badges dans le salon */
.skins-badges { margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.skins-badge-note {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: .7rem; padding: .5rem .7rem;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
}
.skins-badge-note [data-lucide] { width: 15px; height: 15px; flex-shrink: 0; }
.skins-badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem; }
.skins-badge-opt {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.skins-badge-opt:hover { border-color: color-mix(in srgb, var(--bdg) 45%, transparent); }
.skins-badge-opt.on { border-color: var(--bdg); background: color-mix(in srgb, var(--bdg) 8%, transparent); }
.skins-badge-opt.locked { opacity: .5; cursor: not-allowed; }
.skins-badge-opt input { accent-color: var(--bdg); flex-shrink: 0; }
.skins-badge-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--bdg) 18%, transparent); color: var(--bdg);
}
.skins-badge-ico [data-lucide] { width: 15px; height: 15px; }
.skins-badge-ico.img { background: none; }
.skins-badge-ico.img img { width: 22px; height: 22px; object-fit: contain; }
.skins-badge-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.skins-badge-name { font: 700 .84rem/1.2 Outfit, sans-serif; }
.skins-badge-desc { font-size: .72rem; color: var(--text-muted); }

/* ── Extracted from classement.php ── */

/* ── <style> block #1: lines 57-187 ── */
/* ── Layout 2 colonnes ───────────────────────────────────────────────── */
.clt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.clt-grid > div {
  display: flex;
  flex-direction: column;
}
.clt-grid > div .card {
  flex: 1;
}
@media (max-width: 800px) {
  .clt-grid { grid-template-columns: 1fr; }
}

/* ── En-tete ligue ───────────────────────────────────────────────────── */
.clt-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.clt-header-badge {
  font-size: .65rem;
  font-weight: 700;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ── Tableau ─────────────────────────────────────────────────────────── */
.ranking-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ranking-table th {
  padding: .45rem .5rem;
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ranking-table th:nth-child(2) { text-align: left; padding-left: .6rem; }
.ranking-table td {
  padding: .45rem .5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ranking-table td:nth-child(2) { text-align: left; padding-left: .6rem; }
.ranking-table tr:last-child td { border-bottom: none; }

/* Ligne du joueur connecte */
.my-row { background: rgba(26,115,232,.08); }

/* Ligne vide (place dispo) */
.empty-row td { color: rgba(255,255,255,.18); font-style: italic; }
.empty-slot { font-size: .72rem; }

/* Zones playoffs */
.row-playoff-direct td:first-child { border-left: 3px solid var(--gold); }
.row-playoff-barrage td:first-child { border-left: 3px solid var(--blue); }
.row-relegation td:first-child { border-left: 3px solid var(--red); }

/* Legende */
.clt-legend {
  display: flex; gap: 1rem; flex-wrap: wrap;
  padding: .6rem .75rem; margin-top: .5rem;
  font-size: .68rem; color: var(--text-muted);
}
.clt-legend-item { display: flex; align-items: center; gap: .3rem; }
.clt-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.clt-dot-direct { background: var(--gold); }
.clt-dot-barrage { background: var(--blue); }
.clt-dot-releg { background: var(--red); }
.clt-dot-promo { background: var(--green); }
.clt-dot-loat { background: #ff69b4; }

/* Zones L2 */
.row-promotion td:first-child { border-left: 3px solid var(--green); }
.row-loat td:first-child { border-left: 3px solid #ff69b4; }

/* Cellule club */
.club-cell { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.club-logo-sm {
  width: 26px; height: 26px; object-fit: contain;
  border-radius: 3px; flex-shrink: 0;
}
.club-logo-sm-placeholder {
  width: 26px; height: 26px; border-radius: 3px; flex-shrink: 0;
}
.club-name-cell { font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pseudo-cell    { font-size: .65rem; color: var(--text-muted); }

/* Colonnes numeriques */
.rank { font-size: .8rem; font-weight: 700; min-width: 24px; }
.pts  { font-size: .9rem; font-weight: 900; }
.green { color: var(--green, #43a047); }
.red   { color: var(--red,   #e53935); }

.medal { font-size: 1rem; }

/* ── Banniere live ─────────────────────────────────────────────────────── */
.live-banner {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; margin-bottom: 1rem;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  background: rgba(229,57,53,.12); border: 1px solid rgba(229,57,53,.3);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red, #e53935); animation: pulse 1s infinite; flex-shrink: 0; }

/* ── Logo modal ──────────────────────────────────────────────────────── */
.logo-clickable { cursor: pointer; transition: opacity .15s; }
.logo-clickable:hover { opacity: .75; }
#logoModal { display:none; position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.75); align-items:center; justify-content:center; }
#logoModal.open { display:flex; }
#logoModal .modal-inner { display:flex; flex-direction:column; align-items:center; gap:1rem; animation:fadeUp .18s ease; }
#logoModal img { max-width:min(340px,80vw); max-height:min(340px,80vh); object-fit:contain; border-radius:12px; }
#logoModal .modal-name { color:#fff; font-size:1.1rem; font-weight:700; text-align:center; }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* ── <style> block #2: lines 393-404 ── */
.attente-list { display:flex; flex-direction:column; gap:.4rem; }
.attente-row {
  display:flex; align-items:center; gap:.6rem; padding:.4rem .5rem;
  border-radius:6px; background:rgba(255,255,255,.02);
}
.attente-logo { width:28px; height:28px; object-fit:contain; border-radius:4px; flex-shrink:0; }
.attente-logo-fb { width:28px; height:28px; border-radius:4px; flex-shrink:0; }
.attente-club { font-size:.82rem; font-weight:700; }
.attente-pseudo { font-size:.68rem; color:var(--text-muted); }
.attente-date { font-size:.68rem; color:var(--text-muted); margin-left:auto; }

/* ── <style> block #3: lines 421-459 ── */
#clubModal.open { display:flex !important; }
.club-modal-box {
  background: var(--bg-card); border:1px solid var(--border); border-radius:12px;
  padding:1.5rem; width:min(400px,90vw); max-height:80vh; overflow-y:auto;
  position:relative; animation:fadeUp .18s ease;
}
.modal-close-btn {
  position:absolute; top:.6rem; right:.8rem;
  background:none; border:none; color:var(--text-muted); font-size:1.3rem;
  cursor:pointer; line-height:1;
}
.modal-close-btn:hover { color:var(--text); }
.cm-header { display:flex; align-items:center; gap:.75rem; margin-bottom:1rem; }
.cm-logo { width:48px; height:48px; object-fit:contain; border-radius:6px; }
.cm-logo-fb { width:48px; height:48px; border-radius:6px; }
.cm-club-name { font-size:1.1rem; font-weight:800; }
.cm-pseudo { font-size:.75rem; color:var(--text-muted); }
.cm-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:.5rem; margin-bottom:1rem; }
.cm-stat { text-align:center; padding:.5rem .25rem; background:rgba(255,255,255,.03); border-radius:6px; }
.cm-stat-val { font-size:1.1rem; font-weight:900; display:block; }
.cm-stat-lbl { font-size:.6rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }
.cm-form { display:flex; gap:.3rem; margin-bottom:1rem; }
.cm-form-dot { width:8px; height:8px; border-radius:50%; }
.cm-form-dot.win  { background:var(--green,#43a047); }
.cm-form-dot.draw { background:var(--text-muted); }
.cm-form-dot.loss { background:var(--red,#e53935); }
.cm-section-title { font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; color:var(--text-muted); margin-bottom:.4rem; }
.cm-trophy { display:flex; align-items:center; gap:.5rem; padding:.35rem 0; }
.cm-trophy + .cm-trophy { border-top:1px solid rgba(255,255,255,.05); }
.cm-trophy-icon { font-size:1.1rem; }
.cm-trophy-name { font-size:.78rem; font-weight:700; }
.cm-trophy-pos { font-size:.65rem; color:var(--text-muted); }
.cm-trophy-year { font-size:.7rem; color:var(--text-muted); margin-left:auto; }
.cm-empty { font-size:.78rem; color:var(--text-muted); font-style:italic; }
.cm-stats-row { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin-bottom:1rem; }
.club-name-click { cursor:pointer; }
.club-name-click:hover .club-name-cell { color:var(--accent); text-decoration:underline; }

/* ── Extracted from communaute.php ── */

/* ── <style> block: lines 1455-1713 ── */
/* ── Story upload + editeur ─── */
.story-upload { padding:1.25rem; }
.story-upload h3 { margin:0 0 .25rem; font-size:1rem; }
.story-sub { font-size:.78rem; color:var(--text-muted); margin:0 0 .75rem; }
.story-actions { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; margin-top:.75rem; }

.story-editor { margin-bottom:.5rem; }
.se-canvas-wrap {
  position:relative; width:250px; aspect-ratio:9/16; margin:0 auto .75rem;
  border-radius:10px; overflow:hidden; background:#000;
}
.se-canvas-wrap canvas { width:100%; height:100%; display:block; object-fit:contain; }
.se-text-input {
  position:absolute; bottom:.5rem; left:.5rem; right:.5rem;
  background:rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.2);
  border-radius:8px; color:#fff; font-size:.85rem; font-weight:700;
  padding:.5rem .6rem; resize:none; height:2.5rem;
  text-align:center; backdrop-filter:blur(4px);
  font-family:inherit;
}
.se-text-input::placeholder { color:rgba(255,255,255,.4); }
.se-text-input:focus { outline:none; border-color:rgba(255,255,255,.5); }

.se-tools { display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; }
.se-tool-group { display:flex; align-items:center; gap:.35rem; }
.se-label { font-size:.7rem; color:var(--text-muted); font-weight:700; }
.se-tool-group input[type=range] { width:80px; accent-color:var(--gold); }
.se-tool-group select { font-size:.75rem; padding:.2rem .4rem; background:var(--bg-card-2); border:1px solid var(--border); border-radius:5px; color:var(--text); }

.se-colors { display:flex; gap:.3rem; }
.se-color {
  width:22px; height:22px; border-radius:50%; border:2px solid transparent;
  cursor:pointer; transition:border-color .15s;
}
.se-color.active { border-color:#fff; }
.se-color:hover { border-color:rgba(255,255,255,.5); }

.prop-row { padding:.9rem 1rem; margin-bottom:.6rem; }
.prop-card-info { display:flex; align-items:center; gap:.75rem; margin-bottom:.4rem; }
.prop-player-photo { width:36px; height:36px; border-radius:50%; overflow:hidden; background:var(--bg-card-2); display:flex; align-items:center; justify-content:center; font-weight:800; flex-shrink:0; }
.prop-player-photo img { width:100%; height:100%; object-fit:cover; }
.prop-player-name { font-weight:700; font-size:.9rem; }
.prop-player-meta { font-size:.72rem; color:var(--text-muted); }
.prop-change { font-size:1.4rem; font-weight:900; margin-left:auto; }
.prop-reason { font-size:.78rem; color:var(--text-muted); font-style:italic; margin-bottom:.4rem; }
.prop-meta   { font-size:.72rem; color:var(--text-muted); margin-bottom:.5rem; }
.prop-vote-bar  { height:6px; background:var(--bg-card-2); border-radius:3px; overflow:hidden; margin-bottom:.3rem; }
.pvb-fill       { height:100%; background:linear-gradient(90deg,var(--green),#27ae60); border-radius:3px; transition:width .3s; }
.prop-vote-counts { display:flex; justify-content:space-between; font-size:.75rem; font-weight:700; margin-bottom:.5rem; }
.prop-actions { display:flex; gap:.4rem; }
.prop-voted   { font-size:.78rem; color:var(--text-muted); }
.prop-approved { border-left:3px solid var(--green) !important; }
.prop-rejected { opacity:.55; }
.prop-applied  { border-left:3px solid var(--gold) !important; }
.prop-admin-actions { margin-top:.5rem; padding-top:.5rem; border-top:1px dashed var(--border); }

/* Chat */
#tab-chat { flex-direction:column; height:calc(100vh - 160px); }
#tab-chat.active { display:flex; }
.chat-box  { flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:.5rem; padding:.75rem; background:var(--bg-card); border-radius:12px; margin-bottom:.6rem; }
.chat-msg  { display:flex; align-items:flex-end; gap:.5rem; }
.chat-mine { flex-direction:row-reverse; }
.chat-avatar { width:30px; height:30px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:800; color:#fff; }
.chat-avatar-img { object-fit:cover; border-radius:50%; }
.chat-bubble { max-width:72%; }
.chat-mine .chat-bubble { align-items:flex-end; display:flex; flex-direction:column; }
.chat-meta  { font-size:.65rem; color:var(--text-muted); display:flex; gap:.4rem; align-items:center; margin-bottom:.2rem; }
.chat-text  { background:var(--bg-card-2); padding:.45rem .7rem; border-radius:12px 12px 12px 3px; font-size:.85rem; line-height:1.4; word-break:break-word; }
.chat-mine .chat-text { background:var(--accent); color:#fff; border-radius:12px 12px 3px 12px; }
.chat-input-row { display:flex; gap:.5rem; align-items:center; padding:.5rem; background:var(--bg-card); border-radius:24px; border:1.5px solid var(--border); transition:border-color .2s; }
.chat-input-row:focus-within { border-color:var(--accent); }
.chat-input-row input { flex:1; background:transparent; border:none; outline:none; color:var(--text); font-size:.9rem; padding:.25rem .5rem; }
.chat-input-row input::placeholder { color:var(--text-muted); }
.chat-input-row .btn { border-radius:20px; padding:.35rem 1rem; font-size:.85rem; flex-shrink:0; }
.chat-pending { opacity:.55; }
.prop-card-result { padding:.45rem .75rem; cursor:pointer; font-size:.85rem; border-bottom:1px solid var(--border); }
.prop-card-result:hover { background:var(--bg-card); }
.prop-card-result:last-child { border-bottom:none; }

/* Mon profil */
.my-profile-card { display:flex; align-items:center; gap:.85rem; padding:.85rem 1rem; margin-bottom:.85rem; border-left:3px solid var(--accent); }
.myp-avatar-wrap {
  position:relative; width:54px; height:54px; flex-shrink:0;
  border-radius:50%; overflow:hidden; cursor:pointer;
  border:2px solid var(--accent);
}
.myp-avatar-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.myp-initials {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; font-weight:800; color:#fff; border-radius:50%;
}
.myp-edit-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; opacity:0; transition:opacity .15s;
}
.myp-avatar-wrap:hover .myp-edit-overlay { opacity:1; }
.myp-info { flex:1; min-width:0; }
.myp-pseudo { font-weight:700; font-size:.95rem; display:flex; align-items:center; gap:.4rem; }
.myp-club   { font-size:.75rem; color:var(--text-muted); display:flex; align-items:center; gap:.3rem; }
.myp-edit-btn {
  background:none; border:none; cursor:pointer; font-size:.65rem;
  opacity:.4; transition:opacity .15s; padding:0 2px; line-height:1;
}
.myp-edit-btn:hover { opacity:1; }
.badge-you  { font-size:.6rem; background:var(--accent); color:#fff; padding:.1rem .3rem; border-radius:3px; }

/* ── Posts ────────────────────────────────────────────────────────── */
.post-current { padding:1rem; }
.post-header { display:flex; align-items:center; gap:.5rem; margin-bottom:.6rem; }
.post-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.post-avatar-fb { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:800; color:#fff; }
.post-pseudo { font-size:.85rem; font-weight:700; }
.post-time { font-size:.65rem; color:var(--text-muted); }
.post-message { font-size:.9rem; margin-bottom:.5rem; line-height:1.4; }
.post-gif { width:100%; max-height:200px; object-fit:contain; border-radius:8px; }
.post-input { width:100%; padding:.35rem .6rem; background:var(--bg); border:1px solid var(--border); border-radius:6px; color:var(--text); font-size:.8rem; font-family:'Outfit',sans-serif; outline:none; }
.post-input:focus { border-color:var(--accent); }

/* ── Historique matchs ───────────────────────────────────────────── */
.hist-card { margin-top:1rem; padding:1rem 1.25rem; }
.hist-list { display:flex; flex-direction:column; gap:.3rem; max-height:350px; overflow-y:auto; }
.hist-list::-webkit-scrollbar { width:3px; }
.hist-list::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }
.hist-row {
  display:flex; align-items:center; gap:.5rem; padding:.4rem .5rem;
  border-radius:6px; text-decoration:none; color:inherit;
  transition:background .15s; border-left:3px solid transparent;
}
.hist-row:hover { background:rgba(255,255,255,.04); }
.hist-win  { border-left-color:var(--green); }
.hist-loss { border-left-color:var(--red); }
.hist-draw { border-left-color:var(--text-muted); }
.hist-result {
  font-size:.75rem; font-weight:900; min-width:18px; text-align:center;
}
.hist-win .hist-result { color:var(--green); }
.hist-loss .hist-result { color:var(--red); }
.hist-draw .hist-result { color:var(--text-muted); }
.hist-score { font-size:.8rem; font-weight:800; min-width:36px; text-align:center; }
.hist-logo { width:20px; height:20px; object-fit:contain; border-radius:3px; flex-shrink:0; }
.hist-logo-fb { width:20px; height:20px; border-radius:3px; flex-shrink:0; }
.hist-opponent { font-size:.78rem; font-weight:600; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hist-date { font-size:.68rem; color:var(--text-muted); flex-shrink:0; }

/* ── Achievements ────────────────────────────────────────────────── */

/* ── Mini-cartes collection ami ──────────────────────────────────── */
.mc-search {
  width:100%; padding:.35rem .6rem; margin-bottom:.5rem;
  background:var(--bg); border:1px solid var(--border); border-radius:6px;
  color:var(--text); font-size:.78rem; outline:none;
}
.mc-search:focus { border-color:var(--accent); }
.mc-search::placeholder { color:var(--text-muted); }
.mc-filters { display:flex; gap:.3rem; flex-wrap:wrap; margin-bottom:.5rem; align-items:center; }
.mc-filters .btn.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.mc-rar-select {
  padding:.2rem .4rem; font-size:.7rem; font-weight:600;
  background:var(--bg); border:1px solid var(--border); border-radius:5px;
  color:var(--text-muted); outline:none; margin-left:auto;
}
.mc-count { font-size:.7rem; color:var(--text-muted); margin-bottom:.4rem; }
.mc-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(68px,1fr));
  gap:.35rem; max-height:400px; overflow-y:auto;
}
.mc-grid::-webkit-scrollbar { width:4px; }
.mc-grid::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }
.mc-item {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:.3rem .2rem; border-radius:5px; min-height:72px;
  border:1px solid var(--border); background:var(--bg);
  cursor:pointer; transition:all .12s; position:relative; text-align:center;
}
.mc-item:hover { border-color:var(--accent); background:rgba(26,115,232,.08); }
.mc-item.common    { border-bottom:2px solid var(--grey); }
.mc-item.rare      { border-bottom:2px solid var(--blue); }
.mc-item.epic      { border-bottom:2px solid var(--purple); }
.mc-item.legendary { border-bottom:2px solid var(--gold); }
.mc-item.iconic { border-bottom:2px solid #fff; }
.mc-ovr { font-size:.85rem; font-weight:900; line-height:1; }
.mc-pos { font-size:.5rem; font-weight:700; color:var(--text-muted); }
.mc-photo {
  width:28px; height:28px; border-radius:50%; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-card-2); font-size:.7rem; font-weight:800; color:var(--text-muted);
  margin:.1rem 0;
}
.mc-photo img { width:100%; height:100%; object-fit:cover; }
.mc-name { font-size:.58rem; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.mc-nat { font-size:.45rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.03em; }
.mc-nat-select {
  padding:.2rem .4rem; font-size:.7rem; font-weight:600;
  background:var(--bg); border:1px solid var(--border); border-radius:5px;
  color:var(--text-muted); outline:none;
}
.mc-swap {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.6); border-radius:5px; font-size:1rem;
  opacity:0; transition:opacity .15s;
}
.mc-item:hover .mc-swap { opacity:1; }

/* ── Badges transfert ────────────────────────────────────────────── */
.trade-badge-ok   { font-size:.6rem; font-weight:800; background:rgba(67,160,71,.15); color:#43a047; padding:2px 6px; border-radius:3px; margin-left:.4rem; }
.trade-badge-no   { font-size:.6rem; font-weight:800; background:rgba(229,57,53,.15); color:#e53935; padding:2px 6px; border-radius:3px; margin-left:.4rem; }
.trade-badge-wait { font-size:.6rem; font-weight:800; background:rgba(255,255,255,.08); color:var(--text-muted); padding:2px 6px; border-radius:3px; margin-left:.4rem; }
.trade-done { opacity:.7; }

/* ── Palmares ────────────────────────────────────────────────────── */
.palmares-card { margin-top: 1.25rem; padding: 1rem 1.25rem; }
.palmares-title { font-size: .9rem; font-weight: 800; margin-bottom: .75rem; }
.palmares-current {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem; padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.palmares-season-badge {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255,215,0,.12); color: #ffd700; padding: 2px 8px; border-radius: 4px;
}
.palmares-status { font-size: .7rem; color: var(--text-muted); }
.palmares-empty {
  font-size: .8rem; color: var(--text-muted); font-style: italic;
  text-align: center; padding: .75rem 0;
}
.palmares-list { display: flex; flex-direction: column; gap: .4rem; }
.palmares-trophy {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; border-radius: 6px;
  background: rgba(255,255,255,.03);
}
.palmares-icon { font-size: 1.3rem; }
.palmares-info { flex: 1; min-width: 0; }
.palmares-name { font-size: .8rem; font-weight: 700; }
.palmares-pos { font-size: .68rem; color: var(--text-muted); }
.palmares-date { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.palmares-trophy-gold {
  border: 1px solid rgba(255,215,0,.55);
  background: linear-gradient(135deg, rgba(255,215,0,.08) 0%, rgba(255,215,0,.03) 100%);
  box-shadow: 0 0 10px rgba(255,215,0,.1);
}
.palmares-trophy-gold .palmares-name { color: var(--gold); }
.palmares-cup-img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

/* ── Saisons passées (classements figés) ── */
.palmares-seasons { margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.palmares-sub-title {
  display: flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted); margin-bottom: .15rem;
}
.palmares-sub-title [data-lucide] { width: 13px; height: 13px; }
.palmares-season-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem; border-radius: 6px;
  background: rgba(255,255,255,.03);
}
.ps-league-img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.ps-league-ico { width: 24px; height: 24px; color: var(--text-muted); flex-shrink: 0; }
.ps-info { flex: 1; min-width: 0; }
.ps-name { font-size: .8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-league { font-size: .68rem; color: var(--text-muted); }
.ps-result {
  font: 800 .85rem/1 Archivo, sans-serif;
  padding: .25rem .5rem; border-radius: 6px;
  background: rgba(255,255,255,.05); flex-shrink: 0;
}
.ps-result.ps-gold   { color: var(--gold); background: rgba(255,215,0,.12); }
.ps-result.ps-silver { color: #c0c0c0; background: rgba(192,192,192,.12); }
.ps-result.ps-bronze { color: #cd7f32; background: rgba(205,127,50,.12); }
.ps-pts { font-size: .72rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }

/* Titres de ligue en palmarès */
.palmares-league-row { display: flex; flex-wrap: wrap; gap: .75rem; padding: .5rem 0 .75rem; }
.palmares-league-title {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  cursor: default;
}
.plt-img {
  width: 52px; height: 52px; object-fit: contain;
  border: 2px solid #c0c0c0;
  border-radius: .55rem;
  padding: 4px;
  background: rgba(192,192,192,.08);
  box-shadow: 0 0 10px rgba(192,192,192,.2);
  filter: drop-shadow(0 2px 6px rgba(180,180,200,.25));
  transition: box-shadow .2s;
}
.palmares-league-title:hover .plt-img { box-shadow: 0 0 16px rgba(192,192,192,.45); }
.plt-img-gold {
  border-color: rgba(255,215,0,.7);
  background: rgba(255,215,0,.07);
  box-shadow: 0 0 10px rgba(255,215,0,.2);
}
.palmares-league-title:hover .plt-img-gold { box-shadow: 0 0 18px rgba(255,215,0,.5); }
.plt-img-sapphire {
  border-color: rgba(56,189,248,.7);
  background: rgba(56,189,248,.07);
  box-shadow: 0 0 10px rgba(56,189,248,.25);
}
.palmares-league-title:hover .plt-img-sapphire { box-shadow: 0 0 18px rgba(56,189,248,.55); }
.plt-icon { width: 52px; height: 52px; color: #c0c0c0; }
.plt-count { font: 800 1.1rem/1 Archivo, sans-serif; color: #c8c8d8; }
.plt-tooltip {
  /* Sous l'icône : au-dessus, elle serait rognée par le haut du modal scrollable */
  display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #1e1e24; border: 1px solid rgba(255,255,255,.15); border-radius: .45rem;
  padding: .3rem .6rem; font-size: .72rem; white-space: nowrap; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.6); z-index: 10; pointer-events: none;
}
.palmares-league-title:hover .plt-tooltip { display: block; }
/* En bord de rangée, ancrer la bulle sur le bord de l'icône pour ne pas sortir du modal */
.palmares-league-title:first-child .plt-tooltip { left: 0; transform: none; }
.palmares-league-title:last-child:not(:first-child) .plt-tooltip { left: auto; right: 0; transform: none; }

/* ── Extracted from boutique.php ── */

/* ── Style block 1 (lines 22–114) ── */
.shop-balance {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.1rem;
  background: linear-gradient(135deg, rgba(255,215,0,.1), rgba(255,215,0,.04));
  border: 1px solid rgba(255,215,0,.3);
  border-radius: 10px;
  margin-bottom: 1.75rem;
  font-size: .95rem;
  font-weight: 700;
}
.shop-balance .coin-icon { font-size: 1.4rem; }
.shop-balance .coin-amount { font-size: 1.3rem; font-weight: 900; color: #ffd700; }
.shop-balance .coin-label { color: var(--text-muted); font-size: .8rem; font-weight: 500; }
.shop-balance { position: relative; }
.shop-info-trigger { position: relative; display: inline-flex; align-items: center; }
.shop-earn-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 10;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; box-shadow: var(--shadow-lg);
  animation: fadeInUp .2s ease;
  min-width: 220px;
}
.shop-info-trigger:hover .shop-earn-dropdown { display: block; }

.shop-section-title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 1.5rem 0 .75rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-item {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: border-color .15s;
  position: relative;
  overflow: visible; /* les tooltips (.shop-tip) doivent pouvoir déborder de la card */
}
.shop-item-icon { font-size: 2rem; }
.shop-item-name { font-size: .9rem; font-weight: 800; }
.shop-item-desc { font-size: .75rem; color: var(--text-muted); flex: 1; }
.shop-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .5rem;
}
.shop-item-price {
  font-size: .85rem;
  font-weight: 800;
  color: #ffd700;
}
.shop-item-btn {
  font-size: .72rem;
  padding: .3rem .7rem;
  opacity: .45;
  cursor: not-allowed;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--text-muted);
}

.shop-coming-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(255,255,255,.08);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.shop-earn-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #ffd700; margin-bottom: .5rem; }
.shop-earn-intro { font-size: .72rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 .5rem; }
.shop-earn-intro b { color: var(--text); }
.shop-earn-foot { font-size: .68rem; color: var(--text-muted); line-height: 1.45; margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.06); }
.earn-band { font-size: .68rem; color: var(--text-muted); font-weight: 600; margin-left: .2rem; }
.earn-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-size: .82rem; }
.earn-row + .earn-row { border-top: 1px solid rgba(255,255,255,.04); }
.earn-rarity { font-weight: 700; min-width: 80px; }
.earn-coins { color: #ffd700; font-weight: 800; }
.rarity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Style block 2 (lines 215–264) ── */
.shop-premium-banner {
  position:relative; padding:1.5rem; overflow:hidden;
  border:1px solid rgba(255,215,0,.15);
  background:linear-gradient(135deg, var(--bg-card) 0%, rgba(255,215,0,.03) 100%);
}
.shop-premium-badge {
  position:absolute; top:12px; right:12px;
  font-size:.65rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em;
  background:rgba(255,255,255,.08); color:var(--text-muted);
  padding:3px 8px; border-radius:4px;
}
.shop-premium-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:1rem;
  margin-bottom:1.25rem;
}
@media (max-width:600px) { .shop-premium-grid { grid-template-columns:1fr; } }

.premium-pack {
  text-align:center; padding:1.25rem .75rem; border-radius:10px;
  border:1px solid var(--border); background:rgba(255,255,255,.02);
  position:relative; transition: transform .15s, box-shadow .15s;
}
.premium-pack:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pp-popular {
  border-color:rgba(255,215,0,.3); background:rgba(255,215,0,.04);
}
.pp-best {
  position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  font-size:.6rem; font-weight:800; text-transform:uppercase;
  background:#ffd700; color:#000; padding:1px 8px; border-radius:4px;
}
.pp-icon { margin-bottom:.5rem; }
.pp-icon [data-lucide] { width: 36px; height: 36px; }
.pp-name { font: 900 1.2rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: -.3px; margin-bottom: .3rem; }
.pp-content { font-size:.75rem; color:var(--text-muted); margin-bottom:.5rem; }
.pp-price { font-size:1.2rem; font-weight:900; color:#ffd700; margin-bottom:.6rem; }

.shop-qr-section {
  display:flex; align-items:center; gap:1rem;
  padding-top:1rem; border-top:1px solid rgba(255,255,255,.06);
}
.shop-qr-placeholder {
  width:80px; height:80px; flex-shrink:0;
  border:2px dashed rgba(255,255,255,.15); border-radius:8px;
  display:flex; align-items:center; justify-content:center;
}
.qr-placeholder-inner {
  font-size:1.2rem; font-weight:900; color:rgba(255,255,255,.15);
}
.shop-qr-text { font-size:.75rem; color:var(--text-muted); font-style:italic; }
.shop-paypal-img { width: 80px; border-radius: var(--radius-sm); object-fit: contain; cursor: pointer; transition: transform .15s; }

/* ── BêtisePass ────────────────────────────────────────────────────────── */
.betisepass-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,215,0,.35);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,215,0,.07) 100%);
  margin-bottom: 1rem;
}
.betisepass-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255,255,255,.1); color: var(--text-muted);
  padding: 3px 10px; border-radius: 4px;
}
.betisepass-content { display: flex; align-items: center; gap: 1.25rem; }
.betisepass-icon { flex-shrink: 0; color: var(--gold); }
.betisepass-icon [data-lucide] { width: 40px; height: 40px; }
.betisepass-name {
  font: 900 1.2rem/1 Archivo, sans-serif;
  text-transform: uppercase; letter-spacing: -.3px;
  margin-bottom: .35rem;
}
.betisepass-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.4; margin-bottom: .4rem; }
.betisepass-price { font-size: 1.1rem; font-weight: 900; color: var(--gold); }
.shop-paypal-img:hover { transform: scale(1.05); }
.paypal-zoom { display: none; position: fixed; inset: 0; z-index: 1002; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); align-items: center; justify-content: center; cursor: pointer; }
.paypal-zoom.open { display: flex; animation: fadeIn .15s ease; }
.paypal-zoom img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); animation: fadeInUp .25s ease; }
.pp-admin-hint {
  font-size: .65rem; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 4px; margin-top: .3rem;
}
.pp-admin-hint [data-lucide] { width: 12px; height: 12px; }

/* ── Shop Confirm Modal ────────────────────────────────────────────────── */
.shop-modal {
  display: none; position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.shop-modal.open { display: flex; animation: fadeIn .15s ease; }
.shop-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  width: min(360px, 90vw);
  text-align: center;
  animation: fadeInUp .25s ease;
}
.shop-modal-icon { margin-bottom: .75rem; color: var(--accent); }
.shop-modal-icon [data-lucide] { width: 36px; height: 36px; }
.shop-modal-title {
  font: 800 1.2rem/1.2 Archivo, sans-serif;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.shop-modal-qty {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-bottom: .5rem;
}
.smq-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.smq-btn {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text);
  font-size: 1.1rem; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.smq-btn:hover { border-color: var(--accent); color: var(--accent); }
.smq-val { font: 900 1.2rem/1 Archivo, sans-serif; min-width: 30px; text-align: center; }
.shop-modal-price {
  font-size: 1.4rem; font-weight: 900;
  color: var(--gold);
  margin-bottom: .25rem;
}
.shop-modal-price [data-lucide] { width: 20px; height: 20px; vertical-align: -3px; }
.shop-modal-sub {
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.shop-modal-actions {
  display: flex; gap: .75rem; justify-content: center;
}

/* ── Fortune Wheel ─────────────────────────────────────────────────────── */
.shop-item-wheel { overflow: visible; }

/* ── Boutique: carte Casino ──────────────────────────────────────────── */
.shop-item-casino {
  border-color: rgba(231,76,60,.35); text-decoration: none; color: inherit;
  cursor: pointer; transition: border-color .2s, transform .15s;
}
.shop-item-casino:hover { border-color: rgba(231,76,60,.7); transform: translateY(-2px); }

/* ── Casino page: fermée ─────────────────────────────────────────────── */
.casino-closed-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; padding: 2rem;
}
.casino-closed-card {
  max-width: 480px; text-align: center; padding: 3rem 2rem;
}
.casino-closed-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.casino-closed-title { font: 800 1.4rem/1.2 Archivo, sans-serif; margin-bottom: .75rem; color: var(--text); }
.casino-closed-sub { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1.75rem; }

/* ── Casino page: layout ─────────────────────────────────────────────── */
.casino-page { max-width: 900px; margin: 0 auto; padding-bottom: 3rem; }

.casino-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a0808 0%, #2d0a0a 40%, #1c0c18 100%);
  border: 1px solid rgba(231,76,60,.25); border-radius: var(--radius);
  margin-bottom: 1.5rem; padding: 2rem 1.75rem;
}
.casino-header-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(231,76,60,.18), transparent 65%);
}
.casino-header-inner { position: relative; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.casino-logo { font-size: 3rem; flex-shrink: 0; }
.casino-title { font: 900 1.7rem/1.1 Archivo, sans-serif; color: #fff; letter-spacing: .04em; margin: 0 0 .25rem; }
.casino-subtitle { color: rgba(255,255,255,.5); font-size: .85rem; margin: 0; }
.casino-balance {
  margin-left: auto; display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,215,0,.2);
  border-radius: .75rem; padding: .55rem 1rem; color: #ffd700; font-weight: 800;
  font-size: 1.1rem; flex-shrink: 0;
}
.casino-balance i { width: 18px; height: 18px; }
.casino-balance small { font-size: .7rem; font-weight: 500; color: rgba(255,215,0,.6); }

.casino-closed-banner {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.3);
  border-radius: .65rem; padding: .6rem 1rem; margin-bottom: 1.75rem;
  color: #e74c3c; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.casino-closed-banner i { width: 14px; height: 14px; }

/* ── Casino: grille de jeux ──────────────────────────────────────────── */
.casino-games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem;
}
.casino-game-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.casino-game-roulette { border-color: rgba(231,76,60,.3); }
.casino-game-blackjack { border-color: rgba(46,204,113,.3); }
.casino-game-bets { border-color: rgba(52,152,219,.3); }
.casino-game-soccer { border-color: rgba(124,58,237,.4); background: linear-gradient(160deg, var(--bg-card), rgba(124,58,237,.06)); }
.casino-game-soon {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #7c3aed; background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.4);
  border-radius: 999px; padding: .22rem .55rem;
}
.casino-game-soon [data-lucide] { width: 11px; height: 11px; }

.casino-game-locked-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(13,13,15,.75); backdrop-filter: blur(3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; border-radius: var(--radius);
}
.casino-game-locked-overlay i { width: 28px; height: 28px; opacity: .5; }

.casino-game-icon { font-size: 2.25rem; }
.casino-game-name { font: 800 1.1rem/1.2 Archivo, sans-serif; color: var(--text); }
.casino-game-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.casino-game-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.casino-game-min { font-size: .73rem; color: var(--text-dim); display: flex; align-items: center; gap: .25rem; }
.casino-game-min i { width: 13px; height: 13px; }
.casino-game-btn { opacity: .4; cursor: not-allowed; }
.shop-item-name .shop-info-trigger { margin-left: .3rem; }
.shop-item-name .shop-earn-dropdown {
  top: 50%; bottom: auto; right: auto;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  animation: fadeInUpCentered .2s ease;
}
.wheel-btn-wrap { display: inline-flex; }
.wheel-tooltip { display: none; }

.wheel-modal {
  display: none; position: fixed; inset: 0; z-index: 1002;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.wheel-modal.open { display: flex; animation: fadeIn .15s ease; }
.wheel-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  width: min(380px, 92vw);
  text-align: center;
  position: relative;
  animation: fadeInUp .3s ease;
}
.wheel-close {
  position: absolute; top: .75rem; right: 1rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.wheel-close:hover { color: var(--text); }
.wheel-title {
  font: 900 1.3rem/1 Archivo, sans-serif;
  text-transform: uppercase; letter-spacing: -.3px;
  margin-bottom: 1rem; color: var(--gold);
}
.wheel-stage {
  position: relative;
  width: 320px; height: 320px;
  margin: 0 auto 1rem;
}
@media (max-width: 400px) {
  .wheel-stage { width: 280px; height: 280px; }
  .wheel-stage canvas { width: 280px; height: 280px; }
}
.wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--gold);
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.wheel-spin-btn {
  margin: 0 auto; display: flex;
}
.spin-icon { animation: scSpin 1s linear infinite; }

.wheel-result {
  padding: 1rem 0 .5rem;
}
.wheel-result-pop { animation: fadeInUp .4s ease; }
.wheel-win-text {
  display: block; font-size: .85rem; color: var(--text-muted);
  margin-bottom: .3rem;
}
.wheel-win-prize {
  display: block;
  font: 900 1.6rem/1.1 Archivo, sans-serif;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── Extracted from calendrier.php ── */

/* ── Style block 1 (lines 121–381) ── */
/* ── Barre de jours style L'Équipe ────────────────────────────────────── */
.cal-daybar-wrap {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cal-today-btn {
  display: block; text-align: center; overflow: hidden;
  font-size: .68rem; font-weight: 700; text-decoration: none;
  color: var(--accent); padding: .25rem 0; max-height: 2rem;
}
.cal-today-btn:hover { color: #fff; }

.cal-special-banner {
  text-align: center; padding: .5rem .75rem;
  font-size: .78rem; font-weight: 700; color: #ffd700;
  background: rgba(255,215,0,.08); border: 1px solid rgba(255,215,0,.2);
  border-radius: 8px; margin-bottom: .75rem;
  animation: bannerSlide .4s ease;
}
@keyframes bannerSlide { from { opacity:0; max-height:0; padding:0; margin:0; } to { opacity:1; max-height:4rem; } }
.cal-daybar {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0;
  justify-content: center;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cal-daybar::-webkit-scrollbar { display: none; }
.cal-daybar-item {
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem 0;
  text-decoration: none; color: var(--text-muted);
  font-size: .82rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  flex: 1;
}
.cal-daybar-item:hover { color: var(--text); }
.cal-grid { transition: opacity .25s ease, transform .25s ease; }
.cal-daybar-item.active {
  color: var(--text); font-weight: 800;
  border-bottom-color: var(--text);
}
.cal-daybar-item.today .cdb-num { color: var(--accent); }
.cdb-dow { font-size: .7rem; font-weight: 500; text-transform: lowercase; }
.cdb-num { font-size: 1rem; font-weight: 700; line-height: 1.2; }

/* ── Grille 2 colonnes ───────────────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.cal-grid > div { display:flex; flex-direction:column; min-width: 0; }
.cal-grid > div > .card { flex:1; display:flex; flex-direction:column; justify-content:stretch; min-height:480px; padding:0 !important; }
.cal-match { flex:1; min-width: 0; }
.cal-col-title { min-width: 0; }
.cal-col-title > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 700px) {
  .cal-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Colonnes ────────────────────────────────────────────────────────────── */
.cal-col-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.cal-col-badge {
  font-size: .65rem;
  font-weight: 700;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text-muted);
}
.cal-col-soon {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  font-style: italic;
}

/* ── Carte match ─────────────────────────────────────────────────────────── */
.cal-match {
  display: flex;
  align-items: center;
  padding: .7rem .85rem;
  gap: .5rem;
  min-height: 48px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  border-radius: 0;
  position: relative;
}
.cal-match:hover { background: rgba(255,255,255,.04); }
.cal-match + .cal-match { border-top: 1px solid rgba(255,255,255,.05); }

.cal-time {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 38px;
  flex-shrink: 0;
}
.cal-team {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 1;
  min-width: 0;
}
.cal-team-right {
  text-align: right;
  justify-content: flex-end;
}
.cal-club {
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.cal-match-gated { opacity: .55; }
.cal-match-gated .cal-club { color: var(--text-muted); font-style: italic; }
.cal-team-tbd-badge {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  font: 800 .75rem/1 Archivo, sans-serif; color: var(--text-muted);
}
.cal-lost { opacity: .4; }
.cal-mid {
  text-align: center;
  min-width: 68px;
  min-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cal-score {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
}
.cal-vs {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ── Badges statut ───────────────────────────────────────────────────────── */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .65rem;
  font-weight: 800;
  color: var(--red, #e53935);
  animation: pulse 1s infinite;
}
.badge-fin {
  font-size: .65rem;
  font-weight: 800;
  color: var(--green, #43a047);
}
.badge-heure {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Mon prochain match ──────────────────────────────────────────────────── */
.next-match-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, color-mix(in srgb, var(--club-primary) 8%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--club-primary) 25%, transparent);
}
.next-match-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--club-primary); margin-bottom: .4rem; }
.next-match-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.next-match-teams {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
}
.nm-team { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.nm-team > div { min-width: 0; }
.nm-name { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nm-vs   { font-size: 1rem; font-weight: 900; color: var(--text-muted); }
.next-match-when { font-size: .8rem; color: var(--text-muted); flex-shrink: 0; }
.next-match-link { font-size: .75rem; color: var(--club-primary); font-weight: 700; text-decoration: none; flex-shrink: 0; }
.next-match-link:hover { text-decoration: underline; }
.match-logo   { object-fit: contain; display: block; border-radius: 3px; }
.match-logo-fb{ flex-shrink: 0; border-radius: 3px; }
@media (max-width: 600px) {
  .nm-name { display: none; }
}

/* ── Résultats récents ───────────────────────────────────────────────────── */
.recent-match {
  display: flex;
  align-items: center;
  padding: .65rem 1rem;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.recent-match:hover { background: rgba(255,255,255,.04); }
.recent-match + .recent-match { border-top: 1px solid rgba(255,255,255,.05); }
.recent-match-mine { border-left: 3px solid var(--accent); }
.rm-teams {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 0;
}
.rm-club {
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.rm-score {
  font-size: .95rem;
  font-weight: 900;
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}
.rm-date {
  font-size: .7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.result-win  { color: var(--green, #43a047); }
.result-loss { color: var(--red,   #e53935); }
.result-draw { color: var(--text-muted); }
.result-live { color: var(--red,   #e53935); animation: pulse 1s infinite; }

/* ── Extracted from admin.php ── */

/* ── Style block 1 (lines 167–197) ── */
.admin-section { margin-bottom:2rem; }
.admin-section h2 { font-size:1rem;font-weight:700;margin-bottom:1rem;display:flex;align-items:center;gap:.5rem; }
.stat-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem;margin-bottom:1.5rem; }
.stat-box { background:var(--bg-card);border:1px solid var(--border);border-radius:10px;padding:.85rem 1rem;text-align:center; }
.stat-box .val { font-size:1.6rem;font-weight:800; }
.stat-box .lbl { font-size:.72rem;color:var(--text-muted);margin-top:.15rem; }
.stat-box.legendary .val { color:var(--gold); }
.stat-box.iconic .val { color: #f2f2f6; text-shadow: 0 0 6px rgba(255,255,255,.5); }
.stat-box.epic .val { color:var(--purple); }
.stat-box.rare .val { color:var(--blue); }


.users-table { width:100%;border-collapse:collapse;font-size:.83rem; }
.users-table th { text-align:left;padding:.5rem .75rem;color:var(--text-muted);font-weight:600;border-bottom:2px solid var(--border);white-space:nowrap; }
.users-table td { padding:.5rem .75rem;border-bottom:1px solid var(--border);vertical-align:middle; }
.users-table tr:hover td { background:var(--bg-card-2); }
.pseudo { font-weight:700; }
.actions { display:flex;gap:.35rem;flex-wrap:wrap; }
.btn-xs { padding:.2rem .5rem;font-size:.72rem;border-radius:5px; }
.badge-you { font-size:.65rem;background:var(--accent);color:#fff;padding:.1rem .35rem;border-radius:4px;vertical-align:middle; }

.quick-links { display:flex;gap:.75rem;flex-wrap:wrap; }
.admin-cards-hover { position:relative; }
.admin-cards-tip {
  display:none; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%);
  background:var(--bg-card); border:1px solid var(--border); border-radius:6px;
  padding:.4rem .6rem; font-size:.7rem; font-weight:600; white-space:nowrap; z-index:50;
  box-shadow:0 4px 12px rgba(0,0,0,.4);
}
.admin-cards-hover:hover .admin-cards-tip { display:block; }

/* ── Extracted from equipe.php ── */

/* ── Style block 1 (lines 850–958) ── */
/* ── Synergies panel ────────────────────────────────────────────────────── */
.pitch-wrapper { display: flex; flex-direction: column; }
.pitch-body { display: flex; gap: 0; flex-wrap: nowrap; flex: 1; min-height: 0; }
.synergies-panel {
  width: 170px; flex-shrink: 0;
  padding: .6rem;
  border-right: 1px solid rgba(255,255,255,.06);
  margin-right: .75rem;
  max-height: 520px;
  overflow-y: auto;
}
.synergies-panel::-webkit-scrollbar { width: 3px; }
.synergies-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.pitch-inner { flex: 1; min-width: 0; }
.syn-title {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: .6rem;
}
.syn-empty { font-size: .72rem; color: var(--text-muted); font-style: italic; }
.syn-list { display: flex; flex-direction: column; gap: .35rem; }

.syn-item {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .4rem .5rem; border-radius: 6px;
  border-left: 3px solid rgba(255,255,255,.08);
  transition: border-color .2s, background .2s;
  cursor: default;
}
.syn-row { display: flex; align-items: center; gap: .4rem; min-width: 0; }

/* Drapeau à son format réel (3:2) et écusson libre — plus d'hexagone, donc
   plus de recadrage ni de déformation. */
.syn-ico { width: 20px; flex-shrink: 0; display: block; }
.syn-ico-nation { height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.syn-ico-club   { height: 20px; object-fit: contain; }
.syn-ico-fallback {
  height: 14px; font: 800 .55rem/14px 'Archivo', sans-serif; text-align: center;
  color: var(--text-muted); background: rgba(255,255,255,.08); border-radius: 2px;
}
.syn-bonus {
  margin-left: auto; flex-shrink: 0;
  font: 800 .68rem/1 'Archivo', sans-serif; color: var(--text-muted);
}
.syn-tier-bronze .syn-bonus { color: #cd7f32; }
.syn-tier-silver .syn-bonus { color: #e0e0e0; }
.syn-tier-gold   .syn-bonus { color: #ffd700; }

/* Progression vers le palier suivant (remplace les pastilles 2 › 3 › 5) */
.syn-prog { display: flex; align-items: center; gap: .3rem; }
.syn-prog-bar { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.syn-prog-fill { display: block; height: 100%; border-radius: 999px; background: var(--text-muted); transition: width .25s; }
.syn-tier-bronze .syn-prog-fill { background: #cd7f32; }
.syn-tier-silver .syn-prog-fill { background: #c0c0c0; }
.syn-tier-gold   .syn-prog-fill { background: #ffd700; }
.syn-prog-txt { font-size: .58rem; color: var(--text-muted); font-weight: 700; flex-shrink: 0; }

/* Synergie inactive : image grisée */
.syn-tier-none .syn-ico { filter: grayscale(1); opacity: .45; }
.syn-tier-none .syn-name { color: var(--text-muted); }
.syn-item:hover { background: rgba(255,255,255,.04); }

/* Tier colors */
.syn-tier-none   { border-left-color: rgba(255,255,255,.08); }
.syn-tier-bronze { border-left-color: #cd7f32; background: rgba(205,127,50,.08); }
.syn-tier-silver { border-left-color: #c0c0c0; background: rgba(192,192,192,.08); }
.syn-tier-gold   { border-left-color: #ffd700; background: rgba(255,215,0,.1); }

/* Synergie inactive (palier non atteint) : image grisée et estompée */

.syn-info { min-width: 0; flex: 1; }
.syn-name { font-size: .7rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.syn-tier-bronze-dot { color: #cd7f32; }
.syn-tier-silver-dot { color: #c0c0c0; }
.syn-tier-gold-dot   { color: #ffd700; }

/* ── Tooltip synergies ──────────────────────────────────────────────── */
#synTooltip {
  display: none;
  position: fixed;
  width: 210px;
  background: var(--bg-card, #1e1e2e);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: .65rem .75rem;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  pointer-events: none;
}
#synTooltip.visible {
  display: block;
}

.syn-tt-header { font-size: .82rem; font-weight: 800; margin-bottom: 2px; }
.syn-tt-sub { font-size: .68rem; color: var(--text-muted); margin-bottom: .4rem; }
.syn-tt-desc { font-size: .65rem; color: var(--text-muted); font-style: italic; margin-bottom: .5rem; line-height: 1.35; }

/* Joueurs qui activent la synergie (survol) */
.syn-tt-players {
  display: flex; flex-direction: column; gap: 1px;
  margin-bottom: .45rem; padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  max-height: 148px; overflow-y: auto;
}
.syn-tt-player {
  display: flex; align-items: center; gap: .35rem;
  font-size: .68rem; color: var(--text-muted); padding: 1px 0;
}
.syn-tt-player.on { color: var(--text); font-weight: 600; }
.syn-tt-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.syn-tt-player.on .syn-tt-dot { background: var(--green); }
.syn-tt-off { margin-left: auto; font-size: .58rem; font-style: italic; opacity: .7; }
.syn-tt-tiers { display: flex; flex-direction: column; gap: .3rem; }
.syn-tt-row {
  display: flex; align-items: center; gap: .5rem;
  font-size: .7rem; color: rgba(255,255,255,.3);
  padding: .25rem .4rem;
  border-radius: 4px;
  background: rgba(255,255,255,.02);
}
.syn-tt-row.syn-tt-active { color: #fff; background: rgba(255,255,255,.06); }
.syn-tt-min {
  font-weight: 900;
  min-width: 16px;
  text-align: center;
}
.syn-tt-row.syn-tier-bronze-dot .syn-tt-min { color: #cd7f32; }
.syn-tt-row.syn-tier-silver-dot .syn-tt-min { color: #c0c0c0; }
.syn-tt-row.syn-tier-gold-dot   .syn-tt-min { color: #ffd700; }
.syn-tt-bonus { font-weight: 600; }

/* ── Nationalité sur le slot ─────────────────────────────────────── */
.slot-nat {
  font-size: .55rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  margin-top: -1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

/* ── Style block 2 (lines 1111–1165) ── */
/* ── Slot switcher (à côté de sauvegarder) ────────────────────────────── */
.pitch-actions {
  display:flex; align-items:flex-end; gap:1rem; flex-wrap:wrap; margin-top:.75rem;
  padding:.6rem .75rem;
  background:var(--bg-card-2);
  border:1px solid var(--border); border-radius:var(--radius-sm);
}
.pitch-actions-group {
  display:flex; flex-direction:column; gap:.3rem;
}
.pitch-actions-row { display:flex; align-items:center; gap:.5rem; }
.pitch-actions-save {
  flex-direction:row; align-items:center; gap:.6rem;
  margin-left:auto;
}
.pitch-actions-save .save-status { font-size:.75rem; font-weight:600; text-align:right; }
.slot-switcher {
  display:flex; gap:0; border:1px solid var(--border); border-radius:6px; overflow:hidden;
}
.slot-chip {
  width:32px; height:32px; border:none; cursor:pointer;
  background:var(--bg-card); color:var(--text-muted);
  font-size:.8rem; font-weight:800;
  transition:all .15s;
  display:flex; align-items:center; justify-content:center;
}
.slot-chip:not(:last-child) { border-right:1px solid var(--border); }
.slot-chip:hover { background:rgba(255,215,0,.06); color:var(--text); }
.slot-chip.active { background:rgba(255,215,0,.15); color:var(--gold); }
.slot-chip.editing { background:var(--bg-card-2); color:var(--text); }
.slot-chip.match-active { color:var(--green); }

/* ── Comparateur ───────────────────────────────────────────────────────── */
.comp-overlay {
  position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.6);
  display:none; align-items:center; justify-content:center;
  backdrop-filter:blur(4px);
}
.comp-overlay.open { display:flex; }
.comp-modal {
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
  width:min(95vw, 560px); max-height:85vh; overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.comp-header {
  display:flex; justify-content:space-between; align-items:center;
  padding:.75rem 1rem; border-bottom:1px solid var(--border);
}
.comp-header h2 { font-size:1rem; margin:0; }
.comp-close { background:none; border:none; color:var(--text-muted); font-size:1.5rem; cursor:pointer; line-height:1; }
.comp-body { padding:1rem; }

.comp-grid {
  display:grid; grid-template-columns:auto 1fr 1fr 1fr; gap:.4rem;
}
.comp-cell { padding:.4rem .5rem; font-size:.8rem; border-radius:6px; }
.comp-corner { }
.comp-col-header {
  text-align:center; background:rgba(255,255,255,.03); display:flex; flex-direction:column; gap:.1rem;
}
.comp-form { font-size:.65rem; color:var(--text-muted); }
.comp-row-label { font-weight:700; color:var(--text-muted); font-size:.75rem; display:flex; align-items:center; }
.comp-empty { text-align:center; color:var(--text-muted); }
.comp-val { font-weight:800; font-size:.9rem; }
.comp-best .comp-val { color:var(--gold); }
.comp-bar { height:4px; background:rgba(255,255,255,.08); border-radius:2px; margin-top:.25rem; }
.comp-bar-fill { height:100%; border-radius:2px; background:var(--blue); transition:width .3s; }
.comp-best .comp-bar-fill { background:var(--gold); }

/* ── Extracted from includes/footer.php ── */

/* ── Style block 1 (lines 7–21) ── */
#notifContainer { position:fixed; top:70px; right:1rem; z-index:9999; display:flex; flex-direction:column; gap:.4rem; pointer-events:none; }
.notif-toast {
  background:var(--bg-card); border:1px solid var(--border); border-radius:10px;
  padding:.6rem 1rem; font-size:.82rem; font-weight:600; color:var(--text);
  box-shadow:0 4px 16px rgba(0,0,0,.4); pointer-events:auto;
  animation:notifIn .3s ease; max-width:320px;
  display:flex; align-items:center; gap:.5rem;
}
.notif-toast.out { animation:notifOut .3s ease forwards; }
@keyframes notifIn { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:none} }
@keyframes notifOut { to{opacity:0;transform:translateX(40px)} }
.notif-icon { font-size:1.1rem; flex-shrink:0; }
.notif-msg { flex:1; }

/* ── Booster reveal hint ────────────────────────────────────────────── */
.bp-reveal-hint {
  font-size: .75rem; color: var(--text-muted); font-weight: 600;
  letter-spacing: .05em; animation: pulse 1.5s ease-in-out infinite;
  text-align: center;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ── Starter Cup ──────────────────────────────────────────────────────── */
.sc-page {
  padding-bottom: 3rem; position: relative; z-index: 2;
}

/* Fond logos tombants */
.sc-bg-logos {
  position: fixed; inset: 0; z-index: -1;
}
.sc-bg-logos::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.3); z-index: 1;
  pointer-events: none;
}
.sc-bg-logo {
  position: absolute; top: -100px;
  opacity: 1; filter: blur(4px) brightness(.3);
  animation: scLogoFall 15s linear infinite;
  object-fit: contain;
  will-change: transform;
}
@keyframes scLogoFall {
  0%   { transform: translateY(-100px) translateX(0) rotate(0deg); }
  20%  { transform: translateY(20vh) translateX(15px) rotate(8deg); }
  40%  { transform: translateY(40vh) translateX(-10px) rotate(-5deg); }
  60%  { transform: translateY(60vh) translateX(12px) rotate(6deg); }
  80%  { transform: translateY(80vh) translateX(-8px) rotate(-3deg); }
  100% { transform: translateY(calc(100vh + 100px)) translateX(5px) rotate(4deg); }
}

/* Hero */
.sc-hero {
  text-align: center; padding: 2rem 1rem 1.5rem;
  position: relative;
}
.sc-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,215,0,.08) 0%, transparent 60%);
  pointer-events: none;
}
.sc-cup-hero {
  width: 260px; height: auto; display: block; margin: 0 auto 1rem;
  filter: drop-shadow(0 0 50px rgba(255,215,0,.5)) drop-shadow(0 0 100px rgba(255,215,0,.2));
  animation: scGlow 3s ease-in-out infinite, scFloat 5s ease-in-out infinite;
}
@keyframes scFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes scGlow {
  0%, 100% { filter: drop-shadow(0 0 50px rgba(255,215,0,.5)) drop-shadow(0 0 100px rgba(255,215,0,.2)); }
  50%      { filter: drop-shadow(0 0 70px rgba(255,215,0,.8)) drop-shadow(0 0 120px rgba(255,215,0,.4)); }
}
.sc-title {
  font: 900 3.5rem/1 Archivo, sans-serif !important;
  text-transform: uppercase; letter-spacing: .05em;
  background: linear-gradient(135deg, #ffd700 0%, #fff 40%, #ffd700 60%, #ffaa00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: scShimmer 3s linear infinite;
  margin-bottom: .4rem;
}
@keyframes scShimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
.sc-sub {
  font-size: .95rem; color: var(--text-muted); letter-spacing: .04em;
}

/* Bracket horizontal */
.sc-bracket {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; padding: 0 1rem;
  min-height: 40vh;
}

/* Round (colonne) */
.sc-round {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: .5rem; flex: 1;
}
.sc-round-final { flex: 1.2; }
.sc-round-label {
  font: 700 .8rem/1 'Space Mono', monospace;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,215,0,.5);
}
.sc-label-final {
  color: #ffd700; font-size: 1rem;
  text-shadow: 0 0 20px rgba(255,215,0,.3);
}
.sc-date {
  font-size: .75rem; color: var(--text-muted); font-weight: 600;
}

/* Match block */
.sc-match-block {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 12px; overflow: hidden;
  min-width: 160px; width: 100%; max-width: 270px;
}
.sc-match-final {
  border-color: rgba(255,215,0,.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(255,215,0,.06));
  box-shadow: 0 0 24px rgba(255,215,0,.1);
  max-width: 240px;
}

/* Team row */
.sc-team {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .8rem;
  min-height: 58px;
}
.sc-team + .sc-team { border-top: 1px solid var(--border); }
.sc-team-tbd { opacity: .35; }
.sc-team-out { opacity: .35; filter: grayscale(1); }
.sc-team-out .sc-name { color: var(--text-muted); text-decoration: line-through; }
.sc-team-score { margin-left: auto; font: 900 1rem/1 Archivo, sans-serif; color: #ffd700; flex-shrink: 0; }

/* Logo wrap — prêt pour les vrais logos */
.sc-logo-wrap {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sc-logo-wrap img, .sc-logo-wrap .sc-logo {
  width: 100%; height: 100%; object-fit: contain;
}
.sc-logo-wrap .sc-seed-badge {
  width: 100%; height: 100%;
  background: var(--bg-card-2);
  border: 2px solid rgba(255,215,0,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sc-logo-tbd { border-style: dashed; border-color: rgba(255,215,0,.15); }
.sc-seed-badge {
  font: 800 .7rem/1 Archivo, sans-serif;
  color: var(--gold);
}

/* Nom d'équipe */
.sc-name {
  font: 700 1rem/1.2 Archivo, sans-serif;
  color: var(--text); text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1; min-width: 0;
}
.sc-team-tbd .sc-name { color: var(--text-muted); }

/* VS divider (finale) */
.sc-vs-divider {
  text-align: center; padding: .3rem 0;
  font: 900 1rem/1 Archivo, sans-serif;
  color: var(--gold);
  border-top: 1px solid rgba(255,215,0,.15);
  border-bottom: 1px solid rgba(255,215,0,.15);
  background: rgba(255,215,0,.03);
}

/* Connecteur horizontal */
.sc-connector { display: flex; align-items: center; flex: 0 0 auto; margin: 0 -1px; z-index: 1; }
.sc-line-h { width: 40px; height: 2px; background: rgba(255,215,0,.3); }

/* Responsive */
@media (max-width: 900px) {
  .sc-title { font-size: 2.5rem !important; }
  .sc-cup-hero { width: 180px; }
  .sc-match-block { min-width: 130px; max-width: 240px; }
  .sc-name { font-size: .85rem; }
  .sc-logo-wrap { width: 30px; height: 30px; }
  .sc-line-h { width: 20px; }
}
@media (max-width: 600px) {
  .sc-title { font-size: 2rem !important; }
  .sc-cup-hero { width: 140px; }
  .sc-bracket { flex-direction: column; align-items: center; gap: .5rem; min-height: auto; }
  .sc-connector { transform: rotate(90deg); }
  .sc-match-block { max-width: 280px; }
  .sc-round { flex: none; width: 100%; }
}

/* ── Nav BêtiseCup link (saphir) ──────────────────────────────────────── */
.nav-cup {
  color: #38bdf8 !important; font-weight: 700 !important;
  position: relative; overflow: clip;
}
.nav-cup::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.22), transparent);
  animation: navCupShine 2.5s ease-in-out infinite;
}
@keyframes navCupShine {
  0%   { left: -100%; }
  100% { left: 200%; }
}
.nav-cup [data-lucide] { color: #38bdf8 !important; }

/* Lien Pass : aux couleurs du club du joueur (--pass-color posé en inline) */
.nav-pass {
  color: var(--pass-color, var(--accent)) !important; font-weight: 700 !important;
}
.nav-pass [data-lucide] { color: var(--pass-color, var(--accent)) !important; }

/* ── Match inline style replacements ─────────────────────────────────── */
.ml-title { color: var(--team-color); }
.ms-name { color: var(--team-color); }
.mls-value { font-weight: 900; }
.mls-suffix { color: var(--text-muted); font-weight: 500; }
.mls-win-text { color: var(--green); }
.mls-loss-text { color: var(--red); }
.mls-empty-form { font-size: .75rem; color: var(--text-muted); }
.match-finished { color: var(--green); font-weight: 700; }
.match-reconnect { color: var(--text-muted); }

/* Couleurs d'équipe */
.match-scoreboard { border-bottom: 2px solid; border-image: linear-gradient(90deg, var(--home-color), transparent 35%, transparent 65%, var(--away-color)) 1; }
.match-lineup:first-of-type { border-top: 3px solid var(--home-color); border-radius: var(--radius) var(--radius) 0 0; }
.match-lineup:last-of-type { border-top: 3px solid var(--away-color); border-radius: var(--radius) var(--radius) 0 0; }
.match-lineup:first-of-type .ml-title { color: var(--home-color); }
.match-lineup:last-of-type .ml-title { color: var(--away-color); }

/* Score bounce animation */
@keyframes scoreBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.score-bounce { animation: scoreBounce .4s ease; }

/* ── Étoiles filantes Starter Cup ────────────────────────────────────── */
.sc-stars {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.sc-star {
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: rotate(var(--shoot-angle, 35deg));
  animation: scShoot ease-in infinite;
}
.sc-star::before {
  content: '';
  position: absolute;
  top: 50%; right: 100%;
  width: 80px; height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), rgba(255,255,255,.6), #fff);
}
@keyframes scShoot {
  0%   { opacity: 1; transform: rotate(var(--shoot-angle, 35deg)) translateX(0); }
  90%  { opacity: .7; }
  100% { opacity: 0; transform: rotate(var(--shoot-angle, 35deg)) translateX(var(--shoot-dist, 150vw)); }
}

/* ── Actu homepage new blocks ────────────────────────────────────────── */

/* Booster CTA */
.actu-booster-cta {
  display: flex !important; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem !important; margin-bottom: 1rem;
  border-color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-card)) !important;
  text-decoration: none; color: var(--text);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.actu-booster-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.actu-booster-cta [data-lucide] { width: 24px; height: 24px; color: var(--accent); }
.actu-booster-cta span:first-of-type { flex: 1; font: 700 .95rem/1.2 Archivo, sans-serif; }
.actu-booster-btn {
  font: 800 .75rem/1 Archivo, sans-serif; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: .4rem .8rem; border-radius: var(--radius-sm);
}

/* Event banner (Starter Cup) */
.actu-event-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--bg-card), rgba(255,215,0,.06));
  border: 1px solid rgba(255,215,0,.3);
  border-radius: 12px;
  text-decoration: none; color: var(--text);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  overflow: hidden; position: relative;
}
.actu-event-banner::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,.08), transparent);
  animation: navCupShine 3s ease-in-out infinite;
}
.actu-event-banner:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,215,0,.15); }
.actu-cup-banner { padding: 1.25rem 1.25rem; min-height: 104px; box-sizing: border-box; }
.actu-l2-banner { border-color: rgba(192,192,192,.35); background: none; cursor: default; padding: 1.25rem 1.25rem; min-height: 104px; box-sizing: border-box; }
.actu-l2-banner::before { content: ''; position: absolute; inset: -6px; background: linear-gradient(to right, rgba(0,0,0,.6) 35%, rgba(0,0,0,.25)), url('https://media1.tenor.com/m/TQs4BaCwkPYAAAAd/triple-domain-domain-expansion.gif') center 40%/cover no-repeat; filter: grayscale(100%) blur(3px); z-index: 0; }
.actu-l2-banner > * { position: relative; z-index: 1; }
.actu-l2-banner::after { background: linear-gradient(90deg, transparent, rgba(192,192,192,.06), transparent); z-index: 2; }
.actu-l2-banner .aeb-cup { filter: drop-shadow(0 0 8px rgba(192,192,192,.5)); }
.actu-promo-banner { border-color: rgba(74,222,128,.35); background: linear-gradient(135deg, var(--bg-card), rgba(74,222,128,.06)); cursor: default; padding: 1.25rem 1.25rem; min-height: 104px; box-sizing: border-box; }
.actu-promo-banner::after { background: linear-gradient(90deg, transparent, rgba(74,222,128,.08), transparent); }
.aeb-promo-logos { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.aeb-promo-logos img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--bg-card-2); padding: 3px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.aeb-promo-unknown { width: 64px; height: 64px; border-radius: 8px; background: var(--bg-card-2); border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 900; color: var(--text-muted); }
@media (max-width: 480px) {
  .actu-promo-banner .aeb-promo-logos { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .actu-promo-banner .aeb-promo-logos img { width: 48px; height: 48px; }
  .actu-promo-banner .aeb-promo-unknown { width: 48px; height: 48px; font-size: 1.1rem; }
}
.aeb-cup { width: 48px; height: auto; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(255,215,0,.4)); }
.aeb-info { flex: 1; }
.aeb-title { font: 900 1.1rem/1 Archivo, sans-serif; text-transform: uppercase; color: var(--gold); }
.aeb-sub { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }
.actu-event-banner > [data-lucide] { color: var(--gold); width: 20px; height: 20px; flex-shrink: 0; }

/* ── Champion card ───────────────────────────────────────────────── */
.actu-champion-card {
  position: relative; overflow: hidden; border-radius: 1.1rem;
  border: 1.5px solid rgba(192,192,192,.4);
  background: linear-gradient(145deg, #111116 0%, #18181e 40%, #0e0e10 100%);
  margin-bottom: 1.1rem; padding: 1.4rem 1.25rem 1.2rem;
  box-shadow: 0 4px 32px rgba(180,180,200,.1);
}
.actu-champion-l1 {
  border-color: rgba(255,215,0,.45);
  background: linear-gradient(145deg, #151209 0%, #1c1808 40%, #0f0d04 100%);
  box-shadow: 0 4px 32px rgba(255,215,0,.12), inset 0 0 0 1px rgba(255,215,0,.08);
}
.actu-champion-l1 .actu-champ-bg {
  background: radial-gradient(ellipse at 50% -10%, rgba(255,215,0,.10) 0%, transparent 70%);
}.actu-champ-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(200,200,220,.08) 0%, transparent 70%);
  pointer-events: none;
}
.actu-champ-inner { position: relative; z-index: 1; }
.actu-champ-top { display: flex; align-items: center; gap: .85rem; margin-bottom: .85rem; }
.actu-champ-trophy { width: 54px; height: 54px; object-fit: contain; filter: grayscale(30%) drop-shadow(0 0 10px rgba(200,200,220,.4)); flex-shrink: 0; }
.actu-champ-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(180,180,200,.35)); }
.actu-champ-vs-block { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.actu-champ-vs-sep { font: 900 1rem/1 Archivo, sans-serif; color: rgba(200,200,220,.3); }
.actu-champ-opp { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.actu-champ-opp-logo { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(26,115,232,.3)); }
.actu-champ-opp-name { font-size: .62rem; font-weight: 700; color: #1a73e8; white-space: nowrap; letter-spacing: .02em; }
.actu-champ-title-block { flex: 1; }
.actu-champ-label { display: none; }
.actu-champ-title { font: 900 1.35rem/1.1 Archivo, sans-serif; color: #e8e8ee; text-shadow: 0 0 16px rgba(200,200,220,.35); letter-spacing: .04em; }
.actu-champ-season { font-size: .73rem; color: rgba(200,200,220,.5); margin-top: .1rem; }
.actu-champ-club { font: 800 1.05rem/1.2 Archivo, sans-serif; color: #d8d8e8; margin-bottom: .4rem; }
.actu-champ-pitch { font-size: .83rem; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 1rem; }
.actu-champ-stats { display: flex; gap: .5rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.actu-champ-stat { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.06); border-radius: .55rem; padding: .35rem .65rem; flex: 1; min-width: 44px; }
.actu-champ-stat.achs-win { background: rgba(34,197,94,.12); }
.actu-champ-stat.achs-loss { background: rgba(239,68,68,.1); }
.achs-val { font: 800 1.15rem/1 Archivo, sans-serif; color: #e0e0ee; }
.actu-champ-stat.achs-win .achs-val { color: #4ade80; }
.actu-champ-stat.achs-loss .achs-val { color: #f87171; }
.achs-lbl { font-size: .62rem; color: rgba(255,255,255,.4); margin-top: .2rem; text-transform: uppercase; letter-spacing: .05em; }
.actu-champ-match-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(192,192,192,.55); margin-bottom: .5rem; }
.actu-champ-match { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.05); border-radius: .75rem; padding: .7rem .9rem; }
.actu-champ-team { display: flex; align-items: center; gap: .45rem; flex: 1; font: 700 .8rem/1.2 Archivo, sans-serif; color: #c8c8d8; }
.actu-champ-team:last-child { justify-content: flex-start; flex-direction: row-reverse; }
.actu-champ-team img { width: 30px; height: 30px; object-fit: contain; }
.actu-champ-score { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.achs-score-home, .achs-score-away { font: 900 1.5rem/1 Archivo, sans-serif; }
.achs-score-home { color: #e0e0f0; }
.achs-score-away { color: rgba(255,255,255,.4); }
.achs-score-sep { font-size: 1rem; color: rgba(255,255,255,.25); }

/* Rangée haute (mon classement + booster) */
.actu-top-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.actu-top-row.has-booster { grid-template-columns: 1fr 1fr; }
.actu-top-row > * { margin-bottom: 0 !important; }
@media (max-width: 700px) { .actu-top-row.has-booster { grid-template-columns: 1fr; } }

/* My rank card */
.actu-my-rank {
  display: flex !important; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem !important; margin-bottom: 1.25rem;
}
.amr-rank { display: flex; align-items: baseline; }
.amr-pos { font: 900 2rem/1 Archivo, sans-serif; color: var(--accent); }
.amr-suffix { font: 700 .9rem/1 Archivo, sans-serif; color: var(--text-muted); }
.amr-info { flex: 1; }
.amr-club { font: 700 .9rem/1.2 Archivo, sans-serif; text-transform: uppercase; }
.amr-league { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }
.amr-form { display: flex; gap: .25rem; }
.amr-dot {
  width: 24px; height: 24px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font: 800 .65rem/1 Archivo, sans-serif; color: #fff;
}
.amr-w { background: var(--green); }
.amr-l { background: var(--red); }
.amr-d { background: var(--text-muted); }

/* Stats footer */
.actu-stats-footer {
  display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1rem 0; margin-top: .5rem;
  border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--text-muted);
}
.actu-stats-footer span { display: flex; align-items: center; gap: .3rem; }
.actu-stats-footer [data-lucide] { width: 14px; height: 14px; }

/* ── Archives ─────────────────────────────────────────────────────────── */
.archives-page { max-width: 900px; margin: 0 auto; }

/* Bloc de saison (contient plusieurs archive-block) */
.season-card { margin-bottom: 2rem; padding: 0 !important; overflow: hidden; }
.season-card-head {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255,215,0,.07) 0%, transparent 60%);
  border-bottom: 2px solid rgba(255,215,0,.25);
}
.season-card-icon { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.season-card-title { font: 800 1.05rem/1.2 Archivo, sans-serif; text-transform: uppercase; color: var(--gold); }
.season-card-sub { font-size: .75rem; color: var(--text-muted); margin-top: .15rem; }
.season-card .archive-block { margin-bottom: 0; border-top: 1px solid rgba(255,255,255,.06); }
.season-card .archive-block:first-of-type { border-top: none; }

.archive-block { margin-bottom: 1.5rem; padding: 0 !important; overflow: hidden; }
.archive-block-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card-2);
}
.archive-block-head { cursor: pointer; user-select: none; }
.archive-block-head > [data-lucide]:not(.ab-chevron) { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.archive-block-head .ab-chevron { margin-left: auto; width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: transform .25s ease; }
.archive-block.open .archive-block-head .ab-chevron { transform: rotate(180deg); }
.archive-block-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.archive-block-body > * { min-height: 0; overflow: hidden; }
.archive-block.open .archive-block-body { grid-template-rows: 1fr; }
.archive-block .ranking-table tr { cursor: pointer; transition: background .15s; }
.archive-block .ranking-table tr:hover td { background: var(--bg-card-2); }
.archive-block-title { font: 800 1rem/1.2 Archivo, sans-serif; text-transform: uppercase; }
.archive-block-sub { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.archive-matches { padding: .5rem 0; }
.archive-match {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; font-size: .85rem;
}
.archive-match + .archive-match { border-top: 1px solid rgba(255,255,255,.04); }
.archive-match-date { font-size: .7rem; color: var(--text-muted); min-width: 36px; font-weight: 600; }
.archive-match-team { display: flex; align-items: center; gap: .4rem; flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-match-team-r { justify-content: flex-end; text-align: right; }
.archive-match-score { font: 800 .9rem/1 Archivo, sans-serif; min-width: 50px; text-align: center; flex-shrink: 0; }
.archive-match-link { font-size: .72rem; color: var(--accent); font-weight: 700; text-decoration: none; flex-shrink: 0; }

/* Bloc BêtiseCup dans les archives — bleu électrique, comme betisecup.php */
.season-card-cup { border-color: rgba(56,189,248,.35); }
.season-card-cup .season-card-head {
  background: linear-gradient(135deg, rgba(56,189,248,.08) 0%, transparent 60%);
  border-bottom: 2px solid rgba(56,189,248,.3);
}
.season-card-cup .season-card-icon { filter: drop-shadow(0 0 8px rgba(56,189,248,.5)); }
.season-card-cup .season-card-title { color: #38bdf8; }
.season-card-cup .archive-block-head > [data-lucide]:not(.ab-chevron) { color: #38bdf8; }
/* Vainqueur de la saison, calé à droite dans l'en-tête de la carte */
.season-card-winner {
  margin-left: auto; text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: .2rem;
}
.scw-label {
  display: inline-flex; align-items: center; gap: .28rem;
  font: 800 .62rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gold);
}
.scw-label [data-lucide] { width: 13px; height: 13px; }
.scw-club {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 800 .9rem/1.2 Archivo, sans-serif;
}
.season-card-cup .scw-label { color: #38bdf8; }
.season-card-l2  .scw-label { color: #cbd5e1; }
@media (max-width: 560px) {
  .season-card-head { flex-wrap: wrap; }
  .season-card-winner { margin-left: 0; width: 100%; align-items: flex-start; text-align: left; }
}

/* Ligue 2 : même structure que la carte Starter Cup, thème argent du trophée */
.season-card-l2 { border-color: rgba(203,213,225,.3); }
.season-card-l2 .season-card-head {
  background: linear-gradient(135deg, rgba(203,213,225,.09) 0%, transparent 60%);
  border-bottom: 2px solid rgba(203,213,225,.28);
}
.season-card-l2 .season-card-icon { filter: drop-shadow(0 0 8px rgba(203,213,225,.45)); }
.season-card-l2 .season-card-title { color: #cbd5e1; }
.season-card-l2 .archive-block-head > [data-lucide]:not(.ab-chevron) { color: #cbd5e1; }
.archive-cup-round {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); padding: .7rem 1rem .1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.archive-match-score small { font-size: .62rem; font-weight: 700; color: var(--text-muted); }
.archive-cup-link {
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .55rem; margin-top: .25rem;
  font-size: .75rem; font-weight: 700; color: var(--accent); text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.06); transition: background .15s;
}
.archive-cup-link:hover { background: rgba(255,255,255,.04); }
.archive-cup-link [data-lucide] { width: 13px; height: 13px; }

/* ── BêtisePass ───────────────────────────────────────────────────────── */
.bp-page { max-width: 1400px; margin: 0 auto; }
.bp-admin-banner {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .5rem .9rem; margin-bottom: 1rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent);
  font-size: .78rem; font-weight: 700; color: var(--gold);
}
.bp-admin-banner [data-lucide] { width: 14px; height: 14px; }

.bp-hero { display: flex; gap: 1.5rem; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.bp-hero-left { flex: 1.4; min-width: 280px; }
.bp-hero-right { flex: 1; min-width: 240px; display: flex; align-items: stretch; }

.bp-season-badge {
  display: inline-block; padding: .35rem .9rem; border-radius: 6px;
  font: 900 1rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  background: var(--accent); color: #fff;
  transform: skewX(-6deg); margin-bottom: 1rem;
}
.bp-level-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bp-level-box {
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem .9rem; border-radius: 8px;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.bp-level-label { font-size: .6rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }
.bp-level-val { font: 900 1.9rem/1 Archivo, sans-serif; color: var(--accent); }
.bp-progress-wrap { flex: 1; }
.bp-progress-bar { height: 14px; border-radius: 999px; background: var(--bg-card-2); border: 1px solid var(--border); overflow: hidden; }
.bp-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); transition: width .4s; }
.bp-progress-txt { font-size: .72rem; color: var(--text-muted); margin-top: .35rem; font-weight: 600; }
.bp-howto { padding: .7rem .9rem; border-radius: 8px; background: var(--bg-card-2); border: 1px solid var(--border); }
.bp-howto-title { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: .3rem; }
.bp-howto-title [data-lucide] { width: 13px; height: 13px; color: var(--gold); }
.bp-howto-list { font-size: .8rem; font-weight: 600; }
.bp-soon { font-size: .68rem; color: var(--text-muted); font-style: italic; }

/* Saison / jours restants */
.bp-season-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bp-days-chip {
  display: flex; align-items: center; gap: .3rem; margin-bottom: 1rem;
  font: 800 .7rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  padding: .3rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.bp-days-chip [data-lucide] { width: 13px; height: 13px; }
.bp-days-over { background: rgba(255,255,255,.06); color: var(--text-muted); border-color: var(--border); }
.bp-level-max { font-size: .68rem; font-weight: 700; color: var(--text-muted); }

/* Niveau de profil (XP à vie) */
.bp-profile-box { padding: .7rem .9rem; border-radius: 8px; background: var(--bg-card-2); border: 1px solid var(--border); }
.bp-profile-badge {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .4rem;
}
.bp-profile-badge b { color: var(--gold); font-size: .85rem; }
.bp-profile-badge [data-lucide] { width: 14px; height: 14px; color: var(--gold); }
.bp-profile-bar { height: 8px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.bp-profile-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #fff3b0); transition: width .4s; }
.bp-profile-txt { font-size: .68rem; color: var(--text-muted); margin-top: .3rem; }

/* Bouton récupérer du détail */
.bp-detail-claim { margin-top: .4rem; }
.bp-detail-status.claimable { color: var(--gold); font-weight: 800; }

/* ── Quêtes du jour ── */
.bp-quests { padding: 0 !important; margin-bottom: 1.25rem; overflow: hidden; }
.bp-quests-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--bg-card-2);
}
.bp-quests-title { display: flex; align-items: center; gap: .45rem; font: 800 .85rem/1 Archivo, sans-serif; text-transform: uppercase; }
.bp-quests-title [data-lucide] { width: 16px; height: 16px; color: var(--accent); }
.bp-quests-reset { font-size: .68rem; font-weight: 700; color: var(--text-muted); }
.bp-quest-list { display: flex; flex-direction: column; }
.bp-quest {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 1.1rem;
}
.bp-quest + .bp-quest { border-top: 1px solid rgba(255,255,255,.04); }
.bp-quest-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card-2); border: 1px solid var(--border); color: var(--accent);
}
.bp-quest-icon [data-lucide] { width: 17px; height: 17px; }
.bp-quest-info { flex: 1; min-width: 0; }
.bp-quest-label { font-weight: 800; font-size: .85rem; }
.bp-quest-desc { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
.bp-quest-xp {
  font: 800 .7rem/1 Archivo, sans-serif; flex-shrink: 0;
  padding: .25rem .5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.bp-quest-state { flex-shrink: 0; min-width: 92px; display: flex; justify-content: flex-end; }
.bp-quest-check { display: flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 800; color: var(--green); }
.bp-quest-check [data-lucide] { width: 14px; height: 14px; }
.bp-quest-progress { font-size: .75rem; font-weight: 800; color: var(--text-muted); }
.bp-quest-go { display: flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.bp-quest-go:hover { color: var(--accent); }
.bp-quest-go [data-lucide] { width: 12px; height: 12px; }
.bp-quest-claim { animation: bpPulse 1.6s ease-in-out infinite; }
.bp-quest.claimed { opacity: .55; }
.bp-quest.claimed .bp-quest-icon { color: var(--green); }
.bp-quest-bonus { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 6%, transparent), transparent 60%); }
.bp-quest-bonus .bp-quest-icon { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.bp-quest-bonus .bp-quest-xp { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); }
@keyframes bpPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Streak de connexion */
.bp-streak { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.bp-streak-main { display: flex; align-items: center; gap: .8rem; }
.bp-streak-flame {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,120,20,.25), rgba(255,120,20,.05));
  color: #ff7a1a;
}
.bp-streak-flame [data-lucide] { width: 24px; height: 24px; }
.bp-streak-count { font: 900 1.3rem/1 Archivo, sans-serif; }
.bp-streak-unit { font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.bp-streak-sub { font-size: .72rem; color: var(--text-muted); margin-top: .25rem; }
.bp-streak-sub b { color: var(--gold); }
.bp-streak-track { display: flex; gap: .35rem; flex-wrap: wrap; }
.bp-streak-day {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  min-width: 40px; padding: .35rem .3rem; border-radius: 8px;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.bp-streak-day.on { border-color: #ff7a1a; background: color-mix(in srgb, #ff7a1a 12%, transparent); }
.bp-streak-dnum { font-size: .62rem; font-weight: 800; color: var(--text-muted); }
.bp-streak-day.on .bp-streak-dnum { color: #ff7a1a; }
.bp-streak-dxp { font: 800 .68rem/1 Archivo, sans-serif; }

/* Quêtes du jour + hebdo côte à côte */
.bp-missions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.bp-missions-row .bp-quests { margin-bottom: 1.25rem; }
@media (max-width: 820px) { .bp-missions-row { grid-template-columns: 1fr; gap: 0; } }

/* Missions hebdo : barre de progression */
.bp-quest-weekly .bp-quest-info { min-width: 0; }
.bp-wbar { height: 5px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; margin-top: .35rem; max-width: 260px; }
.bp-wbar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); transition: width .4s; }
.bp-quest-weekly.done .bp-wbar-fill, .bp-quest-weekly.claimed .bp-wbar-fill { background: var(--green); }

/* Paliers récupérables */
.bp-tier.unlocked.claimable-tier .bp-tier-inner { border-color: var(--gold); box-shadow: 0 0 10px rgba(255,215,0,.35); }
.bp-tier-gift {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #1a1a1a;
  animation: bpPulse 1.6s ease-in-out infinite;
}
.bp-tier-gift [data-lucide] { width: 12px; height: 12px; }
.bp-claim-all { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.bp-claim-all [data-lucide] { width: 14px; height: 14px; }

/* ── BêtisePass · vitrine d'achat (page non débloquée) ───────────────── */
.bp-paywall-hero {
  text-align: center; padding: 2rem 1.5rem 1.75rem; margin-bottom: 1.25rem;
  background: linear-gradient(160deg, rgba(255,215,0,.06), var(--bg-card) 55%);
  border: 1px solid rgba(255,215,0,.25);
}
.bp-paywall-badge {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold);
  font: 800 .75rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .06em;
}
.bp-paywall-title { font: 900 1.6rem/1.25 Archivo, sans-serif; text-transform: uppercase; letter-spacing: -.3px; max-width: 640px; margin: 0 auto .6rem; }
.bp-paywall-sub { font-size: .88rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 1.5rem; line-height: 1.5; }
.bp-paywall-stats { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.bp-pw-stat { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.bp-pw-stat [data-lucide] { width: 22px; height: 22px; color: var(--gold); }
.bp-pw-stat b { font: 900 1.4rem/1 Archivo, sans-serif; }
.bp-pw-stat span { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.bp-pw-special {
  display: flex; align-items: center; gap: .7rem; text-align: left;
  max-width: 460px; margin: 0 auto 1.5rem; padding: .75rem 1rem;
  background: rgba(255,215,0,.08); border: 1px solid rgba(255,215,0,.3); border-radius: var(--radius-sm);
}
.bp-pw-special [data-lucide] { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.bp-pw-special b { display: block; font-size: .85rem; }
.bp-pw-special span { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
.bp-paywall-price { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.bp-pw-price-val { font: 900 2.4rem/1 Archivo, sans-serif; color: var(--gold); }
.bp-pw-price-sub { font-size: .72rem; color: var(--text-muted); }

/* Encart « progression gratuite » de la vitrine (quêtes + niveau de profil) */
.bp-free-note { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .8rem; }
.bp-free-note-txt { font-size: .84rem; color: var(--text-muted); line-height: 1.55; }
.bp-free-note-txt b { color: var(--text); }
.bp-free-locked {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: var(--radius-sm); padding: .5rem .75rem;
}
.bp-free-locked [data-lucide] { width: 14px; height: 14px; }

.bp-rail-locked { position: relative; }
.bp-rail-locked .bp-tier { cursor: default; }
.bp-rail-locked .bp-tier:hover .bp-tier-inner { transform: none; }
.bp-rail-fade {
  position: absolute; top: 0; right: 0; bottom: 0; width: 90px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg) 90%);
}
.bp-quest-preview { opacity: .8; }
.bp-quest-preview .bp-quest-icon { color: var(--text-muted); }

.bp-pw-pay { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.bp-pw-pay-info { flex: 1; min-width: 240px; }
.bp-pw-pay-title { display: flex; align-items: center; gap: .4rem; font: 800 .95rem/1 Archivo, sans-serif; text-transform: uppercase; margin-bottom: .4rem; }
.bp-pw-pay-title [data-lucide] { width: 17px; height: 17px; color: var(--gold); }
.bp-pw-pay-info p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; max-width: 420px; }
.bp-pw-pay .shop-qr-section { border-top: none; padding-top: 0; flex-shrink: 0; }
@media (max-width: 700px) {
  .bp-paywall-title { font-size: 1.3rem; }
  .bp-paywall-stats { gap: 1.1rem; }
}

/* Détail de la récompense sélectionnée */
.bp-detail {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding: 1rem; border-radius: 10px; text-align: center;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.bp-detail-icon [data-lucide] { width: 42px; height: 42px; color: var(--accent); }
.bp-detail-tier { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.bp-detail-name { font: 800 1.1rem/1.2 Archivo, sans-serif; }
.bp-detail-status { font-size: .72rem; font-weight: 700; }
.bp-detail-status.ok { color: var(--green); }
.bp-detail-status.next { color: var(--accent); }
.bp-detail-status.locked { color: var(--text-muted); }

/* Rail horizontal */
/* Marge haute pour ne pas coller au bloc précédent (carte d'achat sans pass,
   hero avec pass — les marges adjacentes fusionnent, pas de double espace). */
.bp-rail-head { display: flex; align-items: center; justify-content: space-between; margin: 1.75rem 0 .6rem; }
.bp-rail-title { display: flex; align-items: center; gap: .45rem; font: 800 .85rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.bp-rail-title [data-lucide] { width: 16px; height: 16px; color: var(--accent); }
.bp-rail-nav { display: flex; gap: .35rem; }
.bp-rail-btn {
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  transition: all .15s;
}
.bp-rail-btn:hover { border-color: var(--accent); color: var(--accent); }
.bp-rail-btn [data-lucide] { width: 15px; height: 15px; }

.bp-rail-wrap {
  overflow-x: auto; padding: .75rem .25rem 1rem;
  cursor: grab; user-select: none;
  /* Barre de défilement stylisée (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
}
.bp-rail-wrap.dragging { cursor: grabbing; scroll-behavior: auto; }

/* Barre de défilement stylisée (Chrome, Safari, Edge) : discrète au repos,
   colorée à l'approche, pour ne pas casser la lecture du rail. */
.bp-rail-wrap::-webkit-scrollbar { height: 8px; }
.bp-rail-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  margin: 0 .25rem;
}
.bp-rail-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 45%, transparent),
    color-mix(in srgb, var(--accent) 75%, transparent));
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background .2s;
}
.bp-rail-wrap:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 70%, transparent), var(--accent));
  background-clip: padding-box;
}
.bp-rail-wrap::-webkit-scrollbar-thumb:active { background: var(--accent); background-clip: padding-box; }
.bp-rail { display: flex; gap: .6rem; align-items: flex-end; width: max-content; }

.bp-tier { flex-shrink: 0; width: 96px; cursor: pointer; text-align: center; }
.bp-tier-inner {
  position: relative; height: 96px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  background: var(--bg-card); border: 2px solid var(--border);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bp-tier:hover .bp-tier-inner { transform: translateY(-3px); }
.bp-tier-icon [data-lucide] { width: 26px; height: 26px; }
.bp-tier-qty { font: 800 .78rem/1 Archivo, sans-serif; }
.bp-tier-num {
  margin-top: .35rem; font-size: .62rem; font-weight: 800; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-card-2); border-radius: 5px; padding: .2rem 0;
}

/* Raretés */
.bp-r-common .bp-tier-icon [data-lucide] { color: var(--text-muted); }
.bp-r-rare .bp-tier-inner { border-color: color-mix(in srgb, #3b82f6 55%, var(--border)); }
.bp-r-rare .bp-tier-icon [data-lucide] { color: #3b82f6; }
.bp-r-epic .bp-tier-inner { border-color: color-mix(in srgb, var(--rarity-epic, #a855f7) 65%, var(--border)); box-shadow: 0 0 10px rgba(168,85,247,.15); }
.bp-r-epic .bp-tier-icon [data-lucide] { color: var(--rarity-epic, #a855f7); }
.bp-r-legendary .bp-tier-inner { border-color: var(--gold); box-shadow: 0 0 16px rgba(255,215,0,.3); background: linear-gradient(160deg, rgba(255,215,0,.12), var(--bg-card)); }
.bp-r-legendary .bp-tier-icon [data-lucide] { color: var(--gold); }
/* Cosmétique (skin) : couleur de la pastille — violet→bleu, pas doré */
.bp-r-cosmetic .bp-tier-inner {
  /* Fond normal, seul le CONTOUR est en fondu violet → bleu */
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
             linear-gradient(140deg, #a855f7, #38bdf8) border-box;
  box-shadow: 0 0 16px rgba(139,92,246,.3);
}
.bp-r-cosmetic .bp-tier-icon [data-lucide] { color: #c084fc; }
/* Skin de stade (pelouse) : contour vert dégradé, fond normal */
.bp-r-pitch .bp-tier-inner {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
             linear-gradient(140deg, #4ade80, #16a34a) border-box;
  box-shadow: 0 0 16px rgba(34,197,94,.3);
}
.bp-r-pitch .bp-tier-icon [data-lucide] { color: #4ade80; }

/* Paliers jalons (x10) plus grands */
.bp-milestone { width: 112px; }
.bp-milestone .bp-tier-inner { height: 112px; }
.bp-milestone .bp-tier-num { color: var(--text); }

/* États */
.bp-tier.unlocked .bp-tier-inner { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); }
.bp-tier.locked .bp-tier-inner { opacity: .55; }
.bp-tier.current .bp-tier-inner {
  border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: bpPulse 1.6s ease-in-out infinite;
}
.bp-tier.current .bp-tier-num { background: var(--accent); color: #fff; }
@keyframes bpPulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.bp-tier.selected .bp-tier-inner { outline: 2px solid var(--accent); outline-offset: 2px; }
.bp-tier-check, .bp-tier-lock {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.bp-tier-check { background: var(--green); color: #fff; }
.bp-tier-lock { background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text-muted); }
.bp-tier-check [data-lucide], .bp-tier-lock [data-lucide] { width: 10px; height: 10px; }

.bp-detail-bonus {
  display: flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 700;
  color: #38bdf8; margin: .1rem 0 .25rem;
}
.bp-detail-bonus [data-lucide] { width: 14px; height: 14px; }

.bp-note { text-align: center; font-size: .72rem; color: var(--text-muted); font-style: italic; margin-top: .75rem; }

@media (max-width: 768px) {
  .bp-hero { flex-direction: column; }
  .bp-tier { width: 82px; }
  .bp-tier-inner { height: 82px; }
  .bp-milestone { width: 94px; }
  .bp-milestone .bp-tier-inner { height: 94px; }
}

/* ── Pronos : historique groupé + badge sur match.php ─────────────────── */
.pm-hist-match {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: .6rem; align-items: center;
  padding: .55rem .75rem;
  margin-top: .5rem;
  background: rgba(255,255,255,.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pm-hist-match:first-child { margin-top: 0; border-top: none; }
.pmh-team { font-size: .76rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmh-home { text-align: right; }
.pmh-away { text-align: left; }
.pmh-score {
  font: 900 .82rem/1 Archivo, sans-serif;
  padding: .22rem .55rem; border-radius: 6px;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.pm-hist-row {
  display: grid; grid-template-columns: 1fr auto 56px;
  gap: .6rem; align-items: center;
  padding: .32rem .75rem;
  font-size: .78rem;
}
.pm-hist-row + .pm-hist-row { border-top: 1px solid rgba(255,255,255,.04); }
.pm-hist-me { background: rgba(79,142,247,.08); }
.pmh-who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmh-gain { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.pmh-gain.won  { color: #00c94a; }
.pmh-gain.part { color: var(--gold); }
.pmh-gain.lost { color: #e74c3c; opacity: .7; display: flex; justify-content: flex-end; }
.pmh-gain.lost [data-lucide] { width: 14px; height: 14px; }

.ms-pronos-wrap {
  position: relative; display: flex; justify-content: center;
  margin-top: .5rem; cursor: pointer;
}
.ms-pronos-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text-muted);
  transition: all .15s;
}
.ms-pronos-badge [data-lucide] { width: 12px; height: 12px; color: #2563eb; }
.ms-pronos-count {
  background: #2563eb; color: #fff; border-radius: 999px;
  padding: 0 .38rem; font-size: .64rem; line-height: 1.5;
}
.ms-pronos-wrap:hover .ms-pronos-badge { border-color: #2563eb; color: var(--text); }
.ms-pronos-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 60;
  min-width: 210px; padding: .6rem .75rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-4px);
  transition: opacity .15s, transform .15s;
  text-align: left; cursor: default;
}
.ms-pronos-wrap:hover .ms-pronos-panel, .ms-pronos-wrap.open .ms-pronos-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.ms-pronos-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .45rem; }
.ms-pronos-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .2rem 0; font-size: .78rem; }
.ms-pronos-row + .ms-pronos-row { border-top: 1px solid rgba(255,255,255,.05); }
.ms-pronos-who { font-weight: 600; }
.ms-pronos-pick { font: 800 .8rem/1 Archivo, sans-serif; color: #60a5fa; }

.epic-countdown { font-size: .82rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* Tooltip blanche au survol des boutons boutique désactivés */
.shop-tip { position: relative; display: inline-block; }
.shop-tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(3px);
  background: var(--bg-card-2); color: #fff;
  font-size: .72rem; font-weight: 600; line-height: 1.4; text-align: center;
  padding: .45rem .7rem; border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 40;
}
.shop-tip::before {
  content: ''; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%) rotate(45deg) translateY(3px);
  width: 9px; height: 9px; background: var(--bg-card-2);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  opacity: 0; visibility: hidden; transition: opacity .15s;
  z-index: 41;
}
.shop-tip:hover::after, .shop-tip:hover::before { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.shop-tip:hover::before { transform: translateX(-50%) rotate(45deg) translateY(0); }

/* ── Casino : gains & pertes ──────────────────────────────────────────── */
.cs-page { max-width: 860px; margin: 0 auto; }
.cs-house {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .8rem 1.1rem; margin-bottom: 1rem;
  font-size: .88rem; font-weight: 700;
}
.cs-house [data-lucide] { width: 18px; height: 18px; color: var(--gold); }
.cs-house-hint { font-size: .72rem; font-weight: 500; color: var(--text-muted); }
.cs-table td { white-space: nowrap; }
.cs-pos  { color: var(--green); font-weight: 800; }
.cs-neg  { color: var(--red); font-weight: 800; }
.cs-zero { color: var(--text-muted); font-weight: 600; }
.cs-total .cs-pos, .cs-total .cs-neg { font-size: .92rem; }
.cs-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-style: italic; }
.cs-note { font-size: .7rem; color: var(--text-muted); margin-top: .6rem; text-align: center; }

/* ── BêtiseCup : thème saphir électrique ──────────────────────────────── */
:root {
  --prisma: linear-gradient(120deg, #1d4ed8 0%, #38bdf8 35%, #a5f3fc 55%, #38bdf8 75%, #1d4ed8 100%);
  --cup-accent: #38bdf8;
  --cup-deep: #1d4ed8;
}
@keyframes prismaShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.prisma-text {
  background: var(--prisma); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: prismaShift 6s linear infinite;
}
.prisma-border {
  border: 1px solid transparent;
  background-origin: border-box;
}

/* ── BêtiseCup dans le calendrier ─────────────────────────────────────── */
.cal-grid-cup { grid-template-columns: 1fr !important; max-width: 760px; margin: 0 auto; }
.cal-col-cup {
  background: var(--prisma); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: prismaShift 6s linear infinite;
}
.cal-col-cup > [data-lucide] { color: var(--cup-accent); }
.cal-col-badge-cup {
  background: linear-gradient(var(--bg-card-2), var(--bg-card-2)) padding-box,
              var(--prisma) border-box;
  background-size: auto, 300% 100%;
  border: 1px solid transparent;
  color: var(--text);
  animation: prismaShift 6s linear infinite;
  -webkit-background-clip: padding-box, border-box; background-clip: padding-box, border-box;
}
.cal-cup-link { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--cup-accent); text-decoration: none; }
.cal-cup-link:hover { text-decoration: underline; color: #38bdf8; }
.cal-cup-phase { display: block; font-size: .55rem; font-weight: 800; color: var(--cup-accent); text-transform: uppercase; }

/* ── BêtiseCup (bracket) ──────────────────────────────────────────────── */
.bc-page { max-width: 1400px; margin: 0 auto; }
.bc-hero { text-align: center; padding: 1.5rem 0 1rem; }
.bc-hero-img {
  width: 130px; height: 130px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(29,78,216,.55)) drop-shadow(0 0 30px rgba(56,189,248,.25));
}
.bc-title {
  font: 900 2.2rem/1.1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .04em;
  background: var(--prisma); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: prismaShift 6s linear infinite;
  margin: .35rem 0 .2rem;
}
.bc-sub { font-size: .82rem; color: var(--text-muted); }
.bc-champion {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .9rem;
  padding: .5rem 1.1rem; border-radius: 999px;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--prisma) border-box;
  background-size: auto, 300% 100%;
  border: 1px solid transparent;
  animation: prismaShift 6s linear infinite;
  box-shadow: 0 0 24px rgba(56,189,248,.22);
}
.bc-champion-name {
  font-weight: 900;
  background: var(--prisma); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: prismaShift 6s linear infinite;
}
.bc-champion-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* ── Bannière impersonation admin ─────────────────────────────────────── */
.impersonate-bar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .5rem 1rem;
  background: linear-gradient(90deg, rgba(255,215,0,.18), rgba(255,215,0,.06));
  border-bottom: 1px solid rgba(255,215,0,.4);
  font-size: .8rem; font-weight: 600; color: var(--gold);
}
.impersonate-bar [data-lucide] { width: 16px; height: 16px; }
.impersonate-bar b { color: #fff; }
.impersonate-back {
  margin-left: auto; font-size: .74rem; font-weight: 800;
  background: var(--gold); color: #000; padding: .3rem .7rem; border-radius: 6px; text-decoration: none;
}
.impersonate-back:hover { filter: brightness(1.1); }

/* ── Écran RIP (booster interdit pour banni) ──────────────────────────── */
.banned-booster-wrap { text-align: center; padding: 2rem 1rem 3rem; }
.banned-booster-gif {
  max-width: min(480px, 90vw); border-radius: 14px;
  border: 3px solid var(--red); box-shadow: 0 0 30px rgba(231,76,60,.35);
}
.banned-booster-title { font: 900 2rem/1.1 Archivo, sans-serif; color: var(--red); margin: 1rem 0 .35rem; }
.banned-booster-sub { font-size: .9rem; color: var(--text-muted); }

/* ── Section bannis (classement) ──────────────────────────────────────── */
.banni-card { border-color: rgba(231,76,60,.35); }
.banni-badge { background: rgba(231,76,60,.15); color: var(--red); border-color: rgba(231,76,60,.35); }
.banni-row:hover { background: rgba(231,76,60,.07); }
.banni-logo { filter: grayscale(85%); opacity: .8; }
.banni-tag {
  margin-left: auto; display: inline-flex; align-items: center; gap: .3rem;
  font-size: .64rem; font-weight: 800; letter-spacing: .06em;
  color: var(--red); border: 1px solid rgba(231,76,60,.45); border-radius: 999px;
  padding: .2rem .55rem; background: rgba(231,76,60,.1);
}
.banni-tag [data-lucide] { width: 11px; height: 11px; }
.ban-modal-box { border: 1px solid rgba(231,76,60,.5); }
.ban-modal-head { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .9rem; }
.ban-modal-head > [data-lucide] { width: 26px; height: 26px; color: var(--red); flex-shrink: 0; }
.ban-modal-head > div { flex: 1; }
.ban-modal-title { font: 800 1.05rem/1.2 Archivo, sans-serif; }
.ban-modal-pseudo { font-size: .74rem; color: var(--text-muted); }
.ban-modal-label {
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--red); margin-bottom: .4rem;
}
.ban-modal-reason {
  font-size: .84rem; line-height: 1.6;
  padding: .8rem .9rem; border-radius: 8px;
  background: rgba(231,76,60,.07); border: 1px solid rgba(231,76,60,.25);
}

/* ── Alerte tricheur (actu) ───────────────────────────────────────────── */
/* ── Boutique : bannière Casino (hors articles, sous le solde) ─────────── */
.shop-casino-banner {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem; padding: .9rem 1.1rem;
  text-decoration: none; color: var(--text);
  border: 2px solid rgba(231,76,60,.5);
  background: linear-gradient(135deg, rgba(231,76,60,.10), var(--bg-card) 60%);
  transition: border-color .15s, transform .15s;
}
.shop-casino-banner:hover { border-color: #e74c3c; transform: translateY(-2px); }
.scb-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(231,76,60,.15); color: #e74c3c;
}
.scb-icon [data-lucide] { width: 26px; height: 26px; }
.scb-txt { flex: 1; min-width: 0; }
.scb-title { font: 900 .95rem/1.2 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.scb-desc { font-size: .76rem; color: var(--text-muted); margin-top: .15rem; }
.scb-status {
  flex-shrink: 0; font: 800 .68rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .65rem; border-radius: 999px;
}
.scb-status.open   { color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.scb-status.closed { color: #e74c3c; border: 1px solid rgba(231,76,60,.45); background: rgba(231,76,60,.1); }

/* Provocations d'avant-match sur la page du match */
.match-taunts { display: flex; flex-direction: column; gap: .4rem; margin: .6rem 0 .2rem; }
.match-taunt {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .8rem; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent);
  background: color-mix(in srgb, var(--tc) 8%, var(--bg-card));
  font-size: .86rem;
}
.match-taunt [data-lucide] { width: 16px; height: 16px; color: var(--tc); flex-shrink: 0; }
.mt-msg { flex: 1; font-style: italic; font-weight: 600; min-width: 0; }
.mt-author { font-size: .72rem; color: var(--tc); font-weight: 800; white-space: nowrap; }

/* Sélecteur d'ami pour le cadeau de booster */
.shop-gift-select {
  flex: 1; min-width: 0; max-width: 130px;
  background: var(--bg-card-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .3rem .4rem; font-size: .78rem;
}

/* ── Card « Soirée des Fondateurs » dans le calendrier (22-23 juillet) ── */
.cal-founders-card {
  margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
             linear-gradient(140deg, #e879f9, #a855f7) border-box;
}
.cal-founders-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1.1rem;
  background: linear-gradient(135deg, rgba(232,121,249,.14), rgba(168,85,247,.08));
  border-bottom: 1px solid rgba(232,121,249,.3);
}
.cal-founders-head > [data-lucide] { width: 20px; height: 20px; color: #e879f9; flex-shrink: 0; }
.cal-founders-headtxt { display: flex; flex-direction: column; gap: .1rem; }
.cal-founders-title { font: 900 .95rem/1.1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #e879f9; }
.cal-founders-sub { font-size: .72rem; color: var(--text-muted); }
.cal-founders-tag {
  margin-left: auto; font: 800 .64rem/1 Archivo, sans-serif; letter-spacing: .05em;
  color: #e879f9; border: 1px solid rgba(232,121,249,.4); background: rgba(232,121,249,.1);
  border-radius: 999px; padding: .25rem .6rem; white-space: nowrap;
}
@media (max-width: 560px) {
  .cal-founders-sub { display: none; }
}

/* ── Card « Palier 40 : propose la carte spéciale » en tête d'actu ────── */
.actu-t40-card {
  margin-bottom: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius);
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
             linear-gradient(140deg, var(--gold), #f8961e) border-box;
}
.actu-t40-head { display: flex; align-items: center; gap: .7rem; }
.actu-t40-head > [data-lucide] { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.actu-t40-headtxt { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; }
.actu-t40-title { font: 900 .95rem/1.2 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .03em; color: var(--gold); }
.actu-t40-sub { font-size: .76rem; color: var(--text-muted); }
.actu-t40-sub b { color: var(--gold); }
.actu-t40-count {
  flex-shrink: 0; font: 800 .64rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border-radius: 999px; padding: .25rem .6rem; white-space: nowrap;
}
.actu-t40-form { display: flex; gap: .5rem; margin-top: .7rem; }
.actu-t40-form input { flex: 1; min-width: 0; }
.actu-t40-done {
  display: flex; align-items: center; gap: .45rem; margin-top: .7rem;
  font-size: .84rem; color: var(--green);
}
.actu-t40-done [data-lucide] { width: 16px; height: 16px; }
@media (max-width: 560px) { .actu-t40-count { display: none; } }

/* ── Card patch notes « BêtiseBall : Saison 1 » dans l'actu ──────────── */
.actu-patch-card {
  margin-bottom: 1rem; padding: 0 !important; overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
             linear-gradient(140deg, #a855f7, #38bdf8) border-box;
}
.actu-patch-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1.1rem;
  background: linear-gradient(135deg, rgba(168,85,247,.14), rgba(56,189,248,.10));
  border-bottom: 1px solid rgba(168,85,247,.3);
}
.actu-patch-head > [data-lucide] { width: 22px; height: 22px; color: #38bdf8; flex-shrink: 0; }
.actu-patch-headtxt { display: flex; flex-direction: column; gap: .12rem; }
.actu-patch-title { font: 900 1.02rem/1.1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.actu-patch-sub { font-size: .74rem; color: var(--text-muted); }
.actu-patch-tag {
  margin-left: auto; font: 800 .62rem/1 Archivo, sans-serif; text-transform: uppercase;
  letter-spacing: .07em; color: #38bdf8;
  border: 1px solid rgba(56,189,248,.4); background: rgba(56,189,248,.1);
  border-radius: 999px; padding: .25rem .6rem;
}
.actu-patch-body { padding: .9rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .85rem; }
.actu-patch-gt {
  display: flex; align-items: center; gap: .4rem;
  font: 800 .78rem/1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  color: #c084fc; margin-bottom: .35rem;
}
.actu-patch-gt [data-lucide] { width: 15px; height: 15px; }
.actu-patch-group ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.actu-patch-group li { font-size: .82rem; line-height: 1.45; color: var(--text); }
.actu-patch-group li::marker { color: #38bdf8; }
.actu-patch-group li b { color: #fff; }

/* ── Card BêtiseCup dans l'actu ───────────────────────────────────────── */
.actu-bcup-card {
  position: relative; display: flex; gap: 1.25rem; align-items: center;
  padding: 1.25rem 1.4rem; margin-bottom: 1rem; border-radius: var(--radius);
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--prisma) border-box;
  background-size: auto, 300% 100%;
  border: 2px solid transparent;
  animation: prismaShift 6s linear infinite;
  text-decoration: none; color: var(--text); overflow: hidden;
  transition: transform .15s;
}
.actu-bcup-card:hover { transform: translateY(-2px); }
.actu-bcup-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 12% 50%, rgba(29,78,216,.18) 0%, transparent 45%),
              radial-gradient(circle at 88% 20%, rgba(56,189,248,.1) 0%, transparent 40%);
}
.actu-bcup-img {
  width: 120px; height: 120px; object-fit: contain; flex-shrink: 0; position: relative;
  filter: drop-shadow(0 0 12px rgba(56,189,248,.45));
}
.actu-bcup-info { position: relative; min-width: 0; }
.actu-bcup-title {
  font: 900 1.6rem/1.1 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .03em;
  background: var(--prisma); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: prismaShift 6s linear infinite;
}
.actu-bcup-sub { font-size: .76rem; font-weight: 700; color: var(--text-muted); margin: .2rem 0 .5rem; }
.actu-bcup-desc { font-size: .82rem; color: var(--text); line-height: 1.5; margin-bottom: .6rem; }
.actu-bcup-dates { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.actu-bcup-date { display: flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 600; color: var(--text-muted); }
.actu-bcup-date [data-lucide] { width: 13px; height: 13px; color: var(--cup-accent); }
.actu-bcup-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: 8px; font-size: .8rem; font-weight: 800;
  background: linear-gradient(120deg, #1d4ed8, #38bdf8); color: #fff;
}
.actu-bcup-btn [data-lucide] { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .actu-bcup-card { flex-direction: column; text-align: center; }
  .actu-bcup-dates { align-items: center; }
  .actu-bcup-date { justify-content: center; }
}

.bc-bracket-scroll { overflow-x: auto; padding-bottom: 1rem; }
.bc-bracket { display: flex; gap: 1rem; align-items: stretch; min-width: 1180px; }
.bc-round { flex: 1; min-width: 215px; display: flex; flex-direction: column; }
.bc-round-head { text-align: center; margin-bottom: .6rem; }
.bc-round-label { font: 800 .82rem/1.2 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.bc-round-day { font-size: .65rem; color: var(--text-muted); margin-top: .1rem; }
.bc-round-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: .5rem; }

.bc-match {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: .45rem .55rem; transition: border-color .15s, transform .15s;
}
.bc-clickable { cursor: pointer; }
.bc-clickable:hover { border-color: var(--accent); transform: translateY(-1px); }
.bc-live { border-color: var(--red); box-shadow: 0 0 12px rgba(239,68,68,.25); }
.bc-tbd { opacity: .5; border-style: dashed; }
.bc-match-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.bc-match-num { font-size: .6rem; font-weight: 800; color: var(--text-muted); }
.bc-match-time { font-size: .62rem; font-weight: 700; color: var(--text-muted); }
.bc-badge-live { font-size: .6rem; font-weight: 800; color: var(--red); animation: pulse 1.2s infinite; }

.bc-team { display: flex; align-items: center; gap: .4rem; padding: .18rem 0; font-size: .76rem; }
.bc-team-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-score { font: 800 .8rem/1 Archivo, sans-serif; min-width: 16px; text-align: right; }
.bc-score small { font-size: .62rem; color: var(--text-muted); }
.bc-win .bc-team-name, .bc-win .bc-score { color: var(--green); font-weight: 800; }
.bc-out { opacity: .45; }
.bc-unknown { color: var(--text-muted); font-style: italic; }
.bc-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-block; }
.bc-logo-fb { border: 1px solid var(--border); }
.bc-logo-q {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card-2); border: 1px dashed var(--border);
  font-size: .6rem; font-weight: 800; color: var(--text-muted); font-style: normal;
}

@media (max-width: 768px) {
  .bc-title { font-size: 1.5rem; }
  .bc-bracket { min-width: 1050px; }
  .bc-round { min-width: 195px; }
}

/* ── Story music badge ────────────────────────────────────────────────── */
.sv-music {
  position: absolute; bottom: 16px; left: 16px; z-index: 3;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  padding: .35rem .7rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600; color: #fff;
}
.sv-music [data-lucide] { width: 14px; height: 14px; animation: scSpin 3s linear infinite; }
.story-music-field { margin-top: .5rem; }

.sv-delete {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; transition: color .15s; margin-right: .5rem;
}
.sv-delete:hover { color: var(--red); }
.sv-delete [data-lucide] { width: 18px; height: 18px; pointer-events: none; }

.sv-volume {
  width: 70px; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,.2); border-radius: 2px;
  outline: none; cursor: pointer;
}
.sv-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,.4);
}
.sv-volume::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
}

/* ── Story Editor v2 ──────────────────────────────────────────────────── */
.se-layout {
  display: flex; gap: 1rem;
  height: calc(100vh - 120px);
}
.se-sidebar {
  width: 340px; flex-shrink: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem;
  overflow-y: auto; display: flex; flex-direction: column; gap: .5rem;
}
.se-section { margin-bottom: .25rem; }
.se-label {
  display: flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .4rem;
}
.se-label [data-lucide] { width: 14px; height: 14px; }
.se-label-sm { font-size: .68rem; font-weight: 600; color: var(--text-dim); min-width: 48px; }

.se-preview {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-width: 0;
}
.se-preview canvas {
  height: calc(100vh - 140px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  cursor: crosshair;
}

/* Layer list */
.se-layer-list { display: flex; flex-direction: column; gap: 3px; }
.se-layer-item {
  display: flex; align-items: center; gap: .4rem;
  padding: .3rem .4rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .1s; font-size: .78rem;
}
.se-layer-item:hover { background: rgba(255,255,255,.05); }
.se-layer-sel { background: rgba(255,255,255,.08) !important; outline: 1px solid var(--accent); }
.se-layer-ico { width: 28px; height: 28px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.se-layer-ico img { width: 100%; height: 100%; object-fit: cover; }
.se-layer-ico [data-lucide] { width: 14px; height: 14px; color: var(--text-muted); }
.se-layer-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-layer-acts { display: flex; gap: 2px; }
.se-layer-acts button { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px; border-radius: 4px; transition: color .1s; }
.se-layer-acts button:hover { color: var(--text); }
.se-layer-acts [data-lucide] { width: 13px; height: 13px; }
.se-empty { font-size: .75rem; color: var(--text-dim); padding: .3rem 0; }

/* Add image button */
.se-add-btn {
  display: flex; align-items: center; gap: .3rem; justify-content: center;
  padding: .45rem .8rem; margin-top: .3rem;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: .75rem; font-weight: 600; color: var(--text-muted);
  transition: all .15s;
}
.se-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.se-add-btn [data-lucide] { width: 14px; height: 14px; }

/* Inputs */
.se-input {
  width: 100%; padding: .4rem .6rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: .82rem;
}
.se-range { width: 100%; accent-color: var(--accent); }
.se-text-row { display: flex; gap: 4px; }
.se-text-row .se-input { flex: 1; }
.se-icon-btn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--accent); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.se-icon-btn [data-lucide] { width: 16px; height: 16px; pointer-events: none; }

/* Tool row */
.se-tool-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }

/* Filters / Styles */
.se-filters, .se-style-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.se-filter, .se-style-btn {
  padding: .3rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: none; color: var(--text-muted); font-size: .72rem; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: 'Outfit', sans-serif;
}
.se-filter:hover, .se-style-btn:hover { border-color: var(--text-muted); color: var(--text); }
.se-filter.active, .se-style-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Colors */
.se-colors { display: flex; gap: 5px; flex-wrap: wrap; }
.se-color {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform .1s;
}
.se-color:hover { transform: scale(1.15); }
.se-color.active { border-color: var(--text); transform: scale(1.15); }

/* Publish */
.se-publish { margin-top: auto; padding-top: .5rem; }
.se-publish .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .se-layout { flex-direction: column-reverse; height: auto; }
  .se-sidebar { width: 100%; }
  .se-preview canvas { height: 50vh; }
}


/* ══════════════════════════════════════════════════════
   BêtiseNow — Réseau social intégré (stories + posts)
   ══════════════════════════════════════════════════════ */

/* ── Ligne de cercles stories ── */
.bn-stories-row {
  display: flex; overflow-x: auto; gap: .9rem; padding: .75rem .25rem 1rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.bn-stories-row::-webkit-scrollbar { display: none; }

.bn-story-circle {
  display: flex; flex-direction: column; align-items: center;
  gap: .3rem; cursor: pointer; flex-shrink: 0; width: 68px;
}
.bn-story-ring {
  width: 60px; height: 60px; border-radius: 50%; padding: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.bn-ring-unseen { background: linear-gradient(135deg, #ffd700, #ffb347 60%, #ff6b6b); }
.bn-ring-seen   { background: rgba(255,255,255,.2); }
.bn-ring-add    { background: linear-gradient(135deg, var(--accent), #ffd700); }
.bn-story-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg-card);
}
.bn-story-avatar-fb {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font: 800 1.1rem/1 Archivo, sans-serif; color: #fff;
}
.bn-story-add-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--bg-card);
  background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.bn-story-add-btn [data-lucide] { width: 22px; height: 22px; }
.bn-story-name {
  font-size: .62rem; color: var(--text-muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px;
}

/* ── Story viewer plein écran ── */
.bn-story-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: #000;
  align-items: center; justify-content: center;
  flex-direction: column;
}
.bn-sv-progress {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; gap: 4px; padding: .6rem .75rem;
}
.bn-sv-progress-bar {
  flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden;
}
.bn-sv-fill { height: 100%; background: #fff; width: 0%; }
.bn-sv-header {
  position: absolute; top: 2.5rem; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem .75rem;
}
.bn-sv-user { display: flex; align-items: center; gap: .5rem; }
.bn-sv-username { font: 700 .9rem/1 Archivo, sans-serif; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.bn-sv-close {
  background: rgba(0,0,0,.5); border: none; color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.bn-sv-img {
  max-width: 100%; max-height: 100vh; object-fit: contain;
}
.bn-sv-music {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.6); border-radius: 20px;
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; color: #fff; font-size: .8rem;
}
.bn-sv-music a { color: #ffd700; text-decoration: none; }
.bn-sv-music [data-lucide] { width: 14px; height: 14px; }
.bn-sv-nav-left, .bn-sv-nav-right {
  position: absolute; top: 0; bottom: 0; z-index: 1; width: 40%;
  cursor: pointer;
}
.bn-sv-nav-left  { left: 0; }
.bn-sv-nav-right { right: 0; }

/* ── FAB "+" ── */
/* FAB posé au-dessus de .bn-internal-nav (~56px de haut, fixée en bas) */
.bn-fab {
  position: fixed; bottom: calc(56px + 1rem); right: 1.5rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd700);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .2s ease; z-index: 200;
}
.bn-fab:hover { transform: scale(1.08); }
.bn-fab [data-lucide] { width: 24px; height: 24px; }
.bn-fab-menu {
  position: fixed; bottom: calc(56px + 5rem); right: 1.5rem;
  display: flex; flex-direction: column; gap: .4rem;
  align-items: flex-end; z-index: 200;
  animation: fadeInUp .15s ease;
}
/* Sur mobile, FAB au-dessus de la .mobile-tab-bar (communaute.php) */
@media (max-width: 768px) {
  .bn-fab { bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 1rem); }
  .bn-fab-menu { bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 5rem); }
}
.bn-fab-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: .85rem; font-weight: 700;
  white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: background .15s;
}
.bn-fab-item:hover { background: var(--bg-card-2); }
.bn-fab-item [data-lucide] { width: 16px; height: 16px; color: var(--accent); }

/* ── Modaux génériques (post composer, archives) ── */
.bn-overlay-modal {
  display: none; position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1rem;
}
.bn-overlay-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; width: min(500px, 92vw); max-height: 85vh;
  overflow-y: auto; position: relative; animation: fadeInUp .2s ease;
}
.bn-archive-inner { width: min(660px, 96vw); }
.bn-overlay-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem .6rem; border-bottom: 1px solid var(--border);
}
.bn-overlay-title { font: 800 1rem/1 Archivo, sans-serif; }
.bn-composer-textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: .75rem 1.25rem; background: transparent; border: none;
  color: var(--text); font-size: 1rem; font-family: 'Outfit', sans-serif;
  resize: none; outline: none; line-height: 1.5;
}
.bn-composer-textarea::placeholder { color: var(--text-muted); }
.bn-composer-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem; border-top: 1px solid var(--border); gap: .5rem;
}

/* ── Grille d'archives ── */
.bn-archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  padding: .75rem;
}
.bn-archive-item {
  position: relative; aspect-ratio: 9/16; border-radius: 8px;
  overflow: hidden; background: var(--bg-card-2);
}
.bn-archive-img { width: 100%; height: 100%; object-fit: cover; }
.bn-arc-badge {
  position: absolute; top: .3rem; left: .3rem;
  background: #ffd700; color: #000;
  font: 800 .55rem/1 Archivo, sans-serif; padding: 2px 5px; border-radius: 4px;
}
.bn-archive-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  display: flex; align-items: center; justify-content: space-between;
  padding: .4rem .3rem .3rem; gap: .2rem;
}
.bn-archive-date { font-size: .6rem; color: rgba(255,255,255,.7); flex:1; }
.bn-archive-actions .btn { padding: .2rem .3rem; font-size: .65rem; }

/* ── Modal Story Creator (plein écran) ── */
.bn-creator-modal {
  display: none; position: fixed; inset: 0; z-index: 1002;
  background: rgba(0,0,0,.85); align-items: center; justify-content: center;
}
.bn-creator-inner {
  position: relative; background: var(--bg-card-dark);
  border-radius: 16px; width: min(900px, 96vw); max-height: 95vh;
  overflow: hidden; animation: fadeInUp .2s ease;
}
.bn-creator-close {
  position: absolute; top: .6rem; right: .8rem; z-index: 5;
  background: rgba(0,0,0,.5); border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer; width: 34px; height: 34px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════
   BêtiseNow v2 — Navigation interne + Profils
   ══════════════════════════════════════════════════════ */

/* ── Navigation interne (Accueil / Messages / Live / Profil) ──
   Barre du bas, collée au bas de l'écran (sticky = naturellement bornée à la
   largeur du panneau BN, pas besoin de recalculer left/right comme en fixed).
   Sur mobile, la barre globale .mobile-tab-bar (style.css ~L196, fixed bottom:0,
   ~56px+safe-area, z-index 200) est déjà présente : on remonte la barre interne
   au-dessus d'elle pour ne pas se superposer. ── */
.bn-internal-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: flex; background: rgba(19,19,21,.97); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.bn-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .6rem 0; color: var(--text-muted); background: none; border: none;
  text-decoration: none; font-size: .62rem; font-weight: 700; cursor: pointer;
  position: relative; transition: color .15s;
}
.bn-nav-item.active { color: var(--accent); }
.bn-nav-item [data-lucide] { width: 20px; height: 20px; }
.bn-nav-item .notif-dot { position: absolute; top: 2px; right: calc(50% - 18px); }

@media (max-width: 768px) {
  .bn-internal-nav { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

.bn-pane { display: none; padding-bottom: calc(56px + 1.5rem); }
.bn-pane.active { display: block; }
#bnPaneMessages.active, #bnPaneChat.active { display: flex; flex-direction: column; min-height: 50vh; }
@media (max-width: 768px) {
  .bn-pane { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 56px + 1.5rem); }
}

/* ── Bouton supprimer un post ── */
.tw-del-btn {
  margin-left: auto; background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 2px; display: flex; align-items: center;
  transition: color .15s;
}
.tw-del-btn:hover { color: var(--red, #e53935); }
.tw-del-btn [data-lucide] { width: 14px; height: 14px; }

/* ── Page Profil (façon Twitter) ── */
.pf-page { max-width: 640px; margin: 0 auto; padding-bottom: calc(56px + 1.5rem); }
@media (max-width: 768px) {
  .pf-page { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 56px + 1.5rem); }
}
.pf-header { padding: 0; overflow: hidden; }
.pf-banner {
  padding: 2rem 1.5rem 1.5rem; text-align: center;
}
.pf-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.15); padding: .5rem; }
.pf-logo-fb {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font: 800 2rem/1 Archivo, sans-serif; color: #fff; margin: 0 auto;
}
.pf-identity { text-align: center; padding: .75rem 1rem 0; }
.pf-identity h1 { font: 800 1.3rem/1.2 Archivo, sans-serif; margin: 0; }
.pf-pseudo { color: var(--text-muted); font-size: .85rem; margin: .15rem 0; }
.pf-league { color: var(--text-muted); font-size: .78rem; }
.pf-friends-btn {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem;
  background: var(--bg-card-2, #26242a); border: 1px solid var(--border, #2b2930);
  color: var(--text); border-radius: 999px; padding: .35rem .85rem;
  font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.pf-friends-btn:hover { background: var(--bg-card, #1c1b1f); border-color: var(--accent, #f9c74f); }
.pf-friends-btn strong { font-weight: 800; }
.pf-friends-btn [data-lucide] { width: 15px; height: 15px; color: var(--text-muted); }

/* Liste d'amis (modal) */
.pf-friends-list { display: flex; flex-direction: column; gap: .15rem; max-height: 60vh; overflow-y: auto; padding: .25rem 0; }
.pf-fr-row {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .5rem;
  border-radius: 10px; text-decoration: none; color: var(--text); transition: background .15s;
}
.pf-fr-row:hover { background: var(--bg-card-2, #26242a); }
.pf-fr-av, .pf-fr-av-fb { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.pf-fr-av-fb { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.pf-fr-info { flex: 1; min-width: 0; }
.pf-fr-club { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-fr-pseudo { font-size: .76rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-fr-arrow { width: 18px; height: 18px; color: var(--text-dim, #5c5e64); flex-shrink: 0; }
.pf-stats-row { display: flex; justify-content: space-around; padding: 1rem; }
.pf-actions { display: flex; justify-content: center; padding: 0 1rem 1.25rem; }

.pf-tabs {
  display: flex; gap: 0; margin: 1rem 0 0; border-bottom: 1px solid var(--border);
}
.pf-tab {
  flex: 1; background: none; border: none; padding: .75rem 0;
  color: var(--text-muted); font-weight: 700; font-size: .85rem; cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.pf-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.pf-pane { display: none; padding-top: .75rem; }
.pf-pane.active { display: block; }

/* ── À la une (highlights type Instagram) ─────────────────────────────── */
.pf-highlights { margin-top: 1rem; }
.pf-hl-row {
  display: flex; gap: .9rem; overflow-x: auto; padding: .2rem .1rem .4rem;
  scrollbar-width: none;
}
.pf-hl-row::-webkit-scrollbar { display: none; }
.pf-hl-item {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  cursor: pointer; width: 64px;
}
.pf-hl-ring {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, var(--accent, #f9c74f), #e0559b 55%, #7c4dff);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.pf-hl-remove {
  position: absolute; top: -3px; right: -3px; z-index: 3;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red, #e74c3c); color: #fff; border: 2px solid var(--bg, #131315);
  font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.pf-hl-remove:hover { transform: scale(1.12); }
/* Retrait dans le viewer plein écran */
.pf-sv-actions {
  position: absolute; left: 0; right: 0; bottom: 5.5vh; z-index: 5;
  display: flex; justify-content: center; pointer-events: none;
}
.pf-sv-remove {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: .55rem 1.1rem; font-size: .82rem; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(4px);
}
.pf-sv-remove:hover { background: var(--red, #e74c3c); border-color: var(--red, #e74c3c); }
.pf-sv-remove [data-lucide] { width: 16px; height: 16px; }
.pf-hl-item:hover .pf-hl-ring { transform: scale(1.06); }
.pf-hl-thumb {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg, #131315);
}
.pf-hl-ring-add {
  background: none; border: 2px dashed var(--border, #2b2930);
  color: var(--text-muted);
}
.pf-hl-ring-add [data-lucide] { width: 22px; height: 22px; }
.pf-hl-add:hover .pf-hl-ring-add { border-color: var(--accent, #f9c74f); color: var(--accent, #f9c74f); }
.pf-hl-label {
  font-size: .68rem; color: var(--text-muted); font-weight: 600;
  max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}

/* Sélecteur de stories à la une */
.pf-hl-help { font-size: .8rem; color: var(--text-muted); margin: 0 0 .75rem; padding: 0 .25rem; }
.pf-pick-item { cursor: pointer; }
.pf-pick-check {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s;
}
.pf-pick-check [data-lucide] { width: 13px; height: 13px; }
.pf-pick-item.pf-pick-on .pf-pick-check {
  opacity: 1; transform: scale(1);
  background: var(--accent, #f9c74f); border-color: var(--accent, #f9c74f); color: #101114;
}
.pf-pick-item.pf-pick-on .bn-archive-img { outline: 3px solid var(--accent, #f9c74f); outline-offset: -3px; }

/* ══════════════════════════════════════════════════════
   BêtiseNow — Site parallèle (bnow/)
   Corps des pages, topbar, barre de nav unique
   ══════════════════════════════════════════════════════ */

/* Topbar BêtiseNow — mobile uniquement sur les pages bnow/* (position:fixed pour passer over overflow-x:hidden) */
.bn-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  background: rgba(19,19,21,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: none; align-items: center; justify-content: center;
  height: 52px; padding: 0 1rem;
}
@media (max-width: 768px) {
  .bn-topbar { display: flex; }
  body.bnow .navbar { display: none !important; }
  body.bnow .mobile-tab-bar { display: none !important; }
  /* Le rond Pass céderait la place au rond « + » (nouveau post) de BêtiseNow */
  body.bnow .pass-fab { display: none !important; }
  body.bnow main.main-content { padding-top: 52px; }
}
.bn-topbar-title {
  font: 800 1.1rem/1 Archivo, sans-serif;
  background: linear-gradient(135deg, var(--accent), #ffd700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.01em;
}
.bn-topbar-back {
  position: absolute; left: 1rem;
  color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 700;
}
.bn-topbar-back [data-lucide] { width: 18px; height: 18px; }

/* Barre de navigation BêtiseNow (6 items) — mobile uniquement */
.bn-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: flex;
  background: rgba(19,19,21,.97); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 769px) { .bn-nav { display: none !important; } }
.bn-nav .bn-nav-item { font-size: .55rem; padding: .55rem 0; }

/* Sidebar BN (bnow/*) — masquée sur mobile */
@media (max-width: 768px) { #bnNavSidebar { display: none !important; } }

/* Content wrapper — réserve la place de la barre du bas (mobile) */
.bn-content {
  max-width: 640px; margin: 0 auto;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 1.5rem);
}
/* PC avec sidebar : décale le contenu de 64px */
@media (min-width: 769px) {
  body.bn-has-sidebar .bn-content { margin-left: 64px; margin-right: auto; max-width: 640px; }
  body.bn-has-sidebar .pf-page { margin-left: 64px; }
}

/* Profil dans BN */
body.bnow .pf-page {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 1.5rem);
}

/* FAB dans BN — une seule barre (pas de .mobile-tab-bar sur body.bnow) */
body.bnow .bn-fab { bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 1rem); }

/* ═══════════════════════════════════════════════════════════════════════════
   ROULETTE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.rl-page { max-width: 860px; margin: 0 auto; padding: 1rem 1rem 3rem; }

/* Header */
.rl-header {
  background: linear-gradient(135deg, #1a0505 0%, #2d0808 60%, #1a0505 100%);
  border: 1px solid rgba(192,57,43,.3);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.rl-header-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rl-header-title { flex: 1; min-width: 0; }
.rl-title  { font: 900 1.4rem/1.1 Archivo, sans-serif; color: #fff; margin: 0 0 .15rem; }
.rl-subtitle { color: rgba(255,255,255,.45); font-size: .78rem; margin: 0; }
.rl-balance {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(0,0,0,.4); border: 1px solid rgba(201,162,39,.3);
  border-radius: 2rem; padding: .4rem .9rem;
  color: #c9a227; font: 700 1rem/1 Archivo, sans-serif;
}
.rl-balance i  { width: 16px; height: 16px; }
.rl-balance small { font-size: .68rem; font-weight: 500; color: rgba(201,162,39,.6); }

/* History dots */
.rl-history {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .25rem; margin-bottom: .75rem; flex-wrap: wrap;
}
.rl-history-label { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.rl-history-dots  { display: flex; gap: .3rem; flex-wrap: wrap; }
.rl-hdot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: .65rem; font-weight: 700; color: #fff;
}
.rl-hdot-rouge { background: #c0392b; }
.rl-hdot-noir  { background: #333; border: 1px solid #555; }
.rl-hdot-vert  { background: #00a32a; }

/* Main grid */
.rl-main {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Online strip */
.rl-online {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: .75rem; flex-wrap: wrap;
}
.rl-online i { width: 14px; height: 14px; }
.rl-online-chips { display: flex; gap: .25rem; flex-wrap: wrap; }
.rl-chip-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border);
}
.rl-chip-init {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 .68rem/1 Archivo, sans-serif; color: #fff;
}

/* Wheel wrapper */
.rl-wheel-col { display: flex; flex-direction: column; align-items: center; }
.rl-wheel-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  margin-bottom: 1rem;
}
.rl-pointer-top {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #c9a227;
  filter: drop-shadow(0 2px 4px rgba(201,162,39,.6));
  z-index: 10;
}

/* The wheel itself — full European roulette conic gradient */
.rl-wheel {
  width: 230px; height: 230px;
  border-radius: 50%;
  background: conic-gradient(
    #00a32a   0deg    9.730deg,
    #c0392b   9.730deg  19.459deg,
    #1a1a1a  19.459deg  29.189deg,
    #c0392b  29.189deg  38.919deg,
    #1a1a1a  38.919deg  48.649deg,
    #c0392b  48.649deg  58.378deg,
    #1a1a1a  58.378deg  68.108deg,
    #c0392b  68.108deg  77.838deg,
    #1a1a1a  77.838deg  87.568deg,
    #c0392b  87.568deg  97.297deg,
    #1a1a1a  97.297deg 107.027deg,
    #c0392b 107.027deg 116.757deg,
    #1a1a1a 116.757deg 126.486deg,
    #c0392b 126.486deg 136.216deg,
    #1a1a1a 136.216deg 145.946deg,
    #c0392b 145.946deg 155.676deg,
    #1a1a1a 155.676deg 165.405deg,
    #c0392b 165.405deg 175.135deg,
    #1a1a1a 175.135deg 184.865deg,
    #c0392b 184.865deg 194.595deg,
    #1a1a1a 194.595deg 204.324deg,
    #c0392b 204.324deg 214.054deg,
    #1a1a1a 214.054deg 223.784deg,
    #c0392b 223.784deg 233.514deg,
    #1a1a1a 233.514deg 243.243deg,
    #c0392b 243.243deg 252.973deg,
    #1a1a1a 252.973deg 262.703deg,
    #c0392b 262.703deg 272.432deg,
    #1a1a1a 272.432deg 282.162deg,
    #c0392b 282.162deg 291.892deg,
    #1a1a1a 291.892deg 301.622deg,
    #c0392b 301.622deg 311.351deg,
    #1a1a1a 311.351deg 321.081deg,
    #c0392b 321.081deg 330.811deg,
    #1a1a1a 330.811deg 340.541deg,
    #c0392b 340.541deg 350.270deg,
    #1a1a1a 350.270deg 360deg
  );
  border: 5px solid #c9a227;
  box-shadow: 0 0 0 2px #8b6914, 0 0 40px rgba(201,162,39,.25);
  position: relative;
  will-change: transform;
}
.rl-wheel.is-spinning {
  box-shadow: 0 0 0 2px #8b6914, 0 0 60px rgba(192,57,43,.5), 0 0 30px rgba(201,162,39,.3);
}

@keyframes rl-spin-to-result {
  from { transform: rotate(0deg); }
  to   { transform: rotate(var(--spin-target, 1800deg)); }
}
.rl-wheel.rl-spinning-anim {
  animation: rl-spin-to-result 4.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.rl-wheel-num {
  position: absolute; top: 50%; left: 50%;
  font: 800 9px/1 Archivo, sans-serif;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  pointer-events: none;
}

/* Grilles de mises */
.rl-bet-panel-title small { color: var(--gold); font-weight: 800; margin-left: .3rem; }
.rl-simple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-bottom: .75rem; }
.rl-dozen-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-bottom: .75rem; }
.rl-sbet {
  padding: .45rem .3rem; border-radius: 8px; cursor: pointer;
  font: 700 .76rem/1 Outfit, sans-serif; color: var(--text);
  background: var(--bg-card-2); border: 2px solid var(--border);
  transition: all .12s;
}
.rl-sbet:hover { border-color: var(--accent); }
.rl-sbet.active { border-color: var(--gold); box-shadow: 0 0 8px rgba(201,162,39,.4); }
.rl-sbet.rl-rouge { background: rgba(192,57,43,.25); border-color: rgba(192,57,43,.5); }
.rl-sbet.rl-noir  { background: #191919; }
.rl-num-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-bottom: .75rem; }
.rl-nbet {
  aspect-ratio: 1; border-radius: 6px; cursor: pointer;
  font: 800 .72rem/1 Archivo, sans-serif; color: #fff;
  border: 2px solid transparent; transition: all .1s;
  display: flex; align-items: center; justify-content: center;
}
.rl-nbet-rouge { background: #8e2b20; }
.rl-nbet-noir  { background: #1d1d1f; border-color: rgba(255,255,255,.12); }
.rl-nbet-vert  { background: #067a26; }
.rl-nbet:hover  { filter: brightness(1.35); }
.rl-nbet.active { border-color: var(--gold); box-shadow: 0 0 8px rgba(201,162,39,.5); filter: brightness(1.2); }

/* Mes mises du tour */
.rl-mybets-title { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; margin-bottom: .4rem; }
.rl-mybets-title [data-lucide] { width: 14px; height: 14px; color: var(--green); }
#rlMyBetsList { display: flex; flex-wrap: wrap; gap: .3rem; }
.rl-mybet-chip {
  font-size: .7rem; font-weight: 700; padding: .2rem .5rem;
  border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--bg-card-2);
}

.rl-wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px;
  background: #100505;
  border: 3px solid #c9a227;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  font: 900 1.1rem/1 Archivo, sans-serif;
  color: #c9a227;
}

/* Status bar */
.rl-status-bar {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .75rem;
}
.rl-status-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 2rem;
  font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.07); color: var(--text-muted);
  border: 1px solid var(--border);
}
.rl-status-badge.rl-open    { background: rgba(0,163,42,.12); color: #00c94a; border-color: rgba(0,163,42,.3); }
.rl-status-badge.rl-spinning{ background: rgba(192,57,43,.12); color: #e74c3c; border-color: rgba(192,57,43,.3); }
.rl-status-badge.rl-closed  { background: rgba(201,162,39,.1); color: #c9a227; border-color: rgba(201,162,39,.3); }
.rl-timer { font: 700 1.3rem/1 Archivo, sans-serif; color: var(--accent); }

/* Result block */
.rl-result-block {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  animation: rl-pop .3s ease;
}
@keyframes rl-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rl-result-num {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 900 1.5rem/1 Archivo, sans-serif; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.rl-result-label { font-size: .85rem; font-weight: 700; }

/* Right column */
.rl-right-col { display: flex; flex-direction: column; gap: .9rem; }

/* Bet panel */
.rl-bet-panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: .9rem; padding: 1rem;
}
.rl-bet-panel-title { font: 700 .82rem/1 Archivo, sans-serif; color: var(--text-muted); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.rl-color-row { display: flex; gap: .5rem; margin-bottom: .75rem; }
.rl-color-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .6rem .3rem; border-radius: .6rem;
  border: 2px solid transparent; background: rgba(255,255,255,.05);
  cursor: pointer; transition: border-color .15s, transform .1s;
  color: var(--text);
}
.rl-color-btn:hover { transform: translateY(-2px); }
.rl-color-btn.active { border-color: currentColor; background: rgba(255,255,255,.1); }
.rl-color-swatch { width: 24px; height: 24px; border-radius: 50%; display: block; }
.rl-rouge .rl-color-swatch { background: #c0392b; }
.rl-noir  .rl-color-swatch { background: #333; border: 1px solid #666; }
.rl-vert  .rl-color-swatch { background: #00a32a; }
.rl-rouge { color: #c0392b; }
.rl-noir  { color: #aaa; }
.rl-vert  { color: #00c94a; }
.rl-color-btn span { font: 700 .8rem/1 Archivo, sans-serif; }
.rl-color-btn small { font-size: .65rem; color: var(--text-muted); }

.rl-amount-row { margin-bottom: .75rem; }
.rl-amount-input {
  width: 100%; padding: .55rem .75rem;
  background: var(--input-bg, rgba(255,255,255,.07));
  border: 1px solid var(--border); border-radius: .5rem;
  color: var(--text); font-size: .95rem;
  margin-bottom: .4rem;
}
.rl-quick-btns { display: flex; gap: .35rem; }
.rl-quick-btns button {
  flex: 1; padding: .3rem; border-radius: .4rem;
  border: 1px solid var(--border); background: rgba(255,255,255,.05);
  color: var(--text-muted); font-size: .72rem; cursor: pointer;
  transition: background .12s;
}
.rl-quick-btns button:hover { background: rgba(255,255,255,.12); color: var(--text); }
.rl-submit-btn { width: 100%; }

/* My bet info */
.rl-my-bet-info {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(0,163,42,.1); border: 1px solid rgba(0,163,42,.25);
  border-radius: .7rem; padding: .75rem 1rem;
  font-size: .85rem; color: var(--text);
}
.rl-my-bet-info i { width: 16px; height: 16px; color: #00c94a; flex-shrink: 0; }

/* Outcome */
.rl-outcome {
  border-radius: .7rem; padding: .75rem 1rem;
  font-size: .9rem; font-weight: 600; text-align: center;
  animation: rl-pop .3s ease;
}
.rl-outcome-win  { background: rgba(0,163,42,.12); border: 1px solid rgba(0,163,42,.3); color: #00c94a; }
.rl-outcome-lose { background: rgba(192,57,43,.1);  border: 1px solid rgba(192,57,43,.25); color: #e74c3c; }

/* Live bets panel */
.rl-livebets-panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: .9rem; padding: 1rem;
}
.rl-livebets-title {
  display: flex; align-items: center; gap: .4rem;
  font: 700 .78rem/1 Archivo, sans-serif; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .65rem;
}
.rl-livebets-title i { width: 13px; height: 13px; }
.rl-no-bets { font-size: .8rem; color: var(--text-dim); text-align: center; padding: .5rem 0; }
.rl-bet-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem 0; border-bottom: 1px solid var(--border);
  font-size: .8rem;
}
.rl-bet-row:last-child { border-bottom: none; }
.rl-bet-row.rl-bet-me { background: rgba(255,255,255,.04); border-radius: .4rem; padding-left: .4rem; padding-right: .4rem; }
.rl-bet-name  { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.rl-bet-chip  { display: inline-flex; align-items: center; padding: .15rem .45rem; border-radius: 2rem; color: #fff; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.rl-bet-amt   { color: var(--text-muted); white-space: nowrap; }
.rl-bet-gain  { font-weight: 700; white-space: nowrap; }
.rl-bet-gain.won  { color: #00c94a; }
.rl-bet-gain.lost { color: #e74c3c; }

/* Casino card unlocked */
.casino-game-unlocked { cursor: pointer; }
.casino-game-unlocked:hover { border-color: rgba(192,57,43,.6); transform: translateY(-2px); transition: border-color .2s, transform .2s; }

/* Mobile */
@media (max-width: 600px) {
  .rl-main { grid-template-columns: 1fr; }
  .rl-wheel { width: 200px; height: 200px; }
}
body.bnow .bn-fab-menu { bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 5rem); }

/* ═══ Blackjack ═══════════════════════════════════════════════════════════ */
.bj-page { max-width: 900px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.bj-header {
  background: linear-gradient(135deg, #04140b 0%, #0a3520 60%, #04140b 100%);
  border-color: rgba(16,150,80,.35);
}

/* Table (tapis) */
.bj-table {
  background: radial-gradient(ellipse at 50% 0%, #0e4d2c 0%, #0a3a22 55%, #072c1a 100%);
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 1.25rem;
  padding: 1.25rem 1rem 1.5rem;
  margin-bottom: 1rem;
}
.bj-dealer-zone {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,.15);
}
.bj-zone-label {
  font: 700 .68rem/1 Archivo, sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* Cartes */
.bj-cards { display: flex; gap: .35rem; min-height: 64px; align-items: center; justify-content: center; flex-wrap: wrap; }
.bj-card {
  width: 44px; height: 62px; border-radius: .4rem;
  background: #f4f4f0; color: #111; position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  animation: bj-deal .25s ease;
}
@keyframes bj-deal { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.bj-card-rank { position: absolute; top: 3px; left: 5px; font: 800 .78rem/1 Archivo, sans-serif; }
.bj-card-suit { font-size: 1.25rem; margin-top: .35rem; }
.bj-card.bj-red { color: #c0392b; }
.bj-card-back {
  background: repeating-linear-gradient(45deg, #7f1d1d 0 6px, #991b1b 6px 12px);
  border: 2px solid #f4f4f0;
}

/* Badge de valeur */
.bj-val {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px; padding: 0 .4rem; border-radius: 2rem;
  background: rgba(0,0,0,.55); color: #fff;
  font: 800 .72rem/1 Archivo, sans-serif;
}
.bj-val.bust { background: #c0392b; }
.bj-val.bj21 { background: #c9a227; color: #111; }

/* Sièges */
.bj-seats { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.bj-seat {
  flex: 1 1 150px; max-width: 170px; min-width: 130px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12);
  border-radius: .8rem; padding: .6rem .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  transition: border-color .2s, box-shadow .2s;
}
.bj-seat.bj-turn { border-color: #c9a227; box-shadow: 0 0 14px rgba(201,162,39,.35); }
.bj-seat.bj-me-seat { background: rgba(255,255,255,.05); }
.bj-seat-empty { color: rgba(255,255,255,.25); font-size: .72rem; padding: 1.4rem 0; text-align: center; }
.bj-seat-head {
  display: flex; align-items: center; gap: .35rem; width: 100%; justify-content: center;
  font: 700 .72rem/1.2 Archivo, sans-serif; color: #dfe7e2;
}
.bj-seat-head img, .bj-seat-init { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bj-seat-init { display: inline-flex; align-items: center; justify-content: center; font: 700 .6rem/1 Archivo, sans-serif; color: #fff; }
.bj-seat-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bj-seat-bet { font-size: .66rem; color: #c9a227; white-space: nowrap; display: inline-flex; align-items: center; gap: .2rem; }
.bj-turn-tag { font: 700 .62rem/1 Archivo, sans-serif; color: #c9a227; animation: bj-blink 1s infinite alternate; }
@keyframes bj-blink { from { opacity: .5; } to { opacity: 1; } }

/* Mains (dont mains séparées) */
.bj-hand {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .3rem; border-radius: .5rem; border: 1px dashed transparent;
}
.bj-hand .bj-cards { min-height: 0; }
.bj-hand.bj-hand-active { border-color: rgba(201,162,39,.6); background: rgba(201,162,39,.07); }
.bj-seat .bj-card { width: 32px; height: 46px; }
.bj-seat .bj-card-rank { font-size: .6rem; top: 2px; left: 3px; }
.bj-seat .bj-card-suit { font-size: .9rem; }

/* Chips résultat */
.bj-outcome-chip { font: 800 .66rem/1 Archivo, sans-serif; padding: .18rem .45rem; border-radius: 2rem; white-space: nowrap; }
.bj-outcome-chip.win  { background: rgba(0,163,42,.2);  color: #37e070; }
.bj-outcome-chip.lose { background: rgba(192,57,43,.2); color: #ff7b6b; }
.bj-outcome-chip.push { background: rgba(255,255,255,.14); color: #ccc; }

/* Statut + timer */
.bj-status-row { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bj-timer-label { font-size: .75rem; color: rgba(255,255,255,.5); }

/* Panneau bas */
.bj-bottom { display: flex; flex-direction: column; gap: .9rem; max-width: 520px; margin: 0 auto; }
.bj-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.bj-actions button {
  flex: 1 1 100px; padding: .65rem .5rem; border-radius: .6rem;
  font: 700 .85rem/1 Archivo, sans-serif;
  border: 1px solid var(--border); background: rgba(255,255,255,.06); color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: transform .1s, background .15s;
}
.bj-actions button i { width: 15px; height: 15px; }
.bj-actions button:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.bj-actions button:disabled { opacity: .35; cursor: not-allowed; }
.bj-btn-hit    { border-color: rgba(0,163,42,.5);   color: #37e070; }
.bj-btn-stand  { border-color: rgba(192,57,43,.5);  color: #ff7b6b; }
.bj-btn-double { border-color: rgba(201,162,39,.5); color: #c9a227; }
.bj-btn-split  { border-color: rgba(80,140,255,.5); color: #7ea8ff; }

@media (max-width: 600px) {
  .bj-seat { flex: 1 1 44%; min-width: 110px; }
}

/* ═══ Paris sur matchs ════════════════════════════════════════════════════ */
.pm-page { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.pm-header {
  background: linear-gradient(135deg, #06121f 0%, #0b2a4a 60%, #06121f 100%);
  border-color: rgba(37,99,235,.35);
}
.pm-section-title {
  display: flex; align-items: center; gap: .45rem;
  font: 700 .82rem/1 Archivo, sans-serif; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 1rem 0 .6rem;
}
.pm-section-title i { width: 15px; height: 15px; }

/* Carte match */
.pm-match-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: .9rem; padding: .85rem 1rem; margin-bottom: .75rem;
}
.pm-match-card.pm-live { border-color: rgba(192,57,43,.5); }
.pm-match-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .68rem; color: var(--text-muted); margin-bottom: .6rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.pm-match-row { display: flex; align-items: center; gap: .6rem; }
.pm-team {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  font: 700 .74rem/1.2 Archivo, sans-serif; color: var(--text); text-align: center;
}
.pm-team img, .pm-team-init { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
.pm-team-init { display: inline-flex; align-items: center; justify-content: center; font: 700 .8rem/1 Archivo, sans-serif; color: #fff; }
.pm-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Prono de score : steppers */
.pm-score-form { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.pm-score-sep { font: 800 1.1rem/1 Archivo, sans-serif; color: var(--text-muted); }
.pm-score-stepper {
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--border); border-radius: .55rem;
  background: rgba(255,255,255,.05); overflow: hidden;
}
.pm-score-stepper span {
  font: 800 1.25rem/1 Archivo, sans-serif; color: #7ea8ff;
  min-width: 42px; text-align: center; padding: .15rem 0;
}
.pm-score-stepper button {
  width: 100%; border: none; background: rgba(255,255,255,.05);
  color: var(--text-muted); cursor: pointer; padding: .15rem 0;
  display: flex; align-items: center; justify-content: center;
}
.pm-score-stepper button:hover { background: rgba(37,99,235,.25); color: #fff; }
.pm-score-stepper .lucide, .pm-score-stepper [data-lucide] { width: 14px; height: 14px; }
.pm-score-fixed {
  flex-shrink: 0; min-width: 74px; text-align: center;
  font: 800 1.3rem/1 Archivo, sans-serif; color: #7ea8ff;
}
.pm-score-fixed.pm-score-vs { color: var(--text-dim); font-size: 1rem; }
.pm-score-chip {
  display: inline-flex; align-items: center; padding: .15rem .5rem;
  border-radius: 2rem; background: rgba(37,99,235,.18);
  color: #7ea8ff; font: 800 .7rem/1 Archivo, sans-serif; white-space: nowrap;
}
.rl-bet-gain.part { color: #c9a227; }

/* Formulaire de mise */
.pm-bet-form {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--border);
}
.pm-bet-form-label { font-size: .74rem; font-weight: 700; color: #7ea8ff; flex: 1; min-width: 120px; }
.pm-amount {
  width: 64px; padding: .4rem .5rem; text-align: center;
  background: var(--input-bg, rgba(255,255,255,.07));
  border: 1px solid var(--border); border-radius: .5rem;
  color: var(--text); font-size: .9rem;
}
.pm-potential { font-size: .68rem; opacity: .8; }
.pm-locked-note {
  display: flex; align-items: center; gap: .4rem;
  margin-top: .7rem; font-size: .74rem; color: var(--text-muted);
}
.pm-locked-note i { width: 13px; height: 13px; }

/* Paris des joueurs sur un match */
.pm-match-bets { margin-top: .7rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.pm-bet-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem 0; font-size: .74rem;
}
.pm-bet-row.pm-bet-me { background: rgba(255,255,255,.04); border-radius: .4rem; padding-left: .4rem; padding-right: .4rem; }
.pm-bet-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pm-bet-amt { color: var(--text-muted); white-space: nowrap; font-size: .7rem; }

@media (max-width: 520px) {
  .pm-match-row { flex-wrap: wrap; }
  .pm-score-form, .pm-score-fixed { order: 3; width: 100%; justify-content: center; margin-top: .5rem; }
  .pm-team { flex: 1 1 40%; }
}

/* ═══ Casino : icônes Lucide à la place des emojis ═══════════════════════ */
/* NB : lucide.createIcons() remplace <i data-lucide> par <svg class="lucide"> —
   il faut donc cibler .lucide / [data-lucide], jamais « i » */
.casino-closed-icon .lucide, .casino-closed-icon [data-lucide] {
  width: 56px; height: 56px; color: #c9a227;
  display: block; margin: 0 auto;
}
.casino-logo .lucide, .casino-logo [data-lucide] {
  width: 52px; height: 52px; color: #c9a227; display: block;
}
.casino-game-icon .lucide, .casino-game-icon [data-lucide] {
  width: 40px; height: 40px; display: block;
}
.casino-game-roulette  .casino-game-icon .lucide, .casino-game-roulette  .casino-game-icon [data-lucide] { color: #e74c3c; }
.casino-game-blackjack .casino-game-icon .lucide, .casino-game-blackjack .casino-game-icon [data-lucide] { color: #37e070; }
.casino-game-bets      .casino-game-icon .lucide, .casino-game-bets      .casino-game-icon [data-lucide] { color: #7ea8ff; }
.rl-title .lucide, .rl-title [data-lucide] { width: 22px; height: 22px; vertical-align: -3px; }
.rl-status-badge .lucide, .rl-status-badge [data-lucide] { width: 14px; height: 14px; }
.rl-outcome .lucide, .rl-outcome [data-lucide] { width: 16px; height: 16px; vertical-align: -3px; margin-right: .3rem; }
.rl-bet-gain .lucide, .rl-bet-gain [data-lucide] { width: 13px; height: 13px; vertical-align: -2px; }
.pm-match-date .lucide, .pm-match-date [data-lucide] { width: 12px; height: 12px; vertical-align: -2px; color: #e74c3c; }
.bj-seat-bet .lucide, .bj-seat-bet [data-lucide] { width: 10px; height: 10px; }

/* ── Panneau coach — match live (amicaux, phase 1) ─────────────────────── */
.coach-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.cp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.1rem;
  background: var(--bg-card-dark);
  border-bottom: 1px solid var(--border);
  margin-bottom: .9rem;
}
.cp-title {
  display: flex; align-items: center; gap: .5rem;
  font: 800 .8rem/1 Archivo, sans-serif; letter-spacing: .8px; text-transform: uppercase;
  color: var(--text-muted);
}
.cp-title [data-lucide] { width: 15px; height: 15px; color: var(--accent); }
.cp-live-badge {
  font: 800 .68rem/1 'Space Mono', monospace; letter-spacing: 1px;
  padding: .3rem .6rem; border-radius: 20px;
  background: rgba(231,76,60,.14); color: var(--red);
  border: 1px solid rgba(231,76,60,.35);
}
.live-halftime-banner {
  display: flex; align-items: center; gap: .7rem;
  background: linear-gradient(90deg, rgba(79,142,247,.14), rgba(79,142,247,.04));
  border: 1px solid rgba(79,142,247,.4); border-left: 3px solid var(--accent);
  padding: .65rem .9rem; border-radius: var(--radius-sm);
  margin: 0 1.1rem .9rem;
}
.live-halftime-banner [data-lucide] { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.live-halftime-banner b { display: block; font-size: .82rem; color: var(--accent); }
.live-halftime-banner span { display: block; font-size: .74rem; color: var(--text-muted); }

.cp-section { padding: 0 1.1rem; }
.cp-section + .cp-section { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--border); }

/* Rangée compacte : mentalité et remplacements côte à côte sur desktop */
.cp-row { display: grid; grid-template-columns: 3fr 2fr; gap: 1rem; padding: 0 1.1rem; }
.cp-row .cp-section { padding: 0; }
.cp-row .cp-section + .cp-section { margin-top: 0; padding-top: 0; border-top: none; border-left: 1px dashed var(--border); padding-left: 1rem; }
@media (max-width: 640px) {
  .cp-row { grid-template-columns: 1fr; }
  .cp-row .cp-section + .cp-section { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--border); border-left: none; padding-left: 0; }
}
.cp-row .cp-sub-btn { margin-top: .35rem; }

/* Fraîcheur repliable — replié par défaut pour garder le panneau compact */
.cp-fatigue-details { margin: .9rem 1.1rem 0; border-top: 1px dashed var(--border); padding-top: .7rem; }
.cp-fatigue-details summary { cursor: pointer; list-style: none; user-select: none; }
.cp-fatigue-details summary::-webkit-details-marker { display: none; }
.cp-fatigue-details .cp-chevron { transition: transform .2s; margin-left: auto; }
.cp-fatigue-details[open] .cp-chevron { transform: rotate(180deg); }
.cp-fatigue-details .live-fatigue { margin-top: .6rem; }
.cp-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .55rem;
}
.cp-section-label {
  display: flex; align-items: center; gap: .4rem;
  font: 700 .72rem/1 Archivo, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-muted);
}
.cp-section-label [data-lucide] { width: 14px; height: 14px; opacity: .8; }
.cp-uses { display: flex; gap: .3rem; align-items: center; }
.cp-dot {
  display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg-card-2); border: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}
.cp-dot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 5px rgba(79,142,247,.55); }

/* Échelle de mentalité : 5 crans sur un axe défense → attaque */
.mentality-scale {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  position: relative;
}
.ms-step {
  appearance: none; border: 1px solid var(--border); background: var(--bg-card-2);
  border-radius: var(--radius-xs); cursor: pointer;
  padding: .5rem .25rem .4rem;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  transition: border-color .15s, background .15s, transform .1s;
  --ms-color: var(--grey);
}
.ms-step:hover:not(:disabled) { border-color: var(--ms-color); transform: translateY(-1px); }
.ms-step:disabled { opacity: .45; cursor: not-allowed; }
.ms-step .ms-tick {
  width: 22px; height: 5px; border-radius: 3px;
  background: var(--ms-color); opacity: .35; transition: opacity .15s;
}
.ms-step .ms-label {
  font: 700 .64rem/1 Archivo, sans-serif; letter-spacing: .2px;
  color: var(--text-muted); white-space: nowrap;
}
.ms-step.ms-l1 { --ms-color: #2f6fdb; }
.ms-step.ms-l2 { --ms-color: #4f9bd8; }
.ms-step.ms-l3 { --ms-color: #8f97a3; }
.ms-step.ms-l4 { --ms-color: #e08a3c; }
.ms-step.ms-l5 { --ms-color: #e74c3c; }
.ms-step.active {
  border-color: var(--ms-color);
  background: color-mix(in srgb, var(--ms-color) 14%, var(--bg-card-2));
  box-shadow: 0 0 0 1px var(--ms-color), 0 3px 10px rgba(0,0,0,.3);
}
.ms-step.active .ms-tick { opacity: 1; box-shadow: 0 0 8px var(--ms-color); }
.ms-step.active .ms-label { color: var(--text); }
.ms-axis {
  display: flex; justify-content: space-between; margin-top: .4rem;
  font: 600 .62rem/1 Archivo, sans-serif; color: var(--text-dim); letter-spacing: .4px;
}
.ms-axis [data-lucide] { width: 11px; height: 11px; vertical-align: -2px; }

.cp-sub-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem .9rem;
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font: 700 .8rem/1 Archivo, sans-serif;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.cp-sub-btn:hover:not(:disabled) { border-color: var(--accent); background: rgba(79,142,247,.08); }
.cp-sub-btn:disabled { opacity: .45; cursor: not-allowed; }
.cp-sub-btn [data-lucide] { width: 15px; height: 15px; color: var(--accent); }
.cp-sub-count { font-weight: 600; font-size: .72rem; color: var(--text-muted); }

/* Fraîcheur : grille compacte 2 colonnes */
.live-fatigue {
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem;
}
@media (max-width: 560px) { .live-fatigue { grid-template-columns: 1fr; } }
.live-fatigue-row { display: flex; align-items: center; gap: .5rem; font-size: .74rem; min-width: 0; }
.lf-pos {
  flex-shrink: 0; width: 16px; text-align: center;
  font: 700 .6rem/1 'Space Mono', monospace; color: var(--text-dim);
}
.live-fatigue-row .lf-name {
  width: 88px; flex-shrink: 0; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lf-bar { flex: 1; height: 5px; background: var(--bg-card-2); border-radius: 3px; overflow: hidden; }
.lf-bar-fill { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .4s ease, background .3s; }
.lf-bar-fill.lf-mid { background: var(--gold); }
.lf-bar-fill.lf-low { background: var(--red); }
.lf-pct { flex-shrink: 0; width: 24px; text-align: right; font: 700 .66rem/1 'Space Mono', monospace; color: var(--text-dim); }

.sub-picker-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.sub-picker-card {
  cursor: pointer; padding: .6rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card-2);
  min-width: 130px; transition: border-color .15s;
}
.sub-picker-card:hover { border-color: var(--accent); }
.spc-name { font-weight: 700; font-size: .85rem; }
.spc-meta { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.spc-hint { font-size: .72rem; color: var(--text-dim); font-weight: 400; }
.spc-stamina { display: flex; align-items: center; gap: .45rem; margin-top: .45rem; }
.spc-stamina .lf-bar { width: 70px; flex: none; }
.spc-stamina-pct { font: 700 .66rem/1 'Space Mono', monospace; color: var(--text-muted); }
.spc-fresh { font: 700 .68rem/1 Archivo, sans-serif; color: var(--green); }
.spc-fresh [data-lucide] { width: 12px; height: 12px; vertical-align: -2px; }

/* Point rouge "live" (remplace l'emoji 🔴) */
.live-dot-inline {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); margin-right: .35rem; vertical-align: 1px;
  animation: liveDotPulse 1.6s ease-in-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231,76,60,.5); }
  50%      { opacity: .6; box-shadow: 0 0 0 4px rgba(231,76,60,0); }
}
.cp-live-badge::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; margin-right: .4rem; vertical-align: 1px;
  animation: liveDotPulse 1.6s ease-in-out infinite;
}

/* Icônes Lucide du fil d'événements — couleur par type */
.ev-ico [data-lucide] { width: 16px; height: 16px; }
.match-event[data-type="but"] .ev-ico,
.match-event[data-type="penalty"] .ev-ico,
.match-event[data-type="tab_but"] .ev-ico { color: var(--green); }
.match-event[data-type="csc"] .ev-ico { color: var(--red); }
.match-event[data-type="carton_jaune"] .ev-ico { color: #ffd700; }
.match-event[data-type="carton_jaune"] .ev-ico [data-lucide] { fill: rgba(255,215,0,.35); }
.match-event[data-type="carton_rouge"] .ev-ico { color: var(--red); }
.match-event[data-type="carton_rouge"] .ev-ico [data-lucide] { fill: rgba(231,76,60,.35); }
.match-event[data-type="arret"] .ev-ico,
.match-event[data-type="tab_arret"] .ev-ico { color: var(--accent); }
.match-event[data-type="fin_match"] .ev-ico,
.match-event[data-type="tab_fin"] .ev-ico { color: var(--gold); }
.match-event[data-type="remplacement"] .ev-ico { color: var(--accent); }
.match-event[data-type="faute"] .ev-ico { color: #e08a3c; }
.match-event[data-type="corner"] .ev-ico { color: var(--text-muted); }
.match-event[data-type="penalty_rate"] .ev-ico { color: var(--red); }
.match-event[data-type="penalty_arret"] .ev-ico { color: var(--accent); }
.match-event[data-type="blessure"] .ev-ico { color: #e08a3c; }
.match-event[data-type="mi_temps"] .ev-ico,
.match-event[data-type="prolongation_debut"] .ev-ico,
.match-event[data-type="prolongation_mt"] .ev-ico,
.match-event[data-type="prolongation_fin"] .ev-ico { color: var(--text-muted); }
.status-live [data-lucide], .match-finished [data-lucide] { width: 15px; height: 15px; vertical-align: -2px; }

/* Modal de confirmation (mentalité / remplacement) */
.confirm-box { max-width: 420px; padding: 1.5rem 1.5rem 1.25rem; text-align: center; }
.confirm-icon {
  width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 50%;
  background: rgba(79,142,247,.12); border: 1px solid rgba(79,142,247,.4);
  display: flex; align-items: center; justify-content: center;
}
.confirm-icon [data-lucide] { width: 24px; height: 24px; color: var(--accent); }
.confirm-title { font: 800 1.05rem/1.2 Archivo, sans-serif; margin-bottom: .5rem; }
.confirm-text { font-size: .86rem; color: var(--text-muted); line-height: 1.55; }
.confirm-text b { color: var(--text); }
.confirm-delay {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .7rem; padding: .45rem .7rem;
  background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .76rem;
}
.confirm-delay [data-lucide] { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.confirm-actions { display: flex; gap: .6rem; justify-content: center; margin-top: 1.1rem; }

/* Banc de touche (page Équipe) : 5 remplaçants */
.bench-strip {
  margin-top: .5rem; padding: .45rem .7rem;
  background: var(--bg-card-dark); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
}
.bench-label {
  display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
  font: 700 .72rem/1.2 Archivo, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-muted);
}
.bench-label [data-lucide] { width: 15px; height: 15px; color: var(--accent); }
.bench-hint { display: block; font: 400 .62rem/1.2 Archivo, sans-serif; text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.bench-slots { display: flex; gap: .45rem; flex-wrap: wrap; }
.bench-slots .pitch-slot {
  width: calc(var(--slot-w, 74px) * .82);
  height: calc(var(--slot-h, 106px) * .82);
}
.bench-slots .slot-syn-popup { bottom: calc(var(--slot-h, 106px) * .27); }

/* Badge "entré en jeu" sur le mini-terrain + historique des remplacements */
.mp-slot { position: relative; }

/* Synergie de nationalité : chip "+N" seule (le contour rareté de la photo reste intact) */
.mp-syn-chip {
  position: absolute; top: -4px; left: 0; z-index: 2;
  font: 800 .5rem/1 'Space Mono', monospace;
  padding: 1px 3px; border-radius: 4px;
  color: #101114; border: 1px solid var(--bg-card-dark);
}
.mp-slot.mp-syn-bronze .mp-syn-chip { background: #cd7f32; }
.mp-slot.mp-syn-silver .mp-syn-chip { background: #c8ccd4; }
.mp-slot.mp-syn-gold   .mp-syn-chip { background: var(--gold); }
.mp-sub-badge {
  position: absolute; top: -3px; right: 1px; z-index: 2;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 1.5px solid var(--bg-card-dark);
  display: flex; align-items: center; justify-content: center;
}
.mp-sub-badge [data-lucide] { width: 9px; height: 9px; color: #fff; stroke-width: 3; }
.ml-subs {
  margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem;
  padding: .5rem .6rem; background: var(--bg-card-2);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.ml-sub-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .7rem; min-width: 0;
}
.ml-sub-min { font: 700 .64rem/1 'Space Mono', monospace; color: var(--text-dim); flex-shrink: 0; }
.ml-sub-in { color: var(--green); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-sub-out { color: var(--red); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-sub-in [data-lucide], .ml-sub-out [data-lucide] { width: 11px; height: 11px; vertical-align: -2px; stroke-width: 3; }

/* Consignes en attente d'application (délai tactique) */
.cp-pending {
  display: flex; flex-direction: column; gap: .35rem;
  margin: 0 1.1rem .9rem;
}
.cp-pending-item {
  display: flex; align-items: center; gap: .45rem;
  font-size: .75rem; color: var(--text-muted);
  background: rgba(249,199,79,.07); border: 1px dashed rgba(249,199,79,.4);
  border-radius: var(--radius-sm); padding: .4rem .65rem;
}
.cp-pending-item b { color: var(--gold); }
.cp-pending-item [data-lucide] { width: 13px; height: 13px; color: var(--gold); flex-shrink: 0; }

/* ── Casino : guichet de jetons ─────────────────────────────────────────── */
.chip-desk { padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.chip-desk-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.chip-desk-title { display: flex; align-items: center; gap: .45rem; font: 800 .9rem/1 Archivo, sans-serif; text-transform: uppercase; }
.chip-desk-title [data-lucide] { width: 16px; height: 16px; color: var(--accent); }
.chip-desk-rate { font-size: .75rem; font-weight: 700; color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); padding: .25rem .6rem; border-radius: 999px; }
.chip-desk-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.chip-desk-col { display: flex; flex-direction: column; gap: .4rem; }
.chip-lbl { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.chip-row { display: flex; align-items: center; gap: .4rem; }
.chip-input {
  width: 84px; padding: .4rem .5rem; font-size: .9rem; font-weight: 700;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); outline: none; font-family: 'Outfit', sans-serif;
}
.chip-input:focus { border-color: var(--accent); }
.chip-unit { font-size: .75rem; color: var(--text-muted); }
.chip-hint { font-size: .7rem; color: var(--text-muted); }
.chip-hint b { color: var(--text); }
.chip-desk-free .chip-free-btn { align-self: flex-start; }
.chip-desk-note {
  display: flex; align-items: center; gap: .45rem; margin-top: .9rem; padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.06); font-size: .74rem; color: var(--text-muted);
}
.chip-desk-note [data-lucide] { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Casino : classement des jetons ─────────────────────────────────────── */
.chip-board { padding: 0; overflow: hidden; margin-top: 2rem; }
.chip-board-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; background: var(--bg-card-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chip-board-title { display: flex; align-items: center; gap: .45rem; font: 800 .9rem/1 Archivo, sans-serif; text-transform: uppercase; }
.chip-board-title [data-lucide] { width: 16px; height: 16px; color: var(--gold); }
.chip-board-sub { font-size: .7rem; color: var(--text-muted); }
.chip-board-list { display: flex; flex-direction: column; }
.chip-board-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem; font-size: .85rem; }
.chip-board-row + .chip-board-row { border-top: 1px solid rgba(255,255,255,.04); }
.chip-board-row.me { background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.chip-board-rank { width: 22px; text-align: center; font: 800 .8rem/1 Archivo, sans-serif; color: var(--text-muted); flex-shrink: 0; }
.chip-board-rank.top1 { color: #ffd700; } .chip-board-rank.top2 { color: #c0c0c0; } .chip-board-rank.top3 { color: #cd7f32; }
.chip-board-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.chip-board-logo-fb { border-radius: 50%; display: inline-block; }
.chip-board-name { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-board-games { font-size: .7rem; color: var(--text-muted); flex-shrink: 0; }
.chip-board-net { font: 800 .85rem/1 Archivo, sans-serif; min-width: 58px; text-align: right; flex-shrink: 0; }
.chip-board-net.up, .chip-board-me .up { color: var(--green); }
.chip-board-net.down, .chip-board-me .down { color: var(--red); }
.chip-board-me { padding: .7rem 1.1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); }


/* ══ Foot de table (casino_soccer) ══════════════════════════════════════ */
.soc-page { max-width: 640px; margin: 0 auto; padding: 1rem; }
.soc-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.soc-title { font: 800 1.05rem/1 Archivo, sans-serif; display: flex; align-items: center; gap: .4rem; }
.soc-chips { display: flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--gold); font-size: .9rem; }
.soc-lobby { text-align: center; padding: 2rem 1.5rem; }
.soc-lobby-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(124,58,237,.14); color: #7c3aed; }
.soc-lobby-icon [data-lucide] { width: 30px; height: 30px; }
.soc-lobby h2 { font: 800 1.4rem/1.1 Archivo, sans-serif; margin: 0 0 .5rem; }
.soc-lobby-sub { color: var(--text); font-size: .95rem; margin: 0 0 .4rem; }
.soc-rules { color: var(--text-muted); font-size: .82rem; margin: 0 0 1.2rem; }
.soc-find-btn { background: #7c3aed; border-color: #7c3aed; }
.soc-status { margin-top: .9rem; color: var(--text-muted); font-size: .85rem; min-height: 1.2rem; }
.soc-scorebar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: .4rem; }
.soc-team { display: flex; align-items: center; gap: .5rem; }
.soc-team-name { font-weight: 700; font-size: .85rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-team-score { font: 900 1.5rem/1 Archivo, sans-serif; min-width: 24px; text-align: center; }
.soc-team-0 .soc-team-score { color: #e63946; }
.soc-team-1 .soc-team-score { color: #457bff; }
.soc-vs { color: var(--text-muted); font-weight: 700; }
.soc-turn { text-align: center; font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-bottom: .5rem; min-height: 1.2rem; }
.soc-turn-mine { color: #7c3aed; }
.soc-canvas-wrap { position: relative; width: 100%; aspect-ratio: 600 / 380; border-radius: 10px; transition: box-shadow .3s; }
.soc-canvas-wrap.soc-my-turn { box-shadow: 0 0 0 3px rgba(124,58,237,.65), 0 0 24px rgba(124,58,237,.35); }
.soc-team-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 4px rgba(0,0,0,.5); }
#socCanvas { width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5); touch-action: none; display: block; }
.soc-canvas-wrap { touch-action: none; }
.soc-page { user-select: none; -webkit-user-select: none; }
.soc-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,.62); border-radius: 10px; color: #fff; text-align: center;
  font: 900 2rem/1.1 Archivo, sans-serif; text-shadow: 0 2px 12px rgba(0,0,0,.6);
  animation: socPop .3s cubic-bezier(.2,.9,.3,1.2) both;
}
.soc-overlay.soc-win { color: var(--gold); }
@keyframes socPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.soc-hint { text-align: center; color: var(--text-muted); font-size: .78rem; margin-top: .6rem; }
.soc-board { margin-top: 1rem; padding: 1rem 1.1rem; }
.soc-board-title { display: flex; align-items: center; gap: .45rem; font: 800 .92rem/1 Archivo, sans-serif; margin-bottom: .7rem; color: var(--gold); }
.soc-board-title [data-lucide] { width: 16px; height: 16px; }
.soc-board-empty { color: var(--text-muted); font-size: .85rem; text-align: center; padding: .8rem 0; }
.soc-board-list { display: flex; flex-direction: column; gap: .15rem; }
.soc-board-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 8px; }
.soc-board-row:nth-child(odd) { background: rgba(255,255,255,.025); }
.soc-board-me { background: rgba(124,58,237,.1) !important; outline: 1px solid rgba(124,58,237,.3); }
.soc-board-rank { font: 800 .8rem/1 Archivo, sans-serif; color: var(--text-muted); min-width: 18px; text-align: center; }
.soc-board-row:nth-child(1) .soc-board-rank { color: #ffd700; }
.soc-board-row:nth-child(2) .soc-board-rank { color: #c0c0c0; }
.soc-board-row:nth-child(3) .soc-board-rank { color: #cd7f32; }
.soc-board-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.soc-board-logo-fb { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.soc-board-club { flex: 1; min-width: 0; font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-board-wl { font-size: .78rem; white-space: nowrap; }
.soc-board-wl .soc-w { color: var(--green, #27ae60); }
.soc-board-wl .soc-l { color: var(--red, #e74c3c); }

/* ── Matchs en cours (spectateur) ─────────────────────────────────────── */
.soc-cancel-btn { margin-top: .5rem; }
.soc-live { margin-top: 1.1rem; text-align: left; }
.soc-live-title { display: flex; align-items: center; gap: .4rem; font: 800 .82rem/1 Archivo, sans-serif; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.soc-live-title [data-lucide] { width: 15px; height: 15px; }
.soc-live-list { display: flex; flex-direction: column; gap: .4rem; }
.soc-live-row {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .55rem .7rem; border-radius: 10px; cursor: pointer;
  background: var(--bg-card-2, #26242a); border: 1px solid var(--border, #2b2930);
  transition: border-color .15s, transform .1s;
}
.soc-live-row:hover { border-color: #7c3aed; transform: translateY(-1px); }
.soc-live-teams { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.soc-live-logo, .soc-live-logo-fb { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.soc-live-name { font-size: .82rem; font-weight: 700; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-live-score { font: 800 .85rem/1 Archivo, sans-serif; color: var(--gold); padding: 0 .2rem; }
.soc-live-watch { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; color: #7c3aed; white-space: nowrap; }
.soc-live-watch [data-lucide] { width: 14px; height: 14px; }
.soc-spectate-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .75rem; margin-bottom: .6rem; border-radius: 8px;
  background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.35);
  font-size: .82rem; font-weight: 700; color: #7c3aed;
}
.soc-spectate-bar > span { display: inline-flex; align-items: center; gap: .4rem; }

/* ── Mobile portrait : terrain en paysage (plein écran pivoté 90°) ────── */
@media (max-width: 900px) and (orientation: portrait) {
  .soc-game {
    position: fixed; top: 50%; left: 50%; z-index: 5000;
    width: 100dvh; height: 100dvw;
    transform: translate(-50%, -50%) rotate(90deg);
    background: var(--bg, #131315);
    display: flex; flex-direction: column; justify-content: center;
    padding: .5rem 1rem; margin: 0;
    touch-action: none;
  }
  .soc-game .soc-canvas-wrap {
    width: min(calc(100dvh - 2rem), calc((100dvw - 118px) * 1.5789));
    margin: 0 auto;
  }
  .soc-game .soc-hint { font-size: .68rem; margin-top: .35rem; }
  .soc-game .soc-scorebar { margin-bottom: .2rem; }
  .soc-game .soc-turn { margin-bottom: .3rem; }
}
