@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --page: #10131d;
  --panel: #191d2a;
  --panel-light: #202536;
  --text: #f5f6fb;
  --muted: #9da3b5;
  --lime: #c9f36a;
  --purple: #a48aff;
  --line: rgba(255, 255, 255, 0.09);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 86% 12%, rgba(108, 80, 196, 0.12), transparent 30rem),
    var(--page);
  color: var(--text);
}

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

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.brand strong {
  color: var(--lime);
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--lime);
  color: #141721;
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.header-link {
  color: #d7d9e2;
  font-size: 13px;
  font-weight: 600;
}

.header-link span {
  margin-left: 7px;
  color: var(--lime);
}

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

.hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 48px 0 52px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dce1ce;
}

.eyebrow-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

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

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--lime);
}

.hero-description {
  max-width: 390px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 23px;
  border-radius: 8px;
  background: var(--lime);
  color: #171a22;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: #d9ff84;
}

.hero-button span {
  font-size: 17px;
}

.hero-art {
  width: 430px;
  height: 340px;
  position: absolute;
  right: 12px;
  top: 28px;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(164, 138, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.orbit-one {
  width: 290px;
  height: 230px;
}

.orbit-two {
  width: 360px;
  height: 290px;
  transform: translate(-50%, -50%) rotate(35deg);
}

.hero-device {
  width: 162px;
  height: 220px;
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(145deg, #31364b, #171a25 67%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 65px rgba(164, 138, 255, 0.16);
  transform: translate(-50%, -50%) rotate(9deg);
}

.hero-device::before {
  content: "";
  width: 47px;
  height: 5px;
  position: absolute;
  top: 11px;
  border-radius: 20px;
  background: #090b10;
}

.device-glow {
  width: 110px;
  height: 110px;
  position: absolute;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(55px);
  opacity: 0.65;
}

.device-symbol {
  position: relative;
  color: var(--lime);
  font-family: "Space Grotesk", sans-serif;
  font-size: 84px;
  font-weight: 700;
  text-shadow: 0 0 35px rgba(201, 243, 106, 0.35);
}

.hero-spark {
  position: absolute;
  color: var(--lime);
}

.spark-one {
  top: 54px;
  right: 65px;
  font-size: 29px;
}

.spark-two {
  bottom: 42px;
  left: 68px;
  color: var(--purple);
  font-size: 40px;
}

.hero-chip {
  position: absolute;
  right: 0;
  bottom: 45px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(25, 29, 42, 0.85);
  color: #d5d7e1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.catalog-section {
  padding: 53px 0 74px;
  scroll-margin-top: 20px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
}

.catalog-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.catalog-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-count strong {
  color: var(--text);
  font-size: 18px;
}

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 11px;
}

.search-box {
  height: 48px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.search-box:focus-within,
.catalog-tools select:focus-visible {
  border-color: rgba(201, 243, 106, 0.65);
  outline: 2px solid rgba(201, 243, 106, 0.16);
}

.search-icon {
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #818799;
}

kbd {
  min-width: 23px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  text-align: center;
}

.filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.catalog-tools select {
  height: 48px;
  min-width: 165px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.catalog-tools option {
  background: var(--panel);
}

.catalog-summary {
  display: flex;
  gap: 18px;
  padding: 18px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.catalog-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.catalog-summary strong {
  color: #e8eaf1;
  font-size: 11px;
}

.status-dot {
  width: 6px;
  height: 6px;
}

.available-dot {
  background: var(--lime);
}

.soon-dot {
  background: var(--purple);
}

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

.game-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 243, 106, 0.28);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.game-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.game-cover {
  height: 155px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 30%, rgba(164, 138, 255, 0.28), transparent 42%),
    linear-gradient(145deg, #2b3044, #1a1e2b);
}

.game-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(16, 19, 29, 0.48));
  pointer-events: none;
}

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

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

.cover-fallback {
  color: rgba(201, 243, 106, 0.9);
  font-family: "Space Grotesk", sans-serif;
  font-size: 58px;
  font-weight: 700;
}

.game-status {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 11px;
  padding: 6px 9px;
  border: 1px solid rgba(201, 243, 106, 0.18);
  border-radius: 20px;
  background: rgba(16, 19, 29, 0.83);
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.game-status.soon {
  border-color: rgba(164, 138, 255, 0.22);
  color: #c1aeff;
}

.game-info {
  padding: 14px 14px 13px;
}

.game-title {
  min-height: 40px;
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.game-description {
  min-height: 51px;
  margin-bottom: 14px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.game-actions {
  min-height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.game-note {
  color: #aeb3c2;
  font-size: 10px;
}

.download-link,
.source-link {
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.download-link:hover,
.source-link:hover {
  color: #e3ffac;
}

.empty-state {
  padding: 62px 20px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state > span {
  color: var(--purple);
  font-size: 32px;
}

.empty-state h3 {
  margin: 10px 0 6px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.empty-state p {
  margin-bottom: 0;
  font-size: 12px;
}

.site-footer {
  min-height: 83px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 12px;
}

.footer-brand .brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 960px) {
  .hero-art {
    right: -80px;
    opacity: 0.76;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 32px, 520px);
  }

  .site-header {
    height: 68px;
  }

  .brand {
    font-size: 13px;
  }

  .header-link {
    font-size: 11px;
  }

  .hero {
    min-height: 354px;
  }

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

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

  .hero-description {
    max-width: 300px;
    font-size: 13px;
  }

  .hero-art {
    right: -214px;
    top: 40px;
    opacity: 0.28;
  }

  .catalog-section {
    padding-top: 39px;
  }

  .catalog-heading h2 {
    font-size: 25px;
  }

  .catalog-count {
    max-width: 94px;
    align-items: end;
    flex-direction: column;
    gap: 1px;
    font-size: 10px;
  }

  .catalog-tools {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 100%;
  }

  .catalog-tools select {
    flex: 1;
  }

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

  .game-cover {
    height: 125px;
  }

  .game-info {
    padding: 11px;
  }

  .game-title {
    font-size: 12px;
  }

  .game-description {
    font-size: 10px;
  }

  .site-footer {
    min-height: 78px;
    gap: 14px;
  }

  .site-footer p {
    max-width: 175px;
    text-align: right;
    line-height: 1.5;
  }
}

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

  .game-cover {
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
