:root {
  --scores-navy: #071b66;
  --scores-blue: #0b35cf;
  --scores-blue-light: #1c55e5;
  --scores-yellow: #ffec3d;
  --scores-surface: #ffffff;
  --scores-border: #dce5f5;
  --scores-muted: #61708f;
}

html.scores-embedded,
html.scores-embedded body {
  height: auto !important;
  overflow: auto !important;
  background: transparent !important;
}

html.scores-embedded .preloader,
html.scores-embedded .vs-menu-wrapper,
html.scores-embedded .sidemenu-wrapper,
html.scores-embedded .vs-header,
html.scores-embedded .breadcumb-wrapper,
html.scores-embedded .footer-wrapper,
html.scores-embedded .scrollToTop,
html.scores-embedded .schoolbot-float,
html.scores-embedded .whatsapp-float,
html.scores-embedded .scores-dashboard-head,
html.scores-embedded .scores-live-notice,
html.scores-embedded .scores-modal {
  display: none !important;
}

html.scores-embedded .scores-page {
  padding: 0;
  background: transparent;
}

html.scores-embedded .scores-page::before,
html.scores-embedded .scores-page::after {
  display: none;
}

html.scores-embedded .scores-page > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

html.scores-embedded .scores-ranking,
html.scores-embedded .scores-panel {
  box-shadow: none;
}

html.scores-embedded .scores-panel {
  margin-bottom: 0;
}

html.scores-admin-embedded .scores-public-updated {
  display: none;
}

html.scores-ranking-embedded .scores-ranking {
  margin-bottom: 0;
}

html:not(.scores-embedded) .scores-panel,
html.scores-ranking-embedded .scores-panel {
  display: none;
}

.scores-page {
  position: relative;
  overflow: hidden;
  padding: 46px 0 90px;
  background:
    radial-gradient(circle at 4% 6%, rgba(255, 236, 61, 0.22), transparent 18%),
    radial-gradient(circle at 96% 34%, rgba(28, 85, 229, 0.12), transparent 24%),
    #f5f8fe;
}

.scores-page::before,
.scores-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.scores-loading-layer {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  min-height: 420px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 32px;
  color: var(--scores-navy);
  background: rgba(246, 249, 255, .9);
  text-align: center;
  backdrop-filter: blur(3px);
}

.scores-loading-layer strong {
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
}

.scores-loading-layer > span:not(.scores-loading-spinner) {
  color: #61749b;
  font-size: 14px;
}

.scores-loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(29, 92, 231, .18);
  border-top-color: var(--scores-blue);
  border-radius: 50%;
  animation: scores-loading-spin .8s linear infinite;
}

.scores-page.is-loading > .container {
  opacity: .32;
  filter: blur(1px);
  pointer-events: none;
}

@keyframes scores-loading-spin {
  to { transform: rotate(360deg); }
}

.scores-page::before {
  top: 230px;
  right: -130px;
  width: 360px;
  height: 360px;
  border: 58px solid rgba(11, 53, 207, 0.04);
}

.scores-page::after {
  bottom: -90px;
  left: 7%;
  width: 190px;
  height: 190px;
  background: rgba(255, 236, 61, 0.12);
}

.scores-dashboard {
  position: relative;
  z-index: 1;
}

.scores-dashboard-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(125deg, #071b66 0%, #0b35cf 70%, #164ee0 100%);
  padding: 34px 38px;
  box-shadow: 0 20px 46px rgba(9, 35, 123, 0.2);
}

.scores-dashboard-head::before {
  content: "";
  position: absolute;
  top: -105px;
  right: 31%;
  width: 230px;
  height: 230px;
  border: 38px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.scores-dashboard-head::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -105px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 236, 61, 0.12);
}

.scores-heading,
.scores-head-actions {
  position: relative;
  z-index: 1;
}

.scores-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: var(--scores-yellow);
  color: var(--scores-navy);
  padding: 8px 13px;
  font-family: "Fredoka", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.scores-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scores-blue);
  box-shadow: 0 0 0 3px rgba(11, 53, 207, 0.14);
}

.scores-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scores-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.scores-text {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.scores-head-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
}

