:root {
  --bg: #0f1115;
  --bg-soft: #161922;
  --fg: #e8eaed;
  --fg-dim: #9aa0a6;
  --accent: #ffd166;
  --green: #4ea369;
  --yellow: #c9b458;
  --gray:  #3a3a3c;
  --tile-empty: #1c1f29;
  --tile-border: #2a2e3a;
  --key-bg: #2a2e3a;
  --key-fg: #e8eaed;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --radius: 10px;
  --max-w: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--tile-border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.site-title a { color: var(--fg); }

.nav-actions {
  display: flex;
  gap: 8px;
}

.btn {
  appearance: none;
  border: 1px solid var(--tile-border);
  background: var(--bg-soft);
  color: var(--fg);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}
.btn:hover { background: #1f2330; }
.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.05); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.site-footer {
  border-top: 1px solid var(--tile-border);
  color: var(--fg-dim);
  font-size: 0.85rem;
  padding: 18px 16px;
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.game-card {
  display: block;
  background: var(--bg-soft);
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--fg);
  transition: transform .12s ease, border-color .12s ease;
}
.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.game-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.game-card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.lead {
  color: var(--fg-dim);
  margin-top: 0;
}
