:root {
  --bg: #090909;
  --paper: #e9e6df;
  --muted: #99958e;
  --red: #a52d27;
  --line: rgba(233,230,223,.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: "DM Sans",sans-serif;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.header {
  height: 82px;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5%;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background-color: transparent;
  transition: background-color .25s ease, border-color .25s ease;
}

.header.is-scrolled {
  background-color: #090909;
  border-bottom-color: var(--line);
}

section[id] { scroll-margin-top: 90px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
  font-family: Oswald,sans-serif;
  font-size: 17px;
  letter-spacing: 2px;
  font-weight: 600;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.brand-light {
  font-weight: 400;
  color: #aaa;
}

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

.nav a,.header-link,.eyebrow,.hero-bottom,.section-tag,.game-number,.game-side,.manifesto-caption,.socials,.footer,.round-link,.button-line,.text-link {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
}

.nav a,.header-link {
  color: var(--paper);
  text-decoration: none;
  transition: color .25s;
}

.nav a:hover,.header-link:hover,.socials a:hover {
  color: #d36b62;
}

.header-link span {
  color: #d36b62;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
}

.hero {
  height: 100svh;
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px 10% 80px;
  overflow: hidden;
}

.hero-image,.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/4236810/c453079d72036a5ca3d26dc6ac8cdc0ff37a5149/ss_c453079d72036a5ca3d26dc6ac8cdc0ff37a5149.1920x1080.jpg?t=1788507905");
  background-position: center 48%;
  background-size: cover;
  filter: grayscale(65%);
  transform: scale(1.03);
  animation: slowzoom 18s ease-in-out infinite alternate;
}

.hero-shade {
  background: linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.38) 60%,rgba(0,0,0,.18)),linear-gradient(0deg,#090909 0%,transparent 35%,rgba(0,0,0,.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin-top: 35px;
}

.eyebrow {
  color: #d2ccc2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--red);
}

h1,h2,h3,.manifesto-quote {
  font-family: Oswald,sans-serif;
  font-weight: 500;
  letter-spacing: -1.5px;
}

h1 {
  font-size: clamp(65px,10vw,150px);
  line-height: .88;
  margin: 35px 0 28px;
}

h1 em,h2 em,h3 em,.manifesto-quote em {
  font-style: normal;
  color: #b64b43;
}

.hero-copy {
  font-size: 14px;
  line-height: 1.8;
  color: #c0bbb3;
  max-width: 390px;
}

.round-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 35px;
  text-decoration: none;
  color: var(--paper);
}

.round-link b {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 400;
  transition: .3s;
}

.round-link:hover b {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(4px);
}

.hero-index {
  position: absolute;
  right: 5.5%;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 13px;
  writing-mode: vertical-rl;
  color: #bbb;
  font-size: 9px;
  letter-spacing: 2px;
}

.hero-index span:first-child {
  color: #fff;
}

.index-line {
  height: 65px;
  width: 1px;
  background: #a54a43;
}

.hero-bottom {
  position: absolute;
  bottom: 30px;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 8px;
}

.section {
  padding: 125px 10%;
}

.section-tag {
  color: #b85a52;
  font-size: 9px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10%;
  align-items: end;
  margin-top: 45px;
}

h2 {
  font-size: clamp(54px,7vw,100px);
  line-height: .93;
  margin: 0;
}

.intro-text {
  max-width: 440px;
  padding-bottom: 8px;
}

.intro-text p,.contact-details p {
  font-size: 14px;
  line-height: 1.9;
  color: #aaa69f;
  margin: 0 0 18px;
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: var(--paper);
  padding-bottom: 12px;
  border-bottom: 1px solid #9d4a43;
}

.text-link span {
  margin-left: 20px;
  color: #c65b51;
}

.games {
  padding-top: 80px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 55px;
}

.section-heading h2 {
  margin-top: 30px;
}

.section-heading>p {
  max-width: 260px;
  font-size: 12px;
  line-height: 1.8;
  color: #999;
  margin: 0 0 5px;
}

.game-feature {
  height: min(65vw,690px);
  min-height: 470px;
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  background: #171615;
}

.game-phoenix .game-overlay {
  background: linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.3) 78%),linear-gradient(0deg,rgba(0,0,0,.48),transparent 65%);
}

.game-phoenix .game-number {
  color: #d6a59e;
}

.game-overlay {
  position: absolute;
  inset: 0;
}

.game-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  filter: grayscale(35%);
}

.game-feature:hover .game-art {
  transform: scale(1.045);
}

.game-overlay {
  background: linear-gradient(90deg,rgba(0,0,0,.86),rgba(0,0,0,.24) 75%),linear-gradient(0deg,rgba(0,0,0,.4),transparent 60%);
}

.game-info {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-42%);
  max-width: 580px;
}

.game-number {
  color: #d0aaa3;
  font-size: 9px;
}

.game-info h3 {
  font-size: clamp(55px,8vw,112px);
  line-height: .88;
  margin: 25px 0 20px;
}

