:root {
  --bg: #111315;
  --panel: #1a1d21;
  --panel-2: #20242a;
  --border: #2d333b;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #23a3a7;
  --exact: #2e7d32;
  --ingroup: #8a6d1f;
  --miss: #6b7280;
  --live: #2e7d32;
  --idle: #9a6700;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin-bottom: 6px;
}

h1, h2 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.status-box {
  min-width: 260px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.status-label {
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-live {
  background: rgba(46, 125, 50, .2);
  color: #9be49f;
  border: 1px solid rgba(46, 125, 50, .35);
}

.badge-idle {
  background: rgba(154, 103, 0, .2);
  color: #f2cb7d;
  border: 1px solid rgba(154, 103, 0, .35);
}

.btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card, .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.card {
  padding: 18px;
}

.place {
  color: var(--muted);
  margin-bottom: 8px;
}

.points {
  font-size: 38px;
  font-weight: 700;
}

.panel {
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  margin: 3px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
  }

  .status-box {
    width: 100%;
  }

  .container {
    padding: 16px;
  }

  .points {
    font-size: 30px;
  }
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.table-link {
  color: #8ddde0;
  text-decoration: none;
  font-weight: 600;
}

.table-link:hover {
  text-decoration: underline;
}

.topbar {
  margin-bottom: 20px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.subpanel {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.team-row:last-child {
  border-bottom: none;
}

.team-pos {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2b3138;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.team-name {
  font-weight: 500;
}

.details-box {
  margin-bottom: 18px;
}

.details-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-table-wrap {
  overflow-x: auto;
}

.verdict-exact {
  background: rgba(46, 125, 50, .2);
  border: 1px solid rgba(46, 125, 50, .35);
  color: #9be49f;
}

.verdict-in-group {
  background: rgba(138, 109, 31, .2);
  border: 1px solid rgba(138, 109, 31, .35);
  color: #f2cb7d;
}

.verdict-miss {
  background: rgba(107, 114, 128, .2);
  border: 1px solid rgba(107, 114, 128, .35);
  color: #d1d5db;
}

@media (max-width: 860px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.verdict-pending {
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(99, 102, 241, .24);
  color: #c7d2fe;
}