/* Game pages: studio chrome + fixes for game CSS / styles.css collisions */

@import url("./game-scrollbars.css");

body.game-site-page::before,
body.game-site-page::after,
body.game-site-page.landing-page::before {
  display: none;
}

body.game-site-page > .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  min-height: unset;
  align-items: unset;
  gap: unset;
  background: rgba(2, 6, 11, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line, rgba(82, 185, 228, 0.26));
}

body.game-site-page > .site-header a {
  text-decoration: none;
}

body.game-site-page > .site-header .nav-links a {
  color: #b8c9d9;
}

body.game-site-page > .site-header .nav-links a:hover {
  color: #f4f8ff;
}

body.game-site-page > footer {
  position: relative;
  z-index: 30;
  margin-top: auto;
}

body.game-site-page:has(.cookie-banner:not([hidden])) > footer {
  padding-bottom: 120px;
}

body.game-site-page .landing-shell a.button,
body.game-site-page .landing-shell a.landing-button {
  text-decoration: none;
}

body.game-site-page .landing-shell a.button-primary {
  color: #001018;
}

body.game-site-page .landing-shell a.button-primary:hover {
  color: #001018;
}

body.game-site-page .landing-shell a.button-quiet {
  color: #eefaff;
}

body.game-site-page > footer .footer-links a {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: none;
}

body.game-site-page > footer .footer-links a:hover {
  color: var(--cyan, #28d9ff);
  text-shadow: none;
}

/* Undo studio homepage rules inside game content */
body.game-site-page :is(.page-shell, .landing-shell) .hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
  min-height: unset;
  position: static;
  overflow: visible;
  padding: 78px 0 74px;
  border-bottom: 1px solid rgba(61, 225, 255, 0.22);
  background: none;
}

body.game-site-page :is(.page-shell, .landing-shell) .hero::after {
  display: none;
}

body.game-site-page :is(.page-shell, .landing-shell) .hero h1 {
  max-width: 620px;
  margin: 0 0 25px;
  font-size: clamp(3.5rem, 7vw, 6.9rem);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

body.game-site-page :is(.page-shell, .landing-shell) .hero .lede {
  max-width: 540px;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.75;
}

body.game-site-page :is(.page-shell, .landing-shell) .eyebrow {
  margin: 0 0 18px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

body.game-site-page :is(.page-shell, .landing-shell) .section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 0;
  max-width: none;
}

body.game-site-page :is(.page-shell, .landing-shell) .section-heading .eyebrow {
  grid-column: 1;
  margin-bottom: 12px;
}

body.game-site-page :is(.page-shell, .landing-shell) .section-heading h2 {
  grid-column: 1;
  margin-bottom: 0;
  color: inherit;
  font-size: clamp(2.2rem, 4.6vw, 4.35rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-transform: none;
  white-space: normal;
}

body.game-site-page :is(.page-shell, .landing-shell) .section-heading > p:last-of-type {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  align-self: end;
  max-width: none;
}

body.game-site-page :is(.page-shell, .landing-shell) .section-heading::before,
body.game-site-page :is(.page-shell, .landing-shell) .section-heading::after {
  display: none;
  content: none;
}

body.game-site-page :is(.page-shell, .landing-shell) .cta-section h2 {
  margin-bottom: 20px;
  color: inherit;
  font-size: clamp(2.2rem, 4.6vw, 4.35rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-transform: none;
  white-space: normal;
}

body.game-site-page :is(.page-shell, .landing-shell) .section-heading-wide {
  max-width: none;
}

body.game-site-page :is(.page-shell, .landing-shell) .section-heading > p:last-child,
body.game-site-page :is(.page-shell, .landing-shell) .cta-section > p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.8;
}

body.game-site-page :is(.page-shell, .landing-shell) .cta-section {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 0;
  background:
    radial-gradient(circle at 78% 48%, rgba(61, 225, 255, 0.13), transparent 22rem),
    radial-gradient(circle at 50% 110%, rgba(255, 78, 234, 0.12), transparent 26rem);
}

body.game-site-page :is(.page-shell, .landing-shell) .cta-section h2 {
  max-width: 760px;
}

body.game-site-page :is(.page-shell, .landing-shell) .cta-section .button {
  margin-top: 20px;
}

/* Contextual game legal links inside the final CTA, not a separate nav bar */
.game-help-links {
  max-width: 560px;
  margin: 24px 0 0;
  color: #8fa4b8;
  font-size: 0.92rem;
  line-height: 1.75;
}

.game-help-links a {
  color: #28d9ff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(40, 217, 255, 0.35);
  text-underline-offset: 3px;
}

.game-help-links a:hover {
  color: #f4f8ff;
  text-decoration-color: rgba(244, 248, 255, 0.5);
}

.landing-cta .game-help-links {
  margin-top: 18px;
}

@media (max-width: 900px) {
  body.game-site-page :is(.page-shell, .landing-shell) .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.game-site-page :is(.page-shell, .landing-shell) .section-heading .eyebrow,
  body.game-site-page :is(.page-shell, .landing-shell) .section-heading h2,
  body.game-site-page :is(.page-shell, .landing-shell) .section-heading > p:last-of-type {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  body.game-site-page:has(.cookie-banner:not([hidden])) > footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  body.game-site-page :is(.page-shell, .landing-shell) .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 58px 0 56px;
  }

  body.game-site-page > .site-header {
    min-height: unset;
    align-items: unset;
    justify-content: unset;
    gap: unset;
    padding: unset;
  }

  body.game-site-page :is(.page-shell, .landing-shell) .section-heading h2,
  body.game-site-page :is(.page-shell, .landing-shell) .cta-section h2 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
}
