/* ===== Made with Xorin — homepage section + game pages =====
   Builds on home.css tokens (gold palette, Space Grotesk / Fira Sans). */

:root {
  --mwx-ink: #0b0a08;
  --mwx-panel: #13110d;
  --mwx-line: rgba(255, 255, 255, 0.1);
  --mwx-teal: #8fc7c0;
}

/* ---------- Shared bits ---------- */
.mwx-eyebrow {
  font-family: "Fira Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #a39367;
}
.mwx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mwx-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--tag-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--body-moderate);
  white-space: nowrap;
}
.mwx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.mwx-link:hover {
  color: var(--gold);
}
.mwx-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.mwx-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Homepage section ---------- */
.mwx-fold {
  position: relative;
  background: linear-gradient(180deg, #090807 0%, #0d0c0a 100%);
  padding: var(--fold-pad, 96px) 24px;
  scroll-margin-top: 70px;
}
.mwx-fold-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.mwx-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}
.mwx-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 44px;
  letter-spacing: -0.6px;
  color: var(--muted);
  text-wrap: balance;
}
.mwx-head h2 b {
  font-weight: 700;
  color: #fff;
}
.mwx-head p {
  font-size: 16px;
  line-height: 26px;
  color: var(--body-subtle);
}

.mwx-card {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--mwx-line);
  background: var(--mwx-panel);
  box-shadow:
    0 30px 70px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.mwx-card:hover {
  border-color: rgba(243, 196, 61, 0.35);
  transform: translateY(-2px);
}
.mwx-card-art {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.mwx-card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mwx-card:hover .mwx-card-art img {
  transform: scale(1.03);
}
.mwx-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 17, 13, 0) 70%, rgba(19, 17, 13, 0.9) 100%);
  pointer-events: none;
}
.mwx-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px;
}
.mwx-card-body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.4px;
  color: #fff;
}
.mwx-card-body h3 small {
  display: block;
  margin-top: 6px;
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--mwx-teal);
}
.mwx-card-body p {
  font-size: 15px;
  line-height: 24px;
  color: var(--body-moderate);
}

/* Fold 2-style stat strip inside the card */
.mwx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mwx-line);
  border: 1px solid var(--mwx-line);
}
.mwx-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: #0f0e0b;
}
.mwx-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  color: var(--gold);
}
.mwx-stat span {
  font-size: 12px;
  line-height: 16px;
  color: var(--body-subtle);
}

@media (max-width: 900px) {
  .mwx-fold {
    padding: 80px 32px;
  }
  .mwx-card {
    grid-template-columns: 1fr;
  }
  .mwx-card-art {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .mwx-card-art::after {
    background: linear-gradient(180deg, rgba(19, 17, 13, 0) 70%, rgba(19, 17, 13, 0.9) 100%);
  }
  .mwx-card-body {
    padding: 28px;
  }
  .mwx-head h2 {
    font-size: 30px;
    line-height: 36px;
  }
}
@media (max-width: 600px) {
  .mwx-fold {
    padding: 64px 16px;
  }
  .mwx-card-body {
    padding: 22px 18px 26px;
  }
  .mwx-card-body h3 {
    font-size: 26px;
    line-height: 30px;
  }
  .mwx-head h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .mwx-stat {
    padding: 10px;
  }
  .mwx-stat strong {
    font-size: 17px;
  }
}

/* Nav: the extra link hides on mobile like "Features" */
@media (max-width: 900px) {
  .nav-made {
    display: none;
  }
}

/* ======================================================================
   Game page
   ====================================================================== */
.game-page {
  background: #050507;
}
.game-page main {
  display: block;
}

/* ---------- Hero ---------- */
/* The key art already carries the painted logo, so it is shown whole
   and the copy sits underneath it rather than on top. */
.g-hero {
  position: relative;
  isolation: isolate;
}
.g-hero-media {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}
.g-hero-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  object-position: 50% 35%;
}
.g-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0) 62%, #050507 100%),
    linear-gradient(90deg, #050507 0%, rgba(5, 5, 7, 0) 6%, rgba(5, 5, 7, 0) 94%, #050507 100%);
}
.g-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: -72px auto 0;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px 56px;
  align-items: end;
}
.g-hero-inner > .g-hero-left,
.g-hero-inner > .g-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 900px) {
  .g-hero-inner {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }
}
.g-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(28, 22, 6, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 500 12px/16px "Fira Mono", monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #e7cf86;
}
.g-crumb a:hover {
  color: #fff;
}
.g-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 68px;
  letter-spacing: -1.4px;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.g-hero h1 span {
  display: block;
  margin-top: 6px;
  font-weight: 300;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 2px;
  color: var(--mwx-teal);
}
.g-hero .g-lead {
  max-width: 560px;
  font-size: 18px;
  line-height: 28px;
  color: var(--body-moderate);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
}
.g-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Section shell ---------- */
.g-sec {
  position: relative;
  padding: 96px 24px;
  scroll-margin-top: 70px; /* clear the sticky nav when jumping to #play / #teaser */
}
.g-sec.tint {
  background: #151311;
}
.g-sec.ink {
  background: #090807;
}
.g-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.g-sec-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin-bottom: 44px;
}
.g-sec-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 44px;
  letter-spacing: -0.5px;
  color: var(--muted);
  text-wrap: balance;
}
.g-sec-head h2 b {
  font-weight: 700;
  color: #fff;
}
.g-sec-head p {
  font-size: 16px;
  line-height: 26px;
  color: var(--body-subtle);
}

