:root {
  --primary: #5491dc;
  --accent: #d794ff;
  --bg: #0a1020;
  --surface: #151d33;
  --text: #e6eaf7;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

.site-header {
  border-bottom: 1px solid var(--surface);
}

.header-inner {
  width: min(1160px, calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.2rem;
}

.header-note,
.section-label,
.eyebrow,
.category {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-note {
  color: var(--text);
  opacity: 0.65;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero {
  width: min(1160px, calc(100% - 64px));
  min-height: 435px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  border-bottom: 1px solid var(--surface);
}

.hero-copy {
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 24px;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.tagline {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
}

.hero-orbit {
  position: relative;
  width: 210px;
  height: 210px;
  flex: 0 0 210px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  content: "";
  inset: 21px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 48px;
  border-color: var(--primary);
}

.orbit-core {
  position: absolute;
  inset: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%) rotate(18deg);
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.6rem;
}

.orbit-dot {
  position: absolute;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
}

.orbit-dot-one {
  top: 16px;
  left: 112px;
}

.orbit-dot-two {
  right: 22px;
  bottom: 48px;
  background: var(--accent);
}

.about {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 64px 0 76px;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
  gap: 48px;
  border-bottom: 1px solid var(--surface);
}

.section-label {
  margin: 4px 0 0;
}

.about-copy {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.catalog {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 78px 0 96px;
}

.catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.catalog-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-item {
  min-width: 0;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--surface);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.game-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.game-art {
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface);
}

.game-art svg {
  max-width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.game-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 23px 22px;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.game-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.category {
  color: var(--accent);
  letter-spacing: 0.1em;
}

.game-content h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.game-content h3 a:hover,
.play-link:hover {
  color: var(--accent);
}

.game-content p {
  margin-bottom: 20px;
  color: var(--text);
  opacity: 0.78;
  font-size: 0.91rem;
  line-height: 1.5;
}

.play-link {
  margin-top: auto;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.play-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.play-link:hover span {
  transform: translate(3px, -3px);
}

.site-footer {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--surface);
}

.footer-brand {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}

.site-footer p {
  margin: 5px 0 0;
  color: var(--text);
  opacity: 0.65;
  font-size: 0.85rem;
}

.copyright {
  text-align: right;
}

@media (max-width: 900px) {
  .game-list {
    grid-template-columns: 1fr;
  }

  .game-item {
    min-height: 280px;
    grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.4fr);
  }

  .hero {
    min-height: 390px;
  }

  .hero-orbit {
    width: 170px;
    height: 170px;
    flex-basis: 170px;
  }

  .orbit-dot-one {
    left: 90px;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .hero,
  .about,
  .catalog,
  .site-footer {
    width: min(100% - 36px, 520px);
  }

  .header-inner {
    min-height: 68px;
  }

  .header-note {
    display: none;
  }

  .hero {
    min-height: 0;
    display: block;
    padding: 64px 0 58px;
  }

  .hero-copy {
    padding: 0;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-orbit {
    width: 130px;
    height: 130px;
    margin: 35px 0 0 auto;
  }

  .orbit-core {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .hero-orbit::before {
    inset: 15px;
  }

  .hero-orbit::after {
    inset: 34px;
  }

  .orbit-dot-one {
    top: 10px;
    left: 68px;
  }

  .orbit-dot-two {
    right: 13px;
    bottom: 29px;
  }

  .about {
    display: block;
    padding: 46px 0 54px;
  }

  .about .section-label {
    margin-bottom: 22px;
  }

  .about-copy {
    font-size: 1.05rem;
  }

  .catalog {
    padding: 58px 0 68px;
  }

  .catalog-heading {
    display: block;
    margin-bottom: 27px;
  }

  .catalog-heading .section-label {
    margin-bottom: 13px;
  }

  .game-item {
    min-height: 0;
    display: block;
  }

  .game-art {
    height: auto;
  }

  .game-art svg {
    min-height: 0;
    aspect-ratio: 1.64;
  }

  .game-content {
    min-height: 235px;
    padding: 22px 20px 20px;
  }

  .site-footer {
    display: block;
    padding-bottom: 30px;
  }

  .copyright {
    margin-top: 25px !important;
    text-align: left;
  }
}