/* Mode Défi partagé — v1.26.06. */
.defi-share-body {
  background-color: #d7b07a;
}
.defi-share-page .panel,
.defi-share-game .panel {
  border: 4px solid #7c3f19;
  border-radius: 18px;
  background: rgba(246, 239, 211, .96);
  box-shadow: 0 6px 0 rgba(0,0,0,.16);
}
.defi-share-intro,
.defi-share-form,
.defi-share-hero,
.defi-share-ranking,
.defi-share-error {
  margin: 18px 0;
  padding: 18px;
}
.defi-share-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.defi-share-entry-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 150px;
  padding: 22px;
  color: #2c1a10;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.defi-share-entry-card:hover,
.defi-share-entry-card:focus-visible {
  transform: translateY(-2px);
  background: #fff7dc;
  box-shadow: 0 9px 0 rgba(0,0,0,.16);
}
.defi-share-entry-card--create {
  border-color: #2f6b35 !important;
}
.defi-share-entry-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2f6b35;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}
.defi-share-entry-card:not(.defi-share-entry-card--create) .defi-share-entry-icon {
  background: #7c3f19;
}
.defi-share-entry-card strong,
.defi-share-entry-card small {
  display: block;
}
.defi-share-entry-card strong {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}
.defi-share-entry-card small {
  color: #6a452c;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.4;
}
.defi-share-success,
.defi-share-lock-note {
  margin: 18px 0;
  padding: 16px 18px;
  border-color: #2f6b35 !important;
  background: #eef8d8 !important;
  color: #244d28;
}
.defi-share-lock-note {
  border-color: #9b6a21 !important;
  background: #fff3cf !important;
  color: #614112;
}
.defi-share-note,
.defi-share-date {
  color: #6a452c;
  font-weight: 750;
}
.defi-share-error {
  border-color: #9a2e20 !important;
  background: #fff1e9 !important;
  color: #7a1d12;
  font-weight: 850;
}
.defi-share-form-grid,
.defi-share-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.defi-share-form-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(230px, .9fr) minmax(210px, .82fr) minmax(220px, .95fr);
}
.defi-share-form label,
.defi-share-filters label,
.defi-share-form fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 900;
}
.defi-share-form input[type="text"],
.defi-share-form input[type="email"],
.defi-share-form input[type="search"],
.defi-share-form select {
  width: 100%;
  min-height: 42px;
  border: 2px solid #7c3f19;
  border-radius: 10px;
  padding: 9px 11px;
  background: #fffaf0;
  font: inherit;
}
.defi-share-creator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 2px solid rgba(124,63,25,.35);
  border-radius: 14px;
  background: rgba(255,250,236,.65);
}
.defi-share-creator-grid > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #6a452c;
  font-weight: 750;
}
.defi-share-form fieldset {
  border: 2px solid rgba(124,63,25,.45);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: rgba(255,250,236,.66);
}
.defi-share-form legend {
  padding: 0 6px;
  font-weight: 950;
  white-space: nowrap;
}
.defi-share-choice-fieldset {
  align-content: start;
}
.defi-share-choice-options {
  display: grid;
  gap: 8px;
}
.defi-share-choice-options--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.defi-share-choice-card {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 8px !important;
  min-height: 44px;
  min-width: 0;
  padding: 8px 10px;
  border: 2px solid rgba(124,63,25,.35);
  border-radius: 10px;
  background: #fffaf0;
  cursor: pointer;
  font-weight: 850 !important;
  line-height: 1.15;
  overflow: hidden;
}
.defi-share-choice-card:has(input:checked) {
  border-color: #1f8f45;
  background: #eef8d8;
  box-shadow: inset 0 -2px 0 rgba(31, 143, 69, .18);
}
.defi-share-choice-card input {
  flex: 0 0 auto;
  margin: 0;
}
.defi-share-choice-card .defi-share-choice-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.defi-share-choice-card .defi-share-choice-text em {
  font-style: normal;
  font-weight: 900;
}
.defi-share-choice-card strong {
  font-size: 1.1rem;
}
.defi-share-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.defi-share-presets button,
.defi-secondary-button {
  border: 2px solid #7c3f19;
  border-radius: 999px;
  padding: 9px 13px;
  background: #fffaf0;
  color: #2c1a10;
  font-weight: 900;
  cursor: pointer;
}
.defi-share-presets button:hover,
.defi-secondary-button:hover {
  background: #f3e3bf;
}
.defi-share-filters {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,250,236,.65);
  border: 2px solid rgba(124,63,25,.35);
}
.defi-share-selection-bar {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #2f6b35;
  color: white;
  box-shadow: 0 4px 12px rgba(35,20,11,.18);
}
.defi-share-selection-bar span {
  font-weight: 850;
}
.defi-share-selection-bar .is-ok {
  color: #e8ffd0;
}
.defi-share-race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding: 4px 4px 12px;
}
.defi-share-race-card {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 4px 9px !important;
  align-items: start;
  padding: 10px;
  border: 2px solid rgba(124,63,25,.42);
  border-radius: 12px;
  background: rgba(255,250,236,.85);
  cursor: pointer;
}
.defi-share-race-card:hover {
  border-color: #c5522b;
}
.defi-share-race-card input {
  margin-top: 3px;
}
.defi-share-race-card .race-name {
  font-weight: 950;
  line-height: 1.15;
}
.defi-share-race-card small {
  grid-column: 2;
  color: #6d4b32;
  font-weight: 750;
  line-height: 1.25;
}
.defi-share-submit-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.defi-share-confirmation-note {
  margin: 10px 0 0;
  text-align: right;
  color: #6a452c;
  font-weight: 750;
}
.defi-share-security-note a {
  color: inherit;
  font-weight: 900;
}
.defi-share-recovery-form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.defi-share-recovery-form label {
  flex: 1 1 320px;
}
.defi-share-management-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.defi-share-management-settings {
  margin-top: 16px;
}
.defi-share-management-actions {
  margin: 18px 0;
  padding: 18px;
  border-color: #9b6a21 !important;
  background: #fff8dc !important;
}
.defi-share-management-actions h2 {
  margin: 2px 0 8px;
}
.defi-share-management-actions p {
  margin: 7px 0;
  line-height: 1.45;
}
.defi-share-management-danger-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid rgba(124,63,25,.22);
}
.defi-share-management-danger-actions p {
  color: #6a452c;
  font-weight: 750;
}
.defi-share-danger-zone {
  margin: 18px 0;
  padding: 18px;
  border-color: #9a2e20 !important;
  background: #fff1e9 !important;
}
.defi-share-danger-zone form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.defi-danger-button {
  border: 2px solid #7a1d12;
  border-radius: 999px;
  padding: 9px 13px;
  background: #9a2e20;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.defi-share-creator {
  margin: 5px 0 10px;
  color: #6a452c;
}
.defi-share-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
}
.defi-share-hero h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.defi-share-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}
.defi-share-meta span,
.defi-closed-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fffaf0;
  border: 2px solid rgba(124,63,25,.35);
  font-weight: 850;
}
.defi-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.defi-share-visibility-explanation {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 2px solid #9b6a21;
  border-radius: 12px;
  background: #fff3cf;
  line-height: 1.4;
}
.defi-share-visibility-explanation.is-public {
  border-color: #2f6b35;
  background: #eef8d8;
}
.defi-share-back-management {
  border-color: #2f6b35;
  color: #244d28;
}
.defi-share-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,250,236,.72);
  border: 2px solid rgba(124,63,25,.3);
}
.defi-share-qr img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  background: white;
}
.defi-share-qr small {
  max-width: 190px;
  overflow-wrap: anywhere;
  font-size: .72rem;
  color: #6a452c;
  text-align: center;
}
.defi-share-qr-fallback {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border: 2px dashed #7c3f19;
  border-radius: 10px;
  font-weight: 850;
  text-align: center;
}
.defi-share-table-wrap {
  overflow-x: auto;
}
.defi-share-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.defi-share-table th,
.defi-share-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(124,63,25,.25);
  text-align: left;
}
.defi-share-table th {
  color: #5f3115;
  font-size: .82rem;
  text-transform: uppercase;
}
.defi-share-table td:first-child {
  font-weight: 950;
  width: 70px;
}
.defi-share-table small {
  display: block;
  color: #6d4b32;
}
.optional-label {
  font-size: .78em;
  color: #77533a;
  font-weight: 750;
}
.defi-share-game .defi-start-actions,
.defi-share-game .defi-result-actions {
  flex-wrap: wrap;
}
@media (max-width: 1120px) {
  .defi-share-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .defi-share-title-field,
  .defi-share-duration-field {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .defi-share-entry-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .defi-share-entry-card {
    min-height: 120px;
    padding: 17px;
  }
  .defi-share-creator-grid,
  .defi-share-management-head {
    grid-template-columns: 1fr;
  }
  .defi-share-management-head,
  .defi-share-recovery-form {
    display: grid;
  }
  .defi-share-intro,
  .defi-share-form,
  .defi-share-hero,
  .defi-share-ranking,
  .defi-share-error {
    padding: 14px;
    margin: 14px 0;
  }
  .defi-share-hero {
    grid-template-columns: 1fr;
  }
  .defi-share-qr {
    order: -1;
  }
  .defi-share-selection-bar {
    top: 4px;
    flex-direction: column;
    align-items: flex-start;
  }
  .defi-share-race-grid {
    grid-template-columns: 1fr;
    max-height: 58vh;
  }
  .defi-share-submit-row {
    justify-content: stretch;
  }
  .defi-share-submit-row .defi-primary-button {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .defi-share-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .defi-share-form-grid {
    grid-template-columns: 1fr;
  }
  .defi-share-title-field,
  .defi-share-duration-field {
    grid-column: auto;
  }
  .defi-share-choice-options--two {
    grid-template-columns: 1fr 1fr;
  }
  .defi-share-choice-card {
    padding: 8px;
  }
  .defi-share-choice-card .defi-share-choice-text {
    font-size: .92rem;
  }
}


/* v1.23.60 — choix compacts et filtres robustes */
.defi-share-form-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, .48fr) minmax(150px, .48fr) minmax(220px, .9fr);
  align-items: end;
}
.defi-share-choice-fieldset {
  min-width: 0;
  padding: 9px 10px 11px;
}
.defi-share-choice-options--two {
  grid-template-columns: repeat(2, minmax(54px, 1fr));
}
.defi-share-choice-card {
  grid-template-columns: auto auto !important;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  gap: 7px !important;
  overflow: visible;
}
.defi-share-choice-number {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}
.defi-share-race-card.is-filter-hidden {
  display: none !important;
}
@media (max-width: 1120px) {
  .defi-share-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .defi-share-form-grid {
    grid-template-columns: 1fr;
  }
  .defi-share-choice-options--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v1.23.61 — présentation simplifiée des choix.
   Les anciens boutons radio 10/20 et 4/6 sont remplacés par des listes déroulantes
   afin d'aligner visuellement ces réglages avec le titre et la durée. */
.defi-share-form-grid {
  grid-template-columns: minmax(260px, 1.15fr) minmax(185px, .72fr) minmax(185px, .72fr) minmax(240px, 1fr);
  align-items: end;
}
.defi-share-number-field,
.defi-share-title-field,
.defi-share-duration-field {
  min-width: 0;
}
.defi-share-number-field select,
.defi-share-duration-field select {
  min-height: 42px;
}
@media (max-width: 1120px) {
  .defi-share-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .defi-share-form-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.23.62 — bouton de jeu et médailles dans le classement public. */
.defi-share-actions .defi-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 2px solid #237230;
  border-radius: 999px;
  background: linear-gradient(180deg, #4fa84f, #2f873e);
  color: #fff;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(31, 97, 39, .35), inset 0 -2px 0 rgba(20, 82, 29, .28);
}
.defi-share-actions .defi-primary-button::before {
  content: "▶";
  margin-right: 7px;
  font-size: .92em;
}
.defi-share-actions .defi-primary-button:hover,
.defi-share-actions .defi-primary-button:focus-visible {
  background: linear-gradient(180deg, #5ab75a, #348f43);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  outline: none;
}
.defi-share-actions .defi-primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(31, 97, 39, .35), inset 0 -2px 0 rgba(20, 82, 29, .28);
}
.defi-share-rank-cell {
  white-space: nowrap;
}
.defi-share-rank-badge {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  border: 1px solid rgba(115, 73, 30, .35);
  color: #2b180d;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.55), 0 2px 4px rgba(70, 41, 18, .18);
}
.defi-share-rank-badge.is-gold {
  background: linear-gradient(180deg, #ffe38a, #d9a72f);
}
.defi-share-rank-badge.is-silver {
  background: linear-gradient(180deg, #f4f4f1, #bfc3c9);
}
.defi-share-rank-badge.is-bronze {
  background: linear-gradient(180deg, #efbd8b, #bf7444);
}
.defi-share-rank-badge.is-neutral {
  background: linear-gradient(180deg, #fff3c7, #dfc06b);
}
.defi-share-table td:first-child.defi-share-rank-cell {
  width: 72px;
}
@media (max-width: 620px) {
  .defi-share-actions .defi-primary-button,
  .defi-share-actions .defi-secondary-button {
    width: 100%;
  }
  .defi-share-table td:first-child.defi-share-rank-cell {
    width: 58px;
  }
  .defi-share-rank-badge {
    width: 28px;
    height: 28px;
    font-size: .94rem;
  }
}

/* v1.23.63 — le rang reprend le principe de la page d'accueil :
   numéro dans un rond coloré, sans emoji de médaille. */


/* v1.23.64 — le classement public affiche uniquement la meilleure tentative par pseudo. */
.defi-share-attempts {
  color: #7c4b25;
  font-size: .76rem;
  font-weight: 850;
  opacity: .78;
}

/* v1.23.70 — défis publics et visibilité public/privé. */
.defi-share-visibility-row {
  display: grid;
  grid-template-columns: minmax(260px, .48fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 2px solid rgba(124,63,25,.30);
  border-radius: 14px;
  background: rgba(255,250,236,.62);
}
.defi-share-visibility-row label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}
.defi-share-visibility-row p {
  margin: 0;
  color: #6a452c;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.35;
}
.defi-share-empty {
  margin: 18px 0;
  padding: 22px;
  text-align: center;
}
.defi-share-list-intro h2,
.defi-share-empty h2 {
  margin-top: 0;
}
.defi-share-list-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}
.defi-share-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}
.defi-share-list-card h2 {
  margin: 2px 0 8px;
  color: #2b180d;
}
.defi-share-list-stats {
  margin: 8px 0 0;
  color: #6a452c;
  font-weight: 800;
}
.defi-share-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.defi-share-list-actions .defi-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid #237230;
  border-radius: 999px;
  background: linear-gradient(180deg, #4fa84f, #2f873e);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(31, 97, 39, .35), inset 0 -2px 0 rgba(20, 82, 29, .28);
}
.defi-share-list-actions .defi-primary-button::before {
  content: "▶";
  margin-right: 7px;
  font-size: .9em;
}
.defi-share-list-actions .defi-primary-button:hover,
.defi-share-list-actions .defi-primary-button:focus-visible {
  background: linear-gradient(180deg, #5ab75a, #348f43);
  color: #fff;
  text-decoration: none;
  outline: none;
}
@media (max-width: 760px) {
  .defi-share-visibility-row,
  .defi-share-list-card {
    grid-template-columns: 1fr;
  }
  .defi-share-list-actions {
    justify-content: stretch;
  }
  .defi-share-list-actions .defi-primary-button,
  .defi-share-list-actions .defi-secondary-button {
    width: 100%;
  }
}


/* v1.23.84 — bloc d'introduction compact sur la création d'un défi. */
.defi-share-intro--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}
.defi-share-intro--compact .defi-kicker {
  margin: 0 0 6px;
}
.defi-share-intro--compact h2 {
  margin: 0 0 8px;
}
.defi-share-intro--compact p {
  margin: 0;
  line-height: 1.35;
}
.defi-share-intro-actions {
  display: flex;
  justify-content: flex-end;
}
.defi-share-intro-actions .defi-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
  white-space: nowrap;
}
.defi-share-intro-actions .defi-secondary-button::before {
  content: "▶";
  margin-right: 7px;
  font-size: .9em;
}
@media (max-width: 760px) {
  .defi-share-intro--compact {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .defi-share-intro-actions {
    justify-content: stretch;
  }
  .defi-share-intro-actions .defi-secondary-button {
    width: 100%;
  }
}

/* v1.23.86 — cartes des défis publics plus lisibles : score à battre et temps restant. */
.defi-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.defi-share-card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin: 10px 0 0;
}
.defi-share-score-to-beat,
.defi-share-time-left {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 9px 12px;
  border: 2px solid rgba(124,63,25,.22);
  border-radius: 16px;
  background: rgba(255,250,236,.78);
  color: #2b180d;
  box-shadow: inset 0 -2px 0 rgba(124,63,25,.06);
}
.defi-share-score-to-beat {
  min-width: min(100%, 230px);
  border-color: rgba(42,126,55,.34);
  background: linear-gradient(180deg, rgba(244,255,230,.92), rgba(255,250,236,.88));
}
.defi-share-time-left {
  min-width: min(100%, 180px);
}
.defi-share-score-to-beat span,
.defi-share-time-left span {
  color: #7c3f19;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.defi-share-score-to-beat strong,
.defi-share-time-left strong {
  color: #2b180d;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.1;
}
.defi-share-score-to-beat small {
  color: #4e2f1e;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.15;
}
.defi-share-list-actions .defi-secondary-button {
  min-height: 44px;
  padding: 10px 18px;
}

@media (min-width: 761px) {
  .defi-share-list-card {
    grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  }
}

@media (max-width: 760px) {
  .defi-share-list-card {
    padding: 16px;
  }
  .defi-share-list-card h2 {
    margin-bottom: 10px;
    font-size: 1.55rem;
    line-height: 1.05;
  }
  .defi-share-list-details {
    display: none;
  }
  .defi-share-card-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }
  .defi-share-score-to-beat,
  .defi-share-time-left {
    min-width: 0;
    padding: 10px 12px;
  }
  .defi-share-score-to-beat strong,
  .defi-share-time-left strong {
    font-size: 1rem;
  }
  .defi-share-list-actions .defi-secondary-button {
    justify-content: center;
    text-align: center;
  }
}

/* v1.23.87 — cartes des défis publics restructurées : meilleur score + temps restant. */
.defi-share-list-card {
  grid-template-columns: minmax(240px, 1fr) minmax(310px, .82fr) auto;
  gap: 16px 22px;
  align-items: center;
  padding: 18px 20px;
}
.defi-share-list-card-main {
  min-width: 0;
}
.defi-share-list-card h2 {
  margin: 2px 0 10px;
  line-height: 1.08;
}
.defi-share-list-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,250,236,.78);
  border: 2px solid rgba(124,63,25,.18);
  color: #6a452c;
  font-size: .88rem;
  font-weight: 850;
}
.defi-share-card-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin: 0;
}
.defi-share-best-score,
.defi-share-time-left {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 74px;
  margin: 0;
  padding: 10px 12px;
  border: 2px solid rgba(124,63,25,.22);
  border-radius: 16px;
  background: rgba(255,250,236,.82);
  color: #2b180d;
  box-shadow: inset 0 -2px 0 rgba(124,63,25,.06);
}
.defi-share-best-score {
  border-color: rgba(42,126,55,.34);
  background: linear-gradient(180deg, rgba(244,255,230,.94), rgba(255,250,236,.88));
}
.defi-share-best-score span,
.defi-share-time-left span {
  color: #7c3f19;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .05em;
  line-height: 1.05;
  text-transform: uppercase;
}
.defi-share-best-score strong,
.defi-share-time-left strong {
  color: #2b180d;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.05;
}
.defi-share-best-score small {
  color: #4e2f1e;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.12;
}
.defi-share-list-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-items: stretch;
  min-width: 142px;
}
.defi-share-list-actions .defi-primary-button,
.defi-share-list-actions .defi-secondary-button {
  min-height: 44px;
  padding: 10px 17px;
  white-space: nowrap;
}
.defi-share-list-actions .defi-secondary-button {
  border-color: #7c3f19;
  background: rgba(255,250,236,.82);
  color: #2c1a10;
}

