:root {
  --bg: #070910;
  --raise: #10131f;
  --ink: #f5f7fb;
  --muted: #a8b0c4;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #49d0ff;
  --violet: #9b6bff;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --max: 1160px;
  --header: 76px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(820px 420px at 50% -8%, rgba(70, 140, 255, 0.2), transparent 62%),
    radial-gradient(640px 380px at 100% 8%, rgba(150, 70, 255, 0.14), transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: #6d4dff; color: white; }

h1, h2, h3 { font-family: Syne, Manrope, sans-serif; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 16, 0.72);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img { height: 58px; width: auto; }

.nav { display: flex; gap: 22px; }

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover { color: var(--ink); }

.hero { padding: 36px 0 18px; text-align: center; }

.hero-logo {
  width: min(380px, 78vw);
  margin: 0 auto 6px;
  filter: drop-shadow(0 20px 48px rgba(70, 130, 255, 0.28));
}

.kicker {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
}

.hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(105deg, #1aa4e6, #5a4de2 55%, #8d38cc);
  box-shadow: 0 12px 32px rgba(80, 70, 220, 0.35);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }

.section { padding: 64px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.section-head p {
  margin: 0;
  max-width: 340px;
  color: var(--muted);
  text-align: right;
}

.catalog { display: grid; gap: 22px; }

.game {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(16, 19, 31, 0.86);
  box-shadow: var(--shadow);
}

.game:nth-child(even) .game-art { order: 2; }

.game-art {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #080910;
  cursor: zoom-in;
}

.game-art img {
  width: 100%;
  aspect-ratio: 1024 / 682;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.game:hover .game-art img { transform: scale(1.02); }

.game-index {
  margin: 0 0 10px;
  font-family: Syne, sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.game-copy { padding: 8px 12px 8px 4px; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.specs li {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d7deef;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.game h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.subtitle {
  margin: 8px 0 12px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 600;
}

.lead { margin: 0; color: var(--muted); }

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.studio {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  padding: 8px 0 12px;
}

.studio h2 {
  margin: 8px 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.studio .copy { margin: 0; color: var(--muted); }

.facts { margin: 0; display: grid; gap: 12px; }

.facts div {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.facts dt {
  font-family: Syne, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.facts dd { margin: 6px 0 0; color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
}

.footer-row {
  color: var(--muted);
  font-size: 14px;
}

.site-footer img { height: 46px; width: auto; }

dialog {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #070812;
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(2, 3, 10, 0.8); }

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
}

.sheet-bar p { margin: 0; color: var(--muted); }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

dialog img { width: 100%; height: auto; }

.player {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #05060d;
}

.player-bar {
  height: 68px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 0 12px;
  border-bottom: 1px solid var(--line);
  background: #090b16;
}

.player-title { min-width: 0; text-align: center; }

.player-title strong {
  display: block;
  font-family: Syne, sans-serif;
  font-size: 18px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.player-title span.is-error { color: #ff8d8d; }

.player .brand img { height: 48px; }

.player-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #070910;
}

.player-missing {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.preview {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: #070910 center / cover no-repeat;
  position: relative;
}

.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 16, 0.94), rgba(7, 9, 16, 0.72));
}

.preview-card {
  position: relative;
  width: min(560px, 100%);
  text-align: center;
  padding: 32px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 20, 0.8);
  backdrop-filter: blur(10px);
}

.preview-card img {
  width: min(220px, 70%);
  margin: 0 auto 10px;
}

.preview-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.preview-card p { margin: 0; color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .game,
  .game:nth-child(even),
  .studio { grid-template-columns: 1fr; }
  .game:nth-child(even) .game-art { order: 0; }
  .game-copy { padding: 4px 6px 8px; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head p { text-align: left; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .brand img { height: 48px; }
  .hero { padding-top: 18px; }
}

@media (max-width: 640px) {
  .player-title span { display: none; }
  .player .brand img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-art img { transition: none; }
}