.game-info p {
  font-size: 13px;
  color: #c4beb6;
  margin-bottom: 32px;
}

.button-line {
  display: inline-block;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255,255,255,.6);
  padding: 16px 19px;
  transition: .3s;
}

.button-line span {
  margin-left: 25px;
  color: #d16b61;
}

.button-line:hover {
  background: var(--paper);
  color: #111;
}

.game-side {
  position: absolute;
  right: 25px;
  top: 50%;
  writing-mode: vertical-rl;
  color: #c6c0b9;
  font-size: 8px;
  letter-spacing: 2px;
}

.manifesto {
  min-height: 570px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.manifesto-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.48)),url("https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3893210/a4318f06a5b9c0ed6916e5f39b12b505fa499517/ss_a4318f06a5b9c0ed6916e5f39b12b505fa499517.1920x1080.jpg?t=1787728871") center/cover;
  filter: grayscale(100%);
}

.manifesto-content {
  position: relative;
  max-width: 900px;
}

.manifesto-quote {
  font-size: clamp(42px,6.5vw,88px);
  line-height: 1.05;
  margin: 35px 0;
}

.manifesto-caption {
  color: #aaa;
  font-size: 9px;
}

.contact {
  padding-top: 120px;
  padding-bottom: 130px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10%;
  align-items: end;
  margin-top: 45px;
}

.contact-details {
  max-width: 440px;
}

.email-link {
  display: inline-block;
  color: var(--paper);
  font-family: Oswald,sans-serif;
  font-size: clamp(17px,2vw,25px);
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid #8d413a;
  padding: 13px 0;
}

.email-link span {
  color: #c65b51;
  margin-left: 15px;
}

.socials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.socials a {
  color: #aaa;
  text-decoration: none;
  font-size: 9px;
  transition: .2s;
}

.footer {
  min-height: 100px;
  border-top: 1px solid var(--line);
  padding: 25px 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777;
  font-size: 8px;
}

.footer .brand {
  color: var(--paper);
}

.back-top {
  color: #aaa;
  text-decoration: none;
}

.back-top:hover {
  color: #fff;
}

@keyframes slowzoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.12);
  }
}

