:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;

  color: #f3f5f7;
  background: #0b0e13;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, #153447 0, transparent 35%), #0b0e13;
}

.site-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;

  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #60d9ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
}

.subtitle {
  margin: 1rem 0 0;
  color: #aab3bf;
}

button {
  border: 1px solid #2e8cad;
  border-radius: 0.65rem;
  padding: 0.8rem 1.1rem;

  color: #eafaff;
  background: #102630;
  cursor: pointer;
}

button:hover {
  background: #173845;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-summary > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;

  border: 1px solid #242c36;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #11161dcc;
}

.summary-label {
  color: #8793a1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-message {
  color: #ff8c8c;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.match-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  border: 1px solid #242c36;
  border-radius: 0.9rem;
  padding: 1.2rem;
  background: #11161dcc;
}

.match-card:hover {
  border-color: #3b7790;
  transform: translateY(-2px);
}

.match-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.game-label {
  color: #60d9ff;
  font-size: 0.75rem;
  font-weight: 700;
}

.match-time {
  color: #aab3bf;
  font-size: 0.85rem;
  text-align: right;
}

.tournament-name {
  margin: 0;
  min-height: 2.8rem;
  font-size: 1rem;
}

.teams {
  display: grid;
  gap: 0.8rem;
}

.team {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  border-radius: 0.65rem;
  padding: 0.7rem;
  background: #191f28;
}

.team-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.team-name {
    font-weight: 650;
}

.series-id {
    margin-top: auto;
    color: #6f7b89;
    font-family: monospace;
    font-size: 0.75rem;
}

footer {
    border-top: 1px solid #242c36;
    padding: 2rem;

    color: #717d89;
    text-align: center;
}

@media (max-width: 700px) {
    .site-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-summary {
        grid-template-columns: 1fr;
    }
}
