:root {
  --ink: #101927;
  --muted: #6f7d8f;
  --line: #dce3e9;
  --paper: #f4f7f8;
  --white: #ffffff;
  --navy: #0c2431;
  --teal: #0ca88f;
  --teal-dark: #087f70;
  --lime: #ccf36a;
  --orange: #ff765d;
  --blue: #5598e8;
  --shadow: 0 18px 50px rgba(25, 48, 62, 0.09);
  --heading: "Barlow Condensed", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: 20%;
  left: -220px;
  background: var(--teal);
}

.ambient-two {
  right: -240px;
  bottom: 5%;
  background: #7eb8ff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 4.5vw;
  color: white;
  background: rgba(9, 31, 43, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b8c8d0;
  font-size: 10px;
  font-weight: 600;
}

.header-status span {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(12, 168, 143, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: white;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: end;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding: 8px;
  overflow: hidden;
  background: var(--lime);
  border-radius: 11px 4px 11px 4px;
  transform: skew(-5deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -7px;
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 50%;
}

.brand-mark span {
  z-index: 1;
  display: block;
  width: 5px;
  background: var(--navy);
  border-radius: 3px 3px 0 0;
}

.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 14px; }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.03em;
}

.brand small {
  margin-top: 1px;
  color: #91a8b5;
  font: 600 9px/1 var(--heading);
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-self: stretch;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 0;
  color: #91a6b2;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: var(--lime);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.nav-link.active::after {
  right: 0;
  left: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button,
.profile-button {
  color: white;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border: 2px solid var(--navy);
  border-radius: 50%;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar,
.leader-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.avatar {
  width: 33px;
  height: 33px;
  color: var(--navy);
  background: var(--lime);
}

.profile-copy {
  text-align: left;
}

.profile-copy strong,
.profile-copy small {
  display: block;
}

.profile-copy strong {
  font-size: 12px;
}

.profile-copy small {
  margin-top: 2px;
  color: #8fa5b1;
  font-size: 9px;
}

.page-shell {
  width: min(1410px, 91vw);
  margin: 0 auto;
  padding: 45px 0 70px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 8px 0 35px;
}

.eyebrow,
.section-kicker {
  color: var(--teal-dark);
  font: 700 11px/1 var(--heading);
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(12, 168, 143, 0.13);
}

.hero h1 {
  margin: 12px 0 8px;
  font: 800 clamp(45px, 6vw, 78px)/0.9 var(--heading);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 19px 8px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(12, 36, 49, 0.07);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(22, 44, 56, 0.05);
}

.hero-stats div {
  min-width: 128px;
  padding: 0 25px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats span,
.hero-stats strong {
  display: block;
}

.hero-stats span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.hero-stats strong {
  font: 700 28px/1 var(--heading);
}

.hero-stats small {
  margin-left: 2px;
  color: var(--teal-dark);
  font: 700 12px var(--body);
}

.hero-stats .method-stat {
  color: var(--teal-dark);
  font-size: 19px;
}

.podium-section {
  margin-bottom: 34px;
}

.podium-grid {
  display: block;
}

.contenders-card {
  position: relative;
  padding: 25px 27px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgba(97, 124, 137, 0.09), transparent 30%),
    linear-gradient(145deg, #ffffff, #f8fafb);
  border: 1px solid rgba(17, 43, 56, 0.09);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(25, 48, 62, 0.08);
}

.contenders-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #183746, #718691 72%, #b8c3c8);
}

.contenders-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contenders-intro small,
.contenders-intro strong {
  display: block;
}

.contenders-intro small {
  color: #56707c;
  font: 700 9px var(--heading);
  letter-spacing: 0.13em;
}

.contenders-intro strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 17px;
}

.contenders-intro > span {
  color: var(--muted);
  font-size: 9px;
}

.podium-update {
  color: var(--muted);
  font-size: 9px;
}

.contender-list {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.contender-row {
  display: grid;
  grid-template-columns: 32px 42px minmax(130px, 0.55fr) minmax(160px, 1fr) 78px;
  align-items: center;
  gap: 13px;
  min-height: 55px;
  padding: 6px 12px;
  background: rgba(245, 248, 249, 0.75);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contender-row:hover {
  transform: translateX(3px);
  background: white;
  border-color: #dfe7ea;
}

.contender-row.top-contender {
  background: linear-gradient(90deg, #eef3f5, #f8fafb);
  border-color: #d7e0e4;
}

.contender-row .contender-rank {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #6f828c;
  background: #e4eaed;
  border-radius: 50%;
  font: 800 13px var(--heading);
  text-align: center;
}

.top-contender .contender-rank {
  color: white;
  background: #173746;
}

.contender-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: white;
  border: 1px solid #e1e8eb;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(20, 48, 61, 0.06);
}

.contender-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contender-team strong,
.contender-team small,
.contender-probability small {
  display: block;
}

.contender-team strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contender-team small,
.contender-probability small {
  margin-top: 3px;
  color: #8b9aa2;
  font-size: 7px;
}

.contender-probability {
  text-align: right;
}

.contender-probability em {
  color: #294a59;
  font: 800 16px var(--heading);
  font-style: normal;
}

.contender-meter {
  height: 6px;
  overflow: hidden;
  background: #e2e7e9;
  border-radius: 999px;
}

.contender-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #405f6d, #82959e);
  border-radius: inherit;
}

.top-contender .contender-meter span {
  background: linear-gradient(90deg, #173746, #607985);
}

.podium-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.date-tabs {
  display: flex;
  gap: 8px;
}

.date-navigator {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.date-page-button {
  width: 31px;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 700 24px var(--heading);
}

.date-page-button:disabled {
  color: #c5cdd2;
  cursor: default;
}

.date-tab {
  position: relative;
  min-width: 82px;
  padding: 10px 15px 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.date-tab::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 3px;
  background: var(--teal);
  transition: 0.2s ease;
}

.date-tab small,
.date-tab strong {
  display: block;
}

.date-tab small {
  margin-bottom: 3px;
  font-size: 10px;
}

.date-tab strong {
  font: 700 17px var(--heading);
  letter-spacing: 0.03em;
}

.date-tab:hover,
.date-tab.active {
  color: var(--ink);
}

.date-tab.active::after {
  right: 8px;
  left: 8px;
}

.filter-actions {
  display: flex;
  gap: 7px;
  padding-bottom: 10px;
}

.select-button,
.compact-button {
  height: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.select-button {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.select-button svg,
.submit-prediction svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.compact-button {
  display: grid;
  place-items: center;
  width: 36px;
  padding: 0;
  color: #98a3ad;
}

.compact-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.compact-button:first-of-type svg {
  fill: currentColor;
  stroke: none;
}

.compact-button.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
}

.section-heading,
.panel-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading h2,
.panel h3 {
  margin: 4px 0 0;
  font-family: var(--heading);
  line-height: 1;
}

.section-heading h2 {
  font-size: 30px;
}

.demo-badge {
  padding: 5px 8px;
  color: #8a625a;
  background: #fff0ec;
  border: 1px solid #ffd6ce;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

.source-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.source-status small {
  color: var(--muted);
  font-size: 9px;
}

.demo-badge.live-data {
  color: #087566;
  background: #e7f7f3;
  border-color: #bce8dd;
}

.demo-badge.cached-data {
  color: #8b7553;
  background: #fff8e9;
  border-color: #f0dfba;
}

.refresh-icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

.select-button.loading .refresh-icon {
  animation: spin 0.8s linear infinite;
}

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

.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.matches-grid.list-view {
  grid-template-columns: 1fr;
}

.match-card {
  position: relative;
  min-width: 0;
  padding: 20px 21px 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(17, 43, 56, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(25, 48, 62, 0.13);
}

.clickable-match-card {
  cursor: pointer;
}

.clickable-match-card:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(12, 168, 143, 0.18);
}

.pending-match-card {
  background:
    linear-gradient(135deg, rgba(12, 168, 143, 0.04), transparent 55%),
    var(--white);
  border-style: dashed;
}

.pending-match-card .card-accent {
  background: linear-gradient(90deg, #a9b5bc, #dce3e7);
}

.pending-match-card .flag {
  filter: grayscale(1);
  opacity: 0.72;
}

.pending-match-card .score-line strong {
  color: #82909a;
  font-size: 25px;
}

.pending-match-card .predict-label {
  color: var(--teal-dark);
  font-weight: 700;
}

.pending-match-card .confidence {
  display: block;
  max-width: 130px;
  margin: 5px auto 0;
  color: var(--muted);
  line-height: 1.45;
}

.pending-match-card .score-predictor {
  cursor: default;
}

.pending-match-card .score-predictor::after {
  display: none;
}

[hidden] {
  display: none !important;
}

.card-accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0 72%, var(--lime) 72%);
}

.match-meta {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 10px;
}

.group-label {
  padding: 4px 7px;
  color: var(--teal-dark);
  background: #eaf8f5;
  border-radius: 3px;
  font-weight: 700;
}

.match-time {
  margin-left: 8px;
}

.venue-name {
  max-width: 125px;
  margin-left: auto;
  overflow: hidden;
  color: #9aa5ad;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-button {
  margin-left: auto;
  padding: 2px;
  color: #b4bec6;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.favorite-button.active {
  color: #f2af28;
}

.teams {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  align-items: center;
  gap: 7px;
  padding: 22px 0 19px;
}

.team {
  min-width: 0;
  text-align: center;
}

.flag {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  background: #edf1f3;
  border: 1px solid #e2e6e9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px white;
  font-size: 24px;
}

.flag img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.group-label.live {
  color: white;
  background: var(--orange);
  animation: liveGlow 1.5s ease-in-out infinite;
}

.heat-badge {
  margin-left: 7px;
  padding: 4px 7px;
  color: #a65745;
  background: #fff0ec;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
}

.heat-badge.super-hot {
  color: white;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 118, 93, 0.12);
}

@keyframes liveGlow {
  50% { box-shadow: 0 0 0 4px rgba(255, 118, 93, 0.14); }
}

.team-name,
.team-rank {
  display: block;
}

.team-name {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-rank {
  margin-top: 3px;
  color: #97a3ad;
  font-size: 9px;
}

.team-status-badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.team-status-badge.winning {
  color: #087566;
  background: #e5f5f1;
  border: 1px solid #c7e9e1;
}

.team-status-badge.losing {
  color: #a65745;
  background: #fff0ec;
  border: 1px solid #f4d3ca;
}

.score-predictor {
  display: block;
  width: 100%;
  padding: 6px 0;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: inherit;
  text-align: center;
  transition: 0.2s ease;
}

.clickable-match-card:hover .score-predictor,
.clickable-match-card:focus-visible .score-predictor {
  background: #f0f8f6;
  border-color: #c9e9e1;
  outline: none;
}

.score-predictor::after {
  content: "查看阵容与看点";
  display: block;
  margin-top: 5px;
  color: #98a4ad;
  font-size: 7px;
}

.predict-label {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.score-line {
  display: grid;
  grid-template-columns: 1fr 17px 1fr;
  align-items: center;
  width: 104px;
  margin: 5px auto;
}

.score-line strong {
  font: 800 34px/1 var(--heading);
}

.score-divider {
  color: #a5afb7;
  font: 600 25px/1 var(--heading);
}

.confidence {
  color: var(--teal-dark);
  font-size: 9px;
}

.probability-block {
  padding: 12px 0 15px;
  border-top: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
}

.odds-block {
  padding: 13px 0;
  border-bottom: 1px solid #edf0f2;
}

.block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.block-heading > span {
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.block-heading small {
  padding: 3px 5px;
  color: #8b7553;
  background: #fff8e9;
  border-radius: 3px;
  font-size: 8px;
}

.odds-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.odds-values span {
  padding: 7px 6px;
  color: var(--muted);
  background: #f5f7f8;
  border-radius: 4px;
  font-size: 8px;
  text-align: center;
}

.odds-values strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font: 700 15px var(--heading);
}

.probability-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
}

.probability-labels strong {
  margin-left: 2px;
  color: var(--ink);
  font-size: 10px;
}

.probability-bar {
  display: flex;
  gap: 3px;
  height: 6px;
}

.probability-bar span {
  display: block;
}

.bar-home {
  background: var(--teal);
  border-radius: 3px 0 0 3px;
}

.bar-draw {
  background: #b9c4ca;
}

.bar-away {
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}

.factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  padding: 14px 0 9px;
}

.advice-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  margin: 4px 0 13px;
  padding: 13px;
  background: #f5f8f7;
  border-left: 3px solid var(--teal);
  border-radius: 3px;
}

.advice-block small,
.advice-block strong {
  display: block;
}

.advice-block small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
}

.advice-block strong {
  font-size: 11px;
}

.advice-block p {
  grid-column: 1 / -1;
  margin: 0;
  color: #697680;
  font-size: 8px;
  line-height: 1.55;
}

.risk-badge,
.lottery-status {
  align-self: start;
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
}

.risk-badge.high {
  color: #a65745;
  background: #fff0ec;
}

.risk-badge.medium {
  color: #8b7553;
  background: #fff5df;
}

.risk-badge.low {
  color: #087566;
  background: #e7f7f3;
}

.factor {
  padding: 5px 7px;
  color: #66737d;
  background: #f1f4f5;
  border-radius: 3px;
  font-size: 9px;
}

.factor.positive {
  color: #087566;
  background: #e7f7f3;
}

.factor.warning {
  color: #a65745;
  background: #fff0ec;
}

.model-source {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-dark);
  font-size: 9px;
}

.model-source span {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

.model-source.fallback {
  color: #8b7553;
}

.model-source.fallback span {
  background: #e7ad42;
}

.sidebar {
  padding-top: 49px;
}

.panel {
  margin-bottom: 16px;
  padding: 21px;
  background: white;
  border: 1px solid rgba(17, 43, 56, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel h3 {
  font-size: 23px;
}

.trend-up {
  padding: 4px 7px;
  color: var(--teal-dark);
  background: #e8f7f3;
  border-radius: 3px;
  font: 700 10px var(--heading);
}

.streak-number {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 0;
}

.streak-number strong {
  color: var(--teal);
  font: 800 61px/0.8 var(--heading);
}

.streak-number span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.streak-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.streak-days span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: #98a4ad;
  background: #eef2f3;
  border-radius: 50%;
  font-size: 9px;
}

.streak-days .hit {
  color: white;
  background: var(--teal);
}

.streak-days .today {
  color: var(--navy);
  background: var(--lime);
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(204, 243, 106, 0.22);
}

.text-button {
  padding: 0;
  color: var(--teal-dark);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.leaderboard {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.leaderboard li {
  display: grid;
  grid-template-columns: 23px 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f2;
}

.leaderboard li:last-child {
  border-bottom: 0;
}

.leaderboard .current-user {
  margin: 8px -8px -5px;
  padding: 10px 8px;
  background: #f1f8f6;
  border-radius: 5px;
}

.rank {
  color: #9aa5ae;
  font: 700 13px var(--heading);
  text-align: center;
}

.rank.gold { color: #dca815; }
.rank.silver { color: #83909b; }
.rank.bronze { color: #b87555; }

.leader-avatar {
  width: 32px;
  height: 32px;
  color: white;
}

.leader-avatar.coral { background: #ef765e; }
.leader-avatar.blue { background: #5d8fce; font-size: 8px; }
.leader-avatar.mint { background: #39a891; }
.leader-avatar.dark { background: var(--navy); }

.leader-name strong,
.leader-name small {
  display: block;
}

.leader-name strong {
  font-size: 11px;
}

.leader-name small {
  margin-top: 2px;
  color: #9aa5ad;
  font-size: 8px;
}

.points {
  font: 700 13px var(--heading);
}

.insight-panel {
  display: flex;
  gap: 11px;
  color: #8b7553;
  background: #fffaf0;
  border-color: #f4e6c8;
  box-shadow: none;
}

.insight-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #c8aa78;
  border-radius: 50%;
  font-family: serif;
  font-size: 12px;
}

.insight-panel strong {
  font-size: 10px;
}

.insight-panel p {
  margin: 4px 0 0;
  font-size: 9px;
  line-height: 1.55;
}

.data-panel p {
  margin: 16px 0 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.lottery-panel p {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.55;
}

.lottery-panel > small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.lottery-status {
  color: #a65745;
  background: #fff0ec;
}

.responsibility-panel {
  color: #7f6040;
  background: #fff8e9;
  border-color: #f0dfba;
  box-shadow: none;
}

.responsibility-panel strong {
  font-size: 10px;
}

.responsibility-panel p {
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.6;
}

.data-panel > small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.mobile-panel p {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.55;
  word-break: break-all;
}

.mobile-panel > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.phone-icon {
  color: var(--teal);
  font-size: 25px;
  line-height: 1;
}

.mobile-actions {
  display: flex;
  gap: 7px;
}

.mobile-actions button {
  min-height: 34px;
  padding: 0 11px;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.mobile-actions button:last-child {
  color: var(--navy);
  background: var(--lime);
}

.connection-dot {
  width: 9px;
  height: 9px;
  background: #aeb8bf;
  border-radius: 50%;
}

.connection-dot.online {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(12, 168, 143, 0.13);
}

.connection-dot.cached {
  background: #e7ad42;
}

.model-version {
  padding: 4px 7px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 3px;
  font: 800 10px var(--heading);
}

.model-steps {
  margin: 16px 0 12px;
  padding: 0;
  list-style: none;
}

.model-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 11px;
  color: #55636e;
  font-size: 9px;
  line-height: 1.5;
}

.model-steps span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 19px;
  height: 19px;
  color: white;
  background: var(--navy);
  border-radius: 50%;
  font: 700 9px var(--heading);
}

.model-note {
  margin: 0;
  padding-top: 11px;
  color: #8b7553;
  border-top: 1px solid #edf0f2;
  font-size: 9px;
  line-height: 1.55;
}

.empty-state {
  display: grid;
  grid-column: 1 / -1;
  min-height: 320px;
  place-items: center;
  align-content: center;
  padding: 35px;
  text-align: center;
  background: white;
  border: 1px dashed #cfd8dd;
  border-radius: 8px;
}

.empty-state strong {
  font: 700 28px var(--heading);
}

.empty-state p {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 11px;
}

.empty-state button {
  padding: 9px 15px;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  color: white;
  background: var(--navy);
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: var(--navy);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 900;
}

.modal-open {
  overflow: hidden;
}

.match-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(5, 21, 30, 0.72);
  border: 0;
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 94vw);
  max-height: 90vh;
  padding: 28px;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #71808b;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-head h2 {
  margin: 7px 0 4px;
  font: 800 36px/1 var(--heading);
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.modal-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 20px 0 12px;
}

.modal-highlights span {
  padding: 11px 12px;
  color: #43515c;
  background: white;
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.55;
}

.lineup-status {
  margin-bottom: 13px;
  padding: 9px 11px;
  color: #7f6040;
  background: #fff8e9;
  border-radius: 4px;
  font-size: 9px;
}

.player-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.player-team {
  padding: 18px;
  background: white;
  border-radius: 8px;
}

.player-team-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f2;
}

.player-team-heading img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.player-team-heading small,
.player-team-heading strong {
  display: block;
}

.player-team-heading small {
  color: var(--muted);
  font-size: 8px;
}

.player-team-heading strong {
  margin-top: 2px;
  font-size: 13px;
}

.player-list {
  display: grid;
  gap: 8px;
}

.player-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px;
  background: #f6f8f8;
  border-radius: 6px;
}

.player-image-button,
.player-placeholder {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #dce6e8;
  border-radius: 50%;
  font-weight: 800;
}

.player-image-button {
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: zoom-in;
}

.player-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.player-image-button:hover img,
.player-image-button:focus-visible img {
  transform: scale(1.08);
}

.player-image-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.player-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 21, 0.86);
  border: 0;
  backdrop-filter: blur(10px);
}

.image-viewer-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 90vw);
  margin: 0;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.image-viewer-dialog img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #e8eeee;
  border-radius: 8px;
}

.image-viewer-dialog figcaption {
  padding: 13px 4px 2px;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

.image-viewer-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: white;
  background: rgba(5, 23, 32, 0.78);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.player-card strong,
.player-card small {
  display: block;
}

.player-card strong {
  font-size: 10px;
}

.player-card small {
  margin-top: 2px;
  color: var(--teal-dark);
  font-size: 8px;
}

.player-card p {
  margin: 4px 0 0;
  color: #6f7c86;
  font-size: 8px;
  line-height: 1.45;
}

.player-empty {
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stats div {
    flex: 1;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .podium-grid {
    display: block;
  }

  .contenders-card {
    grid-column: 1 / -1;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding-top: 0;
  }

  .panel {
    margin: 0;
  }

  .insight-panel {
    grid-column: 1 / -1;
  }

  .data-panel {
    grid-column: 1 / -1;
  }

  .mobile-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 65px;
    padding: 0 18px;
  }

  .profile-copy {
    display: none;
  }

  .profile-button {
    padding-right: 0;
  }

  .page-shell {
    width: min(100% - 30px, 620px);
    padding-top: 28px;
  }

  .hero {
    gap: 25px;
    padding-bottom: 25px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero p {
    font-size: 12px;
    line-height: 1.7;
  }

  .hero-stats {
    padding: 15px 0;
  }

  .hero-stats div {
    min-width: 0;
    padding: 0 13px;
  }

  .hero-stats strong {
    font-size: 23px;
  }

  .filter-row {
    align-items: flex-end;
    overflow-x: auto;
  }

  .date-navigator {
    flex: 0 0 auto;
  }

  .date-tab {
    min-width: 65px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .select-button {
    display: none;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .podium-grid {
    grid-template-columns: 1fr;
  }

  .contenders-card {
    grid-column: auto;
  }

  .player-columns,
  .modal-highlights {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 22px 15px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    grid-column: auto;
  }

  .data-panel {
    grid-column: auto;
  }

  .mobile-panel {
    grid-column: auto;
  }

  .source-status {
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 13px;
  }

  .teams {
    grid-template-columns: 1fr 125px 1fr;
  }

  .score-line strong {
    font-size: 29px;
  }

  .match-card {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 760px) {
  .contenders-card {
    padding: 18px 15px;
  }

  .contenders-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .contender-row {
    grid-template-columns: 26px 36px minmax(86px, 1fr) 62px;
    gap: 8px;
    padding: 6px 8px;
  }

  .contender-logo {
    width: 34px;
    height: 34px;
  }

  .contender-logo img {
    width: 25px;
    height: 25px;
  }

  .contender-meter {
    display: none;
  }
}
