/* Cohesive Buildaster game page.
   Uses the same light paper language as How to play and Community, but with fewer nested cards. */

.game-page {
  --game-paper: #f7f3ea;
  --game-card: #fffdf7;
  --game-ink: #26221c;
  --game-soft: #6b6558;
  --game-line: #e4dcc9;
  --game-yellow: #ffb51b;
  --game-yellow-deep: #9a6800;
  --game-blue: #0378bd;
  --game-blue-soft: #eef8fd;
  background: var(--game-paper);
  color: var(--game-ink);
}

.game-page .game-page-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--game-line);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(14px);
}

.game-page .game-page-header .site-brand {
  text-shadow: none;
}

.game-page .game-page-header .brand-builder {
  color: var(--game-ink);
}

.game-page .game-page-header .brand-vr {
  color: var(--game-yellow-deep);
}

.game-page .game-page-header .main-nav a {
  color: var(--game-soft);
}

.game-page .game-page-header .main-nav a:hover,
.game-page .game-page-header .main-nav a:focus-visible,
.game-page .game-page-header .main-nav a[aria-current="page"] {
  color: var(--game-ink);
}

.game-page .game-page-header .main-nav a[aria-current="page"]::after {
  background: var(--game-yellow-deep);
  opacity: 1;
  transform: scaleX(1);
}

.game-wrap {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

.game-hero {
  padding: clamp(44px, 6vw, 74px) 0 clamp(48px, 7vw, 82px);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 181, 27, 0.12), transparent 33%),
    linear-gradient(180deg, #fffdf7 0%, var(--game-paper) 100%);
}

.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 5vw, 66px);
}

.game-hero-copy h1 {
  max-width: 680px;
  margin: 0;
  color: var(--game-ink);
  font-size: clamp(2.65rem, 5.3vw, 4.75rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.game-lede,
.game-story-copy > p:not(.marketing-eyebrow),
.game-section-heading > p:not(.marketing-eyebrow),
.game-section-heading > div > p:not(.marketing-eyebrow),
.game-final-cta p {
  color: var(--game-soft);
  line-height: 1.72;
}

.game-lede {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.game-hero-art {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--game-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(30, 26, 20, 0.02) 40%, rgba(30, 26, 20, 0.72) 100%),
    url("../images/buildastervr-hero.png") center/cover no-repeat;
  box-shadow: 0 18px 42px rgba(84, 70, 44, 0.13);
}

.game-hero-art-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(30, 26, 20, 0.68);
  backdrop-filter: blur(12px);
}

.game-hero-art-label span {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.game-hero-art-label span:nth-child(2) {
  background: rgba(10, 182, 255, 0.18);
}

.game-hero-art-label span:nth-child(3) {
  background: rgba(255, 181, 27, 0.18);
}

.game-section-nav {
  position: sticky;
  z-index: 45;
  top: 75px;
  border-top: 1px solid var(--game-line);
  border-bottom: 1px solid var(--game-line);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(12px);
}

.game-section-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.game-section-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--game-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.game-section-nav a:hover,
.game-section-nav a:focus-visible {
  background: var(--game-card);
  color: var(--game-ink);
  outline: none;
}

.game-story-section {
  scroll-margin-top: 132px;
  padding: clamp(56px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--game-line);
}

.game-story-section-alt {
  background: var(--game-card);
}

.game-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 74px);
}

.game-story-grid-reverse > :first-child {
  order: 2;
}

.game-story-copy h2,
.game-section-heading h2,
.game-final-cta h2 {
  max-width: 760px;
  margin: 0;
  color: var(--game-ink);
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.game-story-copy > p:not(.marketing-eyebrow),
.game-section-heading > p:not(.marketing-eyebrow),
.game-section-heading > div > p:not(.marketing-eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1rem;
}

.game-build-board,
.game-coop-board {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--game-line);
  border-radius: 18px;
  background: var(--game-paper);
  box-shadow: 0 14px 34px rgba(84, 70, 44, 0.08);
}

.game-build-board article {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--game-line);
  border-radius: 12px;
  background: #fff;
}

.game-build-board article:nth-child(2) {
  border-color: #e1c477;
  background: #fff8e8;
}

.game-build-board img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.game-build-board strong,
.game-build-board span,
.game-role-card strong,
.game-role-card span {
  display: block;
}

.game-build-board strong,
.game-role-card strong {
  color: var(--game-ink);
  font-size: 0.98rem;
}

