:root {
  --ink: #0b2823;
  --ink-soft: #52625e;
  --forest: #063b31;
  --forest-dark: #032a23;
  --green: #087553;
  --cream: #f8f5ed;
  --paper: #fffdf8;
  --gold: #f2ae19;
  --red: #cc2030;
  --blue: #1e4fa3;
  --line: rgba(11, 40, 35, 0.14);
  --shadow: 0 18px 55px rgba(6, 59, 49, 0.12);
  --radius: 22px;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(11, 40, 35, 0.08);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.brand img {
  width: 142px;
  height: auto;
}

.brand picture,
.footer-grid picture {
  display: block;
  line-height: 0;
}

.primary-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  padding: 24px 0 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 13px;
  height: 2px;
  transform: scaleX(0);
  background: var(--gold);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-download {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--cream);
}

.hero-media,
.hero-fade {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-fade {
  background: linear-gradient(90deg, rgba(255, 253, 248, 1) 0%, rgba(255, 253, 248, 0.98) 29%, rgba(255, 253, 248, 0.7) 43%, rgba(255, 253, 248, 0) 66%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: grid;
  align-items: center;
}

.hero-copy {
  width: min(620px, 52%);
  padding: 52px 0 48px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #8ed4bc;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 5.3vw, 5.2rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 4vw, 4rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 30px;
  color: #394e49;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.65;
}

.download-button {
  width: fit-content;
  min-width: min(100%, 420px);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 13px;
  background: var(--green);
  box-shadow: 0 14px 34px rgba(8, 117, 83, 0.24);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  background: #076747;
  box-shadow: 0 18px 38px rgba(8, 117, 83, 0.3);
}

.download-platform {
  flex: 0 0 auto;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 7px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.download-button strong,
.download-button small {
  display: block;
}

.download-button strong {
  font-size: 1.08rem;
}

.download-button small {
  margin-top: 2px;
  opacity: 0.76;
  font-size: 0.78rem;
}

.responsible-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin-top: 22px;
  color: #40544f;
  font-size: 0.82rem;
}

.responsible-inline strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.payment-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}

.payment-strip-inner {
  min-height: 94px;
  display: grid;
  grid-template-columns: 185px 1fr 180px;
  align-items: center;
  gap: 28px;
}

.payment-strip p,
.support-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.payment-wordmarks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  line-height: 1;
}

.wordmark.tng,
.wordmark.fpx {
  color: #1653a1;
}

.wordmark.boost {
  color: #d51c2f;
}

.wordmark.bank {
  color: var(--ink);
}

.support-note {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.section {
  padding: 104px 0;
}

.section-intro {
  margin-bottom: 48px;
}

.split-intro,
.install-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 72px;
}

.split-intro h2,
.install-heading h2 {
  margin-bottom: 0;
}

.split-intro > p,
.install-heading > p {
  max-width: 520px;
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.games-section {
  padding-top: 78px;
  background: var(--paper);
}

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

.game-card {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: transparent;
}

.game-card picture {
  display: block;
  margin: 18px 0 20px;
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 6px;
}

.game-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.game-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.install-section {
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.install-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 28px 34px 28px 0;
  border-top: 1px solid var(--line);
}

.install-steps li + li {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.install-steps p,
.install-cta-row p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.install-cta-row {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}

.download-button.compact {
  padding: 13px 18px;
}

.details-section {
  background: #fff;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 88px;
}

.details-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ink-soft);
}

.fact-list {
  margin: 34px 0 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  font-weight: 850;
}

.fact-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.details-image {
  margin: 0;
}