@media (max-width: 900px) {
  .defi-share-list-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .defi-share-list-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .defi-share-list-card {
    padding: 16px;
    gap: 12px;
  }
  .defi-share-list-card h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
  }
  .defi-share-list-details,
  .defi-share-list-stats {
    display: none;
  }
  .defi-share-card-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .defi-share-best-score,
  .defi-share-time-left {
    min-height: 76px;
    padding: 9px 10px;
  }
  .defi-share-best-score span,
  .defi-share-time-left span {
    font-size: .68rem;
  }
  .defi-share-best-score strong,
  .defi-share-time-left strong {
    font-size: .98rem;
  }
  .defi-share-best-score small {
    font-size: .78rem;
  }
  .defi-share-list-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .defi-share-list-actions .defi-primary-button,
  .defi-share-list-actions .defi-secondary-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


/* v1.23.88 — les statistiques joueurs/tentatives ne sont plus affichées sur les cartes publiques. */
.defi-share-list-card-main .defi-share-list-details {
  margin-top: 8px;
}

/* v1.23.89 — protections de création : limite de défis actifs, anti-robot discret. */
.defi-share-security-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 9px 12px;
  border: 2px solid rgba(42,126,55,.35);
  border-radius: 14px;
  background: rgba(241, 250, 224, .78);
  color: #2b180d;
  font-weight: 850;
}
.defi-share-security-note strong {
  color: #2b7e37;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
}
.defi-share-security-note span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,250,236,.9);
  border: 1px solid rgba(124,63,25,.22);
  font-size: .86rem;
}
.defi-share-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@media (max-width: 760px) {
  .defi-share-security-note {
    display: grid;
    gap: 7px;
    margin-top: 8px;
  }
  .defi-share-security-note span {
    justify-content: center;
    text-align: center;
  }
}