/* ---------- At a glance ---------- */
.g-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--mwx-line);
  background: var(--mwx-line);
}
.g-fact {
  padding: 22px 24px;
  background: #0e0d0b;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.g-fact span {
  font: 500 11px/15px "Fira Mono", monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a39367;
}
.g-fact strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #fff;
}

/* ---------- Teaser ---------- */
.g-video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.32),
    0 48px 96px rgba(0, 0, 0, 0.28);
}
.g-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Playable build ---------- */
.g-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(243, 196, 61, 0.28);
  background: #0b1214;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.32),
    0 48px 96px rgba(0, 0, 0, 0.28),
    0 0 80px rgba(214, 150, 74, 0.08);
}
.g-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.g-player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0b1214;
  color: #fff;
  font: inherit;
}
.g-player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
  transition: filter 0.3s ease, transform 0.6s ease;
}
.g-player-cover:hover img {
  filter: brightness(0.7);
  transform: scale(1.02);
}
.g-player-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.g-player-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #1c1606;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease;
}
.g-player-cover:hover .g-player-icon {
  transform: scale(1.06);
}
.g-player-icon svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.g-player-cta strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 32px;
}
.g-player-cta small {
  font-size: 14px;
  color: var(--body-moderate);
}
.g-player-cover:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.g-player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 14px;
}
.g-player-note {
  font-size: 13px;
  color: #8a8a8a;
}
.g-player-tools {
  display: flex;
  gap: 22px;
}
.g-player-tools .mwx-link {
  font-size: 14px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
@media (max-width: 600px) {
  .g-player {
    border-radius: 12px;
  }
  .g-player-icon {
    width: 56px;
    height: 56px;
  }
  .g-player-cta strong {
    font-size: 19px;
    line-height: 24px;
  }
  .g-player-cta small {
    font-size: 12px;
  }
}

/* ---------- Story ---------- */
.g-story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.g-story-art {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--mwx-line);
  aspect-ratio: 1100 / 1158;
}
.g-story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.g-story-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.g-story-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 42px;
  color: #fff;
}
.g-story-copy .g-name {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.4px;
}
.g-story-copy p {
  font-size: 16px;
  line-height: 27px;
  color: var(--body-moderate);
}

/* ---------- Gameplay pillars ---------- */
.g-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.g-pillar {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--mwx-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-pillar i {
  font-style: normal;
  font: 500 12px/16px "Fira Mono", monospace;
  color: var(--gold);
}
.g-pillar h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 25px;
  color: #fff;
}
.g-pillar p {
  font-size: 14.5px;
  line-height: 23px;
  color: var(--body-subtle);
}

