:root {
  color-scheme: light;
  --ink: #17171c;
  --muted: #56535d;
  --paper: #f8f6f2;
  --line: #dfdcd6;
  --red: #e33042;
  --dark: #14151b;
  font-family: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1780d6; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; }
h1 { font-size: clamp(2.45rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.skip { position: fixed; top: .5rem; left: .5rem; padding: .75rem; background: white; z-index: 2; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header, .site-footer { color: white; background: var(--dark); }
.navigation, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 76px; }
.brand { flex: 0 0 auto; }
.brand img { width: 145px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.25rem); }
nav a, .site-footer a { text-decoration: none; }
nav a { font-size: .9rem; font-weight: 650; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-support { padding: .48rem .85rem; border: 1px solid #666773; border-radius: .3rem; }
.hero { position: relative; isolation: isolate; color: white; background: #151624; overflow: hidden; }
.hero-art, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-art { left: 27%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; background: linear-gradient(90deg, #151624 13%, rgba(21,22,36,.97) 29%, rgba(21,22,36,.64) 48%, transparent 76%), linear-gradient(0deg, rgba(16,17,27,.76), transparent 24%); }
.hero-inner { position: relative; min-height: clamp(500px, 49vw, 665px); padding-block: clamp(5rem, 10vw, 9rem) 5rem; }
.eyebrow { display: flex; align-items: center; gap: .62rem; margin-bottom: 1rem; font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow span { width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.hero-description { max-width: 34ch; margin: 1.35rem 0 1.8rem; color: #e3e0ea; font-size: clamp(1rem, 2vw, 1.22rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.1rem; width: fit-content; padding: .82rem 1rem; border-radius: .32rem; background: #c51e32; color: white; font-weight: 700; text-decoration: none; }
.button:hover { background: #a91b2b; }
.hero-credit { position: absolute; right: 0; bottom: 1.35rem; font-size: .82rem; text-underline-offset: .26em; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.75rem); margin-top: 2rem; }
.game { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; background: white; }
.game-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #242331; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game:first-child .game-art img { object-position: 50% 42%; }
.game-body { display: flex; flex: 1; flex-direction: column; align-items: start; gap: .75rem; padding: clamp(1rem, 2.25vw, 1.55rem); }
.game-body > p:not(.category), .support p:not(.eyebrow) { color: var(--muted); }
.category { color: #9b2030; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.text-link { font-weight: 700; text-underline-offset: .3em; }
.game .text-link { margin-top: auto; padding-top: .35rem; }
.studio { background: #20212a; color: white; }
.studio-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.studio-copy { align-self: center; color: #d9d7e1; font-size: 1.12rem; }
.games, .studio-inner { position: relative; }
.anchor { position: absolute; top: 0; }
.support { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.support h2 { margin-bottom: .8rem; }
.support-actions { display: grid; gap: .65rem; justify-items: start; }
.footer-inner { flex-wrap: wrap; padding-block: 1.2rem; font-size: .86rem; }
.footer-inner p { color: #d0cdd6; }
.footer-inner .brand img { width: 114px; }

@media (max-width: 760px) {
  .hero-art { left: 0; bottom: auto; height: 310px; }
  .hero::after { background: linear-gradient(0deg, #151624 4%, transparent 70%) top / 100% 310px no-repeat; }
  .hero-inner { min-height: auto; padding-block: 235px 4.25rem; }
  .hero-credit { right: auto; left: 0; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .navigation { min-height: 62px; gap: .6rem; }
  .brand img { width: 96px; }
  nav { gap: .64rem; }
  nav a { font-size: .8rem; }
  .nav-support { padding: .34rem .4rem; }
  .game-grid { grid-template-columns: 1fr; }
  .support { align-items: start; flex-direction: column; }
}

.detail-hero {
  position: relative;
  color: white;
  background: #20212a;
}
.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.detail-hero h1 { font-size: clamp(2.55rem, 5.5vw, 5rem); }
.back-link {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: #d9d7e1;
  font-size: .9rem;
  text-underline-offset: .25em;
}
.detail-art {
  width: 100%;
  border: 1px solid #51505d;
  border-radius: .65rem;
}
.detail-actions, .related-games > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem 1.35rem;
}
.detail-link {
  font-weight: 650;
  text-underline-offset: .3em;
}
.detail-section {
  position: relative;
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
}
.detail-section h2, .related-games h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.detail-features, .screenshot-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.detail-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.detail-features li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.detail-features h3 {
  margin-bottom: .5rem;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}
.detail-features p { color: var(--muted); }
.screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: .55rem;
}
.related-games {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-block: 1.65rem;
  border-top: 1px solid var(--line);
}
.related-games h2 { font-size: 1.35rem; }
@media (max-width: 760px) {
  .detail-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .detail-features, .screenshot-grid { grid-template-columns: 1fr; }
}
