:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141c;
  --border: rgba(50, 173, 230, 0.18);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #32ade6;
  --accent-soft: rgba(50, 173, 230, 0.12);
  --max-width: 720px;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(50, 173, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 173, 230, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(50, 173, 230, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

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

.hero {
  max-width: var(--max-width);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.lead {
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
}

.game-list {
  display: grid;
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.game-cover {
  display: block;
  line-height: 0;
  overflow: hidden;
  cursor: pointer;
}

.game-cover:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.game-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.game-cover:hover img,
.game-cover:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.game-card-body {
  padding: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.badge-published {
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.28);
}

.game-card-body p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0a0b0f;
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-store:hover,
.btn-store:focus-visible {
  background: #5cc4f0;
  transform: translateY(-1px);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: "⬡";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.15rem;
}

.about {
  margin-top: 4rem;
  max-width: var(--max-width);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about p {
  margin: 0;
  color: var(--text-muted);
}

.legal-page {
  max-width: 680px;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--accent);
}

.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  width: 100%;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

.sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

@media (max-width: 480px) {
  .game-card-body {
    padding: 1.5rem;
  }
}
