:root {
  --bg: #060606;
  --bg-soft: #0d0d0d;
  --panel: #111111;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5efdf;
  --muted: rgba(245, 239, 223, 0.7);
  --accent: #fff2df;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #fff2df 0%, #d4e1ff 45%, #6aa0ff 100%);
  color: #0b0f16;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.footer-links a,
.footer-social span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
  border-radius: 999px;
}

.hero {
  padding: 88px 0 34px;
}

.hero-inner {
  min-height: 240px;
  display: grid;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.section-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.about-copy h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(48px, 7vw, 92px);
}

.hero p,
.about-copy p,
.about-points p {
  color: var(--muted);
  line-height: 1.75;
}

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 16px;
}

.games-section {
  padding: 12px 0 86px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.game-card:hover img {
  transform: scale(1.03);
}

.featured {
  min-height: 284px;
}

.dead-city,
.sound-of-magic {
  min-height: 284px;
}

.dead-city {
  grid-column: span 1;
}

.sound-of-magic {
  grid-column: span 1;
}

.card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 68%);
}

.card-overlay span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-overlay h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.about-section {
  padding: 0 0 92px;
}

.about-inner {
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.about-copy h2 {
  font-size: clamp(34px, 4.8vw, 62px);
}

.about-copy p {
  max-width: 560px;
  margin: 18px 0 0;
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-points article {
  padding: 22px 22px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-points strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #030303;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links,
.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .games-grid,
  .about-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 560px);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-inner {
    padding: 24px;
  }

  .footer-inner,
  .footer-links,
  .footer-social {
    flex-direction: column;
    align-items: flex-start;
  }
}