.game-build-board span,
.game-role-card span {
  margin-top: 4px;
  color: var(--game-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.game-inline-note {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding: 15px 16px;
  border-left: 3px solid var(--game-blue);
  background: var(--game-blue-soft);
}

.game-inline-note strong {
  color: #075b8b;
  font-size: 0.86rem;
}

.game-inline-note span {
  color: var(--game-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.game-coop-board {
  padding: 20px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 181, 27, 0.14), transparent 30%),
    var(--game-paper);
}

.game-role-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--game-line);
  border-radius: 13px;
  background: #fff;
}

.game-role-card-architect {
  border-color: #cbe5f3;
  background: #f4fbff;
}

.game-role-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.game-role-card small {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--game-yellow-deep);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.game-role-card-architect small {
  color: var(--game-blue);
}

.game-live-connector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 2px 20px;
  color: var(--game-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-live-connector span {
  height: 1px;
  background: #cbe5f3;
}

.game-live-connector b::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #7bd62f;
  box-shadow: 0 0 0 4px rgba(123, 214, 47, 0.14);
  content: "";
}

.game-section-heading {
  max-width: 820px;
}

.game-challenge-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.game-challenge-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--game-line);
  border-radius: 14px;
  background: var(--game-card);
  box-shadow: 0 8px 20px rgba(84, 70, 44, 0.05);
}

.game-challenge-strip article:nth-child(2) {
  border-color: #cbe5f3;
  background: #f4fbff;
}

.game-challenge-strip article:nth-child(3) {
  border-color: #e1c477;
  background: #fff8e8;
}

.game-challenge-strip > article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #fff0c9;
  color: var(--game-yellow-deep);
  font-weight: 950;
}

.game-challenge-strip strong {
  display: block;
  color: var(--game-ink);
}

.game-challenge-strip p {
  margin: 6px 0 0;
  color: var(--game-soft);
  font-size: 0.87rem;
  line-height: 1.55;
}

.game-free-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-free-list li {
  position: relative;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--game-line);
  border-radius: 12px;
  background: #fff;
  color: var(--game-soft);
  line-height: 1.55;
}

.game-free-list li::before {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff0c9;
  color: var(--game-yellow-deep);
  content: "✓";
  font-size: 0.76rem;
  font-weight: 950;
}

.game-section-heading-community {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  max-width: none;
}

.game-community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.game-community-grid .marketing-community-card {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(84, 70, 44, 0.05);
}

.game-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  align-items: start;
  gap: clamp(36px, 6vw, 72px);
}

.game-faq {
  margin-top: 0;
}

.game-faq details {
  background: #fff;
}

.game-final-cta {
  padding: clamp(48px, 6vw, 70px) 0;
  background: #fff3d5;
}

.game-final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
}

.game-final-cta h2 {
  max-width: 650px;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
}

.game-final-cta p:not(.marketing-eyebrow) {
  max-width: 650px;
  margin: 14px 0 0;
}

.game-final-actions {
  display: grid;
  min-width: 250px;
  gap: 10px;
}

.game-page-footer {
  padding: 26px 20px 38px;
  border-top: 1px solid var(--game-line);
  background: var(--game-paper);
}

.game-mobile-store-wrap {
  padding: 2px 0 4px;
}

.game-mobile-store-wrap .marketing-button {
  width: 100%;
}

@media (max-width: 940px) {
  .game-hero-grid,
  .game-story-grid,
  .game-faq-layout,
  .game-final-cta-inner {
    grid-template-columns: 1fr;
  }

  .game-story-grid-reverse > :first-child {
    order: initial;
  }

  .game-hero-art {
    min-height: 410px;
  }

  .game-final-actions {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .game-section-nav {
    top: 0;
    position: relative;
  }

  .game-section-nav-inner {
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    padding: 0 12px;
  }

  .game-section-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .game-wrap {
    width: min(100% - 28px, 1060px);
  }

  .game-hero {
    padding-top: 38px;
  }

  .game-hero-art {
    min-height: 320px;
  }

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

  .game-story-section {
    padding: 48px 0;
  }

  .game-build-board,
  .game-coop-board {
    padding: 12px;
  }

  .game-build-board article,
  .game-role-card {
    grid-template-columns: 48px 1fr;
    padding: 14px;
  }

  .game-build-board img,
  .game-role-card img {
    width: 40px;
    height: 40px;
  }

  .game-challenge-strip,
  .game-community-grid,
  .game-section-heading-community,
  .game-final-actions {
    grid-template-columns: 1fr;
  }

  .game-section-heading-community {
    align-items: start;
  }

  .game-section-heading-community > .marketing-button {
    width: 100%;
  }

  .game-final-actions .marketing-button {
    width: 100%;
  }
}
