:root {
  --navy: #14162b;
  --deep: #0e101f;
  --coral: #ff4f3a;
  --peach: #ffd0c6;
  --paper: #f8f5f3;
  --white: #fff;
  --muted: #5e5e6c;
  --line: #ded9d8;
  --heading: "Baloo 2", "Trebuchet MS", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --edge: clamp(20px, 5vw, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1rem/1.55 var(--body);
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c32919; outline-offset: 5px; }
.site-header :focus-visible, .spotlight :focus-visible, .studio :focus-visible,
.site-footer :focus-visible, .game-hero :focus-visible { outline-color: var(--peach); }

.container {
  width: min(100% - var(--edge) * 2, 1280px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--paper);
  border-bottom: 1px solid #f8f5f322;
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; width: fit-content; }
.brand img { width: 154px; }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 50px); }
.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  white-space: nowrap;
  font-size: .89rem;
  font-weight: 800;
  transition: color .2s;
}
.primary-nav a:hover { color: var(--peach); }
.language {
  display: flex;
  align-items: center;
  justify-self: end;
  padding: 2px;
  border: 1px solid #f8f5f333;
  border-radius: 5px;
}
.language button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #dad8e2;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.language button[aria-pressed="true"] { background: var(--paper); color: var(--navy); }
.language button:hover:not([aria-pressed="true"]) { background: #ffffff17; }

.spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--deep);
  color: var(--paper);
}
.spotlight-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 22%;
}
.spotlight-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 54%;
}
.spotlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #0e101fd9, transparent 35%),
    linear-gradient(90deg, #0e101f 1%, #0e101f 19%, #0e101fe8 32%, #0e101f51 54%, transparent 73%);
}
.spotlight-inner {
  display: flex;
  position: relative;
  align-items: center;
  min-height: clamp(540px, 46vw, 700px);
  padding-block: 76px 100px;
}
.spotlight-copy { width: min(45%, 520px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--peach);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.spotlight h1 { margin: 14px 0 10px; }
.spotlight h1 img { width: min(100%, 462px); }
.spotlight-description {
  max-width: 390px;
  margin-bottom: 27px;
  color: #efebef;
  font-size: clamp(1.025rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 19px;
  padding: 10px 18px 10px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 800;
  transition: background .2s, color .2s, border-color .2s;
}
.button-coral { background: var(--coral); color: #120d17; }
.button-coral:hover { background: var(--peach); }
.spotlight-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.button-outline { border-color: #f8f5f37a; background: #14162b55; color: var(--paper); }
.button-outline:hover { border-color: var(--paper); background: var(--paper); color: var(--navy); }
.game-actions { margin-top: 22px; column-gap: 19px; }
.game-actions .game-offers { margin-top: 0; }
.arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.arrow::before, .arrow::after { position: absolute; content: ""; }
.arrow::before {
  inset: 7px 1px auto 1px;
  height: 1.5px;
  background: currentColor;
}
.arrow::after {
  inset: 4px 2px auto auto;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.arrow-left { transform: rotate(180deg); }
.arrow-down { transform: rotate(90deg); }
.arrow-up { transform: rotate(-90deg); }
.spotlight-index {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 28px;
  right: 0;
  padding: 6px 0 6px 10px;
  color: var(--paper);
  font-size: .84rem;
  font-weight: 800;
}
.spotlight-index:hover { color: var(--peach); }

.games-section { padding-block: clamp(55px, 6.3vw, 94px) clamp(64px, 7vw, 106px); }
.section-heading { margin-bottom: clamp(24px, 3vw, 38px); }
.section-heading::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--coral);
}
.section-heading h2, .studio h2 {
  font-size: clamp(2.65rem, 5.5vw, 5.25rem);
}
.game-grid, .gallery-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.1vw, 30px);
}
.game-card {
  display: block;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
.card-art {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1.51;
  place-items: center;
  isolation: isolate;
  border-radius: 9px;
}
.card-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(#0e101f38, transparent 39%);
  pointer-events: none;
}
.card-art img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card-haggle { background: #3e2d2d; }
.card-haggle img { object-position: 50% 43%; }
.card-run { background: #0b0817; }
.card-heist { background: #111526; }
.card-heist img { object-position: 61% center; }
.card-status {
  display: flex;
  position: absolute;
  top: 13px;
  left: 13px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #f8f5f333;
  border-radius: 4px;
  background: #14162be8;
  color: var(--paper);
  font-size: .72rem;
  font-weight: 800;
}
.card-status .status-dot { width: 6px; height: 6px; }
.card-copy {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding-block: 16px 18px;
}
.card-copy p { margin-bottom: 4px; color: var(--muted); font-size: .87rem; font-weight: 700; }
.card-copy h3 { font-size: clamp(1.65rem, 2.5vw, 2.4rem); }
.card-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid #cfc9cd;
  border-radius: 50%;
  transition: background .2s, border-color .2s;
}
.game-card:is(:hover, :focus-visible) .card-arrow { border-color: var(--coral); background: var(--coral); }
.game-card:is(:hover, :focus-visible) .card-art img { transform: scale(1.06); }

.studio {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: var(--paper);
}
.studio::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 35%;
  background: linear-gradient(90deg, var(--navy), transparent 65%), url("/img/brand/pattern.webp") center / cover;
}
.studio-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 36px;
  padding-block: clamp(60px, 8vw, 112px);
}
.studio .eyebrow { margin-bottom: 15px; }
.studio h2 { max-width: 530px; }
.studio-description {
  max-width: 475px;
  margin: 19px 0 25px;
  color: #e1dfe7;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.studio-mark { display: grid; align-items: center; justify-items: center; }
.studio-mark img { width: min(77%, 410px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--peach);
  font-weight: 800;
}
.text-link:hover { color: var(--paper); }

.site-footer { background: var(--deep); color: var(--paper); }
.footer-main {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-contact p { color: #c7c4d1; font-size: .8rem; font-weight: 700; }
.footer-contact a { overflow-wrap: anywhere; font-weight: 800; }
.footer-main a:hover, .footer-bottom a:hover { color: var(--peach); }
.footer-bottom {
  min-height: 66px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  align-items: center;
  padding-block: 14px;
  border-top: 1px solid #f8f5f32b;
  color: #c7c4d1;
  font-size: .84rem;
}
.back-top { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }

.game-hero .spotlight-inner { min-height: clamp(460px, 39vw, 580px); }
.game-hero .spotlight-copy { width: min(49%, 540px); }
.game-hero .spotlight-copy h1 { font-size: clamp(3.8rem, 8vw, 8rem); }
.game-hero .spotlight-description { margin-bottom: 0; }
.game-back {
  display: inline-flex;
  position: absolute;
  top: 24px;
  left: 0;
  align-items: center;
  gap: 9px;
  padding-block: 5px;
  color: var(--paper);
  font-size: .84rem;
  font-weight: 800;
}
.game-back:hover { color: var(--peach); }
.game-offers {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--peach);
  font-size: .9rem;
  font-weight: 800;
}
.game-offers::before { content: ""; width: 16px; height: 1px; background: currentColor; }
.game-hero-run { background: #0b0817; }
.game-hero-run .spotlight-art { left: 34%; }
.game-hero-run .spotlight-art img { object-position: center 47%; }
.game-hero-run::before {
  background: linear-gradient(90deg, #0b0817 21%, #0b0817f0 34%, transparent 66%);
}
.game-hero-heist { background: #101324; }
.game-hero-heist .spotlight-art { left: 20%; }
.game-hero-heist .spotlight-art img { object-position: 63% center; }
.game-hero-heist::before {
  background: linear-gradient(90deg, #101324 15%, #101324ee 28%, #10132435 55%, transparent 75%);
}
.game-content {
  display: grid;
  gap: clamp(55px, 7vw, 94px);
  padding-block: clamp(53px, 6.7vw, 92px);
}
.game-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 24px clamp(36px, 7vw, 96px);
}
.game-content .section-heading { margin-bottom: 0; }
.game-content .section-heading h2 { font-size: clamp(2.45rem, 5vw, 4.4rem); }
.game-intro > p {
  color: #3e3e50;
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.feature-grid { grid-column: 1 / -1; margin-top: 12px; }
.feature {
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.feature h3 { margin-bottom: 9px; font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.feature p { max-width: 360px; color: #4b4a5a; line-height: 1.55; }
.gallery-grid { margin-top: 23px; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
}
.gallery-grid figcaption { margin-top: 9px; font-weight: 800; }
.gallery-portrait { max-width: 760px; }
.gallery-portrait img { aspect-ratio: 520 / 1125; }

.gallery-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: var(--navy);
  cursor: zoom-in;
}
.gallery-frame img { transition: transform .25s ease; }
.gallery-frame:is(:hover, :focus-visible) img { transform: scale(1.025); }
.gallery-zoom {
  display: grid;
  place-items: center;
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #f8f5f357;
  border-radius: 4px;
  background: #14162beb;
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
}
body:has(.gallery-viewer[open]) { overflow: hidden; }
.gallery-viewer {
  width: min(1120px, 100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 2vw, 20px);
  border: 1px solid #f8f5f338;
  border-radius: 10px;
  background: var(--navy);
  color: var(--paper);
}
.gallery-viewer::backdrop { background: #0e101fee; }
.gallery-viewer-heading, .gallery-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.gallery-viewer-heading { justify-content: space-between; margin-bottom: 10px; }
.gallery-viewer-heading p { font-weight: 800; }
.gallery-viewer-nav { margin-top: 10px; }
.gallery-viewer > img {
  width: 100%;
  max-height: calc(100dvh - 154px);
  object-fit: contain;
  border-radius: 4px;
  background: var(--deep);
}
.gallery-control {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #f8f5f351;
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}
.gallery-control:hover { background: #f8f5f31a; }
.gallery-control:focus-visible { outline-color: var(--peach); }

.release-note {
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--navy);
  color: var(--paper);
}
.release-note:has(.release-note-art) { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.release-note-copy { padding: clamp(26px, 4vw, 55px); }
.release-note h2 { font-size: clamp(2.27rem, 4vw, 3.75rem); }
.release-note ul {
  display: grid;
  gap: 12px;
  max-width: 55ch;
  margin: 19px 0 0;
  padding-left: 20px;
  color: #e1dfe7;
}
.release-note li::marker { color: var(--coral); }
.release-note-art {
  align-self: stretch;
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 740px) {
  .release-note:has(.release-note-art) { grid-template-columns: 1fr; }
  .release-note-art { grid-row: 1; max-height: 280px; }
}


@media (max-width: 880px) {
  .spotlight-art { left: 13%; }
  .spotlight::before {
    background: linear-gradient(0deg, #0e101fea, transparent 38%),
      linear-gradient(90deg, #0e101f, #0e101ff5 12%, #0e101f78 43%, transparent 80%);
  }
  .spotlight-copy, .game-hero .spotlight-copy { width: 55%; }
}

@media (max-width: 660px) {
  .header-inner { min-height: 65px; gap: 10px; }
  .brand img { width: 128px; }
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: .81rem; }
  .language button { min-width: 32px; min-height: 32px; }
  .spotlight-art, .game-hero-run .spotlight-art, .game-hero-heist .spotlight-art { inset: 0 0 auto; height: 69%; }
  .spotlight-art img { object-position: 50% 48%; }
  .spotlight::before, .game-hero-run::before, .game-hero-heist::before {
    background: linear-gradient(0deg, var(--deep) 18%, var(--deep) 34%, #0e101fc4 53%, transparent 80%);
  }
  .spotlight-inner, .game-hero .spotlight-inner {
    min-height: 610px;
    align-items: end;
    padding-block: 230px 70px;
  }
  .spotlight-copy, .game-hero .spotlight-copy { width: 100%; }
  .spotlight h1 img { width: min(100%, 369px); }
  .spotlight-description { max-width: 355px; }
  .spotlight-index { bottom: 19px; }
  .game-grid, .gallery-grid, .feature-grid { grid-template-columns: 1fr; }
  .card-art { aspect-ratio: 1.63; }
  .card-copy { min-height: 82px; }
  .card-copy h3 { font-size: 2rem; }
  .studio-inner, .game-intro { grid-template-columns: 1fr; }
  .studio-inner { gap: 34px; }
  .studio::before { inset: 24% 0 0; background: linear-gradient(var(--navy), transparent 60%), url("/img/brand/pattern.webp") center / cover; }
  .studio-mark { justify-items: start; }
  .studio-mark img { width: min(60%, 240px); }
  .game-hero .spotlight-inner { min-height: 530px; padding-bottom: 48px; }
  .game-hero-run .spotlight-art img { object-position: 49% 25%; }
  .game-hero-heist .spotlight-art img { object-position: 69% center; }
  .gallery-portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .gallery-portrait figcaption { font-size: .8rem; line-height: 1.3; }
  .game-back {
    top: 12px;
    min-height: 40px;
    padding-inline: 9px;
    border: 1px solid #f8f5f334;
    border-radius: 4px;
    background: #14162bee;
  }
}

@media (max-width: 480px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 10px;
    padding-top: 7px;
  }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; gap: 25px; border-top: 1px solid #f8f5f323; }
  .primary-nav a { min-height: 40px; font-size: .84rem; }
  .spotlight-inner { min-height: 557px; padding-top: 215px; }
  .spotlight-actions .button { padding-inline: 14px; gap: 10px; }
  .spotlight h1 img { width: min(100%, 324px); }
  .footer-main { min-height: auto; align-items: start; flex-direction: column; gap: 15px; padding-block: 28px; }
}

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