@charset "UTF-8";
/* ============================================
   Football Pool - Design System
   ============================================ */
:root {
  --fp-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fp-radius-sm: 8px;
  --fp-radius-md: 12px;
  --fp-radius-lg: 16px;
  --fp-radius-xl: 20px;
  --fp-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --fp-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --fp-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --fp-transition: 0.2s ease;
  --fp-bg: #ffffff;
  --fp-bg-alt: #f8fafc;
  --fp-bg-card: #ffffff;
  --fp-bg-accent: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --fp-text: #0f172a;
  --fp-text-muted: #64748b;
  --fp-text-light: #94a3b8;
  --fp-border: #e2e8f0;
  --fp-primary: #3b82f6;
  --fp-primary-hover: #2563eb;
  --fp-success: #16a34a;
  --fp-error: #dc2626;
  --fp-text-white: #ffffff;
  --fp-blue-worldcup: rgba(70, 100, 239, 1);
  --fp-green-worldcup: rgba(39, 165, 80, 1);
  --fp-red-worldcup: rgba(213, 43, 30, 1);
}

.btn-color-primary {
  --btn-color: #4b4f54 !important;
}

/* ============================================
   Register form
   ============================================ */
.fp-register-form {
  max-width: 880px;
  margin: 24px auto;
  padding: 24px;
  background: var(--fp-bg-card);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-xl);
  box-shadow: var(--fp-shadow-md);
}

.fp-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.fp-step {
  padding: 10px 16px;
  border-radius: var(--fp-radius-lg);
  background: var(--fp-bg-alt);
  color: var(--fp-text-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--fp-transition);
}

.fp-step.is-active {
  background: var(--fp-primary);
  color: #fff;
}

#fp-step-1, #fp-step-2 {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  padding: 22px;
}
#fp-step-1 p, #fp-step-2 p {
  width: calc(50% - 10px);
  max-width: none;
  margin: 0;
}

/* Blocs champs en div (etape 2) : meme logique que les p en deux colonnes */
#fp-step-2 > .fp-field-half,
#fp-step-2 > .fp-field-full,
#fp-step-2 > .fp-reg-choice-block {
  box-sizing: border-box;
}

.fp-reg-choice-block label {
  display: block;
}

.fp-reg-choice-block .fp-inline-choices {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.fp-reg-choice-block input[type=text],
.fp-reg-choice-block select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}

/* Oui / Non : occuper toute la largeur de la demi-colonne */
.fp-reg-choice-block .fp-inline-choices {
  width: 100%;
}

.fp-register-form [hidden],
#fp-reg-beard-field[hidden],
#fp-reg-hair-length-field[hidden] {
  display: none !important;
}

.fp-register-step-actions {
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.fp-register-step-actions button {
  flex: 0 1 auto;
  min-width: 140px;
}

.fp-field-half {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  width: calc(50% - 10px) !important;
}

.fp-field-full {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  max-width: 100%;
  width: 100% !important;
}

.fp-register-progress {
  margin: 0 0 12px;
  color: var(--fp-text-muted);
  font-size: 14px;
}

.fp-register-accept {
  margin: 16px 0;
  width: 100% !important;
  max-width: 100% !important;
}

.fp-register-accept__label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.fp-register-accept input[type=checkbox] {
  margin-top: 4px;
  flex-shrink: 0;
}

.fp-register-accept__text {
  line-height: 1.45;
}

.fp-register-accept__text a {
  font-weight: 600;
}

.fp-register-form label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-text);
}

.fp-inline-choices {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fp-inline-choice {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: #fff;
}

.fp-inline-choice--pill {
  padding: 10px 12px;
  border-radius: 999px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.fp-inline-choice--pill input[type=radio] {
  position: absolute;
  opacity: 0;
}

.fp-inline-choice--pill:has(input[type=radio]:checked) {
  border-color: var(--fp-primary);
  background: #eaf3ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.fp-hair-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.fp-hair-length-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-field-full {
  width: 100%;
}

.fp-style-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.fp-style-choice {
  margin: 0;
  border: 1px solid #d8dee8;
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--fp-transition), box-shadow var(--fp-transition), transform var(--fp-transition), background var(--fp-transition);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.fp-style-choice input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fp-style-choice__preview {
  display: block;
  aspect-ratio: 1/1;
  background: #f1f5f9;
}

.fp-style-choice__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-style-choice__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--fp-text-muted);
  font-size: 13px;
}

.fp-style-choice__label {
  padding: 11px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fp-text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fp-style-choice:has(input[type=radio]:checked) {
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 10px 22px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.fp-register-form input[type=text],
.fp-register-form input[type=email],
.fp-register-form input[type=password],
.fp-register-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  font-size: 15px;
  transition: var(--fp-transition);
}

.fp-register-form input:focus,
.fp-register-form select:focus {
  outline: none;
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.fp-register-form button {
  padding: 12px 24px;
  background: var(--fp-primary);
  color: #fff;
  border: none;
  border-radius: var(--fp-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--fp-transition);
}

.fp-register-form button:hover {
  background: var(--fp-primary-hover);
}

.fp-register-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.fp-reg-pseudo-hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  min-height: 1.2em;
}

.fp-reg-pseudo-hint--muted {
  color: var(--fp-text-muted, #64748b);
}

.fp-reg-pseudo-hint--checking {
  color: var(--fp-text-muted, #64748b);
}

.fp-reg-pseudo-hint--ok {
  color: var(--fp-success, #16a34a);
  font-weight: 600;
}

.fp-reg-pseudo-hint--error {
  color: var(--fp-error, #dc2626);
  font-weight: 600;
}

.fp-reg-pseudo-input--error {
  border-color: var(--fp-error, #dc2626) !important;
}

.fp-reg-pseudo-input--ok {
  border-color: var(--fp-success, #16a34a) !important;
}

.fp-register-success {
  padding: 24px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: var(--fp-radius-md);
  color: var(--fp-success);
  font-weight: 500;
}

.fp-register-success__note {
  margin-top: 8px;
  color: var(--fp-text-muted);
  font-weight: 400;
  font-size: 14px;
}

.fp-register-errors {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: var(--fp-radius-md);
  padding: 16px 20px;
}

.fp-register-errors li {
  color: var(--fp-error);
  margin-bottom: 4px;
}

.fp-register-errors li:last-child {
  margin-bottom: 0;
}

#fp-step-1-errors a,
#fp-step-2-errors a {
  font-weight: 600;
  text-decoration: underline;
}

.fp-player-summary {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--fp-text-muted, #000000);
  box-shadow: var(--fp-shadow-sm);
}

.fp-player-summary__pseudo {
  margin: 0 0 4px;
  color: var(--fp-text);
  font-size: 1rem;
  line-height: 1.2;
}

.fp-player-summary__meta {
  margin: 0;
  color: var(--fp-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.fp-login-signup-callout {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--fp-bg-alt);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  font-size: 14px;
  color: var(--fp-text);
}

.fp-login-signup-callout p {
  margin: 0;
  line-height: 1.5;
}

.fp-login-signup-callout a {
  font-weight: 600;
  color: var(--fp-primary);
  text-decoration: none;
}

.fp-login-signup-callout a:hover {
  color: var(--fp-primary-hover);
  text-decoration: underline;
}

.fp-stats {
  margin: 0 0 20px;
}

.fp-stats__title {
  margin: 0 0 12px;
}

.fp-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fp-stats__counter {
  padding: 16px 14px;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: var(--wd-alternative-color);
  box-shadow: var(--fp-shadow-sm);
}

.fp-stats__counter .counter-value {
  line-height: 1.1;
}

.fp-stats-team {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--fp-border);
}

.fp-stats-country {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--fp-border);
}

.fp-stats-country__title {
  margin: 0 0 10px;
}

.fp-stats-country__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fp-stats-country__item {
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: var(--fp-bg-card);
  box-shadow: var(--fp-shadow-sm);
  padding: 10px 12px;
}

.fp-stats-country__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fp-stats-country__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fp-stats-country__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-stats-country__meta {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--fp-text-muted);
  white-space: nowrap;
}

.fp-stats-country__flag {
  width: 28px;
  height: auto;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.fp-stats-country__flag--fallback {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  flex-shrink: 0;
}

.fp-stats-country__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--fp-bg-alt);
  overflow: hidden;
  margin-top: 8px;
}

.fp-stats-country__bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wd-alternative-color), var(--fp-primary));
}

.fp-stats-country__count {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--fp-text-muted);
}

.fp-stats-team__title {
  margin: 0 0 10px;
}

.fp-stats-team__charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fp-stats-chart {
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: var(--fp-bg-card);
  box-shadow: var(--fp-shadow-sm);
  padding: 12px;
}

.fp-stats-chart--timeseries {
  margin-top: 12px;
}

.fp-stats-timeseries__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.fp-stats-timeseries__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.fp-stats-timeseries__canvas-wrap {
  width: 100%;
  min-height: 260px;
  position: relative;
}

.fp-stats-timeseries__canvas {
  width: 100% !important;
  height: 260px !important;
  display: block;
}

.fp-stats-chart__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.fp-stats-chart__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 2fr) auto;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.fp-stats-chart__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.fp-stats-chart__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fp-stats-chart__track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--fp-bg-alt);
  overflow: hidden;
}

.fp-stats-chart__bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.fp-stats-chart__value {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.fp-stats-chart__hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.62);
}

.fp-stats-ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fp-stats-ranking__item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 0px;
  /* padding: 9px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.26); */
}

.fp-stats-ranking__pos {
  min-width: 42px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

.fp-stats-ranking__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-stats-ranking__pts {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(30, 41, 59, 0.82);
  white-space: nowrap;
}

.fp-stats-ranking__delta {
  min-width: 42px;
  text-align: center;
  /* padding: 4px 8px;*/
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.fp-stats-ranking__delta.is-up {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
}

.fp-stats-ranking__delta.is-down {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.34);
}

.fp-stats-ranking__delta.is-flat {
  color: #334155;
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.34);
}

.fp-stats-team__table-wrap {
  margin-top: 50px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: var(--fp-bg-card);
  box-shadow: var(--fp-shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.35) transparent;
}

.fp-stats-team__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.fp-stats-team__table th,
.fp-stats-team__td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fp-border);
  font-size: 0.85rem;
}

.fp-stats-team__table th {
  font-weight: 700;
  color: var(--fp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  background: #f1f5f9;
  white-space: nowrap;
}

.fp-stats-team__table tbody tr:last-child .fp-stats-team__td {
  border-bottom: 0;
}

.fp-stats-team__td--participants,
.fp-stats-team__td--pronos,
.fp-stats-team__td--part-rate,
.fp-stats-team__td--good,
.fp-stats-team__td--good-rate,
.fp-stats-team__td--exact-rate,
.fp-stats-team__td--avg-points {
  font-variant-numeric: tabular-nums;
}

.fp-stats-team__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.fp-stats__counter--fallback {
  text-align: center;
}

.fp-stats__value {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fp-text);
}

.fp-stats__label {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--fp-text-muted);
}

@media (max-width: 1024px) {
  .fp-stats-team__table {
    min-width: 640px;
    font-size: 0.82rem;
  }
  .fp-stats-team__table th,
  .fp-stats-team__td {
    padding: 8px 8px;
  }
}
/* Mobile : cartes par #Team (sans scroll horizontal) */
@media (max-width: 767px) {
  .fp-stats-team__table-wrap {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .fp-stats-team__table {
    min-width: 0;
    display: block;
  }
  .fp-stats-team__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .fp-stats-team__table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .fp-stats-team__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "team team" "participants pronos" "part_rate good" "good_rate exact_rate" "avg_points avg_points" "top top";
    gap: 10px 12px;
    padding: 14px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-md);
    background: var(--fp-bg-card);
    box-shadow: var(--fp-shadow-sm);
  }
  .fp-stats-team__td {
    padding: 0;
    border-bottom: 0;
    min-width: 0;
    text-align: center;
  }
  .fp-stats-team__td::before {
    display: block;
    margin-bottom: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fp-text-muted);
    content: attr(data-label);
  }
  .fp-stats-team__td--team {
    grid-area: team;
    text-align: left;
  }
  .fp-stats-team__td--team::before {
    display: none;
  }
  .fp-stats-team__td--participants {
    grid-area: participants;
  }
  .fp-stats-team__td--pronos {
    grid-area: pronos;
  }
  .fp-stats-team__td--part-rate {
    grid-area: part_rate;
  }
  .fp-stats-team__td--good {
    grid-area: good;
  }
  .fp-stats-team__td--good-rate {
    grid-area: good_rate;
  }
  .fp-stats-team__td--exact-rate {
    grid-area: exact_rate;
  }
  .fp-stats-team__td--avg-points {
    grid-area: avg_points;
    font-size: 1rem;
  }
  .fp-stats-team__td--avg-points strong {
    display: block;
    line-height: 1.15;
  }
  .fp-stats-team__td--top {
    grid-area: top;
    text-align: left;
    font-size: 0.84rem;
    line-height: 1.45;
    padding-top: 4px;
    border-top: 1px dashed var(--fp-border);
  }
  .fp-stats-team__td--top small {
    color: var(--fp-text-muted);
  }
}
@media (min-width: 768px) {
  .fp-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fp-stats-country__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fp-stats-team__charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fp-login-forgot-wrap {
  margin: 12px 0 0;
}

/* Boutons Woodmart auth (connexion, déconnexion, profil…) : icône seule sur mobile */
@media (max-width: 767.98px) {
  .fp-woodmart-auth-button--mobile-icon-only .wd-btn-text,
  .fp-woodmart-auth-button--mobile-icon-only .btn-text,
  .fp-woodmart-auth-button--mobile-icon-only .woodmart-button-text,
  .fp-woodmart-auth-button--mobile-icon-only .wd-btn-label,
  .fp-logout-woodmart-button--mobile-icon-only .wd-btn-text,
  .fp-logout-woodmart-button--mobile-icon-only .btn-text,
  .fp-logout-woodmart-button--mobile-icon-only .woodmart-button-text,
  .fp-logout-woodmart-button--mobile-icon-only .wd-btn-label {
    display: none !important;
  }
  .fp-woodmart-auth-button--mobile-icon-only,
  .fp-logout-woodmart-button--mobile-icon-only {
    /* WoodMart injecte le titre en texte direct dans <a>, pas dans .wd-btn-text */
  }
  .fp-woodmart-auth-button--mobile-icon-only .wd-button-wrapper a.btn,
  .fp-woodmart-auth-button--mobile-icon-only .wd-button-wrapper .btn,
  .fp-logout-woodmart-button--mobile-icon-only .wd-button-wrapper a.btn,
  .fp-logout-woodmart-button--mobile-icon-only .wd-button-wrapper .btn {
    gap: 0;
    min-width: 0;
    font-size: 0;
    line-height: 1;
    letter-spacing: 0;
  }
  .fp-woodmart-auth-button--mobile-icon-only .wd-button-wrapper a.btn .wd-btn-icon,
  .fp-woodmart-auth-button--mobile-icon-only .wd-button-wrapper a.btn .wd-icon,
  .fp-logout-woodmart-button--mobile-icon-only .wd-button-wrapper a.btn .wd-btn-icon,
  .fp-logout-woodmart-button--mobile-icon-only .wd-button-wrapper a.btn .wd-icon {
    font-size: 0.6rem;
    line-height: 1;
  }
  .fp-woodmart-auth-button--mobile-icon-only .wd-button-wrapper.inline-element,
  .fp-logout-woodmart-button--mobile-icon-only .wd-button-wrapper.inline-element {
    display: inline-flex;
  }
}

.fp-lostpwd-open {
  display: inline !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: var(--fp-primary) !important;
  font: inherit !important;
  cursor: pointer !important;
  text-decoration: underline !important;
}

.fp-lostpwd-open:hover {
  color: var(--fp-green-worldcup) !important;
}

.fp-lostpwd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.fp-lostpwd-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fp-lostpwd-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.fp-lostpwd-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 100%);
  overflow: auto;
  margin: auto;
  padding: 22px 20px 20px;
  border-radius: var(--fp-radius-lg, 12px);
  background: var(--wd-bg-color, var(--bgcolor-white, #fff));
  color: inherit;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(148, 163, 184, 0.2);
  scrollbar-gutter: stable;
}

.fp-lostpwd-lightbox__x {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 40px !important;
  height: 40px !important;
  border: none !important;
  border-radius: var(--wd-brd-radius, 8px) !important;
  background: transparent !important;
  color: var(--fp-blue-worldcup) !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.fp-lostpwd-lightbox__x:hover {
  background: rgba(148, 163, 184, 0.15) !important;
}

.fp-lostpwd-lightbox__title {
  margin: 0 36px 10px 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--wd-title-font, inherit);
  line-height: 1.3;
}

.fp-lostpwd-lightbox__intro {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fp-text-muted, #64748b);
}

.fp-lostpwd-lightbox__form .form-row {
  margin-bottom: 0;
}

.fp-lostpwd-lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px !important;
}
.fp-lostpwd-lightbox__actions .button {
  flex: 1 1 auto;
  min-width: 120px;
}

