@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap");

:root {
  --bg: #101820;
  --bg-soft: #17232d;
  --paper: #f7f7f1;
  --paper-soft: #eff4e6;
  --ink: #14202a;
  --muted: #61707d;
  --muted-dark: #a8b4bd;
  --line: rgba(20, 32, 42, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --mint: #77d7c8;
  --lime: #b8eb6f;
  --coral: #de5965;
  --yellow: #f4d66a;
  --blue: #6aa7d8;
  --shadow: 0 24px 70px rgba(11, 18, 25, 0.22);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(119, 215, 200, 0.18), transparent 360px),
    linear-gradient(180deg, var(--paper) 0%, #eef2e9 54%, #dde8dc 100%);
}

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

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 32, 42, 0.08);
  background: rgba(247, 247, 241, 0.84);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f1b24;
  background:
    linear-gradient(135deg, var(--lime), var(--mint));
  box-shadow: 0 12px 26px rgba(20, 32, 42, 0.18);
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-copy strong {
  font-size: 1.2rem;
  line-height: 1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.46rem 0.75rem;
  border-radius: 999px;
  color: #344652;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: #0f1b24;
  background: rgba(119, 215, 200, 0.32);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.hero {
  padding: 34px 0 22px;
}

.hero--compact {
  padding-bottom: 8px;
}

.hero-shell {
  min-height: 610px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(23, 35, 45, 0.96)),
    var(--bg);
  color: #f8faf7;
  box-shadow: var(--shadow);
}

.hero-shell--portal {
  min-height: 380px;
  grid-template-columns: 1fr;
}

.hero-copy {
  padding: 44px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.part {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  color: #11202a;
  background: var(--lime);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.part {
  padding: 0;
  min-height: 0;
  color: #3b6862;
  background: transparent;
}

.hero h1,
.page-hero h1 {
  margin: 0.75rem 0;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.05rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  color: #0f1b24;
  background: var(--lime);
}

.button-secondary {
  color: #f8faf7;
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
}

.hero-media {
  min-height: 610px;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 34px 34px 0 0;
}

.phone-shot {
  width: min(330px, 80%);
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.84);
  border-bottom-width: 0;
  border-radius: 40px 40px 0 0;
  background: #a9c3d1;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 auto 24px;
}

.quick-links a {
  padding: 0.48rem 0.76rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #40535e;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
  font-weight: 800;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.info-card h2,
.game-card h2,
.privacy-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.section-heading p,
.info-card p,
.game-card p,
.privacy-card p,
.faq p,
.legal-list {
  margin: 0;
  color: var(--muted);
}

.grid-2,
.grid-3,
.games-grid {
  display: grid;
  gap: 1rem;
}

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

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

.game-card,
.info-card,
.privacy-card,
.faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 50px rgba(20, 32, 42, 0.08);
}

.game-card,
.info-card,
.privacy-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
}

.faq {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem;
}

.faq h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.game-card {
  min-height: 245px;
  align-content: space-between;
}

.game-card--link {
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.game-card--link:hover,
.game-card--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 94, 100, 0.35);
  box-shadow: 0 22px 60px rgba(20, 32, 42, 0.14);
}

.game-card--link p::after {
  content: " ->";
  font-weight: 800;
}

.game-card .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  color: #273944;
  background: #e8efe3;
  font-size: 0.76rem;
  font-weight: 800;
}

.badge-accent {
  background: rgba(119, 215, 200, 0.34);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.2rem;
}

.card-links a,
.text-link {
  color: #225e64;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.96);
  color: #f8faf7;
  box-shadow: var(--shadow);
}

.feature-copy {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.feature-copy p {
  color: var(--muted-dark);
}

.feature-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

.feature-media img,
.feature-media video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  background: #8eb0bd;
}

.feature-media video {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.page-hero {
  padding: 34px 0 12px;
}

.page-hero .container {
  display: grid;
  gap: 0.65rem;
  padding: 2.2rem;
  border-radius: 8px;
  color: #f8faf7;
  background: linear-gradient(135deg, #101820, #243541);
  box-shadow: var(--shadow);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.stack {
  display: grid;
  gap: 1rem;
}

.legal-list,
.support-list {
  padding-left: 1.1rem;
}

.legal-list li,
.support-list li {
  margin: 0.35rem 0;
}

.notice {
  border-left: 5px solid var(--coral);
}

.footer {
  margin-top: 34px;
  padding: 28px 0;
  color: #dfe8e8;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  color: #b7c4ca;
  font-weight: 700;
}

.muted {
  color: var(--muted-dark);
}

@media (max-width: 880px) {
  .topbar-inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(247, 247, 241, 0.96);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    justify-content: center;
  }

  .hero-shell,
  .feature,
  .grid-2,
  .grid-3,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 0;
  }

  .hero-copy {
    padding: 28px 24px 0;
  }

  .hero-media {
    min-height: 420px;
    padding: 0 0 0;
  }

  .phone-shot {
    width: min(270px, 76%);
  }

  .feature-media {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 22px));
  }

  .brand-copy span {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .page-hero .container,
  .info-card,
  .privacy-card,
  .game-card {
    padding: 1rem;
  }

  .hero-actions,
  .cta-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
