:root {
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f6fb;
  --muted: #9296a3;
  --dim: #666b78;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #93c5fd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #05070d 0%, #080b12 48%, #05070d 100%);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.06), transparent 22%, transparent 78%, rgba(37, 99, 235, 0.06)),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
  pointer-events: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  pointer-events: none;
}

.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(244, 246, 251, 0.9);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  pointer-events: auto;
}

.brand-logo span:last-child {
  color: var(--accent-soft);
}

.brand-logo:hover {
  color: #ffffff;
}

.game-count-pill {
  display: inline-flex;
  min-width: 148px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 22, 32, 0.78);
  color: rgba(244, 246, 251, 0.82);
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: auto;
}

.game-count-pill:hover {
  border-color: rgba(96, 165, 250, 0.62);
  color: var(--accent-soft);
}

.page-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 58px 0 42px;
}

.hero {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 24px 0 34px;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #f7f8ff;
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.games-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 980px);
  margin: 10px auto 0;
}

.game-card {
  display: flex;
  aspect-ratio: 1;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 17, 25, 0.88);
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-card:hover {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(19, 21, 31, 0.96);
}

.game-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.game-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
}

.play-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  border-radius: 8px;
  background: var(--accent);
  color: #f8fbff;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
}

.play-button:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.brand-logo,
.game-count-pill,
.play-button,
.game-card {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.brand-logo:focus-visible,
.game-count-pill:focus-visible,
.play-button:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.52);
  outline-offset: 4px;
}

.site-footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: min(100% - 32px, 720px);
  margin: 28px auto 0;
  padding: 26px 0 34px;
  color: var(--dim);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(244, 246, 251, 0.82);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.64);
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 28px, 720px);
    padding-top: 74px;
  }

  .hero {
    min-height: 380px;
  }

  h1 {
    font-size: 5rem;
  }

  .games-section {
    grid-template-columns: 1fr;
    width: min(100%, 720px);
  }

  .game-card {
    aspect-ratio: auto;
    min-height: 154px;
  }

}

@media (max-width: 560px) {
  .site-header {
    padding: 14px;
  }

  .brand-logo {
    flex-direction: column;
    gap: 0;
    font-size: 0.86rem;
    line-height: 0.98;
  }

  .game-count-pill {
    min-width: 136px;
    height: 32px;
    padding: 0 14px;
  }

  .page-shell {
    width: min(100% - 24px, 520px);
    padding-top: 78px;
  }

  .hero {
    min-height: 360px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 3.7rem;
  }

  .game-card {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.85rem;
  }
}