.fp-lostpwd-lightbox__message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--fp-radius-md, 10px);
  font-size: 0.93rem;
  line-height: 1.45;
}
.fp-lostpwd-lightbox__message.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.fp-lostpwd-lightbox__message.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ============================================
   Profile page
   ============================================ */
.fp-profile {
  margin: 24px auto;
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
}

.fp-profile__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-profile__tab {
  border: 1px solid var(--fp-border);
  background: #fff;
  color: var(--fp-text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.fp-profile__tab.is-active {
  border-color: var(--fp-brand-primary, #2563eb);
  background: var(--fp-brand-primary, #2563eb);
  color: #fff;
  box-shadow: 0 6px 14px rgba(var(--fp-brand-rgb, 37, 99, 235), 0.35);
  transform: translateY(-1px);
}

.fp-profile__panel {
  display: none;
}

.fp-profile__panel.is-active {
  display: block;
}

.fp-latest-players {
  margin: 0 auto;
}

.fp-latest-players__empty {
  margin: 0;
  color: var(--fp-text-muted);
  font-size: 0.95rem;
}

.fp-latest-players__list {
  list-style: none;
  margin: 0;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px 22px;
}

.fp-latest-players__slot {
  margin: 0;
  padding: 0;
  align-self: start;
}

/* 16/9 — moitié gauche : portrait en cover ; moitié droite : texte + filigrane drapeau */
.fp-latest-players__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.fp-latest-players__photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: white;
  overflow: hidden;
}

.fp-latest-players__photo img,
.fp-latest-players__photo .avatar {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.fp-latest-players__photo .avatar {
  border-radius: 0 !important;
}

.fp-latest-players__main {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px 18px;
  background: linear-gradient(90deg, #ffffff 20%, #f8fafc 100%);
}

.fp-latest-players__watermark-wrap {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(85%, 180px);
  height: min(75%, 140px);
  z-index: 0;
  pointer-events: none;
  transform: translate(8%, -50%);
  opacity: 1;
}

.fp-latest-players__watermark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  opacity: 0.14;
  filter: saturate(1.05) contrast(1.08) brightness(1.06);
}

.fp-latest-players__head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  text-align: center;
  width: 100%;
}

.fp-latest-players__pseudo {
  margin: 0;
  font-weight: 900;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0f172a;
  word-break: break-word;
  max-width: 100%;
  text-wrap: balance;
}

.fp-latest-players__team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 8px);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--fp-brand-badge-bg, #334155);
  border: 1px solid rgba(255, 255, 255, 0.28);
  line-height: 1.25;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.fp-latest-players__team--empty {
  box-shadow: none;
  background: transparent;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  color: var(--fp-text-muted);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .fp-latest-players__list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px 16px;
    padding: 20px 12px;
  }
  .fp-latest-players__card {
    border-radius: 18px;
    aspect-ratio: 16/9;
  }
  .fp-latest-players__main {
    padding: 12px 10px 14px;
  }
  .fp-latest-players__watermark-wrap {
    width: min(90%, 150px);
    height: min(78%, 118px);
    transform: translate(4%, -50%);
  }
}
@media (max-width: 420px) {
  .fp-latest-players__list {
    grid-template-columns: 1fr;
  }
}
.fp-brand-logos {
  width: 100%;
}

.fp-brand-logos__heading {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 700;
}

.fp-brand-logos__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
}

.fp-brand-logos__item {
  margin: 0;
}

.fp-brand-logos__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}

.fp-brand-logos__link:hover,
.fp-brand-logos__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  outline: none;
}

.fp-brand-logos__img {
  display: block;
  max-width: 140px;
  width: auto;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.fp-brand-logos__img--svg {
  max-width: min(190px, 100%);
  max-height: 64px;
  width: auto;
  height: 64px;
  flex-shrink: 0;
}

.fp-brand-logos__text {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.fp-player-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.2) 0 18%, transparent 46%), radial-gradient(circle at 82% 15%, rgba(250, 204, 21, 0.2) 0 15%, transparent 42%), linear-gradient(140deg, #0b1222 0%, #133a8a 40%, #dc2626 100%);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 2px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.fp-player-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -15%;
  width: 70%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 78%);
  pointer-events: none;
}

.fp-player-card__strip {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  z-index: 1;
}

.fp-player-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.fp-player-card__badge {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.7);
  background: rgba(15, 23, 42, 0.42);
}

.fp-player-card__head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fp-player-card__rarity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
}

.fp-player-card__overall {
  min-width: 54px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.95);
  background: linear-gradient(180deg, #fef08a 0%, #facc15 45%, #eab308 100%);
  color: #422006;
  padding: 6px 8px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(250, 204, 21, 0.35);
}

.fp-player-card__overall span {
  display: block;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fp-player-card__overall strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1;
}

.fp-player-card__brand-corner {
  position: absolute;
  right: 12px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.fp-player-card__brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  box-sizing: border-box;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  color: #fff;
  line-height: 1.2;
  background-color: var(--fp-brand-badge-bg, #334155);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: normal;
  max-width: min(220px, 52vw);
}

.fp-player-card__brand-badge-logo {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.fp-player-card__brand-badge-label {
  display: block;
  min-width: 0;
}

.fp-player-card__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.fp-player-card__avatar {
  width: 220px;
  height: 285px;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid #f8fafc;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(8, 20, 46, 0.55), 0 0 0 2px rgba(250, 204, 21, 0.35);
  transform: rotate(-1.5deg);
}

.fp-player-card__avatar img,
.fp-player-card__avatar .fp-participant-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-player-card__name {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.fp-player-card__team {
  margin: 6px 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 14px;
}

.fp-player-card__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fp-player-card__watermark {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 150px;
  height: 150px;
  object-fit: contain;
  opacity: 0.12;
  filter: grayscale(1) contrast(1.2);
  pointer-events: none;
}

.fp-player-card__stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--fp-radius-md);
  padding: 12px;
  backdrop-filter: blur(2px);
}

.fp-player-card__stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.88;
}

.fp-player-card__stat strong {
  display: block;
  margin-top: 3px;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.fp-profile__avatar-tools {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--fp-radius-lg);
  border: 1px solid var(--fp-border);
  background: var(--fp-bg-card);
  box-shadow: var(--fp-shadow-sm);
}

.fp-profile__avatar-feedback {
  margin: 0 0 12px;
}

.fp-profile__avatar-feedback li {
  list-style: none;
}

.fp-profile__avatar-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.fp-profile__avatar-status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: #f8fafc;
}

.fp-profile__avatar-status.is-ready {
  border-color: #86efac;
  background: #ecfdf5;
  color: #166534;
}

.fp-profile__avatar-status.is-pending {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.fp-profile__avatar-status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.fp-profile__avatar-regen-form {
  margin: 0;
}

.fp-profile__avatar-regen-btn {
  appearance: none;
  border: 1px solid #1d4ed8;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.fp-profile__avatar-regen-btn:hover {
  filter: brightness(1.05);
}

.fp-profile__avatar-tools-hint {
  margin-top: 10px;
  margin-bottom: 0;
}

.fp-profile__groups-wrap {
  margin-top: 28px;
  max-width: 100%;
  min-width: 0;
}
.fp-profile__groups-wrap .fp-catalog__title {
  margin-top: 0;
}

.fp-profile__groups-hint {
  margin-top: 24px;
}

.fp-profile__card {
  background: var(--fp-bg-card);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  padding: 22px;
  box-shadow: var(--fp-shadow-sm);
}

.fp-profile__card-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.fp-profile__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fp-profile__item {
  background: var(--fp-bg-alt);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-profile__item span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-text-muted);
  font-weight: 700;
}

.fp-profile__item strong {
  font-size: 14px;
  color: var(--fp-text);
  word-break: break-word;
}

.fp-profile__hint {
  margin: 0 0 12px;
  color: var(--fp-text-muted);
}

.fp-profile__status-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-profile__status-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.fp-profile__status-nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.48);
}

.fp-profile__status-nav-btn.is-active {
  background: rgba(60, 172, 59, 0.22);
  border-color: rgba(60, 172, 59, 0.65);
}

.fp-profile__predictions-history .fp-profile__status-nav-btn {
  border: 1px solid var(--fp-border);
  background: var(--fp-bg-alt);
  color: var(--fp-text);
}
.fp-profile__predictions-history .fp-profile__status-nav-btn:hover {
  border-color: rgba(60, 172, 59, 0.45);
  transform: translateY(-1px);
}
.fp-profile__predictions-history .fp-profile__status-nav-btn.is-active {
  background: var(--fp-primary, #3cac3b);
  border-color: var(--fp-primary, #3cac3b);
  color: #fff;
}
.fp-profile__predictions-history .fp-profile__status-nav-btn.is-active .fp-profile__phase-count {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.fp-profile__predictions-history .fp-profile-history__matches.fp-competition-matches {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.fp-profile-history__user-col {
  min-width: 148px;
  max-width: 220px;
  align-items: flex-end;
  text-align: right;
}

.fp-profile-history__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--fp-bg-alt);
  color: var(--fp-text-muted);
  border: 1px solid var(--fp-border);
}

.fp-profile-history__status--finished {
  background: #f1f5f9;
  color: #475569;
}

.fp-profile-history__status--upcoming {
  background: #ecfdf5;
  color: #166534;
  border-color: #86efac;
}

.fp-profile-history__status--in_progress {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.fp-profile-history__live-hint {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.fp-profile-history__points-live-note {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
  text-align: right;
}

.fp-profile-history__pts-chip--provisional {
  opacity: 0.92;
}

.fp-profile-history__prono {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 8px;
  width: 100%;
}

.fp-profile-history__prono-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fp-text-muted);
}

.fp-profile-history__prono-score {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fp-text);
  font-variant-numeric: tabular-nums;
}

.fp-profile-history__prono-meta {
  font-size: 0.78rem;
  color: var(--fp-text-muted);
}

.fp-profile-history__score-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.78rem;
  color: var(--fp-text-muted);
}

.fp-profile-history__points-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.fp-profile-history__pts-chip {
  margin: 0;
}

.fp-profile-history__prono-badges {
  margin-left: 0;
}

@media (max-width: 720px) {
  .fp-profile-history__item.fp-competition-matches__item {
    flex-direction: column;
    align-items: stretch;
  }
  .fp-profile-history__user-col {
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }
  .fp-profile-history__prono,
  .fp-profile-history__points-row {
    justify-content: flex-start;
  }
  .fp-profile-history__points-live-note {
    text-align: left;
  }
}
.fp-profile__status-panel {
  display: none;
}

.fp-profile__status-panel.is-active {
  display: block;
}

.fp-profile__prediction-grid {
  margin-top: 4px;
}

.fp-profile__predictions-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fp-profile__phase-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-profile__phase-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--fp-border);
  background: var(--fp-bg-alt);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--fp-text);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.fp-profile__phase-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--fp-shadow-sm);
}

.fp-profile__phase-nav-btn.is-active {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: var(--fp-shadow-sm);
}

.fp-profile__phase-nav--game .fp-profile__phase-nav-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: rgba(71, 74, 74, 0.88);
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(42, 57, 141, 0.06), 0 0 0 1px rgba(71, 74, 74, 0.06);
}

.fp-profile__phase-nav--game .fp-profile__phase-nav-btn:hover {
  border-color: rgba(60, 172, 59, 0.45);
}

.fp-profile__phase-nav--game .fp-profile__phase-nav-btn.is-active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 14px rgba(42, 57, 141, 0.12), 0 0 0 2px rgba(60, 172, 59, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.65);
}