.details-image img {
  width: 100%;
  aspect-ratio: 1.24;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.details-image figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.payments-section {
  background: var(--cream);
}

.method-list {
  border-top: 1px solid var(--line);
}

.method-list article {
  display: grid;
  grid-template-columns: 250px 1fr 140px;
  gap: 42px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.method-list h3,
.method-list p {
  margin: 0;
}

.method-list p {
  color: var(--ink-soft);
}

.method-list span {
  justify-self: end;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.safety-section {
  background: var(--forest-dark);
  color: #fff;
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 80px;
  align-items: start;
}

.safety-grid > div > p:not(.eyebrow) {
  max-width: 680px;
  color: #c7d7d2;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.responsible-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.responsible-card .age-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--red);
  font-weight: 900;
}

.responsible-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.responsible-card p {
  color: #c7d7d2;
}

.faq-section {
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 90px;
}

.faq-intro {
  position: sticky;
  top: 110px;
}

.faq-intro > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.support-email a {
  color: var(--green);
  font-weight: 800;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 23px 48px 23px 0;
  font-weight: 850;
  font-size: 1.03rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "Show";
  float: right;
  margin-right: -48px;
  color: var(--green);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-list details[open] summary::after {
  content: "Hide";
}

.faq-list details p {
  max-width: 780px;
  padding: 0 48px 22px 0;
  color: var(--ink-soft);
}

.final-cta {
  padding: 82px 0;
  background: var(--forest);
  color: #fff;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: #c7d7d2;
}

.light-button {
  flex: 0 0 auto;
  background: #fff;
  box-shadow: none;
  color: var(--forest);
}

.light-button:hover {
  background: var(--cream);
}

.light-button .download-platform {
  border-color: rgba(6, 59, 49, 0.35);
}

.site-footer {
  padding: 66px 0 26px;
  background: #071d19;
  color: #dce6e3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1fr 1.15fr;
  gap: 48px;
}

.footer-grid img {
  width: 145px;
  height: auto;
  margin-bottom: 18px;
}

.footer-grid picture {
  margin-bottom: 18px;
}

.footer-grid picture img {
  margin-bottom: 0;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  color: #9db1ab;
  font-size: 0.83rem;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #81968f;
  font-size: 0.78rem;
}

.mobile-download-bar,
.download-toast {
  display: none;
}

@media (max-width: 1080px) {
  .brand span,
  .header-download {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero-media img {
    object-position: 61% center;
  }

  .hero-fade {
    background: linear-gradient(90deg, rgba(255, 253, 248, 1) 0%, rgba(255, 253, 248, 0.97) 39%, rgba(255, 253, 248, 0.18) 73%, rgba(255, 253, 248, 0) 100%);
  }

  .hero-copy {
    width: 56%;
  }

  .payment-strip-inner {
    grid-template-columns: 160px 1fr;
  }

  .support-note {
    display: none;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .details-grid,
  .safety-grid {
    gap: 50px;
  }

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

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  html {
    scroll-padding-top: 74px;
  }

  body {
    padding-bottom: 72px;
  }

  .site-header {
    background: rgba(255, 253, 248, 0.98);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand img {
    width: 118px;
  }

  .menu-button {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    gap: 0;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 395px;
    background: var(--paper);
  }

  .hero-media {
    height: 395px;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-fade {
    height: 410px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0) 55%, var(--paper) 100%);
  }

  .hero-grid {
    min-height: 0;
    display: block;
  }

  .hero-copy {
    width: 100%;
    padding: 28px 0 48px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .download-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .hero-copy > .download-button {
    display: none;
  }

  .responsible-inline {
    align-items: flex-start;
  }

  .payment-strip-inner {
    display: block;
    padding-block: 24px;
  }

  .payment-wordmarks {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .section {
    padding: 76px 0;
  }

  .split-intro,
  .install-heading,
  .details-grid,
  .safety-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-intro {
    margin-bottom: 34px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 18px;
    padding-top: 18px;
  }

  .game-card img {
    margin: 0;
  }

  .game-card picture {
    margin: 0;
  }

  .game-card h3 {
    font-size: 1.35rem;
  }

  .install-steps {
    grid-template-columns: 1fr;
  }

  .install-steps li,
  .install-steps li + li {
    padding: 24px 0;
    border-left: 0;
  }

  .install-cta-row {
    display: grid;
  }

  .details-grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .method-list article {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .method-list article p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .method-list span {
    grid-column: 2;
    grid-row: 1;
  }

  .faq-intro {
    position: static;
  }

  .final-cta-inner {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    display: grid;
  }

  .mobile-download-bar {
    position: fixed;
    z-index: 80;
    inset: auto 0 0;
    display: block;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(3, 42, 35, 0.97);
    backdrop-filter: blur(12px);
  }

  .mobile-download-bar a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 10px;
    background: var(--gold);
    color: #111;
    text-decoration: none;
  }

  .mobile-download-bar span {
    padding: 5px 6px;
    border: 1px solid rgba(0, 0, 0, 0.34);
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .download-toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 84px;
    display: block;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    border-radius: 9px;
    background: #111;
    color: #fff;
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    font-size: 0.82rem;
  }

  .download-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 470px) {
  .hero {
    padding-top: 310px;
  }

  .hero-media,
  .hero-fade {
    height: 325px;
  }

  .hero-media img {
    object-position: 68% center;
  }

  .hero-copy {
    padding-top: 16px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-card img {
    width: 100%;
  }

  .method-list article {
    grid-template-columns: 1fr;
  }

  .method-list span {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