@media (max-width:760px) {
  .header {
    height: 70px;
    padding: 0 6%;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #0c0c0c;
    padding: 25px 7%;
    flex-direction: column;
    gap: 23px;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .header-link {
    margin-left: auto;
    margin-right: 22px;
  }

  .menu-toggle {
    display: flex;
    background: none;
    border: 0;
    width: 28px;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    order: 3;
    padding: 0;
  }

  .menu-toggle span {
    height: 1px;
    background: #eee;
    width: 100%;
  }

  .hero {
    min-height: 680px;
    padding: 100px 7% 80px;
  }

  .hero-content {
    margin-top: 0;
  }

  h1 {
    font-size: clamp(58px,15vw,100px);
  }

  .hero-index {
    right: 5%;
    font-size: 7px;
  }

  .hero-bottom {
    left: 7%;
    right: 7%;
    font-size: 7px;
  }

  .section {
    padding: 85px 7%;
  }

  .intro-grid,.contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 35px;
  }

  .intro-text {
    max-width: 560px;
  }

  .section-heading {
    display: block;
  }

  .section-heading>p {
    margin-top: 25px;
  }

  .game-feature {
    min-height: 530px;
    height: 145vw;
    max-height: 650px;
  }

  .game-info {
    left: 7%;
    right: 7%;
    top: auto;
    bottom: 9%;
    transform: none;
  }

  .game-info h3 {
    font-size: clamp(54px,13vw,85px);
  }

  .game-side {
    right: 12px;
  }

  .manifesto {
    min-height: 490px;
  }

  .manifesto-quote {
    font-size: clamp(40px,11vw,68px);
  }

  .footer {
    padding: 25px 7%;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer>span {
    order: 3;
    width: 100%;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*::before,*::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease,transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Dynamic games loading and fallback states */
.games-loading,
.games-message {
  color: #99958e;
  font-size: 10px;
  letter-spacing: 1.8px;
  padding: 30px 0;
}

/* Dedicated games catalog */
.games-page {
  min-height: 100vh;
  padding-top: 150px;
}

.games-page .section-heading { align-items: end; margin-bottom: 42px; }
.games-page .section-heading h1 { font-size: clamp(56px, 8vw, 100px); line-height: .92; margin: 28px 0 0; }
.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.games-grid .game-feature { min-width: 0; height: auto; min-height: 0; aspect-ratio: 3 / 4; margin: 0; }
.games-grid .game-overlay { background: linear-gradient(0deg,rgba(0,0,0,.88),rgba(0,0,0,.08) 76%); }
.games-grid .game-info { left: 20px; right: 20px; top: auto; bottom: 24px; transform: none; max-width: none; }
.games-grid .game-info h3 { font-size: clamp(30px, 3vw, 48px); line-height: .95; margin: 14px 0 12px; }
.games-grid .game-info p { font-size: 12px; line-height: 1.6; margin-bottom: 18px; }
.games-grid .button-line { font-size: 9px; padding: 12px; }
.games-grid .button-line span { margin-left: 8px; }
.games-grid .game-side { right: 12px; top: 16px; }
.games-page .footer { margin-top: 60px; }
.more-games-link { margin-top: 28px; }

/* Minimal game detail pages */
.game-detail-page { background: #050505; }
.detail-overview { position: relative; min-height: max(720px, min(82svh, 790px)); display: flex; justify-content: center; overflow: hidden; padding: clamp(130px, 14vh, 165px) 6% 48px; isolation: isolate; background-color: #050505; background-size: cover; background-position: center; }
.detail-overview::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.44) 0%,rgba(0,0,0,.58) 42%,#050505 78%,#050505 100%); }
.detail-overview-content { width: min(100%, 1250px); text-align: center; }
.detail-game-logo { width: min(92vw, 1150px); height: clamp(170px, 22vw, 300px); margin: 0 auto; }
.detail-game-logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 25px rgba(0,0,0,.75)); }
.detail-about { margin: clamp(80px, 14vh, 145px) auto 0; }
.detail-about h2 { margin: 0 0 26px; color: #f3c63e; font-family: "Dancing Script", cursive; font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: 0; }
.detail-about p { max-width: 1000px; margin: 0 auto; color: #e8e5e2; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.75; text-shadow: 0 2px 12px #000; }
.detail-store-button { min-width: 285px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; margin-top: 38px; padding: 13px 30px; border: 2px solid #c9c5d0; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.detail-store-button:hover { border-color: #f3c63e; background: #f3c63e; color: #080808; }
.detail-store-button[aria-disabled="true"] { opacity: .62; pointer-events: none; }
.detail-load-error { position: absolute; z-index: 2; inset: 20px 0 auto; color: #fff; text-align: center; }
.detail-trailer-section { padding: 20px 6% 30px; background: #050505; text-align: center; }
.detail-trailer-section h2 { margin: 0 0 30px; color: #f3c63e; font-family: "Dancing Script", cursive; font-size: clamp(36px, 4vw, 52px); font-weight: 700; letter-spacing: 0; }
.detail-trailer-frame { position: relative; width: min(100%, 1300px); aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; border-radius: 8px; background: #111; }
.detail-trailer-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.detail-trailer-placeholder { height: 100%; display: grid; place-items: center; color: #99958e; font-size: 10px; letter-spacing: 1.8px; }
.detail-screenshots-section { padding: 30px 8% 70px; background: #050505; text-align: center; }
.detail-screenshots-section h2 { margin: 0 0 32px; color: #f3c63e; font-family: "Dancing Script", cursive; font-size: clamp(38px, 4vw, 56px); font-weight: 700; letter-spacing: 0; }
.detail-screenshots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: min(100%, 1450px); margin: 0 auto; }
.detail-screenshot { display: block; padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: #111; cursor: zoom-in; }
.detail-screenshot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s, filter .35s; filter: brightness(.82); }
.detail-screenshot:hover img { transform: scale(1.035); filter: brightness(1); }
.screenshot-dialog { position: fixed; inset: 0; z-index: 100; width: min(94vw, 1600px); max-width: none; max-height: 92vh; margin: auto; padding: 44px 12px 12px; overflow: visible; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #080808; }
.screenshot-dialog::backdrop { background: rgba(0,0,0,.9); }
.screenshot-dialog img { display: block; width: 100%; max-height: calc(92vh - 56px); object-fit: contain; }
.screenshot-close { position: absolute; top: 5px; right: 12px; width: 38px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.detail-footer { position: relative; }
@media (min-width: 1100px) {
  .detail-trailer-section { padding-top: 58px; padding-bottom: 78px; }
  .detail-screenshots-section { padding-top: 82px; padding-bottom: 108px; }
}
@media (max-width: 760px) {
  .detail-overview { min-height: max(660px, 82svh); padding: 118px 7% 40px; }
  .detail-about { margin-top: clamp(75px, 13vh, 110px); }
  .detail-about h2 { margin-bottom: 20px; }
  .detail-store-button { margin-top: 30px; min-width: 245px; }
  .detail-trailer-section { padding: 16px 5% 22px; }
  .detail-trailer-section h2 { margin-bottom: 22px; }
  .detail-screenshots-section { padding: 22px 7% 52px; }
  .detail-screenshots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
}

@media (max-width: 480px) {
  .detail-screenshots-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .games-page { padding-top: 115px; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .games-grid .game-info { left: 14px; right: 14px; bottom: 16px; }
  .games-grid .game-info h3 { font-size: clamp(25px, 7vw, 42px); }
  .games-grid .game-info p { font-size: 11px; }
  .games-grid .button-line { font-size: 8px; padding: 10px 8px; }
}

@media (max-width: 420px) {
  .games-grid { grid-template-columns: 1fr; }
  .games-grid .game-feature { aspect-ratio: 4 / 3; }
  .games-grid .game-info h3 { font-size: 42px; }
}