.fp-profile__phase-nav--game .fp-profile__phase-count {
  border-color: rgba(60, 172, 59, 0.4);
  background: rgba(60, 172, 59, 0.12);
  color: rgb(36.1558441558, 103.6467532468, 35.5532467532);
}

.fp-profile__phase-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--fp-bg-card);
  border: 1px solid var(--fp-border);
}

.fp-profile__phase-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fp-text-muted);
  line-height: 1.35;
}

.fp-profile__prediction-phase {
  display: none;
  gap: 10px;
}

.fp-profile__prediction-phase.is-active {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.fp-profile__password-form {
  display: grid;
  gap: 12px;
}

.fp-profile__password-form p {
  margin: 0;
}

.fp-player-card--bronze {
  border-color: rgba(180, 83, 9, 0.7);
}

.fp-player-card--bronze .fp-player-card__rarity {
  border-color: #d97706;
  background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
  color: #422006;
}

.fp-player-card--silver {
  border-color: rgba(148, 163, 184, 0.8);
}

.fp-player-card--silver .fp-player-card__rarity {
  border-color: #94a3b8;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 100%);
  color: #0f172a;
}

.fp-player-card--gold {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.45), 0 0 26px rgba(250, 204, 21, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.fp-player-card--gold .fp-player-card__rarity {
  border-color: #eab308;
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #422006;
}

.fp-player-card--legend {
  max-width: 900px;
  margin: 24px auto;
  border-color: rgba(216, 180, 254, 0.9);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.45), 0 0 30px rgba(168, 85, 247, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.fp-player-card--legend .fp-player-card__rarity {
  border-color: #c084fc;
  background: linear-gradient(180deg, #e9d5ff 0%, #a855f7 100%);
  color: #2e1065;
}

.fp-profile__card--predictions-arena {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(71, 74, 74, 0.12);
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(42, 57, 141, 0.07);
}

.fp-profile__card--predictions-arena .fp-profile__card-title {
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(71, 74, 74, 0.92);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 6px;
  line-height: 1.2;
}
.fp-profile__card--predictions-arena .fp-profile__card-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fp-brand-primary, #3cac3b) 0%, #ffffff 100%);
}

.fp-profile__prediction-match {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px 16px 40px;
  color: var(--fp-text-muted);
  border: 2px solid rgba(250, 204, 21, 0.55);
  background: white;
  /* background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18) 0 18%, transparent 46%),
    radial-gradient(circle at 82% 12%, rgba(250, 204, 21, 0.2) 0 15%, transparent 42%),
    linear-gradient(140deg, #0b1222 0%, #133a8a 40%, #dc2626 100%);*/
  /* box-shadow: 0 18px 42px rgba(2, 8, 23, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.2);*/
}
.fp-profile__prediction-match::before {
  content: "";
  position: absolute;
  top: -38%;
  left: -14%;
  width: 72%;
  height: 176%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 78%);
  pointer-events: none;
  z-index: 0;
}

.fp-profile__prediction-match--bronze {
  border-color: rgba(180, 83, 9, 0.75);
  /* box-shadow: 0 16px 36px rgba(2, 8, 23, 0.5), inset 0 0 0 1px rgba(252, 211, 77, 0.2);*/
}

.fp-profile__prediction-match--silver {
  border-color: rgba(148, 163, 184, 0.85);
  /* box-shadow: 0 18px 40px rgba(2, 8, 23, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18);*/
}

.fp-profile__prediction-match--gold {
  border-color: rgba(250, 204, 21, 0.88);
  /* box-shadow:
    0 18px 42px rgba(2, 8, 23, 0.45),
    0 0 26px rgba(250, 204, 21, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);*/
}

.fp-profile__prediction-match--legend {
  border-color: rgba(216, 180, 254, 0.88);
  /* box-shadow:
    0 18px 42px rgba(2, 8, 23, 0.45),
    0 0 28px rgba(168, 85, 247, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);*/
}

.fp-profile__prediction-match--zero {
  filter: saturate(0.7) brightness(0.97);
  border-color: rgba(148, 163, 184, 0.45);
}

.fp-profile__prediction-match__strip {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

.fp-profile__prediction-match__head {
  margin: 0;
}

.fp-profile__prediction-match__head--panini {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fp-profile__prediction-match__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fp-profile__prediction-match__date {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.76);
}

.fp-profile__prediction-match__status-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(70, 100, 239, 0.55);
  background: rgba(15, 23, 42, 0.45);
}

.fp-profile__prediction-match__pts-chip {
  flex-shrink: 0;
  min-width: 56px;
  border-radius: 12px;
  border: 1px solid rgba(70, 100, 239, 0.95);
  background: var(--fp-blue-worldcup);
  color: var(--fp-text-white);
  padding: 6px 8px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(70, 100, 239, 0.35);
}
.fp-profile__prediction-match__pts-chip span {
  display: block;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.fp-profile__prediction-match__pts-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 1.12rem;
  line-height: 1.05;
  font-weight: 800;
}

.fp-profile__prediction-match__face {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin-top: 14px;
}

.fp-profile__prediction-match__club-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.fp-profile__prediction-match__club-row--away {
  flex-direction: row;
  justify-content: flex-start;
}

.fp-profile__prediction-match__sticker {
  min-width: 0;
}
.fp-profile__prediction-match__sticker .fp-profile__prediction-match__team-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--fp-text-muted);
  /* text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);*/
  letter-spacing: -0.025em;
  word-break: break-word;
  text-align: right;
}

.fp-profile__prediction-match__sticker--home .fp-profile__prediction-match__club-row {
  justify-content: flex-end;
}

.fp-profile__prediction-match__sticker--away {
  text-align: right;
}
.fp-profile__prediction-match__sticker--away .fp-profile__prediction-match__club-row .fp-profile__prediction-match__team-name {
  text-align: left;
}

.fp-profile__prediction-match__flag {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: block;
  overflow: visible;
}

.fp-profile__prediction-match__flag img {
  display: block;
  width: 52px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.fp-profile__prediction-match__flag--ph {
  display: grid;
  place-items: center;
  min-width: 2.65rem;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.88);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.fp-profile__prediction-match__arena.fp-profile__prediction-match__arena--panini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  align-self: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.88);
  background: #faf3e0;
  backdrop-filter: blur(4px);
  min-width: 88px;
}

.fp-profile__prediction-match__vs {
  display: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fecaca;
}

.fp-profile__prediction-match__score-live {
  font-size: 1.82rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fp-text-muted);
  text-shadow: 0 2px 14px rgba(100, 100, 100, 0.4);
}

.fp-profile__prediction-match__score-live--muted {
  color: rgba(0, 0, 0, 0.45);
}

.fp-profile__prediction-match__score-caption {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fp-text-light);
}

.fp-profile__prediction-match__extra-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.fp-profile__prediction-match__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.fp-profile__prediction-match__chip-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.fp-profile__prediction-match__mini-stats {
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.fp-profile__prediction-match__mini-stat--compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 6px 10px;
}

.fp-profile__prediction-match__prono-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}

.fp-profile__prediction-match__prono-caption {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(0, 0, 0, 0.58);
}

.fp-profile__prediction-match__prono-score {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 800;
  color: var(--fp-text-muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
  letter-spacing: -0.02em;
}

.fp-profile__prediction-match__prono-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.62);
}

.fp-profile__prediction-match__mini-extra {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.74);
}

.fp-profile__prediction-match__prono-points {
  flex-shrink: 0;
  margin-left: auto;
}

.fp-profile__prediction-match__prono-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-profile__prediction-match__prono-points-val {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--fp-text-white);
  background: var(--fp-red-worldcup);
  border: 1px solid rgba(213, 43, 30, 0.85);
  box-shadow: 0 2px 10px rgba(213, 43, 30, 0.28);
  letter-spacing: 0.01em;
}

.fp-profile__prediction-match__prono-bonus-val {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  color: var(--fp-text-white);
  background: var(--fp-green-worldcup);
  border: 1px solid rgba(39, 165, 80, 0.85);
  box-shadow: 0 2px 10px rgba(39, 165, 80, 0.28);
  letter-spacing: 0.01em;
}

.fp-profile__prediction-match__prono-multiplier-val {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  color: #7c2d12;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  letter-spacing: 0.01em;
}

.fp-profile__prediction-match__supporter-bonus {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px 14px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(60, 172, 59, 0.16);
  border: 1px solid rgba(60, 172, 59, 0.42);
}
.fp-profile__prediction-match__supporter-bonus span {
  flex: 1;
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}
.fp-profile__prediction-match__supporter-bonus strong {
  flex-shrink: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: #fde047;
}

.fp-profile__prediction-match__supporter-icon {
  flex-shrink: 0;
  display: block;
  width: 4.5rem;
  min-width: 4.5rem;
  height: auto;
  color: #fef08a;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}
.fp-profile__prediction-match__supporter-icon path {
  fill: currentcolor;
}

@media (max-width: 640px) {
  .fp-profile__prediction-match__face {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 14px;
  }
  .fp-profile__prediction-match__sticker--away {
    text-align: left;
  }
  .fp-profile__prediction-match__sticker--away .fp-profile__prediction-match__club-row--away {
    justify-content: flex-end;
    width: 100%;
  }
  .fp-profile__prediction-match__sticker--away .fp-profile__prediction-match__club-row--away .fp-profile__prediction-match__team-name {
    text-align: left;
    flex: 1;
    min-width: 0;
  }
  .fp-profile__prediction-match__mini-stat--compact .fp-profile__prediction-match__prono-badges {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .fp-profile__prediction-match__mini-stat--compact .fp-profile__prediction-match__prono-points-val {
    width: fit-content;
  }
  .fp-participant-card__stat-label {
    display: none;
  }
}
@media (max-width: 900px) {
  .fp-profile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fp-player-card__body {
    grid-template-columns: 1fr;
  }
  .fp-player-card__avatar {
    width: 180px;
    height: 230px;
    margin: 0 auto;
    transform: none;
  }
  .fp-player-card__strip {
    display: none;
  }
  .fp-player-card__brand-corner {
    bottom: 18px;
  }
  .fp-player-card__watermark {
    width: 110px;
    height: 110px;
    opacity: 0.1;
  }
}
@media (max-width: 760px) {
  .fp-register-form {
    margin: 12px auto;
    padding: 14px;
  }
  #fp-step-1, #fp-step-2 {
    padding: 12px;
  }
  #fp-step-1 p, #fp-step-2 p {
    width: 100%;
  }
  .fp-field-half,
  .fp-field-full {
    width: 100% !important;
  }
  .fp-hair-choice-grid {
    grid-template-columns: 1fr;
  }
  .fp-hair-length-choice-grid {
    grid-template-columns: 1fr;
  }
  #fp-step-2 .fp-register-step-actions {
    flex-direction: column;
  }
  #fp-step-2 .fp-register-step-actions button {
    flex: 1;
    width: 100%;
  }
  .fp-profile {
    margin: 12px auto;
    gap: 12px;
  }
  .fp-player-card__name {
    font-size: 1.55rem;
  }
  .fp-profile__grid {
    grid-template-columns: 1fr;
  }
  .fp-player-card__stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .fp-style-choice-grid {
    grid-template-columns: 1fr;
  }
  .fp-competition-matches__score-hexes {
    gap: 2px;
    min-width: 45px;
  }
}
/* ============================================
   Catalogues (shortcodes fp_teams, fp_stadiums, fp_groups)
   ============================================ */
.fp-catalog {
  margin: 0 auto 2.5rem;
  font-family: var(--fp-font-sans);
  color: var(--fp-text);
}

.fp-catalog__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fp-catalog__empty,
.fp-catalog-section__empty {
  margin: 0;
  color: var(--fp-text-muted);
  font-size: 0.95rem;
}

.fp-catalog__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.fp-catalog__grid--teams {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.fp-catalog__grid--stadiums {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.fp-catalog-card {
  margin: 0;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: var(--fp-bg-card);
  box-shadow: var(--fp-shadow-sm);
  padding: 1rem 1rem 1.1rem;
}

.fp-catalog-card--team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 120px;
  justify-content: center;
}

.fp-catalog--teams .fp-catalog-card--team {
  position: relative;
  gap: 12px;
  min-height: 136px;
  padding: 1.15rem 0.9rem 1.05rem;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 196, 255, 0.14) 0%, transparent 42%), linear-gradient(180deg, #1a2332 0%, #0d1219 55%, #070a0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.fp-catalog--teams .fp-catalog-card--team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.9) 30%, rgba(100, 200, 255, 0.6) 50%, rgba(0, 200, 255, 0.9) 70%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.fp-catalog-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  row-gap: 8px;
  max-width: 100%;
}

.fp-catalog--teams .fp-catalog-card__badges {
  position: relative;
  z-index: 1;
}

.fp-catalog--teams .fp-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.32rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: #e8f1ff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 210, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset, 0 0 20px rgba(0, 200, 255, 0.12);
}

.fp-catalog-card__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.fp-catalog--teams .fp-catalog-card__logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.fp-catalog-card__logo--placeholder {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.fp-catalog--teams .fp-catalog-card__logo--placeholder {
  position: relative;
  z-index: 1;
  border-radius: 0;
  background: linear-gradient(145deg, #2d3a4a 0%, #1e2734 100%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.fp-catalog-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.fp-catalog--teams .fp-catalog-card__name {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.fp-catalog--teams .fp-catalog-card--team.fp-catalog-card--eliminated {
  opacity: 0.52;
  filter: saturate(0.5) grayscale(0.62);
  cursor: not-allowed;
  user-select: none;
}

.fp-catalog--teams .fp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.fp-catalog-card__heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.fp-catalog-card__meta {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--fp-text-muted);
}

.fp-catalog-card__capacity {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fp-text-muted);
}

.fp-catalog-card--stadium {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.fp-catalog-card__media {
  aspect-ratio: 16/9;
  background: #e8edf4;
  overflow: hidden;
}

.fp-catalog-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-catalog-card--stadium .fp-catalog-card__body {
  padding: 1rem 1rem 1.1rem;
}

.fp-catalog__sections {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.fp-catalog-section {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--fp-border);
}

.fp-catalog-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fp-catalog-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.fp-catalog__team-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fp-catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--fp-border);
  border-radius: 999px;
  background: var(--fp-bg-alt);
  font-size: 0.9rem;
  font-weight: 600;
}

