:root {
  --bg: #0f0f12;
  --surface: #1a1a20;
  --text: #e8e8ec;
  --muted: #888;
  --primary: #ff5252;
  --primary-hover: #ff7575;
  --border: #2a2a32;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
}

.state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  margin-right: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.hint a {
  color: var(--primary);
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.game-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.game-list a {
  display: block;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}

.game-list a:hover {
  border-color: var(--primary);
}
