:root {
  --champion-cell: rgb(28, 88, 108);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f1419;
  color: #e7ecf1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.site-nav {
  flex-shrink: 0;
  background: #121820;
  border-bottom: 1px solid #243041;
}

.site-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  min-height: 3.25rem;
}

.league-menu {
  position: relative;
  flex-shrink: 0;
  grid-column: 3;
  justify-self: end;
}

.league-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #243041;
  border-radius: 6px;
  background: #0f1419;
  color: #e7ecf1;
  cursor: pointer;
  padding: 0;
}

.league-menu-btn:hover {
  background: #1a2330;
  color: #ffffff;
}

.league-menu-icon {
  display: block;
}

.league-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  z-index: 30;
  min-width: 12rem;
  border: 1px solid #243041;
  border-radius: 8px;
  background: #121820;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0;
}

.league-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.league-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  color: #e7ecf1;
  font-size: 0.9rem;
  text-decoration: none;
}

.league-menu-item.active {
  background: #1f2a38;
  font-weight: 600;
}

.league-menu-item.disabled {
  color: #6f8194;
  cursor: default;
}

.coming-soon {
  color: #9aa7b5;
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
}

.league-menu-divider {
  height: 1px;
  margin: 0.35rem 0.85rem;
  background: #243041;
  list-style: none;
}

.league-menu-group-label {
  display: block;
  padding: 0.55rem 0.85rem 0.3rem;
  color: #e7ecf1;
  font-size: 0.9rem;
  font-weight: 600;
}

.league-menu-sublist {
  margin: 0;
  padding: 0 0 0.15rem;
  list-style: none;
}

.league-menu-sublist .league-menu-item {
  padding-left: 1.5rem;
}

.site-nav-brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-nav-logo {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  border-radius: 0.35rem;
}

.site-nav-title {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  color: #e7ecf1;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav-title:hover {
  color: #ffffff;
}

body.about-page {
  overflow: auto;
  height: auto;
}

.about-main {
  flex: 1;
  overflow: auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.about-content {
  max-width: 42rem;
  margin: 0 auto;
}

.about-header {
  margin-bottom: 2rem;
}

.about-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
  color: #e7ecf1;
}

.about-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #9aa7b5;
}

.about-section {
  margin-bottom: 2rem;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #f5b942;
}

.about-section p {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  color: #c8d1dc;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section a {
  color: #7eb8d4;
  text-decoration: none;
}

.about-section a:hover {
  color: #a8d4ea;
  text-decoration: underline;
}

.about-definitions {
  margin: 0;
}

.about-definition {
  margin-bottom: 1rem;
}

.about-definition:last-child {
  margin-bottom: 0;
}

.about-definition dt {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e7ecf1;
}

.about-definition dd {
  margin: 0;
  line-height: 1.55;
  color: #c8d1dc;
}

.about-feature-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #c8d1dc;
  line-height: 1.55;
}

.about-feature-list li {
  margin-bottom: 0.65rem;
}

.about-feature-list li:last-child {
  margin-bottom: 0;
}

.about-feature-list strong {
  color: #e7ecf1;
}

.grid-legend {
  flex-shrink: 0;
  padding: 0.65rem 0 0;
}

.legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #9aa7b5;
  font-size: 0.85rem;
  line-height: 1.45;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.legend-list li:last-child {
  margin-bottom: 0;
}

.legend-list strong {
  color: #e7ecf1;
}

.legend-swatch {
  flex: 0 0 auto;
}

.legend-champion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--champion-cell);
  color: #e7ecf1;
  font-size: 0.65rem;
  font-weight: 600;
}

.legend-line {
  display: inline-block;
  width: 1.5rem;
  height: 0;
  border-top: 3px solid #f5b942;
}

.legend-current {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  border: 3px solid #3dd68c;
  background: #0f1419;
}

.legend-empty {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  background: #4a5d6e;
}

.legend-path {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  border: 3px solid #c678dd;
  background: #0f1419;
}

