body {
  padding-top: 80px; /* 56 px is the bootstrap navbar height */
}

/* Fonts */
body {
  font-family: 'Roboto', sans-serif;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

.navbar-brand, .nav-link, button {
  font-family: 'Montserrat', sans-serif;
}

.highlighted {
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  font-size: 1.2em;
}

/* Navbar */
.navbar {
  background-color: #144D29; /* dark green background */
  padding-top: env(safe-area-inset-top); /* for iOS */
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #FFFF00 !important; /* Bright yellow */
}

.navbar-nav .nav-link:hover {
  color: #FFD700 !important; /* Gold for hover */
}

/* Default size of the logo image in the navbar */
.navbar-logo {
  height: 35px;
  width: 35px;
  object-fit: cover;
}

/* In tiny phones: shrink logo + text a bit */
@media (max-width: 359.98px) {
  .navbar-logo {
    height: 28px;
    width: 28px;
  }
  .navbar-brand-text {
    font-size: 0.95rem; /* adjust to taste, e.g. 0.85rem */
  }
}

/* Americano menu */
/* Americano dropdown - match offcanvas/nav palette */
.americano-dropdown {
  background-color: #144D29;  /* same green as HoF header */
  border: 0;
}

.americano-dropdown .dropdown-item,
.americano-dropdown .dropdown-item-text,
.americano-dropdown .dropdown-header {
  color: yellow;              /* match your menu text */
}

.americano-dropdown .dropdown-item:hover,
.americano-dropdown .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.10);
  color: yellow;
}

.americano-dropdown .dropdown-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* Disabled "Abrir torneo (pendiente)" should look disabled but still on theme */
.americano-dropdown .dropdown-item.disabled,
.americano-dropdown .dropdown-item:disabled {
  color: rgba(255, 255, 0, 0.45);
}

/* In small screens, ensures that overflowing content is hidden 
and replaced by an ellipsis (…) */
.americano-dropdown .dropdown-item .text-truncate {
  max-width: 180px;
}

/* HoF table */
.pair-ranking-section-anchor {
  scroll-margin-top: 90px;
}

