:root {
  color-scheme: light dark;
  --max-width: 760px;
  --fg: #1a1a1a;
  --bg: #ffffff;
  --accent: #7a3ff2;
  --muted: #666;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #eee; --bg: #14141a; --muted: #aaa; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
}
.site-title { font-weight: 700; text-decoration: none; color: var(--fg); }
.site-header nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-header nav a, .lang-switch { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .lang-switch:hover { color: var(--accent); }
.lang-switch { margin-left: auto; }
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
form label { display: block; margin-bottom: 1rem; }
form input, form textarea {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  font: inherit;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--bg);
  color: var(--fg);
}
form textarea { min-height: 8rem; }
button {
  font: inherit;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
.game-list { list-style: none; padding: 0; }
.game-list li { padding: 0.75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.game-list li { display: flex; gap: 1rem; align-items: flex-start; }
.game-thumb { width: 160px; max-width: 35%; height: auto; border-radius: 4px; flex-shrink: 0; }
.game-info { flex: 1; min-width: 0; }
.ranking { margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.stars { color: var(--accent); letter-spacing: 0.1em; font-size: 1.1rem; }
@media (max-width: 520px) { .game-list li { flex-direction: column; } .game-thumb { max-width: 100%; width: 100%; } }
.play-button-wrap { text-align: center; margin: 0.75rem 0 0.25rem; }
.play-button {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.play-button:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 0.4rem 0; }