.main-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.league-tabs {
  --league-tab-max-width: 28rem;
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  align-self: center;
  justify-content: center;
  width: min(100%, calc(3 * var(--league-tab-max-width) + 1rem));
  margin-inline: auto;
  margin-bottom: 0.75rem;
  padding: 0.25rem;
  background: #121820;
  border: 1px solid #243041;
  border-radius: 8px;
}

.league-tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: var(--league-tab-max-width);
  padding: 0.6rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9aa7b5;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
  text-decoration: none;
}

.league-tab:hover {
  color: #e7ecf1;
  background: #1a2330;
}

.league-tab.is-active,
.league-tab[aria-selected="true"] {
  background: #1e2a3a;
  color: #e7ecf1;
  box-shadow: inset 0 0 0 1px #243041;
}

.league-tab:focus-visible {
  outline: 2px solid #c678dd;
  outline-offset: 1px;
}

.league-tab-panels {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.league-tab-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

#tab-standings,
#tab-scores {
  overflow: hidden;
}

#tab-grid {
  overflow: auto;
  min-height: 0;
}

.grid-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.grid-panel .panel-header {
  text-align: center;
}

.grid-panel--compact .champion-path-controls,
.grid-panel--compact .grid-viewport--compact,
.grid-panel--compact .grid-legend {
  align-self: center;
  width: 100%;
  max-width: var(--compact-grid-width, 100%);
}

.grid-panel--compact .champion-path-select {
  width: 100%;
  max-width: none;
}

.panel-header {
  flex-shrink: 0;
  padding-top: 0.15rem;
  margin-bottom: 0.75rem;
}

.panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #e7ecf1;
}

.panel-subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #9aa7b5;
}

.panel-subtitle a {
  color: #7eb8d4;
  text-decoration: none;
}

.panel-subtitle a:hover {
  color: #a8d4ea;
  text-decoration: underline;
}

.champion-path-controls {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.champion-path-controls-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.champion-path-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.champion-path-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9aa7b5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.champion-path-select {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #243041;
  border-radius: 6px;
  background: #121820;
  color: #e7ecf1;
  font-size: 0.9rem;
}

.champion-path-select:focus {
  outline: 2px solid #c678dd;
  outline-offset: 1px;
}

.grid-fullscreen-btn {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid #243041;
  border-radius: 6px;
  background: #121820;
  color: #9aa7b5;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.grid-fullscreen-btn:hover {
  color: #e7ecf1;
  border-color: #334155;
  background: #1a2330;
}

.grid-fullscreen-btn:focus-visible {
  outline: 2px solid #c678dd;
  outline-offset: 1px;
}

.grid-panel.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 40;
  margin: 0;
  padding: 0;
  background: #0f1419;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.grid-panel.is-fullscreen .panel-header,
.grid-panel.is-fullscreen .champion-path-controls,
.grid-panel.is-fullscreen .grid-legend {
  display: none;
}

.grid-panel.is-fullscreen .grid-viewport {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: none !important;
  max-height: none !important;
  border: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
}

.grid-panel.is-fullscreen .grid-wrapper {
  overflow: auto;
  min-height: 0;
  min-width: 0;
}

.grid-fullscreen-exit {
  display: none;
}

.grid-panel.is-fullscreen .grid-fullscreen-exit {
  display: block;
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 42;
  padding: 0.5rem 0.85rem;
  border: 1px solid #243041;
  border-radius: 6px;
  background: rgba(18, 24, 32, 0.92);
  color: #e7ecf1;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.grid-panel.is-fullscreen .grid-fullscreen-exit:hover {
  background: #1a2330;
  border-color: #334155;
}

.grid-panel.is-fullscreen .grid-fullscreen-exit:focus-visible {
  outline: 2px solid #c678dd;
  outline-offset: 1px;
}

body.grid-fullscreen-open {
  overflow: hidden;
}

.grid-stage {
  position: relative;
  width: max-content;
}

.grid-viewport {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1 1 auto;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #243041;
  border-radius: 8px;
  background: #121820;
}

.grid-viewport--compact {
  flex: 1 1 auto;
  align-self: center;
  min-height: 300px;
}

.y-axis-label {
  grid-column: 1;
  grid-row: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa7b5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.35rem;
  flex-shrink: 0;
}

.x-axis-label {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  color: #9aa7b5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem 0.55rem;
  flex-shrink: 0;
}

.hope-line-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}

