:root {
  --bg-top: #241d4f;
  --bg-bottom: #0f1026;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f6f5ff;
  --muted: #b7b4da;
  --accent: #ffcf4d;
  --navy: #1b1446;
  --red: #ff5a4e;
  --green: #35d07f;
  --blue: #3d8bff;
  --purple: #a77bff;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg-bottom);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(55% 38% at 8% 0%, rgba(255, 90, 78, 0.24), transparent),
    radial-gradient(45% 38% at 100% 6%, rgba(61, 139, 255, 0.24), transparent),
    radial-gradient(70% 45% at 50% 105%, rgba(53, 208, 127, 0.16), transparent),
    linear-gradient(var(--bg-top), var(--bg-bottom) 70%);
  color: var(--text);
  font: 600 17px/1.6 "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* A faint dotted grid, like a game board seen from far away. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: var(--accent);
}

.wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.narrow {
  max-width: 760px;
}

/* Top bar */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.brand {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
  background: var(--card-strong);
}

/* The R G B blocks and BLAST, as in the game's logo. */
.logo {
  display: flex;
  gap: 8px;
}

.logo .b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 4px solid var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 4px 0 var(--navy), inset 0 3px 0 rgba(255, 255, 255, 0.35);
}

.logo .r {
  background: linear-gradient(#ff8077, var(--red));
}

.logo .g {
  background: linear-gradient(#6ee3a4, var(--green));
}

.logo .bl {
  background: linear-gradient(#79adff, var(--blue));
}

.blast {
  margin: 4px 0 0;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--accent);
  -webkit-text-stroke: 7px var(--navy);
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 0 #0e0b2e) drop-shadow(0 12px 28px rgba(255, 194, 51, 0.25));
}

/* Landing hero */
.landing {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px 0 40px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.lead {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 18px 0 8px;
}

.sub {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 520px;
}

/* Store badges (official artwork, unchanged). */
.badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.badges a,
.badges span {
  display: inline-flex;
  position: relative;
  transition: transform 0.15s ease;
}

.badges a:hover {
  transform: translateY(-2px);
}

.badge-apple {
  height: 54px;
}

/* Google's PNG carries its own clear space: let it reach the same height. */
.badge-play {
  height: 80px;
  margin: -13px -12px;
}

.soon img {
  opacity: 0.45;
  filter: grayscale(0.4);
}

.soon em {
  position: absolute;
  top: -18px;
  right: -6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Three fanned phone screenshots, placed in percent of their own box so
   they never leave it at any width. */
.phones {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1.02;
  margin: 0 auto;
}

.phones img {
  position: absolute;
  top: 9%;
  width: 40%;
  height: auto;
  border-radius: 12% / 5.5%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phones img:nth-child(1) {
  left: 5%;
  transform: rotate(-8deg) scale(0.9);
}

.phones img:nth-child(2) {
  left: 30%;
  top: 0;
  z-index: 1;
}

.phones img:nth-child(3) {
  left: 55%;
  transform: rotate(8deg) scale(0.9);
}

/* Sections */
.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  margin: 24px 0 6px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 26px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(6px);
}

.feature h3 {
  margin: 14px 0 2px;
  font-size: 20px;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* A glossy game block as a feature icon. */
.blk {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy), inset 0 3px 0 rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.blk.red {
  background: linear-gradient(#ff8077, var(--red));
}

.blk.green {
  background: linear-gradient(#6ee3a4, var(--green));
}

.blk.blue {
  background: linear-gradient(#79adff, var(--blue));
}

.blk.gold {
  background: linear-gradient(#ffe48a, #ffb31f);
  color: var(--navy);
}

.blk.purple {
  background: linear-gradient(#c7a8ff, var(--purple));
}

.blk.rainbow {
  background: conic-gradient(from 200deg, #ff8077, #ffe48a, #6ee3a4, #79adff, #c7a8ff, #ff8077);
}

/* Cards (support, privacy) */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0 0 20px;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 800;
}

.card h3 {
  margin: 24px 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.support {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.support p {
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(#ffe07a, var(--accent));
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 0 #c9921c, 0 10px 24px rgba(255, 207, 77, 0.2);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

details:last-child {
  border-bottom: 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Privacy page */
dt {
  font-weight: 800;
  margin-top: 14px;
}

dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.doc h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4px;
}

.doc h2 {
  font-size: 22px;
  margin-top: 28px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc strong {
  color: var(--text);
}

.doc a {
  overflow-wrap: anywhere;
}

.updated {
  font-style: italic;
}

.langs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.langs a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

/* Small centered pages (404, get) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0 28px;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 194, 51, 0.18);
}

.hero .logo {
  margin-top: 22px;
}

.tag {
  color: var(--muted);
  margin: 12px 0 0;
}

.challenge {
  margin: 18px 0 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.get .badges {
  justify-content: center;
  margin-top: 22px;
}

.strip {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 10px;
}

.strip img {
  width: 30%;
  max-width: 200px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.strip img:nth-child(2) {
  transform: translateY(-14px);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 36px;
}

footer a {
  color: var(--muted);
}

@media (max-width: 860px) {
  .landing {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8px;
  }

  .landing .logo,
  .badges {
    justify-content: center;
  }

  .sub {
    margin-left: auto;
    margin-right: auto;
  }

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

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

@media (max-width: 560px) {
  .blast {
    font-size: 60px;
  }

  .lead {
    font-size: 22px;
  }

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

  .card {
    padding: 22px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 6px 7px;
    font-size: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }
}
