:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e3e6ea;
  --text: #1c2127;
  --muted: #6b7280;
  --accent: #2563eb;
  --tcs-bg: #e0edff;
  --tcs-fg: #1d4ed8;
  --yga-bg: #e7f8ec;
  --yga-fg: #15803d;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

.site-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-header .logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-header h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

#hottest {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

.hottest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff8ed;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.hottest-card:hover {
  border-color: #d97706;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.18);
}

.hottest-card:active { transform: translateY(1px); }

.hottest-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 0.25rem;
}

.hottest-card .game-name { font-size: 1.08rem; }

.hottest-count {
  font-size: 0.8rem;
  color: #b45309;
  font-weight: 600;
  flex-shrink: 0;
}

.filters {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover {
  border-color: var(--accent);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.list {
  max-width: 760px;
  margin: 1rem auto 3rem;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
}

.section-heading {
  margin: 1rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status.error { color: #b91c1c; }

.game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.game-row:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.game-row:active { transform: translateY(1px); }

.game-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.site-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  background: #eceef1;
  padding: 4px;
  box-sizing: border-box;
}

.game-info { min-width: 0; }

.game-name {
  font-weight: 600;
  font-size: 1.02rem;
}

.game-url {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tags {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
}

.pill.tcs { background: var(--tcs-bg); color: var(--tcs-fg); }
.pill.yga { background: var(--yga-bg); color: var(--yga-fg); }
.pill.untested { background: #fef3c7; color: #b45309; }
.pill.blocked { background: #fde2e2; color: #b91c1c; }

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer code {
  background: #eceef1;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer .dot {
  margin: 0 0.3rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .game-url { display: none; }
}