.fp-catalog-chip__logo {
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
}

.fp-catalog-chip__name {
  line-height: 1.2;
}

/* ============================================
   Classements groupes (shortcode fp_groups)
   ============================================ */
.fp-standings-page__groups {
  gap: 2rem;
}

.fp-standings-group__title {
  margin-bottom: 0.75rem;
}

.fp-standings__scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-md);
  background: var(--fp-bg-card);
  box-shadow: var(--fp-shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.35) transparent;
}
.fp-standings__scroll:focus-visible {
  outline: 2px solid var(--wd-alternative-color, #2563eb);
  outline-offset: 2px;
}

.fp-standings__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fp-standings__th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fp-text-muted);
  background: #f1f5f9;
  border-bottom: 1px solid var(--fp-border);
  white-space: nowrap;
}

.fp-standings__th--num,
.fp-standings__th--pts,
.fp-standings__th--form {
  text-align: center;
}

.fp-standings__th--team {
  min-width: 200px;
}

.fp-standings__td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf4;
  vertical-align: middle;
}

.fp-standings__table tbody tr:last-child .fp-standings__td {
  border-bottom: 0;
}

.fp-standings__td--num,
.fp-standings__td--pts,
.fp-standings__td--form {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fp-standings__td--team {
  font-weight: 600;
}

.fp-standings__td--pts {
  font-size: 1rem;
}

.fp-standings__team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fp-standings__flag {
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.fp-standings__form {
  display: inline-flex;
  gap: 3px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.fp-standings__form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.35rem;
  border-radius: 4px;
  color: #64748b;
  background: #f1f5f9;
}

.fp-standings__form-dot.is-win {
  color: #0f5132;
  background: #d1fae5;
}

.fp-standings__form-dot.is-draw {
  color: #5c4a00;
  background: #fef3c7;
}

.fp-standings__form-dot.is-loss {
  color: #7f1d1d;
  background: #fee2e2;
}

/* Tablette : tableau compact, défilement horizontal si besoin */
@media (max-width: 1024px) {
  .fp-standings__table {
    min-width: 640px;
    font-size: 0.85rem;
  }
  .fp-standings__th,
  .fp-standings__td {
    padding: 8px 10px;
  }
  .fp-standings__th--team {
    min-width: 160px;
  }
  .fp-standings__flag {
    width: 24px;
    height: 24px;
  }
  .fp-standings__team {
    gap: 8px;
  }
  .fp-standings__form-dot {
    min-width: 1.1rem;
    height: 1.2rem;
    font-size: 0.72rem;
  }
}
/* Mobile : cartes par équipe (sans scroll horizontal) */
@media (max-width: 767px) {
  .fp-standings-page__groups {
    gap: 1.25rem;
  }
  .fp-standings__scroll {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .fp-standings__table {
    min-width: 0;
    display: block;
    font-size: 0.88rem;
  }
  .fp-standings__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .fp-standings__table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .fp-standings__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "rank team team pts" "played won drawn lost" "gf ga gd spare" "form form form form";
    gap: 8px 6px;
    padding: 14px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-md);
    background: var(--fp-bg-card);
    box-shadow: var(--fp-shadow-sm);
  }
  .fp-standings__td {
    padding: 0;
    border-bottom: 0;
    text-align: center;
    min-width: 0;
  }
  .fp-standings__td--played,
  .fp-standings__td--won,
  .fp-standings__td--drawn,
  .fp-standings__td--lost,
  .fp-standings__td--gf,
  .fp-standings__td--ga,
  .fp-standings__td--gd {
    max-width: 40px;
    width: 100%;
    justify-self: center;
    box-sizing: border-box;
  }
  .fp-standings__td::before {
    display: block;
    margin-bottom: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fp-text-muted);
    content: attr(data-label);
  }
  .fp-standings__td--rank {
    grid-area: rank;
    align-self: center;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
  }
  .fp-standings__td--rank::before {
    display: none;
  }
  .fp-standings__td--team {
    grid-area: team;
    text-align: left;
    font-size: 0.95rem;
  }
  .fp-standings__td--team::before {
    display: none;
  }
  .fp-standings__td--pts {
    grid-area: pts;
    align-self: start;
    font-size: 1.15rem;
  }
  .fp-standings__td--pts strong {
    display: block;
    line-height: 1.1;
  }
  .fp-standings__td--pts::before {
    font-size: 0.62rem;
  }
  .fp-standings__td--played {
    grid-area: played;
  }
  .fp-standings__td--won {
    grid-area: won;
  }
  .fp-standings__td--drawn {
    grid-area: drawn;
  }
  .fp-standings__td--lost {
    grid-area: lost;
  }
  .fp-standings__td--gf {
    grid-area: gf;
  }
  .fp-standings__td--ga {
    grid-area: ga;
  }
  .fp-standings__td--gd {
    grid-area: gd;
  }
  .fp-standings__td--form {
    grid-area: form;
    text-align: left;
  }
  .fp-standings__td--form::before {
    margin-bottom: 6px;
  }
  .fp-standings__team {
    gap: 8px;
  }
  .fp-standings__team-name {
    line-height: 1.25;
    word-break: break-word;
  }
  .fp-standings__flag {
    width: 26px;
    height: 26px;
  }
  .fp-standings__form {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .fp-catalog--groups .fp-catalog__title {
    font-size: 1.15rem;
    line-height: 1.3;
    word-break: break-word;
  }
  .fp-standings-group__title {
    font-size: 1rem;
  }
}
/* ============================================
   Participants grid
   ============================================ */
.fp-participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding: 0;
}

.fp-participants-intro {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fp-text-muted);
}
.fp-participants-intro p {
  margin: 0 0 12px;
}
.fp-participants-intro p:last-child {
  margin-bottom: 0;
}
.fp-participants-intro ul {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.fp-participants-intro li {
  margin: 6px 0;
}
.fp-participants-intro strong {
  color: var(--fp-text);
  font-weight: 700;
}

.fp-participants {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 50px;
}

/* Filtres : champs au markup WooCommerce / WoodMart (.form-row, .input-text) — pas de reskin agressif ici. */
.fp-participants__filters-intro {
  display: block;
}

.fp-participants__filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.fp-participants-filter-sheet {
  position: relative;
  z-index: 1;
}

.fp-participants-filter-sheet__backdrop {
  display: none;
}

.fp-participants-filter-sheet__panel {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  max-height: none;
  overflow: visible;
}

.fp-participants-filter-sheet__header,
.fp-participants-filter-sheet__footer {
  display: none;
}

.fp-participants-filter-sheet__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 16px;
  align-items: end;
}

.fp-participants__field {
  margin-bottom: 0 !important;
}

.fp-participants__field--span-2 {
  grid-column: 1/-1;
}

@media (min-width: 900px) {
  .fp-participants__field--span-2 {
    grid-column: span 2;
  }
}
.fp-participants__field label .optional {
  font-weight: 400;
  opacity: 0.85;
}

.fp-participants .form-row input.input-text,
.fp-participants .form-row select.input-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fp-participants__count {
  margin: 0;
  color: var(--fp-text-muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.fp-participants__count-reset {
  flex: 0 0 auto;
  white-space: nowrap;
}

.fp-participants > .fp-participants-pagination {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto auto;
  grid-template-areas: "first prev pages next last";
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 10px 12px;
  margin: 40px auto 20px;
  padding: 6px 0 2px;
  clear: both;
  text-align: center;
}

.fp-participants-pagination[hidden] {
  display: none !important;
}

.fp-participants-pagination > #fp-participants-first {
  grid-area: first;
}

.fp-participants-pagination > #fp-participants-prev {
  grid-area: prev;
}

.fp-participants-pagination > #fp-participants-pages {
  grid-area: pages;
}

.fp-participants-pagination > #fp-participants-next {
  grid-area: next;
}

.fp-participants-pagination > #fp-participants-last {
  grid-area: last;
}

.fp-participants-pagination .button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
  line-height: 36px;
}

.fp-participants-pagination__icon-btn {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.fp-participants-pagination__icon-btn svg {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.fp-participants-pagination__icon-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-participants-pagination__pages {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px 0;
}

.fp-participants-pagination__page {
  min-width: 36px;
  padding: 0 10px;
}

.fp-participants-pagination__ellipsis {
  min-width: 18px;
  text-align: center;
  color: var(--fp-text-muted);
  font-weight: 600;
}

.fp-participants-pagination__page.is-active {
  background: var(--wd-alternative-color);
  border-color: var(--wd-alternative-color);
  color: var(--fp-text-white);
  pointer-events: none;
}

@media (max-width: 1100px) {
  .fp-participants > .fp-participants-pagination {
    grid-template-columns: repeat(4, minmax(0, auto));
    grid-template-areas: "first prev next last" "pages pages pages pages";
    justify-content: center;
    gap: 10px;
  }
}
@media (max-width: 640px) {
  .fp-participants > .fp-participants-pagination {
    margin: 28px auto 14px;
    gap: 8px;
  }
  .fp-participants-pagination .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
    line-height: 32px;
  }
  .fp-participants-pagination__icon-btn {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }
  .fp-participants-pagination__pages {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 4px;
  }
  .fp-participants-pagination__page {
    min-width: 32px;
    padding: 0 8px;
  }
}
@media (max-width: 781px) {
  .fp-participants__filters-intro {
    margin-bottom: 2px;
  }
  .fp-participants__count-reset {
    display: none;
  }
  .fp-participants-filter-sheet {
    position: static;
    z-index: 100040;
  }
  .fp-participants-filter-sheet.is-open {
    position: fixed;
    inset: 0;
    z-index: 100040;
    pointer-events: none;
  }
  .fp-participants-filter-sheet.is-open .fp-participants-filter-sheet__backdrop {
    pointer-events: auto;
  }
  .fp-participants-filter-sheet__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  .fp-participants-filter-sheet.is-open .fp-participants-filter-sheet__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .fp-participants-filter-sheet__panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 100%);
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: auto;
    transform: translate3d(0, 104%, 0);
    transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
    background: var(--wd-bg-color, var(--bgcolor-white, #fff));
    color: inherit;
    color-scheme: light dark;
  }
  .fp-participants-filter-sheet.is-open .fp-participants-filter-sheet__panel {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }
  .fp-participants-filter-sheet.is-open {
    pointer-events: none;
  }
  .fp-participants-filter-sheet.is-open .fp-participants-filter-sheet__panel {
    pointer-events: auto;
  }
  .fp-participants-filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    flex-shrink: 0;
  }
  .fp-participants-filter-sheet__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--wd-title-font);
  }
  .fp-participants-filter-sheet__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--wd-brd-radius, 8px);
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fp-participants-filter-sheet__close:hover {
    background: rgba(148, 163, 184, 0.15);
  }
  .fp-participants-filter-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    text-align: start;
    box-sizing: border-box;
  }
  /* Annule float / colonnes WooCommerce & WoodMart : pile mobile pleine largeur */
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .form-row.form-row-wide,
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .woocommerce-FormRow {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .form-row label {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    text-align: start !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35;
    font-weight: 600;
  }
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .form-row .input-text,
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .form-row input.input-text,
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .form-row input[type=search],
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .form-row select.input-text,
  .fp-participants-filter-sheet .fp-participants-filter-sheet__body .form-row select {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: none !important;
  }
  .fp-participants__field--span-2 {
    grid-column: auto;
  }
  .fp-participants-filter-sheet__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    flex-shrink: 0;
    background: var(--wd-bg-color, var(--bgcolor-white, #fff));
  }
  .fp-participants-filter-sheet__footer .button {
    flex: 1 1 140px;
  }
}
@media (min-width: 782px) {
  .fp-participants__filters-intro {
    display: none !important;
  }
  .fp-participants-filter-sheet__header,
  .fp-participants-filter-sheet__footer {
    display: none !important;
  }
  .fp-participants-filter-sheet__backdrop {
    display: none !important;
  }
  .fp-participants-filter-sheet__panel {
    transform: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-height: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .fp-participants-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .fp-prediction-form__team .right-to-left {
    justify-content: flex-end;
  }
}
.fp-participant-card {
  --fp-participant-media-grow: 61;
  --fp-participant-body-grow: 39;
  --fp-participant-notch-pct: 13;
  /* Chevron overlap for 2:3 cards (margin-% is relative to card width). */
  --fp-participant-notch-overlap: calc(
    var(--fp-participant-notch-pct) * var(--fp-participant-media-grow) /
    (var(--fp-participant-media-grow) + var(--fp-participant-body-grow)) * 3 / 2 * 1%
  );
  aspect-ratio: 2/3;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 26px rgba(2, 8, 23, 0.18);
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform var(--fp-transition), box-shadow var(--fp-transition);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
}

.fp-participant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 28px rgba(2, 8, 23, 0.28);
}

.fp-participant-card__upper {
  flex: var(--fp-participant-media-grow) var(--fp-participant-media-grow) 0;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.fp-participant-card__media {
  position: absolute;
  inset: 0;
  background-color: #cbd5e1;
  background-image: var(--fp-participant-avatar-url, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  clip-path: polygon(100% 0, 100% 87%, 50% 100%, 0 87%, 0 0);
}

.fp-participant-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.42) 100%);
  pointer-events: none;
}

.fp-participant-card__head {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.fp-participant-card__rarity,
.fp-participant-card__rank {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
}

.fp-participant-card__rarity {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.fp-participant-card__rank {
  letter-spacing: 0.03em;
  font-size: 11px;
  background: var(--fp-participant-rank-brand-bg, #334155);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

.fp-participant-card__notch-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 88%;
  z-index: 5;
  line-height: 0;
  pointer-events: none;
  color: var(--fp-participant-rank-brand-bg, #334155);
  overflow: visible !important;
}
.fp-participant-card__notch-edge polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke;
}

.fp-participant-card__body {
  flex: var(--fp-participant-body-grow) var(--fp-participant-body-grow) 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: calc(-1 * var(--fp-participant-notch-overlap) - 1px);
  padding: calc(var(--fp-participant-notch-pct) * 1% + 8px) 14px 14px;
  background: #fff;
  z-index: 1;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0, 50% 13%);
}

.fp-participant-card__pseudo {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.2;
  z-index: 2;
  width: 100%;
}

.fp-participant-card__team {
  font-size: 12px;
  color: #64748b;
  min-height: 18px;
  z-index: 2;
  width: 100%;
}

.fp-participant-card__stats {
  width: 100%;
  z-index: 2;
  margin-top: 2px;
}

.fp-participant-card__stats > div,
.fp-participant-card__stats .fp-participant-card__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background: #f1f5f9;
  padding: 8px 10px;
  color: #475569;
  font-size: 12px;
}

.fp-participant-card__stat--down {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #991b1b;
}

.fp-participant-card__stat--down strong {
  color: #991b1b;
}

.fp-participant-card__stat--drop-only {
  justify-content: center;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.34);
  color: #991b1b;
}