/* ---------- Gallery ---------- */
.g-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.g-gallery figure {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mwx-line);
  background: #000;
}
.g-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.g-gallery figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--body-subtle);
  background: #0e0d0b;
}

/* ---------- Built with Xorin ---------- */
.g-xorin {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.g-xorin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(243, 196, 61, 0.24);
  background: rgba(243, 196, 61, 0.18);
}
.g-xorin-stats div {
  padding: 22px;
  background: #13100a;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.g-xorin-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;
  background: linear-gradient(92deg, #ffe9a8 0%, #ffcf4d 50%, #e0a52a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.g-xorin-stats div.wide {
  grid-column: 1 / -1;
}
.g-xorin-stats span {
  font-size: 13px;
  line-height: 18px;
  color: var(--body-subtle);
}
.g-xorin-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 20px;
  color: #8a8a8a;
}
.g-built {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--mwx-line);
}
.g-built li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mwx-line);
}
.g-built li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(119, 211, 162, 0.14);
  color: #77d3a2;
  font-size: 12px;
}
.g-built strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}
.g-built span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 21px;
  color: var(--body-subtle);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .g-sec {
    padding: 80px 32px;
  }
  .g-hero h1 {
    font-size: 44px;
    line-height: 48px;
  }
  .g-hero .g-lead {
    font-size: 16px;
    line-height: 25px;
  }
  .g-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .g-story,
  .g-xorin {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .g-story-art {
    max-width: 520px;
  }
  .g-pillars {
    grid-template-columns: 1fr 1fr;
  }
  .g-sec-head h2 {
    font-size: 30px;
    line-height: 36px;
  }
}
@media (max-width: 600px) {
  .g-sec {
    padding: 64px 16px;
  }
  .g-hero {
    min-height: 82vh;
  }
  .g-hero-inner {
    padding: 0 16px 44px;
  }
  .g-hero h1 {
    font-size: 36px;
    line-height: 40px;
  }
  .g-hero h1 span {
    font-size: 17px;
  }
  .g-pillars,
  .g-gallery {
    grid-template-columns: 1fr;
  }
  .g-sec-head h2,
  .g-story-copy h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .g-fact {
    padding: 16px;
  }
  .g-fact strong {
    font-size: 15px;
  }
  .g-xorin-stats strong {
    font-size: 26px;
    line-height: 32px;
  }
  .g-video {
    border-radius: 12px;
  }
}

/* ---------- Unity project download ---------- */
.g-download {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.g-download-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.g-download-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 44px;
  letter-spacing: -0.5px;
  color: var(--muted);
}
.g-download-copy h2 b {
  font-weight: 700;
  color: #fff;
}
.g-download-copy p {
  font-size: 16px;
  line-height: 26px;
  color: var(--body-subtle);
  max-width: 560px;
}
.g-download-req {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--mwx-line);
}
.g-download-req li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--mwx-line);
  font-size: 14px;
  line-height: 21px;
  color: var(--body-moderate);
}
.g-download-req li span {
  font: 500 11px/21px "Fira Mono", monospace;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #a39367;
}
.g-download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(243, 196, 61, 0.24);
  background: linear-gradient(180deg, rgba(243, 196, 61, 0.06) 0%, rgba(243, 196, 61, 0.015) 100%);
}
.g-download-file {
  font: 500 12px/18px "Fira Mono", monospace;
  color: var(--body-moderate);
  word-break: break-all;
}
.g-download-size {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  color: #fff;
}
.g-download-card small {
  font-size: 13px;
  color: #8a8a8a;
}
@media (max-width: 900px) {
  .g-download {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .g-download-copy h2 {
    font-size: 30px;
    line-height: 36px;
  }
}
@media (max-width: 600px) {
  .g-download-copy h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .g-download-req li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .g-download-card {
    padding: 20px;
  }
}
.g-download-copy p code {
  font-family: "Fira Mono", monospace;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--body-moderate);
}