.scores-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  border: 2px solid var(--scores-yellow);
  border-radius: 999px;
  background: var(--scores-yellow);
  color: var(--scores-navy);
  padding: 10px 21px;
  font-family: "Fredoka", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.scores-btn:hover,
.scores-btn:focus-visible {
  color: var(--scores-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.scores-btn.is-secondary {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.scores-btn.is-secondary:hover,
.scores-btn.is-secondary:focus-visible {
  background: #fff;
  color: var(--scores-blue);
}

.scores-live-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  border: 1px solid #e7dc79;
  border-radius: 14px;
  background: #fffceb;
  color: #665b1c;
  padding: 12px 17px;
  font-size: 13px;
}

.scores-live-notice i {
  color: #b69e00;
  font-size: 17px;
}

.scores-live-notice.is-live {
  border-color: #b9e5ca;
  background: #effbf3;
  color: #176438;
}

.scores-live-notice.is-live i {
  color: #1b8a4b;
}

.scores-live-notice.is-error {
  border-color: #f0c4c4;
  background: #fff3f3;
  color: #9c2525;
}

.scores-live-notice.is-error i {
  color: #c43232;
}

.scores-live-notice.is-paused {
  border-color: #ead77c;
  background: #fff9d7;
  color: #765c00;
}

.scores-live-notice.is-paused i {
  color: #b18a00;
}

.scores-empty-row td {
  padding: 42px 20px !important;
  color: var(--scores-muted) !important;
  text-align: center !important;
  font-weight: 600 !important;
}

.scores-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.scores-team-card {
  --team-accent: #1d5ce7;
  --team-soft: #edf4ff;
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 145px;
  overflow: hidden;
  border: 1px solid var(--scores-border);
  border-top: 5px solid var(--team-accent);
  border-radius: 22px;
  background: var(--scores-surface);
  padding: 20px;
  box-shadow: 0 13px 34px rgba(18, 49, 116, 0.09);
}

.scores-team-card::after {
  content: "";
  position: absolute;
  right: -43px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--team-soft);
}

.scores-team-card.is-white {
  --team-accent: #a8b6cf;
  --team-soft: #f0f3f8;
}

.scores-team-card.is-yellow {
  --team-accent: #f2cf00;
  --team-soft: #fff9cf;
}

.scores-position {
  position: absolute;
  top: 12px;
  right: 13px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(7, 27, 102, 0.1);
  border-radius: 50%;
  background: #fff;
  color: var(--scores-navy);
  font-family: "Fredoka", sans-serif;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 5px 13px rgba(10, 31, 91, 0.1);
}

.scores-team-logo-wrap {
  display: grid;
  place-items: center;
  width: 76px;
  height: 88px;
}

.scores-team-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scores-team-copy {
  min-width: 0;
}

.scores-team-copy span {
  display: block;
  margin-bottom: 1px;
  color: var(--scores-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scores-team-copy h2 {
  margin: 0;
  color: var(--scores-navy);
  font-size: 26px;
  line-height: 1;
}

.scores-total {
  position: relative;
  z-index: 1;
  min-width: 77px;
  padding-top: 19px;
  text-align: right;
}

.scores-total strong {
  display: block;
  color: var(--team-accent);
  font-family: "Fredoka", sans-serif;
  font-size: 40px;
  line-height: 0.95;
}

.scores-team-card.is-white .scores-total strong {
  color: #526789;
}

.scores-team-card.is-yellow .scores-total strong {
  color: #b39200;
}

.scores-total span {
  display: block;
  margin-top: 6px;
  color: var(--scores-muted);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Clasificacion general en grafico de barras */
.scores-ranking {
  margin-bottom: 22px;
  border: 1px solid var(--scores-border);
  border-radius: 25px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 16px 42px rgba(18, 49, 116, 0.09);
}

.scores-ranking-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.scores-ranking-head h2 {
  margin: 0;
  color: var(--scores-navy);
  font-size: 29px;
}

.scores-ranking-context {
  border-radius: 999px;
  background: #eef4ff;
  color: var(--scores-blue);
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scores-ranking .scores-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin: 0;
}

.scores-ranking .scores-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 450px;
  overflow: visible;
  border: 0;
  border-top: 5px solid var(--team-accent);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(255, 255, 255, 0.28));
  padding: 12px 18px 18px;
  box-shadow: none;
}

.scores-ranking .scores-team-card::after {
  display: none;
}

.scores-ranking .scores-position {
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  font-size: 15px;
  box-shadow: none;
}

.scores-ranking .scores-team-card[data-rank="1"] .scores-position {
  background: #fff0a6;
  color: #725600;
}

.scores-ranking .scores-team-card[data-rank="2"] .scores-position {
  background: #e8edf5;
  color: #4f607d;
}

.scores-ranking .scores-team-card[data-rank="3"] .scores-position {
  background: #f3ded0;
  color: #7a482a;
}

.scores-ranking .scores-team-logo-wrap {
  width: 68px;
  height: 78px;
  perspective: 420px;
}

.scores-ranking .scores-team-logo-wrap img {
  transform-origin: center bottom;
  transition: transform 360ms cubic-bezier(.2, .8, .25, 1), filter 360ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .scores-ranking .scores-team-card:hover .scores-team-logo-wrap img {
    filter: drop-shadow(0 11px 9px rgba(10, 36, 105, .22));
    transform: translateY(-8px) rotateX(7deg) rotateY(-11deg) scale(1.1);
  }

  .scores-ranking .scores-team-card.is-yellow:hover .scores-team-logo-wrap img {
    filter: drop-shadow(0 11px 9px rgba(177, 133, 0, .28));
  }
}

.scores-team-identity {
  position: absolute;
  bottom: calc(var(--score-level, 0) * 1% + 10px);
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  width: 190px;
  max-width: 190%;
  transform: translateX(-50%);
  transition: bottom 650ms ease;
}

.scores-ranking .scores-team-copy {
  display: block;
  text-align: center;
}

.scores-ranking .scores-team-copy strong {
  display: block;
  color: var(--scores-navy);
  font-family: "Fredoka", sans-serif;
  font-size: 23px;
  line-height: 1;
}

.scores-bar-area {
  order: 5;
  position: relative;
  display: block;
  flex: 0 0 410px;
  width: 100%;
  height: 410px;
  min-height: 410px;
  min-width: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 96%, rgba(92, 112, 148, .12), rgba(233, 240, 250, 0) 56%);
}

.scores-bar-area::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 230px;
  border-bottom: 2px solid #c9d4e7;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 56px,
    rgba(127, 146, 182, 0.12) 57px,
    transparent 58px
  );
}