.fp-participant-card__stat--drop-only strong {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #991b1b;
  letter-spacing: 0.01em;
}

.fp-participant-card__stats strong {
  font-size: 15px;
  color: #0f172a;
}

.fp-participant-card__watermark {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 96px;
  height: 96px;
  opacity: 0.14;
  pointer-events: none;
  object-fit: contain;
  z-index: 1;
}

.fp-participant-card--bronze {
  border-color: rgba(245, 158, 11, 0.45);
}

.fp-participant-card--bronze .fp-participant-card__rarity {
  background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
  color: #422006;
}

.fp-participant-card--silver {
  border-color: rgba(148, 163, 184, 0.65);
}

.fp-participant-card--silver .fp-participant-card__rarity {
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 100%);
  color: #0f172a;
}

.fp-participant-card--gold {
  border-color: rgba(250, 204, 21, 0.82);
}

.fp-participant-card--gold .fp-participant-card__rarity {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  color: #422006;
}

.fp-participant-card--legend {
  border-color: rgba(216, 180, 254, 0.9);
  box-shadow: 0 16px 28px rgba(2, 8, 23, 0.34), 0 0 22px rgba(168, 85, 247, 0.28);
}

.fp-participant-card--legend .fp-participant-card__rarity {
  background: linear-gradient(180deg, #e9d5ff 0%, #a855f7 100%);
  color: #2e1065;
}

.fp-participants-empty {
  text-align: center;
  color: var(--fp-text-muted);
  padding: 40px 24px;
  background: var(--fp-bg-alt);
  border-radius: var(--fp-radius-lg);
}

.fp-participants__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 0 4px;
}

.fp-participants__page-btn {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.fp-participants__page-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.55);
}

.fp-participants__page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fp-participants__page-info {
  font-weight: 700;
  color: var(--fp-text-muted);
  font-size: 0.95rem;
}

.fp-participant-card.fp-participant-card--clickable {
  cursor: pointer;
}

.fp-participant-card.fp-participant-card--clickable:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 4px;
}

@keyframes fp-drawer-holo-shift {
  0% {
    transform: translateX(-45%) skewX(-18deg);
    opacity: 0.12;
  }
  40% {
    opacity: 0.38;
  }
  100% {
    transform: translateX(145%) skewX(-18deg);
    opacity: 0.08;
  }
}
@keyframes fp-drawer-glint {
  0%, 100% {
    opacity: 0.35;
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.62;
    transform: rotate(2deg);
  }
}
@keyframes fp-drawer-pulse-ring {
  0% {
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px rgba(0, 0, 0, 0.45);
  }
  100% {
    box-shadow: inset 0 0 72px rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.18), 0 26px 60px rgba(0, 0, 0, 0.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes fp-drawer-holo-shift {
    0%, 100% {
      transform: none;
      opacity: 0;
    }
  }
  @keyframes fp-drawer-glint {
    0%, 100% {
      opacity: 0.35;
      transform: none;
    }
  }
  @keyframes fp-drawer-pulse-ring {
    0%, 100% {
      box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 22px 48px rgba(0, 0, 0, 0.45);
    }
  }
}
.fp-participants-drawer {
  position: fixed;
  inset: 0;
  z-index: 100050;
  visibility: hidden;
  pointer-events: none;
}

.fp-participants-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.fp-participants-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(2, 6, 23, 0.88) 100%);
  backdrop-filter: blur(10px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.fp-participants-drawer.is-open .fp-participants-drawer__backdrop {
  opacity: 1;
}

.fp-participants-drawer__rail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  pointer-events: none;
  transform: translateX(calc(100% + 2px));
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.fp-participants-drawer__rail > * {
  pointer-events: auto;
}

.fp-participants-drawer.is-open .fp-participants-drawer__rail {
  transform: translateX(0);
}

.fp-participants-drawer__content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  align-items: stretch;
  gap: 16px;
}

.fp-participants-drawer__chart {
  display: none;
}

.fp-participants-drawer__panel {
  position: relative;
  top: auto;
  right: auto;
  align-self: stretch;
  flex: 0 0 auto;
  width: min(460px, 100vw - 108px);
  max-width: 100%;
  min-height: 0;
  padding: 20px 16px 26px;
  background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(59, 130, 246, 0.16) 0%, transparent 55%), linear-gradient(165deg, #070b14 0%, #121a2c 42%, #0a0e18 100%);
  color: #f8fafc;
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.55);
  overflow: auto;
  scrollbar-gutter: stable;
  border-left: none;
}

.fp-participants-drawer__panel--legend {
  background: radial-gradient(ellipse 100% 60% at 50% -5%, rgba(168, 85, 247, 0.22) 0%, transparent 50%), linear-gradient(165deg, #0c0618 0%, #1e1035 46%, #0a0712 100%);
}

.fp-participants-drawer__panel--gold {
  background: radial-gradient(ellipse 100% 55% at 50% -5%, rgba(250, 204, 21, 0.2) 0%, transparent 50%), linear-gradient(165deg, #0f0a04 0%, #2a2310 45%, #0c0905 100%);
}

.fp-participants-drawer__panel--silver {
  background: radial-gradient(ellipse 100% 50% at 50% -5%, rgba(148, 163, 184, 0.2) 0%, transparent 50%), linear-gradient(165deg, #090c11 0%, #171e2c 46%, #080a0f 100%);
}

.fp-participants-drawer__panel--bronze {
  background: radial-gradient(ellipse 100% 48% at 50% -5%, rgba(217, 119, 6, 0.18) 0%, transparent 50%), linear-gradient(165deg, #110b05 0%, #29190a 46%, #0e0904 100%);
}

.fp-participants-drawer__close {
  position: relative;
  z-index: 25;
  flex-shrink: 0;
  align-self: flex-start;
  width: 48px;
  height: 48px;
  margin-top: 2px;
  padding: 0;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: var(--wd-primary-color) !important;
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 38px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fp-participants-drawer__close:hover {
  background: rgba(30, 25, 15, 0.45);
  box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.4), 0 14px 40px rgba(0, 0, 0, 0.52), 0 0 28px rgba(250, 204, 21, 0.2);
}

.fp-participants-drawer__close:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.95);
  outline-offset: 3px;
}

.fp-participants-drawer__close:active {
  transform: scale(0.96);
}

.fp-participants-drawer__close--inside {
  display: none;
}

.fp-participants-drawer__close-icon {
  position: absolute;
  inset: 0;
}

.fp-participants-drawer__close-icon::before,
.fp-participants-drawer__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: rgba(248, 250, 252, 0.98);
}

.fp-participants-drawer__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.fp-participants-drawer__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- Carte « collector » (style Ultimate Team simplifié) ---------- */
.fp-collect-card {
  position: relative;
  width: 100%;
  margin: 8px auto 0;
  max-width: 400px;
  border-radius: 22px;
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 40%), linear-gradient(225deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%), linear-gradient(180deg, #141c2f 0%, #0f1626 52%, #0b101c 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 42px rgba(59, 130, 246, 0.12), 0 26px 64px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: fp-drawer-pulse-ring 4s ease-in-out alternate infinite;
}
.fp-collect-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.18) 0%, transparent 52%);
  z-index: 1;
  mix-blend-mode: overlay;
  opacity: 0.85;
}

.fp-participants-drawer__panel--legend .fp-collect-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 2px 0 rgba(216, 180, 254, 0.22), 0 0 56px rgba(168, 85, 247, 0.32), 0 26px 64px rgba(0, 0, 0, 0.6);
}

.fp-participants-drawer__panel--gold .fp-collect-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 2px 0 rgba(253, 230, 138, 0.25), 0 0 48px rgba(250, 204, 21, 0.25), 0 26px 64px rgba(0, 0, 0, 0.6);
}

.fp-participants-drawer__panel--silver .fp-collect-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px rgba(148, 163, 184, 0.2), 0 26px 64px rgba(0, 0, 0, 0.6);
}

.fp-participants-drawer__panel--bronze .fp-collect-card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 2px 0 rgba(251, 191, 36, 0.15), 0 0 36px rgba(217, 119, 6, 0.18), 0 26px 64px rgba(0, 0, 0, 0.6);
}

.fp-collect-card__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.22;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px), radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.12) 0 1px, transparent 28px), radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.1) 0 1px, transparent 32px);
  pointer-events: none;
}

.fp-collect-card__holo {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.75;
}

.fp-collect-card__holo::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -65%;
  width: 54%;
  height: 145%;
  background: linear-gradient(118deg, transparent 42%, rgba(148, 197, 255, 0.14) 48%, rgba(243, 232, 255, 0.35) 50%, rgba(251, 191, 36, 0.12) 54%, transparent 62%);
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: no-preference) {
  .fp-collect-card__holo::after {
    animation: fp-drawer-holo-shift 9s ease-in-out infinite alternate;
  }
}
.fp-collect-card__glint {
  position: absolute;
  top: -30%;
  right: -35%;
  width: 140%;
  height: 72%;
  z-index: 3;
  background: radial-gradient(ellipse closest-side, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .fp-collect-card__glint {
    animation: fp-drawer-glint 6s ease-in-out infinite;
  }
}
.fp-collect-card__mint {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 12px 18px;
  text-align: center;
  letter-spacing: 0.38em;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.fp-collect-card__mint-text {
  padding-bottom: 2px;
}

.fp-collect-card__artwork {
  --fp-collect-burst-w: min(calc(100% + 24px), 336px);
  --fp-collect-burst-h: clamp(232px, 46vh, 392px);
  position: relative;
  z-index: 2;
  min-height: 0;
  margin: 0 12px;
  padding: 8px 0 4px;
  border-radius: 16px;
  overflow: visible;
}

.fp-collect-card__burst {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: var(--fp-collect-burst-w);
  height: var(--fp-collect-burst-h);
  background: radial-gradient(ellipse at 40% 100%, transparent 52%, rgba(0, 0, 0, 0.5) 100%), repeating-conic-gradient(from 180deg at 50% 100%, transparent 0 6deg, rgba(255, 255, 255, 0.04) 6deg 8deg), radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.2) 0%, transparent 48%);
  border-radius: 14px;
  opacity: 0.9;
  pointer-events: none;
}

.fp-collect-card__vignette {
  position: relative;
  z-index: 2;
  width: var(--fp-collect-burst-w);
  height: var(--fp-collect-burst-h);
  margin: 10px auto 0;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.fp-collect-card__vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 -42px 64px rgba(6, 8, 16, 0.88), inset 0 0 140px rgba(5, 8, 20, 0.55), inset 0 28px 48px rgba(255, 255, 255, 0.05);
}

.fp-collect-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(1.06) contrast(1.04);
}

.fp-collect-card__photo[hidden] {
  display: none !important;
}

.fp-collect-card__ovr-hex {
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  z-index: 6;
  width: 74px;
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-bottom: 2px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(250, 204, 21, 0.15);
}

.fp-collect-card__ovr-w {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: rgba(226, 232, 240, 0.8);
}

.fp-collect-card__ovr-num {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.fp-collect-card__nameplate {
  position: relative;
  z-index: 5;
  margin: -6px 16px 0;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.11) 0%, rgba(15, 23, 42, 0.9) 100%);
  clip-path: polygon(4% 0%, 96% 0%, 100% 100%, 0% 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 -8px 36px rgba(0, 0, 0, 0.45);
}

