/* colorsmash.particles.ca — one stylesheet for the landing page and the
   privacy policy. Dark only, in the game's own colours: a starry black with
   the cyan, yellow, magenta and purple of its rings. No web fonts: headings
   use the rounded system face (SF Pro Rounded on Apple devices). */

:root {
  color-scheme: dark;
  --bg: #07070f;
  --bg-2: #0d0d1c;
  --panel: #13132a;
  --panel-2: #1a1a36;
  --ink: #f6f6ff;
  --ink-soft: #c9c9e0;
  --muted: #9a9ab8;
  --cyan: #2fe0ee;
  --yellow: #f7d21e;
  --magenta: #f01a7f;
  --purple: #9124e8;
  --gold: var(--yellow);
  --gold-2: #e0b400;
  --gold-line: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.09);
  --violet: var(--purple);
  --violet-2: #b76cff;
  --ember: var(--magenta);
  --ember-2: var(--cyan);

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Nunito', 'Varela Round', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --header-h: 64px;
  --radius: 20px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 68% 8%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 38% 62%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 86% 54%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 22% 86%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 56% 34%, rgba(255, 255, 255, 0.3), transparent 60%);
  background-size: 420px 420px;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: #b9f7fc;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1206;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.nw {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 7, 15, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--gold-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

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

.brand:hover {
  color: var(--cyan);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--cyan);
}

@media (max-width: 760px) {
  .nav-link {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 16px/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--yellow);
  border-color: #ffe25c;
  border-radius: 999px;
  color: #141005;
  font-family: var(--display);
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(247, 210, 30, 0.28);
}

.btn-gold:hover {
  color: #141005;
  box-shadow: 0 10px 32px rgba(247, 210, 30, 0.42);
}

.btn-ghost {
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-line);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: rgba(47, 224, 238, 0.55);
}

.btn-small {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* ---------- Section scaffolding ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ember-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 25%, var(--yellow) 0 50%, var(--purple) 0 75%, var(--magenta) 0);
}

.section h2 {
  font-size: clamp(32px, 4.6vw, 50px);
  color: var(--ink);
}

.lede {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 19px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(45% 60% at 78% 45%, rgba(145, 36, 232, 0.28), transparent 70%),
    radial-gradient(30% 40% at 96% 12%, rgba(240, 26, 127, 0.16), transparent 70%),
    radial-gradient(40% 50% at 5% 10%, rgba(47, 224, 238, 0.12), transparent 70%),
    var(--bg);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(7, 7, 15, 0.6);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.hero-kicker img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--yellow) 35%, var(--magenta) 70%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .motto {
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
}

.hero .lede {
  max-width: 34em;
  margin-top: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

}

/* ---------- Facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vw, 64px);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--gold-line);
  overflow: hidden;
}

.fact {
  padding: 22px 22px 24px;
  background: var(--bg-2);
}

.fact b {
  display: block;
  color: var(--c, var(--yellow));
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
}

.fact span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.feature + .feature {
  margin-top: clamp(64px, 9vw, 112px);
}

.feature.flip {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.feature.flip .feature-shot {
  order: 2;
}

.feature-shot img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.feature-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.feature-copy .lede {
  margin-top: 14px;
}

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

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--magenta);
}

.ticks li:nth-child(4n + 2)::before {
  border-color: var(--cyan);
}

.ticks li:nth-child(4n + 3)::before {
  border-color: var(--yellow);
}

.ticks li:nth-child(4n + 4)::before {
  border-color: var(--purple);
}

.ticks strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 860px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }

  .feature.flip .feature-shot {
    order: 0;
  }
}

/* ---------- Get the game ---------- */

.get {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(240, 26, 127, 0.2), transparent 70%),
    radial-gradient(60% 120% at 0% 100%, rgba(47, 224, 238, 0.16), transparent 70%),
    var(--panel);
}

.get img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--gold-line), 0 14px 40px rgba(0, 0, 0, 0.5);
}