.scores-bar-track {
  position: absolute;
  bottom: 2px;
  left: 50%;
  display: block;
  width: min(58%, 155px);
  height: 230px;
  overflow: visible;
  border: 0;
  background: transparent;
  isolation: isolate;
  transform: translateX(-50%);
}

.scores-bar-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 0;
  border-radius: 14px 14px 4px 4px;
  border: 1px solid rgba(9, 44, 170, .42);
  background: linear-gradient(180deg, #2867ef, #0b35cf);
  box-shadow: 8px 13px 0 rgba(10, 44, 166, .18), 0 16px 25px rgba(11, 53, 207, .2);
  transform: perspective(500px) rotateX(1deg);
  transform-origin: bottom center;
  transition: height 650ms ease, transform 650ms ease;
}

.scores-bar-fill::before,
.scores-bar-fill::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

.scores-bar-fill::before {
  top: -8px;
  right: 4px;
  left: 4px;
  height: 8px;
  border: 1px solid rgba(137, 177, 255, .75);
  border-bottom: 0;
  border-radius: 12px 12px 2px 2px;
  background: linear-gradient(180deg, #79a7ff, #3675f0);
  transform: skewX(-35deg);
}

.scores-bar-fill::after {
  top: -4px;
  right: -9px;
  bottom: 2px;
  width: 9px;
  border-radius: 0 8px 3px 0;
  background: linear-gradient(180deg, #164bd0, #06258f);
  transform: skewY(-36deg);
  transform-origin: left top;
}

.scores-team-card.is-white .scores-bar-fill {
  border: 2px solid #8294b0;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #e6edf7 100%);
  box-shadow: 8px 13px 0 rgba(79, 98, 132, .2), 0 16px 25px rgba(66, 86, 120, .2);
}

.scores-team-card.is-white .scores-bar-fill::before {
  border-color: #c8d4e5;
  background: linear-gradient(180deg, #ffffff, #e6edf7);
}

.scores-team-card.is-white .scores-bar-fill::after {
  background: linear-gradient(180deg, #c5d0e1, #8294b0);
}

.scores-team-card.is-yellow .scores-bar-fill {
  background: linear-gradient(180deg, #ffec3d, #edc900);
  border-color: rgba(185, 145, 0, .48);
  box-shadow: 8px 13px 0 rgba(174, 136, 0, .17), 0 16px 25px rgba(213, 177, 0, .2);
}

.scores-team-card.is-yellow .scores-bar-fill::before {
  border-color: #fff6a1;
  background: linear-gradient(180deg, #fff59b, #ffdf18);
}

.scores-team-card.is-yellow .scores-bar-fill::after {
  background: linear-gradient(180deg, #e8bd00, #ad8700);
}

/* Relieve 3D limpio: profundidad dentro de la barra, sin laterales separados. */
.scores-bar-fill {
  border-color: rgba(9, 44, 170, .56);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, .22), inset -7px 0 0 rgba(4, 31, 128, .18), 0 13px 22px rgba(11, 53, 207, .2);
  transform: none;
}

.scores-bar-fill::before,
.scores-bar-fill::after {
  display: none;
}

.scores-team-card.is-white .scores-bar-fill {
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, .9), inset -7px 0 0 rgba(111, 130, 162, .15), 0 13px 22px rgba(66, 86, 120, .2);
}

.scores-team-card.is-yellow .scores-bar-fill {
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, .38), inset -7px 0 0 rgba(183, 139, 0, .16), 0 13px 22px rgba(213, 177, 0, .2);
}

.scores-bar-fill.is-zero {
  height: 3px !important;
  border-radius: 3px;
  opacity: 0.55;
  box-shadow: none;
}

.scores-bar-fill.is-zero::before,
.scores-bar-fill.is-zero::after {
  display: none;
}

.scores-ranking .scores-total {
  display: block;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.scores-ranking .scores-total strong {
  font-size: 31px;
}

.scores-public-updated {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #edf1f8;
}

.scores-panel {
  overflow: hidden;
  border: 1px solid var(--scores-border);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 49, 116, 0.09);
}

.scores-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 20px;
}

.scores-panel-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--scores-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.scores-panel-head h2 {
  margin: 0;
  color: var(--scores-navy);
  font-size: 29px;
}

.scores-updated {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  color: var(--scores-muted);
  font-size: 12px;
  text-align: right;
}

.scores-updated i {
  color: var(--scores-blue);
}

.scores-updated.is-pending,
.scores-updated.is-pending i {
  color: #9a6810;
}

.scores-timezone {
  border-radius: 999px;
  background: #edf3ff;
  color: var(--scores-blue);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.scores-filters {
  display: flex;
  gap: 13px;
  align-items: end;
  flex-wrap: wrap;
  border-top: 1px solid #edf1f8;
  border-bottom: 1px solid #edf1f8;
  background: #f9fbff;
  padding: 13px 30px;
}

.scores-filter-field {
  display: flex;
  min-width: min(100%, 300px);
  flex: 1 1 260px;
  flex-direction: column;
  gap: 5px;
  color: #52617f;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.scores-filter-field select {
  width: 100%;
  min-height: 39px;
  padding: 7px 35px 7px 12px;
  color: var(--scores-navy);
  border: 1px solid #d4def0;
  border-radius: 10px;
  outline: none;
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.scores-filter-field select:focus {
  border-color: var(--scores-blue);
  box-shadow: 0 0 0 3px rgba(29, 92, 231, .11);
}

.scores-table-wrap {
  overflow-x: auto;
  padding: 7px 30px 25px;
}

.scores-table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate;
  border-spacing: 0 9px;
}

.scores-table thead th {
  border: 0;
  color: #75819b;
  padding: 9px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.scores-table thead th:first-child {
  width: 42%;
  text-align: left;
}

.scores-table tbody tr {
  transition: opacity 0.2s ease;
}

.scores-table tbody th,
.scores-table tbody td {
  border-top: 1px solid #e8edf6;
  border-bottom: 1px solid #e8edf6;
  background: #f9fbff;
  padding: 12px 16px;
  vertical-align: middle;
}

.scores-table tbody th {
  display: flex;
  align-items: center;
  gap: 13px;
  border-left: 1px solid #e8edf6;
  border-radius: 14px 0 0 14px;
  color: var(--scores-navy);
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.scores-table tbody td {
  position: relative;
  color: #344463;
  font-family: "Fredoka", sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.scores-table tbody td:last-child {
  border-right: 1px solid #e8edf6;
  border-radius: 0 14px 14px 0;
}

.scores-table tbody td.is-leader {
  color: var(--scores-blue);
}

.scores-table tbody td.is-leader::after {
  content: "\f521";
  margin-left: 7px;
  color: #e0b900;
  font-family: "Font Awesome 5 Pro";
  font-size: 11px;
  font-weight: 900;
}

.scores-table-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border: 1px solid rgba(7, 27, 102, 0.18);
  border-radius: 50%;
  vertical-align: 0;
}

.scores-table-dot.is-blue {
  background: #1d5ce7;
}

.scores-table-dot.is-white {
  background: #fff;
}

.scores-table-dot.is-yellow {
  background: #f2cf00;
}

.scores-sport-icon {
  display: grid;
  flex: 0 0 45px;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #edf3ff;
}

.scores-sport-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.scores-modal[hidden] {
  display: none;
}

.scores-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.scores-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 12, 45, 0.78);
  cursor: default;
  backdrop-filter: blur(5px);
}

.scores-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 26px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.32);
  animation: scores-modal-in 0.24s ease-out;
}

.scores-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dae2f0;
  border-radius: 50%;
  background: #f7f9fd;
  color: var(--scores-navy);
  cursor: pointer;
}

.scores-modal-brand {
  display: grid;
  place-items: center;
  width: 145px;
  height: 88px;
  margin: 0 auto 12px;
}

.scores-modal-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scores-modal-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--scores-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.scores-modal-dialog h2 {
  margin: 0 0 8px;
  color: var(--scores-navy);
  font-size: 30px;
  text-align: center;
}

.scores-modal-dialog > p {
  max-width: 365px;
  margin: 0 auto 21px;
  color: var(--scores-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.scores-login-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--scores-navy);
  font-size: 13px;
  font-weight: 600;
}

.scores-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.scores-input-wrap i {
  position: absolute;
  top: 50%;
  left: 16px;
  color: #7685a3;
  transform: translateY(-50%);
}

.scores-input-wrap input {
  width: 100%;
  height: 50px;
  border: 1px solid #d7e0ef;
  border-radius: 13px;
  background: #f9fbff;
  color: var(--scores-navy);
  padding: 10px 15px 10px 44px;
  outline: none;
}

.scores-input-wrap input:focus {
  border-color: var(--scores-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 53, 207, 0.09);
}

.scores-login-submit {
  width: 100%;
  margin-top: 4px;
  border-color: var(--scores-blue);
  background: var(--scores-blue);
  color: #fff;
}

.scores-login-submit:hover,
.scores-login-submit:focus-visible {
  color: #fff;
}

.scores-login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.scores-login-message {
  margin: 13px 0 0;
  color: #7b86a0;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.scores-login-message.is-visible {
  border-radius: 10px;
  background: #fff8ce;
  color: #675900;
  padding: 9px;
  font-size: 12px;
}

.scores-login-message.is-visible.is-error {
  background: #fff0f0;
  color: #a22626;
}

.scores-login-message.is-visible.is-success {
  background: #edf9f1;
  color: #176438;
}

body.scores-modal-open {
  overflow: hidden;
}

@keyframes scores-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1199px) {
  .scores-team-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .scores-team-logo-wrap {
    width: 62px;
    height: 74px;
  }

  .scores-total {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    padding-top: 0;
    text-align: left;
  }

  .scores-total strong {
    font-size: 34px;
  }
}

