html {
  scroll-behavior: smooth;
}

:root {
  --bg: #0d1117;
  --card: #141d2a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: #273244;
  --max-width: 960px;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, #1a2331 0%, transparent 35%),
    radial-gradient(circle at 85% -20%, #10233b 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100svh;
  overflow: hidden;
}

a {
  color: #33bbff;
  text-decoration: none;
}

a.nocolor {
  color: inherit;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

main {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0.75rem;
}

.page-section {
  width: min(var(--max-width), 90%);
  margin: 0 auto;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-content: center;
}

.hero {
  padding: 2.5rem 1.25rem;
}

.panel-nav {
  width: 100%;
  margin-bottom: 1.5rem;
  background: none;
  border: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
  max-width: 16ch;
}

.panel {
  padding: clamp(1.4rem, 2vw, 2rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

p {
  color: #c9d1d9;
  margin-bottom: 0.8rem;
}

.panel ul {
  padding-left: 1.2rem;
  color: #c9d1d9;
}

.panel li + li {
  margin-top: 0.45rem;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

/*
.game-card:hover {
  transform: translateY(-4px);
  border-color: #3f6c8e;
}
*/

.game-card h3 {
  margin-bottom: 0.35rem;
}

.game-cta {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #2b6f9d;
  border-radius: 0.6rem;
  background: #17354c;
  color: #dff2ff;
  font-weight: 600;
  line-height: 1.2;
}

.game-cta:hover {
  background: #1f4664;
  border-color: #3b89bc;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 780px) {
  .page-section::after {
    content: "";
    display: block;
    height: max(4rem, env(safe-area-inset-bottom));
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .hero {
    padding-top: 1.6rem;
  }
}