.fp-collect-card__title {
  margin: 0 0 12px;
  color: white;
  font-family: var(--wd-alternative-font);
  font-size: clamp(1.5rem, 5vw, 1.82rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.fp-collect-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fp-collect-card__tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.fp-collect-card__tag--rarity {
  border-color: rgba(255, 255, 255, 0.4);
}

.fp-participants-drawer__panel--legend .fp-collect-card__tag--rarity {
  background: linear-gradient(165deg, #f5d0fe 0%, #a855f7 52%, #6b21a8 100%);
  color: #2e022d;
}

.fp-participants-drawer__panel--gold .fp-collect-card__tag--rarity {
  background: linear-gradient(165deg, #fef9c3 0%, #facc15 50%, #a16207 100%);
  color: #422006;
}

.fp-participants-drawer__panel--silver .fp-collect-card__tag--rarity {
  background: linear-gradient(165deg, #fff 0%, #cbd5e1 55%, #64748b 100%);
  color: #0f172a;
}

.fp-participants-drawer__panel--bronze .fp-collect-card__tag--rarity {
  background: linear-gradient(165deg, #fde68a 0%, #d97706 52%, #7c2d12 100%);
  color: #fff;
}

.fp-collect-card__tag--brand {
  letter-spacing: 0.06em;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background-color: var(--fp-brand-badge-drawer-bg, #334155);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fp-collect-card__stats {
  position: relative;
  z-index: 5;
  margin: 18px 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fp-collect-card__stat {
  margin: 0;
  padding: 13px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.fp-collect-card__stat--wide {
  grid-column: 1/-1;
  background: radial-gradient(circle at 10% -20%, rgba(250, 204, 21, 0.12) 0%, transparent 40%), linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(15, 23, 42, 0.93) 100%);
}

.fp-collect-card__stat dt {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.55);
}

.fp-collect-card__stat dd {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.25;
  color: #f8fafc;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.fp-collect-card__stat--wide dd {
  font-size: clamp(1.35rem, 5vw, 1.72rem);
  font-variant-numeric: tabular-nums;
}

.fp-collect-card__seal {
  margin: 18px 16px 20px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  letter-spacing: 0.42em;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.5);
  background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 8px, transparent 8px, transparent 14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .fp-collect-card {
    animation: none !important;
  }
  .fp-collect-card::before {
    animation: none;
  }
}
@media (min-width: 1281px) {
  .fp-participants-drawer__rail {
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: #000;
  }
  .fp-participants-drawer__content {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0;
  }
  .fp-participants-drawer__chart:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top)) 28px max(20px, env(safe-area-inset-bottom)) 12px;
  }
  .fp-participants-drawer__chart-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
  }
  .fp-participants-drawer__chart-toggle {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .fp-participants-drawer__chart-toggle:hover {
    border-color: rgba(148, 163, 184, 0.55);
    color: #f8fafc;
  }
  .fp-participants-drawer__chart-toggle.is-active {
    color: #0f172a;
    border-color: transparent;
    background: #f8fafc;
  }
  .fp-participants-drawer__chart-toggle:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
  }
  .fp-participants-drawer__chart-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
  }
  .fp-participants-drawer__chart-block {
    min-width: 0;
  }
  .fp-participants-drawer__chart-block[hidden] {
    display: none !important;
  }
  .fp-participants-drawer__chart-block-title {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #e2e8f0;
  }
  .fp-participants-drawer__chart-canvas-wrap {
    min-height: 190px;
    height: 190px;
  }
  .fp-participants-drawer__chart-stack--single .fp-participants-drawer__chart-canvas-wrap {
    min-height: 280px;
    height: 280px;
  }
  .fp-participants-drawer__predictions-wrap {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 6px 4px 2px;
    -webkit-overflow-scrolling: touch;
  }
  .fp-participants-drawer__predictions-loading,
  .fp-participants-drawer__predictions-empty,
  .fp-participants-drawer__predictions-error {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
  }
  .fp-participants-drawer__predictions-error {
    color: #fca5a5;
  }
  .fp-participants-drawer__predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    width: 100%;
  }
  .fp-participants-drawer__pred-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    min-width: 0;
  }
  .fp-participants-drawer__pred-card--multiplier {
    padding-top: 12px;
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), 0 4px 14px rgba(245, 158, 11, 0.12);
  }
  .fp-participants-drawer__pred-multiplier {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    padding: 2px 5px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: #7c2d12;
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
    border: 1px solid rgba(124, 45, 18, 0.35);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
    pointer-events: none;
  }
  .fp-participants-drawer__pred-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
  }
  .fp-participants-drawer__pred-flag {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .fp-participants-drawer__pred-score {
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .fp-participants-drawer__pred-points {
    font-size: 0.68rem;
    font-weight: 700;
    color: #86efac;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .fp-participants-drawer__pred-card--in_progress .fp-participants-drawer__pred-points {
    color: #fde68a;
  }
  .fp-participants-drawer__pred-card--upcoming .fp-participants-drawer__pred-score {
    color: #cbd5e1;
  }
  .fp-participants-drawer__chart-inner {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(760px, 90vh);
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #f8fafc;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .fp-participants-drawer__chart-inner.fp-stats-chart {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .fp-participants-drawer__chart-inner.fp-stats-chart--timeseries {
    margin-top: 0;
  }
  .fp-participants-drawer__chart-inner .fp-stats-timeseries__canvas-wrap {
    flex: 1 1 auto;
    min-height: 280px;
  }
  .fp-participants-drawer__chart-inner .fp-stats-chart__title,
  .fp-participants-drawer__chart-inner .fp-stats-chart__hint {
    color: #e2e8f0;
  }
  .fp-participants-drawer__chart-inner .fp-stats-chart__hint {
    opacity: 0.88;
  }
  .fp-participants-drawer__panel {
    width: min(460px, 100vw - 120px);
    flex: 0 0 auto;
    align-self: center;
    background: transparent;
    box-shadow: none;
  }
  .fp-participants-drawer__panel--legend,
  .fp-participants-drawer__panel--gold,
  .fp-participants-drawer__panel--silver,
  .fp-participants-drawer__panel--bronze {
    background: transparent;
  }
}
@media (max-width: 480px) {
  .fp-participants-drawer__rail {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    inset: auto 0 0 0;
    top: auto;
    height: auto;
    padding: 8px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    transform: translateY(calc(100% + 6px));
  }
  .fp-participants-drawer__content {
    flex-direction: column;
    justify-content: flex-end;
  }
  .fp-participants-drawer.is-open .fp-participants-drawer__rail {
    transform: translateY(0);
  }
  .fp-participants-drawer__close {
    order: -1;
    align-self: center;
    margin-top: 0;
    margin-bottom: 8px;
  }
  .fp-participants-drawer__close:not(.fp-participants-drawer__close--inside) {
    display: none;
  }
  .fp-participants-drawer__close--inside {
    display: inline-flex;
    position: sticky;
    top: 0;
    margin: 0 0 8px auto;
    z-index: 3;
  }
  .fp-participants-drawer__panel {
    padding: 16px 12px 24px;
    border-radius: 18px 18px 0 0;
    align-self: stretch;
    flex: 0 1 auto;
    width: 100%;
    max-height: min(94vh, 900px);
    overflow: auto;
    box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.55);
  }
  .fp-collect-card {
    margin-top: 4px;
  }
  .fp-collect-card__artwork {
    --fp-collect-burst-w: min(calc(100% + 20px), calc(100vw - 72px));
    --fp-collect-burst-h: clamp(200px, 38vh, 320px);
  }
  .fp-collect-card__stats {
    margin-left: 10px;
    margin-right: 10px;
  }
  .fp-collect-card__mint {
    letter-spacing: 0.22em;
  }
}
/* ============================================
   Next match & countdown (aligné cartes équipes EA / FC)
   ============================================ */
/* Team logos — utilisé pronos, liste matchs, etc. */
.fp-team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}

.fp-next-match {
  position: relative;
  max-width: 640px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(0, 196, 255, 0.12) 0%, transparent 40%), linear-gradient(180deg, #1a2332 0%, #0d1219 52%, #070a0e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.45);
}
.fp-next-match::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.9) 35%, rgba(100, 200, 255, 0.65) 50%, rgba(0, 200, 255, 0.9) 65%, transparent);
  opacity: 0.92;
  pointer-events: none;
}
.fp-next-match--empty {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.35);
}
.fp-next-match--empty::before {
  opacity: 0.5;
}
.fp-next-match--empty .fp-next-match__empty-msg {
  margin: 0;
  padding: 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.8);
  text-align: center;
  line-height: 1.5;
}
.fp-next-match__inner {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.35rem 1.35rem;
  text-align: center;
}
.fp-next-match__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(77, 220, 255, 0.95);
}
.fp-next-match__date {
  margin: 0 0 1.35rem;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(241, 245, 249, 0.95);
  font-variant-numeric: tabular-nums;
}
.fp-next-match__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}
.fp-next-match__team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fp-next-match__crest.fp-team-logo, .fp-next-match__team .fp-next-match__crest {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.fp-next-match__name {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-align: left;
  max-width: 11rem;
}
@media (max-width: 480px) {
  .fp-next-match__name {
    font-size: 1rem;
  }
}
.fp-next-match__vs {
  align-self: center;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(0, 210, 255, 0.88);
  line-height: 1;
  margin: 0 2px;
}
.fp-next-match__stadium {
  margin: 0 0 1.25rem;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.95);
}
.fp-next-match__actions {
  margin: 1.25rem 0 0;
}
.fp-next-match__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 1.45rem;
  background: linear-gradient(180deg, var(--fp-primary-hover) 0%, var(--fp-primary) 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset, 0 4px 20px rgba(59, 130, 246, 0.28);
  transition: transform var(--fp-transition), box-shadow var(--fp-transition);
}
.fp-next-match__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 8px 28px rgba(59, 130, 246, 0.38);
  color: #fff !important;
}
.fp-next-match .fp-countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 16px);
  margin: 0.85rem 0 0;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}
.fp-next-match .fp-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.fp-next-match .fp-countdown__value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.05rem;
  min-height: 2.95rem;
  padding: 0.35rem 0.42rem;
  font-size: 1.42rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #f8fafc;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 210, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.38) inset, 0 0 22px rgba(0, 200, 255, 0.1);
  line-height: 1;
}
.fp-next-match .fp-countdown__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.45rem;
}
.fp-next-match .fp-countdown__ended {
  display: inline-block;
  margin: 0.25rem auto 0;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(0, 0, 0, 0.32);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
}

/* ============================================
   Competition matches list
   ============================================ */
.fp-competition-matches {
  background: var(--fp-bg-card);
  border-radius: var(--fp-radius-lg);
  padding: 14px;
  box-shadow: var(--fp-shadow-sm);
  border: 1px solid var(--fp-border);
}

.fp-competition-matches__title {
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fp-text);
}

.fp-competition-matches__phase-section {
  margin-top: 28px;
}
.fp-competition-matches__phase-section.fp-competition-matches__phase-section--first {
  margin-top: 0;
}

.fp-competition-matches__phase-heading {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fp-text);
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--fp-primary);
}

.fp-competition-matches__empty,
.fp-competition-matches--error {
  color: var(--fp-text-muted);
  padding: 24px;
  text-align: center;
}

.fp-competition-matches__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fp-competition-matches__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fp-border);
  transition: background var(--fp-transition);
}

.fp-competition-matches__item:hover {
  background: var(--fp-bg-alt);
}

.fp-competition-matches__item:last-child {
  border-bottom: none;
}

.fp-competition-matches__date-block {
  min-width: 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-competition-matches__date-main {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fp-text);
  font-variant-numeric: tabular-nums;
}

.fp-competition-matches__date-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--fp-text);
  font-variant-numeric: tabular-nums;
}

.fp-competition-matches__main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fp-competition-matches__teams {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 500;
}

.fp-competition-matches__time-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  color: var(--fp-text-muted);
}

.fp-competition-matches__date-time-label {
  display: inline-block;
}

.fp-competition-matches__date-time--empty {
  opacity: 0.6;
}

.fp-competition-matches__date-separator {
  padding: 10px 0 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  padding-left: 10px;
  background-color: var(--fp-blue-worldcup);
}

.fp-competition-matches__date-separator-label {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fp-text-white);
}

.fp-competition-matches__team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.fp-competition-matches__team.right-to-left {
  flex-direction: row-reverse;
}

.fp-competition-matches__team-text--winner {
  font-weight: 800;
  color: var(--fp-text);
}

.fp-competition-matches__vs {
  color: var(--fp-text-muted);
  font-weight: 600;
  padding: 0 2px;
  min-width: 70px;
  text-align: center;
}

.fp-competition-matches__score-hexes {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px;
  min-width: 70px;
}

.fp-competition-matches__score-hex {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 32px;
  padding: 0 6px;
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 25%, 50% 0, 100% 25%, 99% 75%, 50% 100%, 0 75%);
}

.fp-competition-matches__score-hex-digit {
  transform: translateY(0.5px);
}

.fp-competition-matches__prediction-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.fp-competition-matches__stats-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
}

.fp-competition-matches__stats-wd {
  margin: 0;
}

.fp-competition-matches__stats-wd .wd-button-wrapper {
  margin: 0;
}

.fp-competition-matches__stats-btn,
.fp-competition-matches__stats-btn--fallback {
  cursor: pointer;
  text-decoration: none;
}

.fp-competition-matches__stats-btn:hover {
  color: var(--fp-blue-worldcup) !important;
}

.fp-competition-matches__stats-btn--fallback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fp-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--fp-transition, 0.2s ease);
}

.fp-competition-matches__stats-btn--fallback:hover,
.fp-competition-matches__stats-btn--fallback:focus-visible {
  color: rgb(70, 100, 239);
  outline: none;
}

.fp-competition-matches__stats-btn--fallback .fa {
  font-size: 0.9rem;
}

.fp-competition-matches__pred-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.3fr);
  gap: 12px 16px;
  align-items: center;
  width: 100%;
}

.fp-competition-matches__pred-ratio {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fp-text-muted);
  line-height: 1.3;
  text-align: right;
}

.fp-good-preds-info__trigger {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
  width: 14px;
  height: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  user-select: none;
}
.fp-good-preds-info__trigger:hover, .fp-good-preds-info__trigger:focus-visible {
  color: #111 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  opacity: 0.55;
  outline: none;
}

.fp-competition-matches__pred-row .fp-good-preds-info__trigger {
  min-width: 0;
  min-height: 0;
}

.fp-good-preds-info__svg {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.fp-good-preds-popover {
  position: fixed;
  z-index: 99999;
  min-width: 11rem;
  max-width: min(17.5rem, 100vw - 16px);
  max-height: 14rem;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}
.fp-good-preds-popover[hidden] {
  display: none !important;
}

.fp-good-preds-popover__inner {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: 14rem;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--fp-text);
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

.fp-good-preds-popover__title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fp-text-muted);
}

.fp-good-preds-popover__loading,
.fp-good-preds-popover__empty {
  margin: 0;
  color: var(--fp-text-muted);
}

.fp-good-preds-popover__error {
  margin: 0;
  color: #b42318;
}

.fp-good-preds-popover__list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 12px;
}

.fp-good-preds-popover__list-item {
  break-inside: avoid;
  padding: 1px 0;
}

@media (max-width: 480px) {
  .fp-good-preds-popover__list {
    columns: 1;
  }
}
.fp-competition-matches__pred-percent {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fp-text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.fp-competition-matches__pred-percent-value,
.fp-competition-matches__pred-percent-suffix {
  display: inline;
}

.fp-competition-matches__pred-muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fp-text-muted);
  font-weight: 600;
}

.fp-competition-matches__stadium {
  font-size: 0.85rem;
  color: var(--fp-text-muted);
  padding-left: 0;
  text-align: center;
}

@media (min-width: 601px) {
  .fp-competition-matches__item {
    display: grid;
    grid-template-columns: minmax(40px, 0.25fr) minmax(140px, 2.06fr) minmax(120px, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 0;
  }
  .fp-competition-matches__date-block {
    grid-column: 1;
  }
  .fp-competition-matches__main-col {
    grid-column: 2;
  }
  .fp-competition-matches__prediction-col {
    grid-column: 3;
    align-self: stretch;
    justify-self: stretch;
  }
}
.fp-competition-matches__score-hexes--live {
  position: relative;
  padding-top: 14px;
}

.fp-competition-matches__score-hexes--live.fp-competition-matches__score-hexes--pending .fp-competition-matches__score-hex {
  opacity: 0.55;
}

.fp-competition-matches__item--in_progress .fp-competition-matches__score-hexes--live .fp-competition-matches__score-hex {
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.45);
}

