:root {
  --bg: #11131a;
  --surface: #191c26;
  --surface-raised: #202431;
  --surface-soft: #151821;
  --text: #f2f4fa;
  --muted: #a9b0c2;
  --muted-strong: #d4d9e6;
  --line: #303747;
  --line-strong: #46526a;
  --accent: #f0bd45;
  --accent-strong: #ffd978;
  --accent-soft: rgba(240, 189, 69, 0.16);
  --danger: #fda4af;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --radius: 12px;
}

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

html {
  min-width: 0;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff0bf;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.games-container {
  width: min(100% - 2rem, 1000px);
  margin-inline: auto;
}

.site-messages {
  padding-top: 1rem;
}

.site-messages p {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0c0e14;
  color: var(--muted);
}

.catalog-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 2.25rem;
}

.catalog-footer p {
  margin: 0;
}

.catalog-footer-brand a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.catalog-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.catalog-footer nav a {
  color: var(--muted-strong);
}

.content-page {
  min-height: 60vh;
  padding-block: 2rem 4rem;
}

.content-hero,
.error-panel,
.games-empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-hero {
  margin-block: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.content-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.content-hero p {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--muted);
}

.content-kicker,
.content-hero time {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
}

.error-panel {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.policy-page .policy-content {
  max-width: 720px;
  line-height: 1.7;
}

.policy-page .policy-content h1 {
  margin: 0 0 1rem;
}

.policy-page .policy-content h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.policy-page .policy-content p {
  margin: 0.65rem 0;
}

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

.policy-page .policy-content li + li {
  margin-top: 0.4rem;
}

@media (max-width: 680px) {
  .games-container {
    width: min(100% - 1.25rem, 1000px);
  }

  .catalog-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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