@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('/styles/tokens.css');
@import url('/styles/components.css');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0;
}

main {
  min-height: calc(100vh - var(--header-height) - 120px);
}

.game-detail .back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.game-detail .back:hover {
  color: var(--accent);
  text-decoration: none;
}

.game-detail h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.game-detail .lead {
  margin-top: 1rem;
}

.game-detail .tags {
  margin-top: 1rem;
}

.game-detail .game-detail-cover {
  margin-top: 1.5rem;
  max-width: min(480px, 100%);
}

.game-detail .game-detail-cover img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.store-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-elevated);
  color: var(--text-muted);
}