.fp-competition-matches__live-markers {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.fp-competition-matches__live-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35);
}

.fp-competition-matches__live-minute {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #dc2626;
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

body.fp-match-stats-modal-open {
  overflow: hidden;
}

.fp-match-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fp-match-stats-modal[hidden] {
  display: none !important;
}

.fp-match-stats-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.fp-match-stats-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(85vh, 760px);
  overflow: auto;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  font-family: var(--fp-font-sans);
  -webkit-font-smoothing: antialiased;
}

.fp-match-stats-modal__dialog h4,
.fp-match-stats-modal__dialog p,
.fp-match-stats-modal__dialog th,
.fp-match-stats-modal__dialog td,
.fp-match-stats-modal__dialog button {
  font-family: inherit;
}

.fp-match-stats-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 16px 16px 0 0;
}

.fp-match-stats-modal__header-text {
  min-width: 0;
  flex: 1;
}

.fp-match-stats-modal__close {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--fp-transition), border-color var(--fp-transition), color var(--fp-transition);
}

.fp-match-stats-modal__close:hover,
.fp-match-stats-modal__close:focus-visible {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  outline: none;
}

.fp-match-stats-modal__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a !important;
  letter-spacing: 0.01em;
}

.fp-match-stats-modal__teams {
  margin: 0;
  color: #334155 !important;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.fp-match-stats-modal__body {
  padding: 8px 12px 16px;
}

.fp-match-stats-modal__loading,
.fp-match-stats-modal__empty,
.fp-match-stats-modal__error {
  margin: 12px 8px;
  color: #475569 !important;
  font-size: 0.95rem;
  line-height: 1.45;
}

.fp-match-stats-modal__error {
  color: #b91c1c !important;
}

.fp-match-stats-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.fp-match-stats-modal__table thead th {
  padding: 12px 10px 10px;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569 !important;
  background: #ffffff;
}

.fp-match-stats-modal__team-head--home {
  text-align: right;
}

.fp-match-stats-modal__team-head--away {
  text-align: left;
}

.fp-match-stats-modal__team-head--spacer {
  width: 42%;
}

.fp-match-stats-modal__table tbody th,
.fp-match-stats-modal__table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.fp-match-stats-modal__table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.fp-match-stats-modal__table tbody tr:last-child th,
.fp-match-stats-modal__table tbody tr:last-child td {
  border-bottom: none;
}

.fp-match-stats-modal__label {
  text-align: center;
  font-weight: 600;
  color: #334155 !important;
  font-size: 0.88rem;
  line-height: 1.3;
}

.fp-match-stats-modal__val {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #0f172a !important;
  font-size: 1rem;
}

.fp-match-stats-modal__val--home {
  text-align: right;
}

.fp-match-stats-modal__val--away {
  text-align: left;
}

.fp-previous-day-results__title {
  margin-bottom: 6px;
}

.fp-previous-day-results__count {
  margin: 0 0 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fp-text-muted);
}

.fp-previous-day-results__empty {
  margin: 0;
  padding: 16px 0 8px;
  color: var(--fp-text-muted);
  text-align: center;
}

.fp-previous-day-results--error .fp-previous-day-results__message {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--fp-text-muted);
}

/* ============================================
   Predictions page - Modern UX
   ============================================ */
.fp-predictions {
  margin: 0 auto;
}

.fp-predictions__title {
  margin-bottom: 32px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fp-text);
  letter-spacing: -0.02em;
}

.fp-predictions--login,
.fp-predictions--empty {
  padding: 48px 32px;
  text-align: center;
  background: var(--fp-bg-alt);
  border-radius: var(--fp-radius-lg);
  font-size: 1.05rem;
}

.fp-predictions--login a {
  color: var(--fp-primary);
  font-weight: 600;
  text-decoration: none;
}

.fp-predictions--login a:hover {
  text-decoration: underline;
}

.fp-predictions__section {
  margin-bottom: 40px;
}

.fp-predictions__section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 12px 0;
  color: var(--fp-text);
  border-bottom: 3px solid var(--fp-primary);
  display: inline-block;
}

.fp-predictions__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .fp-predictions__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Match card - Layout type scoreboard */
.fp-prediction-card {
  background: var(--fp-bg-card);
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-sm);
  padding: 24px;
  border: 1px solid var(--fp-border);
  transition: box-shadow var(--fp-transition), border-color var(--fp-transition);
}

.fp-prediction-card:hover {
  box-shadow: var(--fp-shadow-md);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Date - mise en avant */
.fp-prediction-card__date-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--fp-bg-accent);
  border-radius: var(--fp-radius-md);
  color: #f8fafc;
}

.fp-prediction-card__date-main {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fp-prediction-card__date-time {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fp-prediction-card__multiplier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.46);
  color: var(--color-gray-200);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.fp-multiplier-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.fp-prediction-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fp-border);
}

.fp-prediction-card__teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fp-text);
}

.fp-prediction-card__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fp-prediction-card__vs {
  color: var(--fp-text-muted);
}

.fp-prediction-card__stadium {
  font-size: 0.9rem;
  color: var(--fp-text-white);
  margin: 0;
  font-style: italic;
}

/* Score input - Team left | Score | Team right */
.fp-prediction-form__match-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fp-prediction-form__market {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.72);
}

.fp-prediction-form__market-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.fp-prediction-form__market-head span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.85);
}
.fp-prediction-form__market-head small {
  font-size: 0.74rem;
  color: rgba(71, 85, 105, 0.95);
  font-weight: 600;
}

.fp-prediction-form__market-grid {
  display: grid;
  gap: 6px;
}

.fp-prediction-form__market-bookmaker {
  display: grid;
  gap: 8px;
}

.fp-prediction-form__market-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.fp-prediction-form__market-seg {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.fp-prediction-form__market-seg em {
  font-style: normal;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.fp-prediction-form__market-seg--home {
  background: #FB6004;
}

.fp-prediction-form__market-seg--draw {
  background: #FFCB15;
  color: rgba(15, 23, 42, 0.9);
}

.fp-prediction-form__market-seg--away {
  background: #2D4BE9;
}

.fp-prediction-form__market-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fp-prediction-form__market-odd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  font-size: 0.72rem;
  color: rgba(30, 41, 59, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-prediction-form__market-odd b {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.64rem;
  color: #fff;
  flex-shrink: 0;
}
.fp-prediction-form__market-odd strong {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.fp-prediction-form__market-odd--home b {
  background: #FB6004;
}

.fp-prediction-form__market-odd--draw b {
  background: #FFCB15;
  color: rgba(15, 23, 42, 0.9);
}

.fp-prediction-form__market-odd--away b {
  background: #2D4BE9;
}

.fp-prediction-form__market-item {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(120px, 2fr) auto;
  gap: 8px;
  align-items: center;
}

.fp-prediction-form__market-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(30, 41, 59, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-prediction-form__market-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 50%, #16a34a 100%);
  opacity: 0.22;
}

.fp-prediction-form__market-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--fp-market-color, #22c55e);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.fp-prediction-form__market-val {
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.88);
  min-width: 42px;
  text-align: right;
}

@media (max-width: 640px) {
  .fp-prediction-form__market-legend {
    grid-template-columns: 1fr;
  }
  .fp-woodmart-auth-button,
  .fp-logout-woodmart-button {
    margin-bottom: 0;
  }
  .no-bottom {
    margin-bottom: 0;
  }
  .fp-woodmart-auth-button--mobile-icon-only > div,
  .fp-logout-woodmart-button--mobile-icon-only > div {
    margin-bottom: 0 !important;
  }
}
.fp-prediction-form__team {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fp-text);
  text-align: center;
}
.fp-prediction-form__team.right-to-left {
  justify-content: flex-end;
}

.fp-prediction-form__score-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fp-bg-alt);
  padding: 8px 16px;
  border-radius: var(--fp-radius-md);
}

.fp-prediction-form__input {
  width: 48px !important;
  padding: 10px 6px !important;
  text-align: center !important;
  border: 2px solid var(--fp-border) !important;
  border-radius: var(--fp-radius-sm) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  transition: border-color var(--fp-transition), box-shadow var(--fp-transition) !important;
}

.fp-prediction-form__input:focus {
  outline: none;
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.fp-prediction-form__sep {
  color: var(--fp-text-muted);
  font-weight: 700;
  font-size: 1rem;
}

.fp-prediction-form__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--fp-bg-alt);
  border-radius: var(--fp-radius-md);
  justify-content: center;
}

.fp-prediction-form__group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.fp-prediction-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fp-prediction-form__inputs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fp-prediction-form__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fp-prediction-form__submit {
  padding: 12px 24px !important;
  /* background: var(--fp-blue-worldcup) !important; */
  /* color: var(--fp-text-white) !important; */
  border: none !important;
  border-radius: var(--fp-radius-md) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: background var(--fp-transition), transform var(--fp-transition) !important;
}

.fp-prediction-form__submit:hover {
  /* background: var(--fp-primary-hover) !important; */
}

.fp-prediction-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fp-prediction-form__msg {
  font-size: 0.9rem;
  font-weight: 500;
}

.fp-prediction-form__msg--success {
  color: var(--fp-success);
}

.fp-prediction-form__msg--error {
  color: var(--fp-error);
}

.fp-predictions__multiplier-intro {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.82);
}

.fp-predictions__multiplier-remaining {
  color: #0f766e;
}

.fp-prediction-form__multiplier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.fp-prediction-form__multiplier-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0;
}

.fp-prediction-form__multiplier-toggle input[type=checkbox] {
  width: 16px;
  height: 16px;
}

.fp-prediction-form__multiplier-note {
  font-size: 0.78rem;
  color: #b45309;
  font-weight: 600;
}

body.fp-body-scroll-lock {
  overflow: hidden !important;
}

.fp-prediction-form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.fp-prediction-form--locked .fp-prediction-form__fieldset:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.fp-prediction-form__lock-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #474a4a;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--fp-radius-md);
  border-left: 3px solid var(--fp-error, #c00);
}

.fp-prediction-form__lock-deadline {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ============================================
   Page Règlement (shortcode fp_reglement)
   ============================================ */
.fp-reglement {
  margin: 0 auto 2.5rem;
  font-family: inherit;
  color: #474a4a;
}

.fp-reglement__hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  padding: 2rem 1.75rem;
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.15) 0 22%, transparent 48%), radial-gradient(circle at 88% 18%, rgba(250, 204, 21, 0.18) 0 18%, transparent 44%), linear-gradient(132deg, #0b1222 0%, #2a398d 42%, #b91c1c 100%);
  border: 2px solid rgba(250, 204, 21, 0.5);
  box-shadow: 0 20px 48px rgba(2, 8, 23, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #fff;
}
.fp-reglement__hero::before {
  content: "";
  position: absolute;
  top: -42%;
  left: -12%;
  width: 68%;
  height: 170%;
  transform: rotate(16deg);
  background: linear-gradient(88deg, rgba(255, 255, 255, 0.09) 0%, transparent 76%);
  pointer-events: none;
}

.fp-reglement__hero-inner {
  position: relative;
  z-index: 1;
}

.fp-reglement__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.fp-reglement__title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  color: var(--fp-text-white);
}

.fp-reglement__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.fp-reglement__subtitle strong {
  font-weight: 800;
}

.fp-reglement__hero-link {
  color: #fde047;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fp-reglement__hero-link:hover {
  color: #fff;
}

.fp-reglement__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fp-reglement__section {
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(71, 74, 74, 0.08);
  box-shadow: 0 10px 30px rgba(42, 57, 141, 0.06);
}
.fp-reglement__section--accent {
  border-color: rgba(60, 172, 59, 0.28);
  background: linear-gradient(180deg, rgba(60, 172, 59, 0.07) 0%, #fff 42%);
  box-shadow: 0 10px 28px rgba(60, 172, 59, 0.08), 0 0 0 1px rgba(60, 172, 59, 0.1);
}

.fp-reglement__h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2a398d;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(60, 172, 59, 0.35);
}

.fp-reglement__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(71, 74, 74, 0.92);
}

.fp-reglement__muted {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(71, 74, 74, 0.58);
}

.fp-reglement__section p:not(.fp-reglement__muted):not(.fp-reglement__lead):not(.fp-reglement__note) {
  margin: 0 0 12px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(71, 74, 74, 0.9);
}
.fp-reglement__section p:not(.fp-reglement__muted):not(.fp-reglement__lead):not(.fp-reglement__note):last-child {
  margin-bottom: 0;
}

.fp-reglement__section--legal p {
  text-align: justify;
  hyphens: auto;
}

.fp-reglement__section--legal a,
.fp-reglement__section a {
  color: #2a398d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fp-reglement__list {
  margin: 8px 0 14px;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(71, 74, 74, 0.9);
}
.fp-reglement__list li {
  margin-bottom: 8px;
}
.fp-reglement__list li:last-child {
  margin-bottom: 0;
}
.fp-reglement__list--ordered {
  list-style: decimal;
}
.fp-reglement__list a {
  color: #2a398d;
  font-weight: 600;
}

.fp-reglement__footer-legal {
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: rgba(42, 57, 141, 0.07);
  border: 1px solid rgba(42, 57, 141, 0.18);
}

.fp-reglement__footer-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2a398d;
}

.fp-reglement__footer-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(71, 74, 74, 0.88);
}

.fp-reglement__note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  background: rgba(209, 212, 209, 0.45);
  border: 1px solid rgba(71, 74, 74, 0.06);
  color: rgba(71, 74, 74, 0.82);
}

.fp-reglement__table-wrap {
  overflow-x: auto;
  margin: 12px 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(42, 57, 141, 0.12);
}

.fp-reglement__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.fp-reglement__table th,
.fp-reglement__table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(71, 74, 74, 0.06);
}
.fp-reglement__table th {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(71, 74, 74, 0.55);
  background: rgba(42, 57, 141, 0.06);
}
.fp-reglement__table tbody tr:last-child th,
.fp-reglement__table tbody tr:last-child td {
  border-bottom: none;
}
.fp-reglement__table td:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #2a398d;
}
.fp-reglement__table strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.fp-reglement__hint {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(71, 74, 74, 0.48);
}

