/* Midnight Build — shared styles */

:root {
  --bg:        #05050a;
  --bg-raised: #0c0c15;
  --line:      #1d1d2e;
  --text:      #e9e9f2;
  --muted:     #9294ad;
  --accent:      #6b6ee2;
  --accent-soft: #9c9ef0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #fff; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */

.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-brand img { height: 30px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(107, 110, 226, 0.16), transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero img {
  width: 300px;
  max-width: 78%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
}

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

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero p {
  margin: 0 auto;
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- page headers ---------- */

.page-head {
  padding: 72px 0 0;
  margin-bottom: 44px;
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

section { padding: 0 0 88px; }

/* ---------- games ---------- */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-art {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.game-art img { max-height: 100%; max-width: 100%; }

.game-art .placeholder {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.game-card h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- contact ---------- */

.email {
  margin: 6px 0 0;
  word-break: break-word;
}

.page-head.centered { text-align: center; }

.page-head.centered p {
  margin-left: auto;
  margin-right: auto;
}

.page-bottom { padding-bottom: 88px; }

/* ---------- long-form prose (privacy policy) ---------- */

.prose {
  max-width: 720px;
  padding-bottom: 88px;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 40px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p { margin: 0 0 14px; }

.prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li { margin-bottom: 7px; }

.prose strong { color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer .wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

/* ---------- small screens ---------- */

@media (max-width: 620px) {
  .nav .wrap { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .nav-links { gap: 18px; }
  .hero { padding: 64px 0 56px; }
  .hero img { width: 220px; }
}
