:root {
  color-scheme: dark;
  --background: #08141d;
  --panel: #101f29;
  --text: #f4f0e6;
  --subtle: #b7c4cb;
  --accent: #ff9a48;
  --line: #263944;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  background: var(--text);
  color: var(--background);
  z-index: 2;
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.header { border-bottom: 1px solid var(--line); }
.nav, .footer, .brand, nav { display: flex; align-items: center; }
.nav, .footer { justify-content: space-between; }
.nav { min-height: 74px; gap: 16px; }
.brand { gap: 10px; font-weight: 700; letter-spacing: .13em; font-size: 13px; }
.brand img { border-radius: 50%; }
.brand small {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 9px;
  margin-top: 2px;
}
nav { gap: 24px; flex-wrap: wrap; font-size: 14px; }
nav a:hover, .back:hover, .trailer:hover { color: var(--accent); }
.community {
  padding: .55rem .85rem;
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid var(--accent);
}
.hero {
  background: radial-gradient(ellipse at 50% 12%, #142936 0%, var(--background) 74%);
  padding: clamp(22px, 4vw, 52px) 0 0;
}
.banner { width: 100%; height: auto; border-radius: 16px; }
.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: .73rem;
  font-weight: 700;
}
.hero-label { margin-top: 20px; text-align: center; color: var(--subtle); }
.games {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding-block: clamp(40px, 6vw, 72px);
}
.games-heading::before {
  display: block;
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin: 8px 0 13px;
}
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -.045em; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.card {
  display: block;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.card:hover { border-color: var(--accent); }
.card-art { width: 100%; aspect-ratio: 2.7; object-fit: cover; }
.cover-empty { background: linear-gradient(130deg, #162d3b, #203946); }
.card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}
.card-caption h3 { font-size: 1rem; line-height: 1.3; }
.card-caption p { margin-top: 4px; color: var(--subtle); font-size: .83rem; }
.arrow {
  display: grid;
  flex: 0 0 33px;
  height: 33px;
  place-items: center;
  border-radius: 50%;
  background: #20323d;
}
.card:hover .arrow { color: var(--background); background: var(--accent); }
.footer {
  min-height: 80px;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-block: 20px;
  color: var(--subtle);
  border-top: 1px solid var(--line);
  font-size: .83rem;
}
.detail { padding-block: 38px 72px; }
.back, .trailer { color: var(--subtle); font-size: .9rem; }
.back span { margin-right: 5px; }
.detail-heading { margin: 34px 0 28px; }
h1 {
  margin-top: 9px;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.06em;
}
.description { max-width: 58ch; margin-top: 16px; color: var(--subtle); line-height: 1.6; }
.detail-art { width: min(100%, 800px); border: 1px solid var(--line); border-radius: 13px; }
.button {
  display: inline-block;
  margin-top: 20px;
  background: var(--accent);
  color: var(--background);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}
.button:hover { background: #ffb67d; }
.trailer { display: inline-block; margin-top: 22px; }
.screenshots { margin-top: 36px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.gallery img { border-radius: 10px; }
@media (max-width: 750px) {
  .wrap { width: calc(100% - 40px); }
  .games { grid-template-columns: 1fr; gap: 18px; }
  .games-heading::before { margin-top: 0; }
}
@media (max-width: 520px) {
  .cards, .gallery { grid-template-columns: 1fr; }
  .nav { min-height: 62px; }
  nav { gap: 12px; }
  .banner { border-radius: 8px; }
  .hero-label { margin-top: 15px; }
}
