/* =====================================================
   Base / Reset
===================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* DARK MODE DEFAULT */
  background: #111827;
  color: #e5e7eb;

  line-height: 1.5;
}


/* =====================================================
   Header / Navigation
===================================================== */

header {
  background: #1f2937;
  padding: 1rem 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid #2d3748;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
}

nav a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
}

nav a:hover {
  color: #60a5fa;
}


/* =====================================================
   Layout
===================================================== */

main {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

h2 {
  margin-top: 0;
}


/* =====================================================
   Table / Leaderboard
===================================================== */

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

  background: #1f2937;
  border-radius: 10px;
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 700px; /* tweak if needed */
}

/* Header row */
thead {
  background: #374151;
}

th {
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #9ca3af;
}


/* Cells */
th,
td {
  padding: 0.9rem 1.2rem;
  text-align: left;
}


/* Body rows */
tbody tr {
  border-top: 1px solid #2d3748;
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #2a3441;
}


/* numbers RIGHT */
.num {
  text-align: right;
}


/* First place highlight */
.leader {
  background: #3b3b1a;
  font-weight: 600;
}


/* =====================================================
   Cards (optional helpers)
===================================================== */

.card {
  background: #1f2937;
  padding: 1.5rem;
  border-radius: 10px;
}


/* =====================================================
   Mobile tweaks
===================================================== */

@media (max-width: 640px) {

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  main {
    padding: 0 1rem;
  }

  th, td {
    padding: 0.6rem 0.6rem;
    font-size: 0.9rem;
  }
}

/* expandable rows */
.clickable {
  cursor: pointer;
}

.details-row td {
  background: #18212f;
  font-size: 0.9rem;
}

.round-line {
  padding: 0.3rem 0;
  color: #cbd5e1;
}

/* =====================================================
   Content / Text pages (rules, info)
===================================================== */

.content {
  max-width: 800px;
}

section {
  margin-bottom: 2rem;
}

h3 {
  margin-bottom: 0.6rem;
  color: #93c5fd;
}

ul {
  margin-top: 0.3rem;
  padding-left: 1.4rem;
}

li {
  margin: 0.4rem 0;
}

.important {
  color: #fbbf24;
  font-weight: 600;
}

a {
  color: #93c5fd;        /* lighter blue */
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #bfdbfe;        /* even lighter on hover */
  text-decoration: underline;
}

/* round results layout */

.round-card {
  background: #1f2937;
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.round-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #93c5fd;
}

/* leaderboard place column width */
#leaderboard th:first-child,
#leaderboard td:first-child {
  width: 50px;
}

/* icon columns centered */
.icon {
  text-align: center;
}