.fp-reglement__prizes {
  display: grid;
  gap: 16px;
  margin: 16px 0 8px;
}

.fp-reglement__prize {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(42, 57, 141, 0.14);
  background: linear-gradient(135deg, rgba(42, 57, 141, 0.04) 0%, rgba(60, 172, 59, 0.06) 100%);
}

.fp-reglement__prize--rank-1 {
  border-color: rgba(241, 43, 162, 0.25);
  background: linear-gradient(135deg, rgba(241, 43, 162, 0.06) 0%, rgba(42, 57, 141, 0.05) 100%);
}

.fp-reglement__prize-head {
  margin: 0 0 10px;
}

.fp-reglement__prize-rank {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a398d;
}

.fp-reglement__prize--rank-1 .fp-reglement__prize-rank {
  color: #f12ba2;
}

.fp-reglement__prize-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: #474a4a;
}

.fp-reglement__prize-tagline {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  font-style: italic;
  color: rgba(71, 74, 74, 0.78);
}

.fp-reglement__prize-lines {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(71, 74, 74, 0.88);
}
.fp-reglement__prize-lines li {
  margin-bottom: 6px;
}
.fp-reglement__prize-lines li:last-child {
  margin-bottom: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
  .fp-prediction-form__match-row {
    flex-direction: column;
    align-items: stretch;
  }
  .fp-prediction-form__team {
    justify-content: center;
    text-align: left;
  }
  .fp-prediction-form__team.right-to-left {
    justify-content: center;
  }
  .fp-prediction-form__score-block {
    justify-content: center;
  }
  .fp-prediction-form__extras {
    flex-direction: column;
  }
  .fp-prediction-form__group {
    width: 100%;
  }
  .fp-prediction-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .fp-prediction-card__teams {
    flex-direction: column;
    align-items: flex-start;
  }
  .fp-prediction-card__date-block {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .fp-next-match__teams {
    flex-direction: column;
  }
  .fp-next-match__team {
    flex-direction: row;
  }
  .fp-competition-matches__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    grid-template-columns: minmax(40px, 0.35fr) minmax(140px, 2.06fr) minmax(80px, 0.55fr);
  }
  .fp-competition-matches__main-col {
    width: 100%;
  }
  .fp-competition-matches__teams {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    gap: 5px;
  }
  .fp-competition-matches__teams .fp-competition-matches__team {
    min-width: 110px;
    font-size: 0.9rem;
  }
  .fp-competition-matches__score-hexes {
    gap: 2px;
    min-width: 45px;
  }
  .fp-competition-matches__prediction-col {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    border-top: 1px dashed var(--fp-border);
    padding-top: 10px;
    margin-top: 4px;
  }
  .fp-participants-intro ul {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
  }
}
@media (min-width: 1280px) {
  .fp-competition-matches__teams {
    gap: 10px;
  }
  .fp-competition-matches__teams .fp-competition-matches__team {
    min-width: 160px;
  }
}
.fp-lang-switcher--inline {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.fp-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  color: var(--fp-text-white, #64748b) !important;
  background: #4b4f54 !important;
  transition: background 0.15s, color 0.15s;
}
.fp-lang:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--wd-primary-color, #64748b) !important;
}

.fp-lang--active {
  background: var(--fp-blue-worldcup, #2563eb);
  color: #fff !important;
}
.fp-lang--active:hover {
  background: var(--fp-blue-worldcup, #2563eb);
  color: #fff !important;
}

.fp-lang-flag {
  flex-shrink: 0;
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.fp-lang-sep {
  color: var(--fp-border, #cbd5e1);
  font-weight: 400;
  user-select: none;
}

.fp-lang-switcher--dropdown select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--fp-border, #e2e8f0);
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
}

.fp-totw {
  --fp-totw-green: #1a6b3c;
  --fp-totw-green-light: #2d8f52;
  --fp-totw-line: rgba(255, 255, 255, 0.45);
  margin: 0 0 2rem;
}

.fp-totw__preview-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 600;
}

.fp-totw--admin-preview .fp-totw__pitch-wrap {
  outline: 3px dashed rgba(251, 146, 60, 0.65);
  outline-offset: 3px;
}

.fp-totw__live--preview {
  color: #c2410c;
}

.fp-totw-empty {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475467;
}

.fp-totw__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.fp-totw__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fp-blue-worldcup, #4664ef);
}

.fp-totw__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: #101828;
}

.fp-totw__live {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #5a6b14;
  font-weight: 600;
}

.fp-totw__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.fp-totw__week-form {
  flex: 1 1 auto;
  min-width: 11rem;
}

.fp-totw__week-select {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  background: #fff;
  min-width: 11rem;
  width: 100%;
  max-width: 100%;
}

.fp-totw__pitch-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 0.75rem 0.75rem 1.25rem;
}

.fp-totw__coach {
  max-width: 420px;
  margin: 1.5rem auto 0;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.fp-totw__coach-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fp-totw-green, #1a6b3c);
  text-align: center;
}
.fp-totw__coach-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(130% 120% at 0% 0%, rgba(67, 176, 42, 0.22) 0%, transparent 52%), linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(67, 176, 42, 0.35);
  box-shadow: 0 14px 34px rgba(2, 8, 23, 0.3);
}
.fp-totw__coach .fp-totw-player {
  position: static;
  width: auto;
  transform: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
  z-index: auto;
}
.fp-totw__coach .fp-totw-player__card {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}
.fp-totw__coach .fp-totw-player__shield {
  width: 64px;
  height: 76px;
}
.fp-totw__coach .fp-totw-player__pts {
  min-width: 22px;
  width: auto;
  max-width: 30px;
  height: 22px;
  font-size: 0.62rem;
}
.fp-totw__coach .fp-totw-player__nameplate {
  width: auto;
  min-width: 0;
  max-width: none;
  margin-top: 0;
}
.fp-totw__coach .fp-totw-player__name {
  font-size: 0.86rem;
  white-space: nowrap;
}
.fp-totw__coach .fp-totw-player__delta {
  width: auto;
  min-width: 0;
  max-width: none;
  margin-top: 0;
  font-size: 0.74rem;
}
.fp-totw__coach .fp-totw-player__delta-icon {
  width: 0.6rem;
  height: 0.6rem;
}

.fp-totw__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fp-totw__col--sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fp-totw__panel {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #f7fbe8;
  border: 1px solid rgba(70, 100, 239, 0.18);
}

.fp-totw__panel--brands {
  background: #ffffff;
}

.fp-totw__panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #101828;
}

.fp-totw__panel-sub {
  margin: -0.35rem 0 1rem;
  font-size: 0.78rem;
  color: #64748b;
}

.fp-totw__revelation-card-wrap {
  max-width: 240px;
  margin: 0 auto;
}
.fp-totw__revelation-card-wrap .fp-participant-card {
  width: 100%;
}
.fp-totw__revelation-card-wrap .fp-participant-card .fp-participant-card__stats > div {
  margin-bottom: 10px;
}

.fp-totw__revelation-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

.fp-totw-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fp-totw-brand-list__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 12px rgba(2, 8, 23, 0.06);
}

.fp-totw-brand-list__row--1 {
  border-color: color-mix(in srgb, var(--fp-totw-brand-color, #4664ef) 45%, #ffffff);
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.1), inset 3px 0 0 var(--fp-totw-brand-color, #4664ef);
}

.fp-totw-brand-list__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--fp-totw-brand-color, #4664ef);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.fp-totw-brand-list__row--1 .fp-totw-brand-list__rank {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.78rem;
}

.fp-totw-brand-list__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #101828;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-totw-brand-list__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  text-align: right;
  flex-shrink: 0;
}

.fp-totw-brand-list__pts {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--fp-totw-brand-color, #4664ef);
  line-height: 1;
}

.fp-totw-brand-list__row--1 .fp-totw-brand-list__pts {
  font-size: 1.05rem;
}

.fp-totw-brand-list__pts-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1;
}

.fp-totw-brand-list__members {
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1.2;
}

.fp-totw__bench {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.fp-totw__bench-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #101828;
}

.fp-totw__bench-sub {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: #64748b;
}

.fp-totw__bench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fp-totw__bench-card {
  min-width: 0;
}

.fp-totw__bench-card .fp-participant-card {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .fp-totw__bench-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .fp-totw__bench-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .fp-totw__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
  }
  .fp-totw__col--pitch .fp-totw__pitch {
    max-width: none;
  }
  .fp-totw__revelation-card-wrap {
    max-width: none;
  }
}
.fp-totw__pitch {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  background-image: var(--fp-totw-pitch-url);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  aspect-ratio: 3396/2136;
}

.fp-totw__players-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fp-totw__pitch-formation {
  position: absolute;
  left: 1.15rem;
  bottom: 0.85rem;
  z-index: 4;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--fp-accent-lime, #cbe933);
  color: #101828;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

/* Positionnement absolu uniquement sur le terrain (pas l'entraîneur sous le bloc). */
.fp-totw__players-layer > .fp-totw-player {
  --fp-totw-scale: calc(1.05 - var(--fp-totw-y, 50) * 0.0045);
  position: absolute;
  left: calc(var(--fp-totw-x, 50) * 1%);
  top: calc(100% - var(--fp-totw-y, 50) * 1%);
  transform: translate(-50%, -88%) scale(var(--fp-totw-scale));
  width: clamp(64px, 9.5vw, 92px);
  z-index: calc(100 - var(--fp-totw-y, 50));
  text-align: center;
  pointer-events: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.32));
}

.fp-totw-player__card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fp-totw-player__shield-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.fp-totw-player__shield {
  position: relative;
  width: clamp(52px, 8.2vw, 72px);
  height: clamp(62px, 9.6vw, 86px);
  clip-path: polygon(50% 0%, 93% 21%, 93% 79%, 50% 100%, 7% 79%, 7% 21%);
  background: #ffffff;
  border: none;
  box-shadow: inset 0 0 0 3px var(--fp-totw-brand, #4664ef), 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.fp-totw-player--captain .fp-totw-player__shield {
  box-shadow: inset 0 0 0 3px var(--fp-accent-lime, #cbe933), 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 18px rgba(203, 233, 51, 0.45);
}

.fp-totw-player__portrait {
  position: absolute;
  left: 50%;
  top: -18%;
  width: 118%;
  height: 118%;
  transform: translateX(-50%);
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center 12%;
  background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 68% 72% at 50% 38%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 72% at 50% 38%, #000 58%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-totw-player__captain {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  transform: translate(-28%, -28%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--fp-accent-lime, #cbe933);
  color: #101828;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.fp-totw-player__pts {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  transform: translate(28%, -28%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--fp-text);
  background-color: var(--fp-bg-card);
  border-radius: 30px;
  min-width: 20px;
  width: auto;
  max-width: 28px;
  height: 20px;
  padding: 3px 4px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.fp-totw-player__initial {
  font-size: 1.15rem;
  font-weight: 800;
  color: #334155;
}

.fp-totw-player__nameplate {
  margin-top: 0.28rem;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  box-sizing: border-box;
  padding: 0.18rem 0.35rem;
  background: var(--fp-totw-brand, #4664ef);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.fp-totw-player__name {
  display: block;
  margin: 0;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.fp-totw-player__delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-top: 0.22rem;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  box-sizing: border-box;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  background: var(--fp-accent-lime, #cbe933);
  color: #101828;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
}

.fp-totw-player__delta-icon {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  fill: currentColor;
}

.fp-totw-player__delta-value {
  line-height: 1;
}

@media (max-width: 640px) {
  .fp-totw__header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .fp-totw__meta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .fp-totw__week-form {
    width: 100%;
    min-width: 0;
  }
  .fp-totw__week-select {
    min-width: 0;
  }
  .fp-totw__pitch-wrap {
    padding: 0.35rem 0 0.85rem;
  }
  .fp-totw__pitch {
    max-width: none;
    aspect-ratio: 680/1050;
    background-image: var(--fp-totw-pitch-url-m);
    background-size: 100% 100%;
  }
  .fp-totw__players-layer {
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
  }
  .fp-totw__players-layer > .fp-totw-player {
    /* terrain vu de dessus → pas de perspective, tailles homogènes */
    --fp-totw-scale: 1;
    width: clamp(58px, 17vw, 80px);
    left: calc(var(--fp-totw-x-m, var(--fp-totw-x, 50)) * 1%);
    top: calc(100% - var(--fp-totw-y-m, var(--fp-totw-y, 50)) * 1%);
    transform: translate(-50%, -82%) scale(var(--fp-totw-scale));
    z-index: calc(100 - var(--fp-totw-y-m, var(--fp-totw-y, 50)));
  }
  .fp-totw__players-layer > .fp-totw-player .fp-totw-player__shield {
    width: clamp(46px, 13vw, 58px);
    height: clamp(54px, 15vw, 68px);
  }
  .fp-totw__players-layer > .fp-totw-player .fp-totw-player__pts {
    min-width: 19px;
    width: auto;
    max-width: 28px;
    height: 19px;
    padding: 3px 4px;
    font-size: 0.52rem;
  }
  .fp-totw__players-layer > .fp-totw-player .fp-totw-player__captain {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 0.6rem;
  }
  .fp-totw__players-layer > .fp-totw-player .fp-totw-player__nameplate {
    width: clamp(64px, 20vw, 88px);
    min-width: clamp(64px, 20vw, 88px);
    max-width: clamp(64px, 20vw, 88px);
    padding: 0.2rem 0.34rem;
  }
  .fp-totw__players-layer > .fp-totw-player .fp-totw-player__name {
    font-size: 0.6rem;
  }
  .fp-totw__players-layer > .fp-totw-player .fp-totw-player__delta {
    width: clamp(64px, 20vw, 88px);
    min-width: clamp(64px, 20vw, 88px);
    max-width: clamp(64px, 20vw, 88px);
    margin-top: 0.2rem;
    padding: 0.14rem 0.36rem;
    font-size: 0.58rem;
    gap: 0.18rem;
  }
  .fp-totw__players-layer > .fp-totw-player .fp-totw-player__delta-icon {
    width: 0.55rem;
    height: 0.55rem;
  }
  .fp-totw__pitch-formation {
    left: 0.55rem;
    bottom: 0.55rem;
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
  }
  .fp-totw__revelation-card-wrap .fp-participant-card__stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }
}