@media (max-width: 991px) {
  .scores-page {
    padding: 36px 0 70px;
  }

  .scores-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px;
  }

  .scores-head-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .scores-team-grid {
    grid-template-columns: 1fr;
  }

  .scores-team-card {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    min-height: 125px;
  }

  .scores-team-logo-wrap {
    width: 76px;
    height: 82px;
  }

  .scores-total {
    grid-column: auto;
    display: block;
    min-width: 86px;
    padding-top: 16px;
    text-align: right;
  }
}

@media (max-width: 575px) {
  .scores-page {
    padding: 24px 0 52px;
  }

  .scores-dashboard-head {
    border-radius: 21px;
    padding: 25px 20px;
  }

  .scores-title {
    font-size: 38px;
  }

  .scores-text {
    font-size: 14px;
  }

  .scores-head-actions,
  .scores-head-actions .scores-btn {
    width: 100%;
  }

  .scores-head-actions {
    flex-direction: column;
  }

  .scores-live-notice {
    align-items: flex-start;
  }

  .scores-team-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 112px;
    border-radius: 18px;
    padding: 16px 13px;
  }

  .scores-team-logo-wrap {
    width: 58px;
    height: 68px;
  }

  .scores-team-copy h2 {
    font-size: 21px;
  }

  .scores-total {
    min-width: 62px;
    padding-top: 13px;
  }

  .scores-total strong {
    font-size: 31px;
  }

  .scores-total span {
    max-width: 65px;
    white-space: normal;
  }

  .scores-panel {
    border-radius: 20px;
  }

  .scores-panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 21px 18px 16px;
  }

  .scores-updated {
    justify-content: flex-start;
    text-align: left;
  }

  .scores-public-updated {
    justify-content: flex-start;
  }

  .scores-panel-head h2 {
    font-size: 25px;
  }

  .scores-filters {
    padding: 12px 18px;
  }

  .scores-filter-field {
    flex-basis: 100%;
  }

  .scores-table-wrap {
    padding: 6px 18px 20px;
  }

  .scores-modal-dialog {
    border-radius: 21px;
    padding: 27px 20px 22px;
  }

  .scores-modal-dialog h2 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .scores-ranking {
    border-radius: 20px;
    padding: 18px;
  }

  .scores-ranking-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .scores-ranking-head h2 {
    font-size: 25px;
  }

  .scores-ranking .scores-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .scores-ranking .scores-team-card {
    gap: 5px;
    min-height: 330px;
    border-top-width: 5px;
    padding: 12px 7px 10px;
  }

  .scores-ranking .scores-position {
    top: 7px;
    right: 7px;
    left: auto;
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .scores-ranking .scores-team-logo-wrap {
    width: 50px;
    height: 58px;
  }

  .scores-ranking .scores-team-copy strong {
    font-size: 18px;
  }

  .scores-team-identity {
    width: 125px;
    max-width: 150%;
  }

  .scores-ranking .scores-team-copy span {
    display: none;
  }

  .scores-ranking .scores-total strong {
    font-size: 26px;
  }

  .scores-ranking .scores-total span {
    max-width: 82px;
    white-space: normal;
  }

  .scores-bar-area {
    width: 100%;
    flex-basis: 310px;
    height: 310px;
    min-height: 310px;
  }

  .scores-bar-area::before {
    height: 150px;
  }

  .scores-bar-track {
    width: min(72%, 82px);
    height: 150px;
    border-radius: 10px 10px 6px 6px;
  }

  .scores-bar-fill {
    border-radius: 9px 9px 5px 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scores-btn,
  .scores-filter,
  .scores-table tbody tr,
  .scores-bar-fill,
  .scores-team-identity,
  .scores-ranking .scores-team-logo-wrap img {
    transition: none;
  }

  .scores-ranking .scores-team-card:hover .scores-team-logo-wrap img {
    filter: none;
    transform: none;
  }

  .scores-modal-dialog {
    animation: none;
  }
}
