:root {
  --ink: #f6f2ea;
  --muted: #c7c2b9;
  --dim: #8f8b84;
  --black: #070708;
  --panel: rgba(20, 22, 25, 0.84);
  --line: rgba(246, 242, 234, 0.15);
  --line-strong: rgba(246, 242, 234, 0.28);
  --gold: #f1b64c;
  --red: #d85d4b;
  --teal: #58d2c5;
  --max: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.76), #090b0f 34%, #111315 100%),
    url("images/hero-background.jpg") center top / cover fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.74), rgba(7, 7, 8, 0.28) 46%, rgba(7, 7, 8, 0.78)),
    radial-gradient(circle at 74% 20%, rgba(216, 93, 75, 0.26), transparent 31%),
    radial-gradient(circle at 22% 72%, rgba(88, 210, 197, 0.18), transparent 29%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: uppercase;
}

p,
.lead {
  color: var(--muted);
  line-height: 1.6;
}

.lead {
  max-width: 700px;
  font-size: clamp(1.02rem, 1.5vw, 1.26rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav,
.page-section,
.section,
.studio-grid,
.footer-inner,
.social-inner,
.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
  padding: 4px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a,
.link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.link-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  transform: translateY(-1px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(246, 242, 234, 0.46);
}

.button.primary {
  border-color: rgba(241, 182, 76, 0.72);
  background: linear-gradient(135deg, #d85d4b, #f1b64c);
  color: #17110b;
}

.home-hero {
  width: min(1400px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 72px));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 72px 0 54px;
}

.hero-copy {
  max-width: 840px;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 7.2vw, 7rem);
  line-height: 0.88;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  padding: 0 10px;
  background: rgba(7, 7, 8, 0.58);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-section,
.section {
  padding: 76px 0;
}

.page-section {
  padding-top: 86px;
  padding-bottom: 86px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 480px;
  margin-bottom: 0;
}

.games-grid,
.community-grid,
.gallery-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community-grid,
.gallery-grid,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card,
.community-card,
.panel,
.faq-item,
.gallery-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.game-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 182, 76, 0.58);
}

.game-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0f1215;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.game-card:hover .game-media img {
  transform: scale(1.035);
}

.game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42));
}

.placeholder-art {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(88, 210, 197, 0.24), rgba(216, 93, 75, 0.22)),
    url("images/hero-background.jpg") center / cover;
  color: rgba(246, 242, 234, 0.82);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-body,
.community-card {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.game-body {
  padding: 18px;
}

.game-body p,
.community-card p {
  color: var(--muted);
}

.game-body .link-button,
.community-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.game-body .link-button {
  margin-left: -14px;
}

.band {
  width: 100%;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(216, 93, 75, 0.18), rgba(88, 210, 197, 0.14)),
    rgba(10, 12, 14, 0.84);
}

.studio-grid {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.stat {
  border-left: 1px solid var(--line-strong);
  padding: 6px 22px;
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.stat span {
  color: var(--muted);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.split .section-head {
  align-self: start;
  align-items: flex-start;
  margin-bottom: 0;
}

.about-panel,
.community-card,
.faq-item {
  padding: 22px;
}

.about-panel {
  border: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.58);
  padding: clamp(24px, 4vw, 42px);
}

.game-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0d1013;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img,
.hero-bg .placeholder-art {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 72px);
  object-fit: cover;
  opacity: 0.72;
}

.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.94), rgba(7, 7, 8, 0.58) 48%, rgba(7, 7, 8, 0.24)),
    linear-gradient(180deg, rgba(7, 7, 8, 0.18), rgba(7, 7, 8, 0.88));
  pointer-events: none;
}

.hero-content {
  padding: 84px 0 70px;
}

.hero-panel {
  max-width: 900px;
}

.hero-kicker {
  width: min(var(--max), calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-fact {
  min-height: 92px;
  padding: 18px;
  background: rgba(13, 16, 19, 0.92);
}

.quick-fact span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-fact strong {
  color: var(--ink);
  line-height: 1.3;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.panel {
  padding: clamp(24px, 4vw, 42px);
}

.overview-art {
  min-height: 100%;
  overflow: hidden;
  padding: 0;
}

.overview-art img,
.overview-art .placeholder-art {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  border-left: 1px solid var(--line-strong);
  padding: 6px 0 6px 14px;
  color: var(--muted);
  line-height: 1.5;
}

.gallery-grid {
  margin-bottom: 16px;
}

.gallery-card {
  overflow: hidden;
  margin: 0;
}

.gallery-card img,
.gallery-card .placeholder-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 12px 14px 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.video-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 93, 75, 0.24), rgba(88, 210, 197, 0.14)),
    rgba(7, 7, 8, 0.66);
  text-align: center;
  padding: 24px;
}

.video-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.social-band {
  border-top: 1px solid rgba(246, 242, 234, 0.12);
  border-bottom: 1px solid rgba(246, 242, 234, 0.08);
  background:
    linear-gradient(90deg, rgba(216, 93, 75, 0.1), rgba(88, 210, 197, 0.08)),
    rgba(7, 7, 8, 0.9);
}

.social-inner {
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-link {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 160ms ease, filter 160ms ease;
}

.social-link img {
  width: auto;
  height: 34px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.88);
}

.simple-game-page {
  width: min(1320px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 84px 0;
}

.simple-game-copy {
  max-width: 720px;
  min-width: 0;
}

.simple-game-copy h1 {
  max-width: 100%;
  font-size: clamp(3rem, 3.9vw, 4.45rem);
  overflow-wrap: normal;
  text-wrap: balance;
}

.game-description {
  margin-top: 28px;
}

.simple-game-visual {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.simple-game-visual > img,
.simple-game-visual > .placeholder-art {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.simple-shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.simple-shot {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.simple-shot img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.phone-shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.phone-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #050607;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.mobile-game-page {
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 1.22fr);
}

.footer-inner {
  padding: 38px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--dim);
  font-size: 0.84rem;
}

@media (max-width: 1060px) {
  .home-hero,
  .split,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .games-grid,
  .gallery-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-kicker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .home-hero {
    min-height: auto;
    padding: 48px 0 26px;
  }

  .game-hero {
    min-height: auto;
  }

  .hero-bg img,
  .hero-bg .placeholder-art {
    min-height: 390px;
  }

  .hero-content {
    padding: 118px 0 54px;
  }

  .hero-kicker {
    margin-top: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-section,
  .section {
    padding: 58px 0;
  }

  .games-grid,
  .community-grid,
  .studio-grid,
  .feature-list,
  .gallery-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .studio-grid {
    padding: 52px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .nav,
  .page-section,
  .section,
  .studio-grid,
  .footer-inner,
  .social-inner,
  .home-hero,
  .hero-content {
    width: min(100% - 22px, var(--max));
  }

  .nav-links a {
    padding: 0 10px;
  }

  .hero-kicker {
    grid-template-columns: 1fr;
  }

  .action-row .button {
    width: 100%;
  }

  h1,
  .home-hero h1 {
    font-size: clamp(2.05rem, 11.5vw, 2.7rem);
  }
}
