/* UI del modo de carrera rapido y elementos visuales del cierre. */

:root {
  --quick-ui-line: rgba(255, 255, 255, .1);
  --quick-ui-line-soft: rgba(255, 255, 255, .055);
  --quick-ui-surface: #101319;
  --quick-ui-surface-raised: #151922;
  --quick-ui-text: #f5f6f3;
  --quick-ui-muted: #808691;
  --quick-ui-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Selector de duracion en la creacion ---------- */

#setupScreen .mode-selector,
.mode-selector {
  position: relative;
  margin: 28px 0;
  padding: 13px;
  border: 1px solid var(--quick-ui-line);
  border-radius: 10px;
  background:
    linear-gradient(120deg,
      color-mix(in srgb, var(--team-primary, #ff6333) 5%, transparent),
      transparent 42%),
    rgba(8, 10, 14, .32);
}

#setupScreen .mode-selector > legend,
.mode-selector > legend,
.mode-selector .mode-selector-title {
  width: auto;
  margin: 0 0 10px;
  padding: 0 4px;
  color: #9298a2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.mode-selector-grid,
.mode-selector > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mode-choice {
  position: relative;
  min-width: 0;
  color: inherit;
  cursor: pointer;
}

.mode-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mode-choice > span,
.mode-choice:is(button, [role="radio"]) {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: center;
  min-height: 78px;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid var(--quick-ui-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .022);
  color: var(--quick-ui-text);
  font-family: 'DM Sans', sans-serif;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mode-choice > span::before,
.mode-choice:is(button, [role="radio"])::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 1px solid #505661;
  border-radius: 50%;
  background: #0b0e13;
  box-shadow: inset 0 0 0 3px #0b0e13;
  transition: border-color .18s ease, background .18s ease;
}

.mode-choice b,
.mode-choice strong {
  display: block;
  grid-column: 2;
  color: #f2f3f0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.mode-choice small,
.mode-choice em {
  display: block;
  grid-column: 2;
  margin-top: 5px;
  color: #737a85;
  font-size: 7px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
}

.mode-choice > input:checked + span,
.mode-choice.active > span,
.mode-choice[aria-checked="true"],
.mode-choice[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--team-primary, #ff6333) 62%, white 7%);
  background:
    linear-gradient(120deg,
      color-mix(in srgb, var(--team-primary, #ff6333) 11%, transparent),
      transparent 68%),
    rgba(255, 255, 255, .028);
  box-shadow: inset 2px 0 var(--team-primary, #ff6333);
}

.mode-choice > input:checked + span::before,
.mode-choice.active > span::before,
.mode-choice[aria-checked="true"]::before,
.mode-choice[aria-pressed="true"]::before {
  border-color: var(--team-secondary, #cfff47);
  background: var(--team-secondary, #cfff47);
}

.mode-choice:hover > span,
.mode-choice:is(button, [role="radio"]):hover {
  border-color: color-mix(in srgb, var(--team-primary, #ff6333) 45%, var(--quick-ui-line));
  transform: translateY(-1px);
}

.mode-choice > input:focus-visible + span,
.mode-choice:is(button, [role="radio"]):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--team-secondary, #cfff47) 72%, white);
  outline-offset: 2px;
}

.mode-choice:has(> input:disabled),
.mode-choice[aria-disabled="true"] {
  opacity: .46;
  cursor: not-allowed;
}

/* ---------- Indicador persistente del modo elegido ---------- */

.mode-indicator {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--team-primary, #ff6333) 34%, var(--quick-ui-line));
  border-radius: 99px;
  background: color-mix(in srgb, var(--team-primary, #ff6333) 6%, rgba(12, 15, 20, .82));
  color: color-mix(in srgb, var(--team-secondary, #cfff47) 72%, white);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .8px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.mode-indicator::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent);
}

.mode-indicator.quick,
.mode-indicator[data-mode="quick"],
body[data-mode="quick"] .mode-indicator {
  border-color: color-mix(in srgb, var(--team-secondary, #cfff47) 32%, var(--quick-ui-line));
  background: color-mix(in srgb, var(--team-secondary, #cfff47) 7%, rgba(12, 15, 20, .82));
}

.mode-indicator.standard,
.mode-indicator[data-mode="standard"],
.mode-indicator[data-mode="normal"],
body[data-mode="story"] .mode-indicator {
  color: #aeb4bd;
}

.career-head > .mode-indicator,
.report-heading > .mode-indicator {
  margin-top: 8px;
}

#seasonLabel .mode-indicator {
  margin-left: 7px;
  vertical-align: middle;
}

/* ---------- Titulos agrupados por equipo en el cierre ---------- */

#finalTeamTitles:empty {
  display: none;
}

.final-team-titles {
  display: grid;
  gap: 0;
  margin: 6px 0 22px;
  overflow: hidden;
  border: 1px solid #c9c9c4;
  border-top: 2px solid var(--team-primary, #ff6333);
  border-radius: 9px;
  background: #e9e9e5;
}

.final-team-section {
  padding: 20px 0 2px;
  border-bottom: 1px solid #aaa;
}

.final-team-titles > header,
.final-team-titles .team-titles-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #ccccca;
  color: #666b70;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.team-title-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 14px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid #d0d0cc;
  color: #16191d;
}

.team-title-row:last-child {
  border-bottom: 0;
}

.team-title-row.has-titles {
  box-shadow: inset 2px 0 color-mix(in srgb, var(--team-primary, #ff6333) 70%, transparent);
}

.team-title-club {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.team-title-club > img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.team-title-club > div {
  min-width: 0;
}

.team-title-club b,
.team-title-club small {
  display: block;
}

.team-title-club b {
  overflow: hidden;
  color: #171a1e;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-title-club small {
  margin-top: 3px;
  color: #74787d;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .4px;
}

.team-title-row:has(> img) {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.team-title-row > img,
.team-title-row .team-title-logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.team-title-row > :not(img, .team-title-total, .team-title-breakdown) {
  min-width: 0;
}

.team-title-row:has(> img) > :not(img, .team-title-total, .team-title-breakdown) {
  grid-column: 2;
}

.team-title-row b,
.team-title-row strong,
.team-title-row .team-title-name {
  overflow: hidden;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-title-total {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 33px;
  padding: 6px 7px;
  border-radius: 6px;
  background: #15181d;
  color: color-mix(in srgb, var(--team-secondary, #cfff47) 78%, white);
  font: 14px/1 'Archivo Black', sans-serif;
  text-align: center;
}

.team-title-total b,
.team-title-total small {
  display: block;
  overflow: visible;
  color: inherit;
  text-align: center;
  white-space: nowrap;
}

.team-title-total b {
  font: 14px/1 'Archivo Black', sans-serif;
}

.team-title-total small {
  margin-top: 3px;
  font-size: 5px;
  font-weight: 900;
  letter-spacing: .4px;
}

.team-title-row:has(> img) > .team-title-total {
  grid-column: 3;
}

.team-title-breakdown {
  display: flex;
  grid-column: 1;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  color: #6c7075;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.35;
}

.team-title-row:has(> img) > .team-title-breakdown {
  grid-column: 2;
}

.team-title-breakdown > span,
.team-title-breakdown > small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid #d0d0cc;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  font-size: 6px;
  font-weight: 800;
}

.team-title-breakdown .no-team-titles {
  border-style: dashed;
  background: transparent;
  color: #85898e;
}

.final-team-titles .empty-honors,
.final-team-titles .team-title-empty {
  padding: 18px 12px;
  border: 0;
  background: transparent;
  color: #767a7f;
  font-size: 8px;
  text-align: center;
}

/* ---------- Foto real del referente historico ---------- */

.top100-card:has(> .reference-player-photo) {
  grid-template-columns: 110px auto minmax(0, 1fr) auto;
}

.reference-player-photo {
  display: grid;
  gap: 6px;
  width: 110px;
  margin: 0;
}

.reference-photo-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--team-primary, #ff6333) 44%, rgba(255, 255, 255, .11));
  border-radius: 8px;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--team-primary, #ff6333) 18%, #1a1e27),
      #090c11 76%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.reference-photo-frame::before {
  content: "HISTORIA NBA";
  position: absolute;
  z-index: 0;
  inset: 50% auto auto 50%;
  color: rgba(255, 255, 255, .08);
  font: 11px/1 'Archivo Black', sans-serif;
  letter-spacing: -.3px;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.reference-photo-frame > span {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  color: color-mix(in srgb, var(--team-secondary, #cfff47) 68%, white);
  font: 28px/1 'Archivo Black', sans-serif;
  letter-spacing: -1px;
  transform: translate(-50%, -50%);
  transition: opacity .18s ease;
}

#historicComparisonPhoto,
.reference-photo-frame > img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(.88) contrast(1.03);
  opacity: 0;
  transition: opacity .2s ease;
}

.reference-player-photo.loaded #historicComparisonPhoto {
  opacity: 1;
}

.reference-player-photo.loaded .reference-photo-frame > span {
  opacity: 0;
}

#historicComparisonPhoto:not([src]),
#historicComparisonPhoto[src=""],
.reference-player-photo.unavailable #historicComparisonPhoto {
  opacity: 0;
}

.reference-player-photo figcaption {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reference-player-photo figcaption > b {
  color: #e5e7e9;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .65px;
}

.reference-player-photo figcaption > .photo-credit {
  display: block;
  overflow: hidden;
  color: #6f7681;
  font-size: 5px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-player-photo figcaption > .photo-credit[href]:hover,
.reference-player-photo figcaption > .photo-credit[href]:focus-visible {
  color: #aeb4bd;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.champion-card .photo-credit {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 11px;
  color: #707783;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: .35px;
  line-height: 1.35;
  text-decoration: none;
}

.champion-card .photo-credit::after {
  content: "↗";
  margin-left: 4px;
  color: color-mix(in srgb, var(--team-secondary, #cfff47) 62%, white);
}

.champion-card .photo-credit:hover,
.champion-card .photo-credit:focus-visible {
  color: #b0b6bf;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Fotografias de trofeos ---------- */

.trophy-photo {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.champion-card:has(> .trophy-photo) {
  grid-template-columns: minmax(145px, .58fr) minmax(0, 1.42fr);
}

.champion-card > .trophy-photo {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 178px);
  height: 178px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--team-primary, #ff6333) 13%, transparent), transparent 62%),
    #0b0e13;
  box-shadow: 0 15px 28px rgba(0, 0, 0, .3);
  filter: saturate(.9) contrast(1.04);
  animation: quick-ui-photo-in .45s var(--quick-ui-ease) both;
}

.champion-card > .trophy-photo[data-fit="contain"],
.champion-card > .trophy-photo.contain {
  padding: 9px;
  object-fit: contain;
}

.honor-row:has(.trophy-photo) {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.honor-row:has(.trophy-photo) > div {
  min-width: 0;
}

.honor-row:has(.trophy-photo) > div > span,
.honor-row:has(.trophy-photo) > div > b {
  display: block;
}

.honor-row:has(.trophy-photo) > div > b {
  margin-top: 3px;
}

.honor-row .photo-credit {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #777b80;
  font-size: 5px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.honor-row .photo-credit:hover,
.honor-row .photo-credit:focus-visible {
  color: #31353a;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.honor-row .trophy-photo,
.team-title-row .trophy-photo {
  width: 32px;
  height: 32px;
  border: 1px solid #d0d0cc;
  border-radius: 6px;
  background: #deded9;
  object-fit: contain;
}

.team-title-breakdown .trophy-photo {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.season-title .trophy-photo,
.season-log-awards .trophy-photo {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

@keyframes quick-ui-photo-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .top100-card:has(> .reference-player-photo) {
    grid-template-columns: 92px auto minmax(0, 1fr);
  }

  .reference-player-photo {
    width: 92px;
  }

  .top100-card:has(> .reference-player-photo) > .top100-score {
    grid-column: 2 / -1;
    text-align: left;
  }

  .champion-card:has(> .trophy-photo) {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .champion-card > .trophy-photo {
    width: 112px;
    height: 138px;
  }
}

@media (max-width: 520px) {
  .mode-selector-grid,
  .mode-selector > div {
    grid-template-columns: 1fr;
  }

  .mode-choice > span,
  .mode-choice:is(button, [role="radio"]) {
    min-height: 67px;
  }

  .top100-card:has(> .reference-player-photo) {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
  }

  .top100-card:has(> .reference-player-photo) > .reference-player-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .top100-card:has(> .reference-player-photo) > .top100-rank {
    grid-column: 2;
    grid-row: 1;
  }

  .top100-card:has(> .reference-player-photo) > .top100-rank + div {
    grid-column: 2;
    grid-row: 2;
  }

  .top100-card:has(> .reference-player-photo) > .top100-score {
    grid-column: 1 / -1;
  }

  .reference-player-photo {
    width: 78px;
  }

  .team-title-row,
  .team-title-row:has(> img) {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding-inline: 9px;
  }

  .team-title-row:not(:has(> img)) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .team-title-row > img,
  .team-title-row .team-title-logo {
    width: 30px;
    height: 30px;
  }

  .champion-card:has(> .trophy-photo) {
    grid-template-columns: 1fr;
  }

  .champion-card > .trophy-photo {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 220px);
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-choice > span,
  .mode-choice:is(button, [role="radio"]),
  .champion-card > .trophy-photo {
    transition: none;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .mode-choice > input:checked + span,
  .mode-choice.active > span,
  .mode-choice[aria-checked="true"],
  .mode-choice[aria-pressed="true"] {
    outline: 2px solid Highlight;
  }
}

/* ---------- Resumen final legible + logros por equipo ---------- */

#endingScreen .summary-label {
  margin-block: 13px 9px;
  font-size: 11px;
}

#endingScreen .final-stats b {
  font-size: 27px;
}

#endingScreen .final-stats span {
  font-size: 10px;
}

#endingScreen .season-log-club b {
  font-size: 11px;
}

#endingScreen .season-log-club small {
  font-size: 7px;
}

#endingScreen .final-season-log > .season-log-row > header > strong,
#endingScreen .season-log-stats b {
  font-size: 15px;
}

#endingScreen .season-log-stats span {
  font-size: 7px;
}

#endingScreen .final-season-log > .season-log-row > p {
  font-size: 9px;
}

#endingScreen .season-log-awards > * {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 7px;
}

#endingScreen .season-log-awards .trophy-photo {
  width: 15px;
  height: 15px;
}

#endingScreen .season-log-empty,
#endingScreen .empty-honors {
  font-size: 12px;
}

#endingScreen .honor-row > div > span {
  font-size: 13px;
  font-weight: 800;
}

#endingScreen .honor-row > div > b,
#endingScreen .final-skill span {
  font-size: 11px;
}

#endingScreen .final-skill b {
  font-size: 19px;
}

#endingScreen .honor-row .photo-credit {
  font-size: 7px;
}

#endingScreen .achievement-row,
#endingScreen .idolatry-row {
  min-height: 42px;
  font-size: 12px;
}

#endingScreen .achievement-row b,
#endingScreen .idolatry-row b {
  font-size: 19px;
}

#endingScreen .idolatry-team {
  min-width: 0;
}

#endingScreen .idolatry-team > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#endingScreen .idolatry-team > span > small {
  font-size: 8px;
}

#endingScreen .team-title-row {
  grid-template-columns: minmax(155px, .72fr) minmax(0, 1.55fr) 94px;
  gap: 10px 14px;
  min-height: 88px;
  padding-block: 12px;
}

#endingScreen .team-title-club {
  grid-column: 1;
  grid-row: 1;
}

#endingScreen .team-title-club b {
  font-size: 12px;
}

#endingScreen .team-title-club small {
  font-size: 8px;
}

#endingScreen .team-title-breakdown {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 8px;
}

#endingScreen .team-achievement-group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}

#endingScreen .team-achievement-group > small {
  padding-top: 4px;
  color: #777c82;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .65px;
}

#endingScreen .team-achievement-group > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
}

#endingScreen .team-achievement-group > div > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #d0d0cc;
  border-radius: 99px;
  background: rgba(255, 255, 255, .38);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.3;
}

#endingScreen .team-achievement-group.individual > div > span:not(.no-team-awards) {
  border-color: color-mix(in srgb, var(--team-primary, #ff6333) 26%, #d0d0cc);
  color: #3f4246;
}

#endingScreen .team-achievement-group .no-team-titles,
#endingScreen .team-achievement-group .no-team-awards {
  border-style: dashed;
  background: transparent;
  color: #85898e;
}

#endingScreen .team-title-total {
  display: grid;
  grid-column: 3;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(38px, 1fr));
  min-width: 94px;
  padding: 6px;
  gap: 5px;
}

#endingScreen .team-title-total > span {
  display: grid;
  place-items: center;
  align-content: center;
}

#endingScreen .team-title-total > span + span {
  border-left: 1px solid rgba(255, 255, 255, .16);
}

#endingScreen .team-title-total b {
  font-size: 18px;
}

#endingScreen .team-title-total small {
  font-size: 7px;
}