.hope-line-overlay polyline {
  fill: none;
  stroke: #f5b942;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hope-line-overlay circle {
  fill: #f5b942;
  stroke: #0f1419;
  stroke-width: 1.5;
}

.cell.hope-line-cell {
  box-shadow: inset 0 0 0 3px #f5b942;
  z-index: 1;
}

.cell.current-team-cell {
  box-shadow: inset 0 0 0 3px #3dd68c;
  z-index: 1;
}

.cell.championship-path-cell {
  box-shadow: inset 0 0 0 3px #c678dd;
  z-index: 1;
}

.cell.hope-line-cell.current-team-cell {
  box-shadow: inset 0 0 0 3px #3dd68c, inset 0 0 0 5px #f5b942;
}

.cell.hope-line-cell.championship-path-cell {
  box-shadow: inset 0 0 0 3px #c678dd, inset 0 0 0 5px #f5b942;
}

.cell.current-team-cell.championship-path-cell {
  box-shadow: inset 0 0 0 3px #3dd68c, inset 0 0 0 5px #c678dd;
}

.cell.hope-line-cell.current-team-cell.championship-path-cell {
  box-shadow: inset 0 0 0 3px #3dd68c, inset 0 0 0 5px #c678dd, inset 0 0 0 7px #f5b942;
}

.cell.selected-team-cell {
  box-shadow: inset 0 0 0 4px #ffffff;
  z-index: 2;
}

.cell.hope-line-cell.selected-team-cell {
  box-shadow: inset 0 0 0 3px #f5b942, inset 0 0 0 6px #ffffff;
}

.cell.current-team-cell.selected-team-cell {
  box-shadow: inset 0 0 0 3px #3dd68c, inset 0 0 0 6px #ffffff;
}

.cell.hope-line-cell.current-team-cell.selected-team-cell {
  box-shadow: inset 0 0 0 3px #3dd68c, inset 0 0 0 5px #f5b942, inset 0 0 0 7px #ffffff;
}

.status {
  padding: 0.75rem 0;
  color: #9aa7b5;
}

.hidden {
  display: none;
}

.grid-wrapper {
  grid-column: 2;
  grid-row: 1;
  overflow: auto;
  min-height: 0;
  min-width: 0;
}

.grid {
  position: relative;
  display: grid;
  gap: 1px;
  width: max-content;
  padding: 0.5rem;
  background: #1a2330;
}

.axis-spacer,
.col-header,
.row-header,
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  min-width: 1.6rem;
  min-height: 1.6rem;
}

.col-header,
.row-header {
  font-size: 0.55rem;
}

.axis-spacer {
  position: sticky;
  left: 0;
  bottom: 0;
  z-index: 3;
  background: #121820;
}

.col-header {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #121820;
  color: #9aa7b5;
  font-weight: 600;
}

.row-header {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #121820;
  color: #9aa7b5;
  font-weight: 600;
}

.cell {
  background: #0f1419;
  color: #6f8194;
}

.cell.valid {
  cursor: pointer;
}

.cell.empty {
  background: #4a5d6e;
}

.cell.has-count {
  background: var(--champion-cell);
  color: #e7ecf1;
  font-weight: 600;
}

.cell.invalid {
  background: #0b1016;
  color: transparent;
}

.tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 45;
  max-width: 18rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  background: #1f2a38;
  border: 1px solid #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  line-height: 1.35;
}

.tooltip strong {
  display: block;
  margin-bottom: 0.25rem;
}

.tooltip ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}

.tooltip-section {
  margin-top: 0.5rem;
}

.tooltip-section:first-child {
  margin-top: 0;
}

