:root {
  color-scheme: dark;
  --bg: #090b0c;
  --bg-2: #0d1012;
  --panel: #101416;
  --panel-soft: #0d1113;
  --ink: #f3efe6;
  --muted: #9aa19d;
  --faint: #6d746f;
  --line: rgba(243, 239, 230, 0.12);
  --line-soft: rgba(243, 239, 230, 0.07);
  --gold: #d0a851;
  --gold-soft: rgba(208, 168, 81, 0.16);
  --gold-line: rgba(208, 168, 81, 0.42);
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --edge: clamp(1.25rem, 5vw, 5.5rem);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: #11120c;
  background: var(--gold);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

/* Shared Sotudios navigation */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--edge);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.topbar.is-stuck {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom-color: var(--line-soft);
  background: rgba(9, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wordmark img { width: 26px; height: 26px; }
.topnav { display: flex; align-items: center; gap: 2rem; }
.topnav a {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.topnav a:hover { color: var(--ink); }
.topnav-button {
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink) !important;
}
.topnav-button:hover { border-color: rgba(243, 239, 230, 0.32); background: rgba(255, 255, 255, 0.04); }
.topnav-current { border-color: var(--gold-line); color: var(--gold) !important; background: var(--gold-soft); }
.topnav-current:hover { border-color: var(--gold); background: rgba(208, 168, 81, 0.2); }

/* Buttons and shared labels */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary { border-color: var(--gold); color: #14150e; background: var(--gold); }
.btn-primary:hover { transform: translateY(-1px); background: #e2bb63; box-shadow: 0 12px 34px -14px rgba(208, 168, 81, 0.7); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.025); }
.btn-ghost:hover { border-color: var(--gold-line); color: #fff; background: rgba(255, 255, 255, 0.05); }

.eyebrow, .kicker, .game-genre {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Cinematic catalog hero */
.catalog-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) brightness(0.78);
  transform: scale(1.015);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 12, 0.97) 0%, rgba(9, 11, 12, 0.82) 34%, rgba(9, 11, 12, 0.28) 67%, rgba(9, 11, 12, 0.42) 100%),
    linear-gradient(180deg, rgba(9, 11, 12, 0.24) 0%, transparent 42%, rgba(9, 11, 12, 0.9) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 65%);
}
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 9.5rem var(--edge) 7rem;
}
.hero-copy { max-width: 820px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.65rem;
}
.kicker > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.catalog-hero h1 {
  max-width: 900px;
  font-size: clamp(4.2rem, 8.4vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 670px;
  margin-top: 1.7rem;
  color: rgba(243, 239, 230, 0.76);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }
.hero-facts {
  width: 100%;
  margin: 0;
  padding-inline: var(--edge);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 12, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-facts > div {
  min-width: 0;
  padding: 1.2rem clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
}
.hero-facts > div:first-child { padding-left: 0; }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts dt {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.hero-facts dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Section dividers shared with the Sotudios homepage */
.section-divider {
  position: relative; z-index: 12; width: 100%; height: 0;
  pointer-events: none;
}
.section-divider::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: min(calc(100% - (2 * var(--edge))), var(--max)); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(208,168,81,0.28) 12%, rgba(208,168,81,0.78) 50%, rgba(208,168,81,0.28) 88%, transparent 100%);
  box-shadow: 0 0 18px rgba(208,168,81,0.12);
}
.section-divider span {
  position: absolute; top: 0; left: 50%; width: 0.58rem; height: 0.58rem;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(224,185,98,0.9); background: #0b0e10;
  box-shadow: 0 0 0 5px rgba(9,11,12,0.86), 0 0 20px rgba(208,168,81,0.26);
}
.section-divider + section { border-top-color: transparent; }

/* Catalog */
.catalog {
  width: min(var(--max), calc(100% - 2 * var(--edge)));
  margin-inline: auto;
  padding-block: clamp(6rem, 11vw, 10rem);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.section-heading .eyebrow { margin-bottom: 1.2rem; }
.section-heading h2, .closing h2 {
  font-size: clamp(3.2rem, 6.2vw, 6.5rem);
  line-height: 0.94;
}
.section-heading > p {
  max-width: 590px;
  padding-bottom: 0.55rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 20, 22, 0.98), rgba(11, 14, 16, 0.98));
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: 0 28px 65px -38px rgba(0, 0, 0, 0.85);
}
.game-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}
.game-card-featured .game-visual {
  min-height: 420px;
  height: 100%;
  aspect-ratio: auto;
}
.game-card-featured .game-content { min-height: 420px; }
.game-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080a0b;
}
.game-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(9, 11, 12, 0.72));
  pointer-events: none;
}
.game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) brightness(0.88);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.45s ease;
}
.game-card:hover .game-visual img { transform: scale(1.035); filter: saturate(1) brightness(0.96); }
.game-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  min-width: 2.7rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: rgba(9, 11, 12, 0.7);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.game-content {
  min-height: 345px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.45rem, 3vw, 2.25rem);
}
.game-genre { margin-bottom: 0.9rem; letter-spacing: 0.2em; }
.game-content h3 {
  max-width: 620px;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1;
}
.game-description {
  max-width: 610px;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.game-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.game-facts li { position: relative; padding-left: 0.75rem; }
.game-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  background: var(--gold);
}
.game-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 1.8rem;
}