/* Smooth fade-in on ranking page load */
.fade-in {
  animation: fadeIn 180ms ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-card-notification-pulse {
  box-shadow: 0 0 0 0.22rem rgba(253, 126, 20, 0.16), 0 0.85rem 1.6rem rgba(15, 23, 42, 0.12) !important;
  overflow: visible;
  position: relative;
  scroll-margin-top: 90px;
  z-index: 1;
}

.match-card-notification-pulse::after {
  animation: matchNotificationPulse 1.8s ease-out infinite;
  border: 0.18rem solid rgba(253, 126, 20, 0.55);
  border-radius: var(--bs-card-border-radius);
  bottom: -0.28rem;
  content: "";
  left: -0.28rem;
  pointer-events: none;
  position: absolute;
  right: -0.28rem;
  top: -0.28rem;
  z-index: 2;
}

@keyframes matchNotificationPulse {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-card-notification-pulse::after {
    animation: none;
  }
}


/* In small screens, ensures that overflowing content is hidden 
and replaced by an ellipsis (…) */
.table-responsive {
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.table td, .table th {
  max-width: 0; /* Essential for ellipsis to work properly */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; /* Add ellipsis for overflowing content */
}


/* Table headers */
.table thead th {
  background-color: #144D29; /* dark green background */
  color: whitesmoke; /* White text for headers */  
  font-weight: bold;  
}

.table thead th.ranking-sort-header {
  text-overflow: clip;
}

.ranking-sort-button,
.ranking-sort-button:hover,
.ranking-sort-button:focus,
.ranking-sort-button:active {
  color: whitesmoke;
}

.ranking-sort-button:focus-visible {
  outline: 2px solid whitesmoke;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.ranking-sort-icon {
  color: inherit;
}

/* Player detail ranking progress */
.player-ranking-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-ranking-progress-row {
  display: block;
}

.player-ranking-progress-row.clickable-row {
  cursor: pointer;
}

.player-ranking-progress {
  position: relative;
  height: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.player-ranking-progress .progress-bar {
  height: 100%;
}

.player-ranking-bar-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
}

.player-ranking-bar-labels-track {
  color: #000;
}

.player-ranking-bar-labels-fill {
  color: #fff;
  clip-path: inset(0 calc(100% - var(--player-ranking-progress-percent)) 0 0);
}

.player-ranking-scope,
.player-ranking-support {
  min-width: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.player-ranking-support {
  flex: 0 0 auto;
  text-align: right;
}

/* Player detail trend wheels */
.player-trend-card {
  border-radius: 0.5rem;
  border-width: 1px;
}

.player-scope-primary {
  --player-scope-color: var(--bs-primary);
  --player-scope-rgb: var(--bs-primary-rgb);
}

.player-scope-success {
  --player-scope-color: var(--bs-success);
  --player-scope-rgb: var(--bs-success-rgb);
}

.player-scope-warning {
  --player-scope-color: var(--bs-warning);
  --player-scope-rgb: var(--bs-warning-rgb);
}

.player-efficiency-selector-card {
  appearance: none;
  cursor: pointer;
  text-align: inherit;
  align-items: stretch;
  padding: 0;
  font-family: inherit;
  background-color: var(--bs-body-bg);
  border-color: var(--player-scope-color);
  border-top-width: 0.25rem;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.player-efficiency-selector-card:hover {
  border-color: var(--player-scope-color);
  box-shadow: 0 0 0 0.12rem rgba(var(--player-scope-rgb), 0.18);
  transform: translateY(-1px);
}

.player-efficiency-selector-card:focus-visible {
  outline: 2px solid var(--player-scope-color);
  outline-offset: 2px;
}

.player-efficiency-selector-card-active {
  border-color: var(--player-scope-color);
  box-shadow: 0 0 0 0.16rem rgba(var(--player-scope-rgb), 0.22);
}

.player-efficiency-action-row {
  display: flex;
  justify-content: flex-end;
  min-height: 1.25rem;
  margin: -0.35rem -0.05rem 0.05rem 0;
}

.player-efficiency-action {
  display: block;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--player-scope-color);
  border-radius: 0.35rem;
  background-color: var(--bs-body-bg);
  color: var(--player-scope-color);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.player-efficiency-selector-card-active .player-efficiency-action {
  background-color: var(--player-scope-color);
  color: var(--bs-white);
}

.player-efficiency-trend-card {
  border-color: var(--player-scope-color);
  border-top-width: 0.25rem;
}

.player-efficiency-card-disabled {
  border-color: var(--bs-border-color);
  background-color: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

.player-efficiency-selector-card:disabled {
  opacity: 1;
}

.player-efficiency-card-disabled .player-efficiency-action {
  border-color: var(--bs-border-color);
  background-color: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

.player-efficiency-selector-card.player-efficiency-card-disabled:hover {
  border-color: var(--bs-border-color);
  box-shadow: none;
  transform: none;
}

.player-efficiency-selector-card.player-efficiency-card-disabled:focus-visible {
  outline-color: var(--bs-secondary-color);
}

.player-trend-card .card-body {
  padding: 0.75rem 0.5rem;
}

.player-trend-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  min-height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  white-space: normal;
}

.player-status-chip {
  align-items: center;
  border: 1px solid rgba(var(--bs-success-rgb), 0.25);
  border-radius: 999px;
  color: var(--bs-success);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.25rem;
  justify-content: center;
  line-height: 1.2;
  margin-top: 0.15rem;
  padding: 0.22rem 0.55rem;
}

.player-status-chip-registered {
  background-color: rgba(var(--bs-success-rgb), 0.08);
}

.player-status-chip-muted {
  border-color: var(--bs-border-color-translucent);
  color: rgba(var(--bs-secondary-rgb), 0.58);
}

.player-status-icon-registered {
  color: var(--bs-success);
}

.player-status-icon-muted {
  color: rgba(var(--bs-secondary-rgb), 0.58);
}

.player-profile-picker {
  position: relative;
  text-align: left;
}

.player-profile-picker-button {
  align-items: center;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  color: var(--bs-body-color);
  display: flex;
  justify-content: space-between;
  min-height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
  width: 100%;
}

.player-profile-picker-button:focus-visible {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  outline: 0;
}

.player-profile-picker-value,
.player-profile-picker-option {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  min-width: 0;
}

.player-profile-picker-value {
  flex: 1 1 auto;
}

.player-profile-picker-value span,
.player-profile-picker-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-picker-menu {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 0.75rem 1.6rem rgba(15, 23, 42, 0.14);
  display: none;
  left: 0;
  margin-top: 0.25rem;
  max-height: 18rem;
  overflow-y: auto;
  position: absolute;
  right: 0;
  z-index: 1020;
}

.player-profile-picker-open .player-profile-picker-menu {
  display: block;
}

.player-profile-picker-option {
  background-color: var(--bs-body-bg);
  border: 0;
  color: inherit;
  justify-content: space-between;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  text-align: left;
  width: 100%;
}

.player-profile-picker-option:hover,
.player-profile-picker-option:focus {
  background-color: var(--bs-tertiary-bg);
}

.player-profile-picker-option-selected {
  background-color: rgba(var(--bs-primary-rgb), 0.08);
  font-weight: 700;
}

.circular-progress {
  --progress-size: 5rem;
  --progress-track: var(--bs-border-color);
  --progress-stroke: var(--bs-success);
  position: relative;
  width: var(--progress-size);
  height: var(--progress-size);
  margin: 0 auto;
}

.circular-progress-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress-track,
.circular-progress-stroke {
  fill: none;
  stroke-width: 3.25;
}

.circular-progress-track {
  stroke: var(--progress-track);
}

.circular-progress-stroke {
  stroke: var(--progress-stroke);
  stroke-linecap: round;
}

.circular-progress-primary {
  --progress-stroke: var(--bs-primary);
  --medal-scope-color: var(--bs-primary);
  --medal-scope-rgb: var(--bs-primary-rgb);
}

.circular-progress-success {
  --progress-stroke: var(--bs-success);
  --medal-scope-color: var(--bs-success);
  --medal-scope-rgb: var(--bs-success-rgb);
}

.circular-progress-warning {
  --progress-stroke: var(--bs-warning);
  --medal-scope-color: var(--bs-warning);
  --medal-scope-rgb: var(--bs-warning-rgb);
}

.circular-progress-info {
  --progress-stroke: var(--bs-info);
  --medal-scope-color: var(--bs-info);
  --medal-scope-rgb: var(--bs-info-rgb);
}

.circular-progress-danger {
  --progress-stroke: var(--bs-danger);
  --medal-scope-color: var(--bs-danger);
  --medal-scope-rgb: var(--bs-danger-rgb);
}

.circular-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 359.98px) {
  .player-trend-cards {
    --bs-gutter-x: 0.25rem;
  }

  .player-trend-card .card-body {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  .player-trend-title {
    font-size: 0.8rem;
  }

  .player-efficiency-action {
    font-size: 0.68rem;
  }

  .circular-progress {
    --progress-size: 4rem;
  }

  .circular-progress-label {
    font-size: 0.85rem;
  }
}

/* Player detail partner distribution */
.player-partner-progress {
  height: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.player-partner-progress .progress,
.player-partner-progress .progress-bar {
  height: 100%;
}

.player-partner-progress .progress-bar {
  overflow: hidden;
  white-space: nowrap;
}

.player-partner-metric-label {
  margin-bottom: 0.125rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.player-partner-legend {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.player-partner-cards {
  margin-top: 0;
}

.player-partner-card .card-body {
  padding: 0.75rem 0.5rem;
}

.player-partner-card-link {
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.player-partner-card-link:hover {
  border-color: var(--bs-success);
  box-shadow: 0 0 0 0.12rem rgba(var(--bs-success-rgb), 0.18);
  transform: translateY(-1px);
}

.player-partner-card-link:focus-visible {
  outline: 2px solid var(--bs-success);
  outline-offset: 2px;
}

.player-partner-card-empty {
  border-color: var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
}

.player-partner-card-empty.player-efficiency-card-disabled {
  border-color: var(--bs-border-color);
  background-color: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

.player-partner-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.player-partner-card-title {
  justify-content: center;
  width: 100%;
  min-height: 2.3rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  flex-wrap: nowrap;
}

.player-partner-swatch {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
}

.player-partner-swatch-empty {
  background-color: var(--bs-progress-bg);
  border: 1px solid var(--bs-border-color);
}

.player-partner-name {
  overflow-wrap: anywhere;
}

.player-partner-card-title .player-partner-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.player-rival-pair-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-rival-card .player-rival-pair-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  line-height: 1.2;
}

.player-rival-player-row {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-rival-player-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-partner-record {
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.2;
}

.recent-form-record-label {
  margin: 0;
  line-height: 1.5;
}

.player-stats-card {
  overflow: hidden;
}

.player-stats-toggle {
  min-height: 3.4rem;
}

.player-stats-toggle .medallero-player-summary {
  flex: 0 0 auto;
}

.player-stats-summary {
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.player-stats-summary-badge {
  flex: 0 1 auto;
  max-width: min(12rem, 34vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Alignments */
/* Align all numeric table headers to the center for better readability */
.table thead th:nth-child(3),
.table thead th:nth-child(4),
.table thead th:nth-child(5) {
    text-align: center;
}

/* Align Rank data column to the right for better readability */
.table tbody td:nth-child(1) {
    text-align: center;
}
/* Align all numeric columns to the center for better readability */
.table tbody td:nth-child(3),
.table tbody td:nth-child(4),
.table tbody td:nth-child(5) {
    text-align: center;
}

/* Highlights in HoF table*/
/* Ranking highlight for top 3 players */
@media (max-width: 576px) {
  .table tbody td strong {
    font-size: 1.0em !important;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .table tbody td strong {
    font-size: 1.2em !important;
  }
}

@media (min-width: 769px) {
  /* Desktop */
  .table tbody td strong.rank-1 {
    font-size: 1.5em;
  }
  .table tbody td strong.rank-2 {
    font-size: 1.3em;
  }
  .table tbody td strong.rank-3 {
    font-size: 1.2em;
  }
}

/* Table row highlight for the current user player */
.highlight-zoom {  
  border: 5px solid #144D29;
  font-weight: 600;
  color: #144D29;
  box-shadow: 0 0 50px rgba(25, 135, 84, 0.3); /* matches green tone */    
  position: relative;
  z-index: 2;
}

/* Form validation styles and error messages */

/* Default state for all fields */
input:required, select:required {
  border-color: #ced4da; /* Default Bootstrap border color */
}

/* Valid state */
input:valid, select:valid {
  border-color: #198754; /* Bootstrap green for valid */
}

/* Invalid state only after interaction */
input:invalid:focus, select:invalid:focus {
  border-color: #dc3545; /* Bootstrap red for invalid */
}

/* Ensure error message only shows when invalid */
.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  display: none;
}

/* Show error for inputs after user typed something (not placeholder-shown) */
input:invalid:not(:placeholder-shown) ~ .invalid-feedback {
  display: block;
}

/* Show error for selects only after the user has interacted (focused) */
select:invalid:focus ~ .invalid-feedback {
  display: block;
}

.password-toggle-field {
  position: relative;
}

.password-toggle-field .password-toggle-input,
.password-toggle-field .form-control {
  padding-right: 2.75rem;
}

.password-toggle-field .password-toggle-input.is-valid,
.password-toggle-field .password-toggle-input.is-invalid,
.password-toggle-field .form-control.is-valid,
.password-toggle-field .form-control.is-invalid {
  padding-right: 4.75rem;
  background-position: right 2.5rem center;
}

.password-toggle-button {
  position: absolute;
  top: 1.75rem;
  right: 0.75rem;
  transform: translateY(-50%);
  z-index: 5;
  border: 0;
  padding: 0;
  color: #6c757d;
  background: transparent;
  line-height: 1;
}

.password-toggle-button:hover,
.password-toggle-button:focus {
  color: #144D29;
}

.password-toggle-button:focus-visible {
  outline: 2px solid #198754;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Ensure valid fields do not show error messages */
input:valid ~ .invalid-feedback,
select:valid ~ .invalid-feedback {
  display: none;
}

/* Match cards */
/* Ensure player names stay on one line */
/* and truncate long player names */
.card-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */
footer {
  background-color: #144D29;/* Dark green */
  color: #FFFF00; /* Bright yellow text */
  padding: 20px;
  text-align: center;
}

/* Footer clickable link without changing style */
.footer-link {
  color: inherit;           /* Keep same text color */
  text-decoration: none;    /* Remove underline */
}

.footer-link:hover {
  color: inherit;           /* Prevent color change on hover */
  text-decoration: none;    /* Prevent underline on hover */
}

/* Americano styles */

/* Remove bullet points from Django form error lists */
ul.errorlist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.25rem;
}

ul.errorlist li {
  list-style: none;
}

/* Americano header: one-line title + ellipsis */
.americano-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;           /* keep on one line */
}

.americano-title {
  flex: 1 1 auto;
  min-width: 0;                /* required for ellipsis in flex */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.americano-details {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Americano table round header-style buttons */
.btn-americano-header {
  background-color: #144D29; /* same as table header */
  color: whitesmoke;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-americano-header:hover,
.btn-americano-header:focus {
  background-color: #144D29;
  color: whitesmoke;
}

/* Make the "Guardar" button tall (fills two lines under court selector) */
.americano-save-tall {
  min-height: 68px;   /* visually ~2 lines on mobile */
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Americano: light green separator between matches in the same round*/
.americano-match-divider td {
  padding: 0 !important;
  height: 3px; 
  background: transparent;
  border-top: 2px solid rgba(25, 135, 84, 0.5); 
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:focus,
.clickable-row:focus-within {
  outline: none;
}

/* Medallero */
.medallero-player-card {
  border-radius: 0.5rem;
  overflow: hidden;
}

.medallero-player-toggle {
  align-items: center;
  background: var(--bs-card-bg);
  border: 0;
  color: inherit;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  text-align: left;
  width: 100%;
}

.medallero-player-toggle:hover,
.medallero-player-toggle:focus {
  background-color: var(--bs-tertiary-bg);
}

.medallero-player-toggle:focus-visible {
  outline: 0.2rem solid rgba(var(--bs-primary-rgb), 0.25);
  outline-offset: -0.2rem;
}

.medallero-player-summary {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: 0.4rem;
  min-width: 0;
}

.medallero-player-name {
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.medallero-header-meta {
  align-items: center;
  display: flex;
  flex: 1 1 0;
  justify-content: flex-end;
  min-width: 0;
}

.medallero-total {
  align-items: center;
  background-color: var(--bs-light);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-width: 1.75rem;
  padding: 0.3rem 0.45rem;
}

.medallero-icon-strip {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
}

.medallero-medal-icon-small {
  align-items: center;
  display: inline-flex;
  flex: 0 0 1.35rem;
  font-size: 1rem;
  height: 1.35rem;
  justify-content: center;
  line-height: 1;
  margin-left: calc(-1 * var(--medallero-icon-overlap, 0px));
  width: 1.35rem;
}

.medallero-medal-icon-small:first-child {
  margin-left: 0;
}

.medallero-detail-body {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 1rem;
}

.medallero-medal-card {
  --medal-scope-color: var(--bs-primary);
  --medal-scope-rgb: var(--bs-primary-rgb);
  border-color: var(--medal-scope-color);
  border-top-width: 0.25rem;
  overflow: hidden;
}

.medallero-medal-card.circular-progress-primary {
  --medal-scope-color: var(--bs-primary);
  --medal-scope-rgb: var(--bs-primary-rgb);
}

.medallero-medal-card.circular-progress-success {
  --medal-scope-color: var(--bs-success);
  --medal-scope-rgb: var(--bs-success-rgb);
}

.medallero-medal-card.circular-progress-warning {
  --medal-scope-color: var(--bs-warning);
  --medal-scope-rgb: var(--bs-warning-rgb);
}

.medallero-medal-card.circular-progress-info {
  --medal-scope-color: var(--bs-info);
  --medal-scope-rgb: var(--bs-info-rgb);
}

.medallero-medal-card.circular-progress-danger {
  --medal-scope-color: var(--bs-danger);
  --medal-scope-rgb: var(--bs-danger-rgb);
}

.medallero-scope-ribbon {
  background-color: rgba(var(--medal-scope-rgb), 0.16);
  border-bottom: 1px solid rgba(var(--medal-scope-rgb), 0.32);
  color: var(--medal-scope-color);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.35rem 0.5rem;
  text-align: center;
}

.medallero-medal-icon-large {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin: 0.15rem 0 0.65rem;
}

.medallero-medal-card .card-body {
  position: relative;
}

.medallero-medal-click-icon {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(var(--medal-scope-rgb), 0.24);
  border-radius: 999px;
  color: var(--medal-scope-color);
  display: inline-flex;
  font-size: 0.75rem;
  height: 1.25rem;
  justify-content: center;
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  width: 1.25rem;
}

.medallero-medal-name {
  min-height: 2.1rem;
  margin-bottom: 0;
}

.medallero-empty-slot {
  min-height: 100%;
}

@media (max-width: 575.98px) {
  .medallero-player-toggle {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }

  .medallero-player-summary {
    max-width: 55%;
  }

  .medallero-icon-strip {
    gap: 0.15rem;
  }
}
