:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #2d2d2d;
  --color-text-muted: #666666;
  --color-accent: #2a6496;
  --color-accent-hover: #1e4a6e;
  --color-border: #e0e0e0;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --max-width: 960px;
}

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

body {
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.site-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header .tagline {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

/* Main content */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 2rem;
  flex: 1;
}

/* Caricature */
.caricature {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
}

/* Intro */
.intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Game card grid */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.game-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.game-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.game-card .btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.game-card .btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

/* Detail page */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.game-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 640px;
}

.game-detail h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.game-detail p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.game-detail .actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* Responsive */
@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-header h1 {
    font-size: 2.6rem;
  }
}
