/* style.css -- the look of the games menu. Keep it simple. */

:root {
  --bg: #11131a;
  --card: #1c1f2b;
  --card-hover: #262a3a;
  --text: #f0f2f8;
  --muted: #9aa0b4;
  --accent: #4cc2ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
}

.tagline {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* The card grid: fills the row, wraps to new lines automatically. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid #2c3142;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card .thumb {
  font-size: 2.5rem;
  line-height: 1;
}

.card .title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card .desc {
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  font-size: 0.85rem;
}

/* Site credit line — shared across my sites. */
.pc-credit {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.85;
}
.pc-credit a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 194, 255, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pc-credit a:hover,
.pc-credit a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .pc-credit a { transition: none; }
}