.get h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.get p {
  margin-top: 10px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .get {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ---------- Help ---------- */

.help {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--panel);
}

.contact-card h2 {
  font-size: 26px;
  color: var(--ink);
}

.contact-card p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.contact-card .btn {
  margin-top: 22px;
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  padding-bottom: 18px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .help {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 36px;
  border-top: 1px solid var(--gold-line);
  background: #050509;
  color: var(--muted);
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 10px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current='page'] {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.made-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  color: var(--ink-soft);
  text-decoration: none;
}

.made-by svg {
  width: 20px;
  height: 18px;
}

.made-by:hover {
  color: var(--ink);
}

/* ---------- Privacy policy ---------- */

.legal-hero {
  padding-block: clamp(48px, 7vw, 80px) clamp(32px, 4vw, 44px);
  border-bottom: 1px solid var(--gold-line);
  background:
    radial-gradient(50% 120% at 85% 0%, rgba(145, 36, 232, 0.3), transparent 70%),
    radial-gradient(40% 100% at 10% 100%, rgba(47, 224, 238, 0.12), transparent 70%),
    var(--bg-2);
}

.kicker {
  color: var(--ember-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 56px);
}

.legal-hero .meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 64px) clamp(64px, 9vw, 96px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 14px;
}

.toc b {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--cyan);
}

.legal-body {
  max-width: 720px;
}

.legal-body section + section,
.summary-card + section {
  margin-top: 40px;
}

.legal-body h2 {
  color: var(--ink);
  font-size: 24px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body p {
  margin-top: 12px;
}

.legal-body ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body strong {
  color: var(--ink);
}

.summary-card {
  padding: 24px 26px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--panel);
}

.summary-card h2 {
  font-size: 20px;
}

@media (max-width: 860px) {
  .legal {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-2);
  }
}

/* ---------- Color Smash pieces ---------- */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.phones::before {
  content: '';
  position: absolute;
  width: min(92%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--cyan) 0 25%, var(--yellow) 0 50%, var(--purple) 0 75%, var(--magenta) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 79%);
  mask: radial-gradient(closest-side, transparent 78%, #000 79%);
  opacity: 0.9;
}

.phone {
  position: relative;
  width: 210px;
  padding: 6px;
  border-radius: 34px;
  background: #1c1c2e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 70px rgba(0, 0, 0, 0.65);
}

.phone img {
  width: 100%;
  border-radius: 28px;
}

.phones .phone:nth-child(1) {
  transform: translateX(34px) rotate(-8deg) scale(0.88);
  z-index: 1;
}

.phones .phone:nth-child(2) {
  z-index: 2;
}

.phones .phone:nth-child(3) {
  transform: translateX(-34px) rotate(8deg) scale(0.88);
  z-index: 1;
}

@media (max-width: 860px) {
  .phones {
    order: -1;
    min-height: 0;
    padding-block: 24px;
  }

  .phone {
    width: 150px;
    border-radius: 26px;
  }

  .phone img {
    border-radius: 21px;
  }
}

@media (max-width: 420px) {
  .phone {
    width: 120px;
  }

  .phones .phone:nth-child(1) {
    transform: translateX(28px) rotate(-8deg) scale(0.88);
  }

  .phones .phone:nth-child(3) {
    transform: translateX(-28px) rotate(8deg) scale(0.88);
  }
}

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

.step {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.step .dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 5px solid var(--c);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
}

.step h3 {
  margin-top: 18px;
  font-size: 22px;
}

.step p {
  margin-top: 8px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.shot-phone {
  justify-self: center;
  width: min(100%, 300px);
}

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}

.extra {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: var(--radius);
  background: var(--panel);
}

.extra h3 {
  font-size: 20px;
}

.extra p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 16px;
}

@media (max-width: 860px) {
  .extras {
    grid-template-columns: 1fr;
  }
}

.band {
  background:
    radial-gradient(50% 80% at 85% 20%, rgba(145, 36, 232, 0.22), transparent 70%),
    radial-gradient(40% 70% at 5% 90%, rgba(47, 224, 238, 0.1), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
