/* The arcade page at games.seyta.uk. The landing page's colours (site.css :root) so the two read as one family:
   midnight background, Fold teal lead, the pastels beside it. Rajdhani is the games' own display face. */
:root {
  --bg: #0d111a;
  --panel: rgba(16, 24, 32, 0.72);
  --panel2: rgba(23, 35, 45, 0.75);
  --line: rgba(127, 214, 207, 0.13);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #7fd6cf;
  --accent2: #c2ebe6;
  --game: #e0aaff;
  --on-accent: #0d111a;
  --font: 'Rajdhani', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}
/* The same top glow the landing page has, so arriving here feels like the same place */
body::before {
  content: "";
  position: fixed;
  inset: -20vh 0 auto 0;
  height: 60vh;
  background: radial-gradient(60% 100% at 50% 0%, rgba(127, 214, 207, 0.14), transparent 70%);
  pointer-events: none;
}
a { color: var(--accent2); }
.top { padding: 22px 16px; }
.home {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}
.home span { color: var(--accent); }
main {
  flex: 1;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 10px 16px 56px;
}
h1 {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.05;
  margin: 0.2em 0 0.3em;
  background: linear-gradient(90deg, var(--accent), var(--game));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
.lede {
  color: var(--soft);
  max-width: 62ch;
  margin: 0 0 2.2em;
}
.games {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.game {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.game:hover,
.game:focus-visible {
  border-color: rgba(127, 214, 207, 0.45);
  background: var(--panel2);
  transform: translateY(-2px);
  outline: none;
}
.game-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.game h2 {
  margin: 0;
  font-size: 1.5rem;
}
.game p {
  margin: 0;
  color: var(--muted);
}
.game-go {
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent);
}
footer {
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
  .game:hover, .game:focus-visible { transform: none; }
}
