:root {
  --bg-dark: #080c14;
  --bg-card: #101726;
  --bg-elevated: #162033;
  --border: #1e2d4a;
  --primary: #38bdf8;
  --gold: #fbbf24;
  --discord: #5865F2;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --green: #10b981;
  --amber: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(8, 12, 20, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nshl-badge {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  color: var(--text-main);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 1.5px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text-main);
}

.btn-discord {
  background-color: var(--discord);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem 1.75rem;
  border-radius: 10px;
  min-width: 145px;
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.step-num {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.25rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-dark);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.filter-btn.active {
  background: var(--primary);
  color: #080c14;
  border-color: var(--primary);
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.pts-col {
  font-weight: 800;
  color: var(--primary);
}

.badge-status {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}

.status-watchlist {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.status-open {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 8px;
}

.team-card h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.15rem;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  white-space: normal;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: lighten;
}
th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

th.sortable:hover {
  color: var(--text-main);
}

th.active-sort {
  color: var(--primary);
}

.sort-icon {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  opacity: 0.75;
}

.recap-item {
  background: var(--bg-elevated);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.recap-item:last-child {
  margin-bottom: 0;
}

.recap-score {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.recap-summary {
  font-size: 0.95rem;
  color: var(--text-main);
}


.rules-list li {
  background: var(--bg-elevated);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.rules-list strong {
  color: var(--text-main);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
