:root {
  --bg: #fff;
  --fg: #111;
  --muted: #6b7280;
  --brand: rgba(171, 221, 170, 0.6);
  --brand-ink: #064e3b;
  --accent: #f6c04b;
  --card: #f8fafc;
  --border: #e5e7eb;
  --gold: #ffd166;
  --silver: #d1d5db;
  --bronze: #f4a261;
  --warn: #ff7424;
}
[data-theme="dark"] {
  --bg: #0f1316;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --card: #10161b;
  --border: #243241;
  --brand-ink: #e4ffee;
  --row-odd: rgba(255, 255, 255, 0.03);
  --row-even: rgba(255, 255, 255, 0.08);
  --silver: #4b5563;
  --gold: #ffd166;
  --bronze: #e98b3a;
  --warn: #e55812;
}
* {
  box-sizing: border-box;
}
html {
  background:
    radial-gradient(circle at 12% 18%, rgba(253, 240, 193, 0.18), transparent 40%),
    radial-gradient(circle at 88% 26%, rgba(146, 180, 255, 0.12), transparent 42%),
    var(--bg);
}
[data-theme="dark"] html {
  background:
    radial-gradient(circle at 12% 18%, rgba(253, 200, 62, 0.08), transparent 35%),
    radial-gradient(circle at 88% 26%, rgba(79, 124, 172, 0.08), transparent 38%),
    var(--bg);
}

body {
  margin: 0;
  color: var(--fg);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Mali", "IBM Plex Sans", sans-serif;
}
.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  position: relative;
}
[data-theme="dark"] .container {
  background: var(--bg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.wrapper,
#gamestable {
  background: var(--bg);
}

.logo a {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--fg);
  text-decoration: none;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  position: sticky;
  bottom: 0;
  margin-top: 2rem;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: clamp(240px, 40vw, 420px);
  height: auto;
  border-radius: 12px;
}

.footer-text {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: var(--fg);
}

.theme-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}
.hamburger {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.25rem;
  padding: 0.25rem 0.55rem;
}

table {
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}
tr,
td {
  line-height: 1;
}
th {
  font-weight: 600;
}

thead th {
  position: sticky;
  top: 0;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
tbody td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td {
  border-bottom: 0;
}

tbody > tr:nth-child(odd) {
  background: var(--row-odd, transparent);
}
tbody > tr:nth-child(even) {
  background: var(--row-even, rgba(0, 0, 0, 0.02));
}
