:root {
  --bg: #12141a;
  --card-bg: #1b1e27;
  --header-bg: #23273a;
  --text: #e8e8ee;
  --text-dim: #b8bac4;
  --accent: #8fb4ff;
  --border: #33384a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

h1 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.table-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--header-bg);
  color: var(--accent);
  font-size: 1.15rem;
  text-align: center;
}

tbody tr:nth-child(odd) td {
  background: var(--card-bg);
}

tbody tr:nth-child(even) td {
  background: #171a22;
}

tbody tr:last-child td {
  border-bottom: none;
}

td {
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* Mobile: stack as cards instead of side-by-side columns */
@media (max-width: 640px) {
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }

  thead {
    display: flex;
    gap: 0.5rem;
  }

  thead th {
    flex: 1;
    border-radius: 8px 8px 0 0;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
  }

  tbody tr:last-child {
    border-bottom: none;
  }

  td {
    border-bottom: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
  }
}