.tooltip-section-title {
  color: #9aa7b5;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.tooltip-empty {
  margin: 0;
  color: #6f8194;
  font-style: italic;
}

.standings-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.standings-section .status {
  padding-top: 0;
}

#standings-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#standings-table .panel-header {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.standings-table-scroll {
  flex: 1 1 auto;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #243041;
  border-radius: 8px;
  background: #0f1419;
}

.standings-table {
  width: max-content;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.standings-table .col-team {
  width: 8rem;
}

.standings-table .col-record {
  width: 4.75rem;
}

.standings-table .col-hope-delta {
  width: 7.5rem;
}

.standings-table .col-hope-status {
  width: 8rem;
}

.standings-table .col-blueprint {
  width: 11.5rem;
}

.standings-table th,
.standings-table td {
  padding: 0.45rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #243041;
  border-right: 1px solid #243041;
  vertical-align: middle;
  background: #0f1419;
}

.standings-table th:last-child,
.standings-table td:last-child {
  border-right: none;
}

.standings-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #9aa7b5;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: normal;
  line-height: 1.25;
  hyphens: auto;
}

.standings-table .standings-col-team {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 7.5rem;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-table thead th.standings-col-team {
  z-index: 3;
}

.standings-table td.standings-record,
.standings-table th:nth-child(2) {
  text-align: right;
  white-space: nowrap;
  max-width: 5.5rem;
}

.standings-table th.standings-col-hope-delta,
.standings-table td.hope-delta {
  text-align: right;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 9.5rem;
}

.standings-table th.standings-col-hope-status,
.standings-table td.hope-status {
  text-align: left;
  white-space: nowrap;
  font-size: 0.75rem;
  max-width: 10.5rem;
}

.standings-table th.standings-col-blueprint,
.standings-table td.standings-blueprint {
  text-align: left;
  font-size: 0.75rem;
  color: #c8d1dc;
  white-space: nowrap;
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standings-col-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.standings-table th.standings-col-hope-delta .standings-col-heading {
  justify-content: flex-end;
  width: 100%;
}

.column-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 1px solid #9aa7b5;
  border-radius: 50%;
  background: transparent;
  color: #9aa7b5;
  font-size: 0.65rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: middle;
}

.column-help-btn:hover,
.column-help-btn[aria-expanded="true"] {
  border-color: #e7ecf1;
  color: #e7ecf1;
}

.column-help-btn:focus-visible {
  outline: 2px solid #c678dd;
  outline-offset: 1px;
}

.column-help-popover {
  position: fixed;
  z-index: 15;
  max-width: min(18rem, calc(100vw - 1rem));
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  background: #1f2a38;
  border: 1px solid #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #e7ecf1;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.hope-status-very-hopeful,
.hope-status-hopeful,
.hope-status-minimal-hope,
.hope-delta-above {
  color: #3dd68c;
}

.hope-status-line-of-hope,
.hope-delta-even {
  color: #f5b942;
}

.hope-status-hopeless,
.hope-delta-below {
  color: #f87171;
}

.hope-delta-unknown {
  color: #9aa7b5;
}

.standings-table tbody tr:hover td {
  background: #1a2330;
}

.standings-row {
  cursor: pointer;
}

.standings-row.selected td {
  background: #1f2a38;
}

.standings-row.selected td.standings-col-team {
  color: #ffffff;
  font-weight: 600;
}

.team-pane-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.55);
  z-index: 50;
}

.team-pane {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 51;
  width: min(24rem, 92vw);
  height: 100vh;
  background: #121820;
  border-left: 1px solid #243041;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.team-pane.open {
  transform: translateX(0);
}

.team-pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #243041;
}

.team-pane-header-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.team-pane-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  min-width: 0;
}

.team-pane-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #9aa7b5;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.team-pane-close:hover {
  color: #e7ecf1;
}

.team-pane-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem 1.5rem;
}

.team-pane-share-btn {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid #243041;
  border-radius: 6px;
  background: #121820;
  color: #9aa7b5;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.team-pane-share-btn:hover {
  color: #e7ecf1;
  border-color: #334155;
  background: #1a2330;
}

