@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #17110c;
  --panel: #241a12;
  --border: #3a2b1e;
  --text: #fbf1e2;
  --muted: #b8a58c;
  --mustard: #f2a93b;
  --mustard-deep: #d98a1f;
  --tomato: #d6512f;
  --lettuce: #8bab4f;
  --accent: var(--mustard);
  --accent-soft: rgba(242, 169, 59, 0.16);
  --gold: #f2a93b;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fdf6ea;
    --panel: #ffffff;
    --border: #e8dcc4;
    --text: #241a12;
    --muted: #7a6a54;
    --accent: var(--mustard-deep);
    --accent-soft: rgba(217, 138, 31, 0.12);
    --gold: #a8691a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1.5rem 4rem;
  background: var(--bg);
  color: var(--text);
  max-width: 1000px;
  margin-inline: auto;
}

.home-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.home-link:hover { color: var(--accent); }

header { margin-bottom: 1.5rem; }
h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h2 {
  font-size: 1.3rem;
  margin-top: 0;
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--mustard);
}
.muted { color: var(--muted); font-size: 0.9rem; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.tab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.tab-panel.hidden { display: none; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

thead th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--accent-soft);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-size: 0.85rem;
}

thead th:hover { color: var(--accent); }

thead th.sorted-asc::after { content: " ▲"; }
thead th.sorted-desc::after { content: " ▼"; }

tbody td {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

tbody tr:hover { background: var(--accent-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.card h3, .card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.card .big { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.25rem; }
.card .detail { font-size: 0.85rem; color: var(--muted); }

.hof-section {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hof-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.hof-category-title {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.hof-best-card {
  border-left: 3px solid var(--accent);
  margin-bottom: 1rem;
}

select, label {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  margin-left: 0.5rem;
}

footer { margin-top: 3rem; }

#status.error { color: #e05555; }

@media (max-width: 700px) {
  table[data-sortable] {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