/* Closing statement */
.closing {
  position: relative;
  min-height: clamp(520px, 66vw, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.closing-bg { position: absolute; inset: 0; z-index: -2; }
.closing-bg picture, .closing-bg img { width: 100%; height: 100%; }
.closing-bg img { object-fit: cover; object-position: center; filter: saturate(0.7) brightness(0.46); }
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 11, 12, 0.96), rgba(9, 11, 12, 0.7) 52%, rgba(9, 11, 12, 0.35));
}
.closing-inner {
  width: min(var(--max), calc(100% - 2 * var(--edge)));
  margin-inline: auto;
}
.closing .eyebrow { margin-bottom: 1.35rem; }
.closing h2 { max-width: 930px; }
.closing-inner > p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 1.4rem;
  color: rgba(243, 239, 230, 0.7);
  font-size: 1.06rem;
  line-height: 1.75;
}
.closing .btn { margin-top: 2rem; }

/* Footer */
.site-footer {
  width: min(var(--max), calc(100% - 2 * var(--edge)));
  margin-inline: auto;
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
}
.footer-grid > p {
  max-width: 540px;
  justify-self: center;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.site-footer nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.site-footer nav a:hover { color: var(--gold); }
.footer-fine {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* Progressive reveal */
.has-js .reveal { opacity: 0; transform: translateY(28px); }
.has-js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.75s ease, transform 0.75s ease; }
.has-js .game-card:nth-child(2n).is-visible { transition-delay: 0.1s; }

@media (max-width: 960px) {
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading > p { padding-bottom: 0; }
  .game-content { min-height: 375px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; gap: 1.5rem; }
  .footer-grid > p { justify-self: start; text-align: left; }
}

@media (max-width: 820px) {
  .hero-stage img { object-position: 62% center; }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(9, 11, 12, 0.96), rgba(9, 11, 12, 0.62) 72%, rgba(9, 11, 12, 0.5)),
      linear-gradient(180deg, rgba(9, 11, 12, 0.28), transparent 42%, rgba(9, 11, 12, 0.94));
  }
  .game-grid { grid-template-columns: 1fr; }
  .game-card-featured {
    grid-column: auto;
    display: flex;
  }
  .game-card-featured .game-visual {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .game-card-featured .game-content { min-height: 0; }
  .game-content { min-height: 0; }
}

@media (max-width: 760px) {
  .topbar { gap: 0.75rem; }
  .topnav { gap: 0.45rem; }
  .topnav-button { padding: 0.55rem 0.7rem; }
  .hero-inner { padding-top: 8.5rem; padding-bottom: 5rem; }
  .catalog-hero h1 { font-size: clamp(3.6rem, 16vw, 6.2rem); }
  .hero-facts { padding-inline: var(--edge); }
  .hero-facts > div { padding: 1rem 0.75rem; }
  .hero-facts dd { font-size: 0.57rem; letter-spacing: 0.08em; }
  .catalog { padding-block: 5.5rem; }
  .game-actions .btn { flex: 1; }
  .closing { min-height: 590px; }
}

@media (max-width: 520px) {
  .hero-stage img { object-position: 69% center; }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(9, 11, 12, 0.96), rgba(9, 11, 12, 0.69)),
      linear-gradient(180deg, rgba(9, 11, 12, 0.25), transparent 34%, rgba(9, 11, 12, 0.97));
  }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .hero-facts dt { font-size: 1rem; }
  .hero-facts dd { max-width: 82px; }
  .section-heading h2, .closing h2 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .game-content { padding: 1.35rem; }
  .game-content h3 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .game-actions { flex-direction: column; }
  .game-actions .btn { width: 100%; }
  .closing-bg img { object-position: 58% center; }
}

@media (max-width: 430px) {
  .topbar { padding-inline: 0.75rem; gap: 0.5rem; }
  .wordmark { gap: 0.4rem; font-size: 1.05rem; }
  .topnav { gap: 0.35rem; }
  .topnav-button { padding-inline: 0.55rem; letter-spacing: 0.12em !important; }
}

@media (max-width: 360px) {
  .topbar { padding-inline: 0.5rem; gap: 0.35rem; }
  .wordmark { gap: 0.35rem; font-size: 0.9rem; }
  .wordmark img { width: 22px; height: 22px; }
  .topnav { gap: 0.2rem; }
  .topnav-button { padding: 0.45rem 0.38rem; font-size: 0.58rem !important; letter-spacing: 0.06em !important; }
  .kicker { gap: 0.5rem; font-size: 0.56rem; letter-spacing: 0.14em; white-space: nowrap; }
  .hero-facts dd { font-size: 0.52rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .has-js .reveal { opacity: 1; transform: none; }
}