#endingScreen .top100-card > div {
  min-width: 0;
}

#endingScreen .top100-rank {
  font-size: 48px;
}

#endingScreen .top100-card h4 {
  overflow-wrap: anywhere;
  font-size: 24px;
}

#endingScreen .top100-card > div > span {
  overflow-wrap: anywhere;
  font-size: 12px;
}

#endingScreen .top100-card small {
  font-size: 10px;
}

#endingScreen .top100-score {
  font-size: 31px;
}

#endingScreen .reference-player-photo figcaption b {
  font-size: 8px;
}

#endingScreen .reference-player-photo .photo-credit {
  font-size: 7px;
}

@media (max-width: 650px) {
  #endingScreen .team-title-row {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  #endingScreen .team-title-club {
    grid-column: 1;
    grid-row: 1;
  }

  #endingScreen .team-title-breakdown {
    grid-column: 1;
    grid-row: 2;
  }

  #endingScreen .team-title-total {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: 1fr;
    min-width: 62px;
  }

  #endingScreen .team-title-total > span + span {
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    border-left: 0;
  }

  #endingScreen .team-achievement-group {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  #endingScreen .top100-card {
    gap: 12px;
    padding: 16px;
  }

  #endingScreen .season-log-stats > div {
    padding-inline: 2px;
  }
}