.team-pane-share-btn:focus-visible {
  outline: 2px solid #c678dd;
  outline-offset: 1px;
}

.team-pane-summary {
  margin: 0 0 1.25rem;
}

.team-pane-summary-line {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #e7ecf1;
}

.team-pane-summary-line:last-child {
  margin-bottom: 0;
}

.team-pane-label {
  color: #9aa7b5;
  font-weight: 600;
}

.pane-section {
  margin-bottom: 1.5rem;
}

.pane-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #f5b942;
}

.pane-section-desc {
  margin: 0 0 0.65rem;
  color: #9aa7b5;
  font-size: 0.8rem;
  line-height: 1.4;
}

.pane-miracle-record {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.pane-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.pane-list-season {
  color: #9aa7b5;
}

.pane-list-record {
  color: #9aa7b5;
}

.pane-empty {
  margin: 0;
  color: #6f8194;
  font-size: 0.85rem;
  font-style: italic;
}

.scores-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  --scores-section-pad: 0.5rem;
  --scores-section-gap-margin: 0.75rem;
  --scores-section-gap-pad: 1rem;
  --scores-section-spacing: calc(
    var(--scores-section-pad) + var(--scores-section-gap-margin) + var(--scores-section-gap-pad)
  );
}

.scores-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.scores-date {
  margin: 0 0 var(--scores-section-spacing);
  color: #9aa7b5;
  font-size: 0.9rem;
  text-align: center;
}

.scores-empty {
  margin: 0;
  color: #9aa7b5;
  font-size: 0.9rem;
  text-align: center;
}

.scores-list {
  --scores-card-width: 18rem;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--scores-card-width)), var(--scores-card-width))
  );
  gap: 0.75rem;
  width: 100%;
  max-width: calc(3 * var(--scores-card-width) + 2 * 0.75rem);
  margin-inline: auto;
  justify-content: start;
}

.scores-section-group {
  margin-bottom: 0;
  padding-bottom: var(--scores-section-pad);
}

.scores-section-group + .scores-section-group {
  margin-top: var(--scores-section-gap-margin);
  padding-top: var(--scores-section-gap-pad);
}

.scores-section-group:last-child {
  padding-bottom: 0;
}

.scores-section-group-title {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #e7ecf1;
  text-align: center;
}

.scores-section-group-restored .scores-section-group-title {
  color: #3dd68c;
}

.scores-section-group-line-of-hope .scores-section-group-title {
  color: #f5b942;
}

.scores-section-group-lost .scores-section-group-title {
  color: #f87171;
}

.scores-section-group-no-change .scores-section-group-title,
.scores-section-group-in-progress .scores-section-group-title {
  color: #9aa7b5;
}

.score-card {
  position: relative;
  border: 1px solid #243041;
  border-radius: 8px;
  padding: 0.75rem 0.85rem 2.35rem;
  background: #0f1419;
}

.score-share-btn {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #243041;
  border-radius: 6px;
  background: #121820;
  color: #9aa7b5;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.score-share-btn:hover {
  color: #e7ecf1;
  border-color: #334155;
  background: #1a2330;
}

.score-share-btn:focus-visible {
  outline: 2px solid #c678dd;
  outline-offset: 1px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.2rem 0;
  font-size: 0.9rem;
}

.score-row.winner {
  font-weight: 600;
}

.score-team {
  min-width: 0;
  line-height: 1.35;
}

.hope-movement {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.hope-movement .hope-delta {
  font-weight: 600;
}

.score-runs {
  flex-shrink: 0;
  min-width: 1.25rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.score-status {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid #243041;
  color: #9aa7b5;
  font-size: 0.75rem;
}

.score-hope-messages {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.4;
}

.score-hope-messages li {
  margin-top: 0.25rem;
}

.score-hope-message-line-of-hope {
  color: #f5b942;
}

.score-hope-message-restored {
  color: #3dd68c;
}

.score-hope-message-lost {
  color: #f87171;
}
