/* CrossColor website. Self-hosted font (no Google Fonts request, so no visitor IP goes to Google).
   Black like the game; the white version follows the visitor's light setting, like the game's White look. */
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url("/crosscolor/fonts/Nunito.woff2") format("woff2"); }

:root {
  --bg: #000000; --card: #111114; --panel: #0b0b0d; --lead: #26272c;
  --ink: #f2f2f4; --soft: #a2a4ad; --dim: #6c6e77; --accent: #8fd8c6;
  --line: rgba(255,255,255,0.11); --shadow: rgba(0,0,0,0.6);
  --display: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f3f5; --card: #ffffff; --panel: #ffffff; --lead: #d6d7dc;
    --ink: #17181c; --soft: #555863; --dim: #8b8e98; --accent: #0d7a68;
    --line: rgba(23,24,28,0.12); --shadow: rgba(30,32,40,0.16);
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 800; }

/* The game's wordmark: "Cross" plain, "Color" in glass colours */
.word-color {
  background: linear-gradient(100deg, #f2b54a 0%, #ef6f6c 35%, #b86bd8 68%, #4fb5e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--ink); }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; list-style: none; font-size: 14px; }
.nav-links a { color: var(--soft); }

/* Hero: a live window that shuffles and restores itself */
.hero { text-align: center; padding: 48px 24px 64px; }
.hero-window { display: block; width: min(300px, 74vw); aspect-ratio: 1; margin: 0 auto; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(46px, 11vw, 78px); line-height: 1.05; margin-top: 34px; letter-spacing: -0.5px; }
.hero .sub { font-size: 14px; font-weight: 800; letter-spacing: 3px; color: var(--soft); margin-top: 8px; }
.tagline { margin: 26px auto 36px; font-size: clamp(18px, 3.6vw, 22px); color: var(--soft); line-height: 1.55; }
.stores { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.store { position: relative; display: inline-block; }
.store img { height: 54px; width: auto; display: block; }   /* same height for both badges (Google Play's is wider) */
.store.soon img { opacity: 0.45; filter: grayscale(1); }
.store.soon::after {
  content: "COMING SOON"; position: absolute; top: -10px; right: -8px;
  font-size: 9px; letter-spacing: 1.5px; font-weight: 900; color: #3b2a00;
  background: #f2c14e; border-radius: 6px; padding: 2px 7px;
}

/* Sections */
.section { max-width: 700px; margin: 0 auto; padding: 56px 24px; }
.section h2 { font-family: var(--display); font-weight: 900; font-size: 30px; text-align: center; margin-bottom: 22px; text-wrap: balance; }
.section .lead p { text-align: center; font-size: clamp(17px, 3.4vw, 19px); }
.section .lead p + p { margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-top: 34px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; }
.card h3 { font-family: var(--display); font-weight: 900; font-size: 18px; margin-bottom: 4px; }
.card p { font-size: 15px; color: var(--soft); line-height: 1.5; }
.rating {
  display: flex; gap: 16px; align-items: center; margin-top: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 16px 20px;
}
.rating .badge { font-family: var(--display); font-weight: 900; font-size: 22px; border: 2px solid var(--soft); border-radius: 10px; padding: 2px 10px; color: var(--soft); white-space: nowrap; }
.rating p { font-size: 14px; color: var(--soft); line-height: 1.5; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 8px; }
.shots figure { min-width: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 540 / 1173; border-radius: 18px; display: block;
  border: 1px solid var(--line); box-shadow: 0 10px 30px var(--shadow); }
.shots figcaption { font-size: 13px; color: var(--soft); text-align: center; margin-top: 8px; line-height: 1.35; }
.wide { max-width: 860px; }

/* Questions */
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 6px 22px 18px; }
.faq h3 { font-family: var(--display); font-weight: 900; font-size: 18px; margin: 18px 0 4px; }
.faq p { font-size: 15px; color: var(--soft); line-height: 1.55; }
.section .more { text-align: center; margin-top: 18px; font-size: 15px; }

/* How to play: steps with a screenshot each */
.step { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; margin: 26px 0; }
.step img { width: 100%; height: auto; aspect-ratio: 540 / 1173; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 24px var(--shadow); }
.step .num { font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: 2px; color: var(--dim); }
.step h2 { text-align: left; margin: 2px 0 6px; font-size: 24px; }
.step p { color: var(--soft); font-size: 16px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 10px; }

/* Document pages (privacy, support, legal) */
.doc { max-width: 700px; margin: 0 auto; padding: 44px 24px 72px; }
.doc .tag { font-size: 12px; letter-spacing: 3px; font-weight: 900; color: var(--soft); }
.doc h1 { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; margin: 6px 0 4px; }
.doc .app { color: var(--soft); margin-bottom: 30px; }
.doc h2 { font-family: var(--display); font-weight: 900; font-size: 22px; margin: 34px 0 10px; }
.doc h3 { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { font-size: 16px; }
.doc p { margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 6px; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
.doc address { font-style: normal; margin-bottom: 12px; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; margin: 10px 0 14px; }
.contact .label { font-size: 12px; letter-spacing: 2px; font-weight: 900; color: var(--soft); }
.contact a { font-family: var(--display); font-weight: 900; font-size: 21px; overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 24px 40px; text-align: center; }
footer ul { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; list-style: none; font-size: 13px; letter-spacing: 1px; }
footer ul a { color: var(--soft); }
footer .copy { margin-top: 12px; font-size: 13px; color: var(--soft); }
footer .tm { margin: 10px auto 0; max-width: 520px; font-size: 11px; line-height: 1.5; color: var(--soft); }
footer .sig { font-size: 11px; color: var(--soft); opacity: 0.8; margin-top: 2px; }

@media (max-width: 640px) {
  br.lb { display: none; }
  .section .lead p { text-wrap: balance; }
}
@media (max-width: 560px) {
  nav { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .section, .doc { padding-left: 16px; padding-right: 16px; }
  .card { padding: 14px 16px; }
  .rating { flex-direction: column; text-align: center; }
  .faq { padding: 4px 16px 14px; }
  .shots { gap: 8px; }
  .shots img { border-radius: 10px; }
  .step { grid-template-columns: 110px 1fr; gap: 14px; }
  .step h2 { font-size: 20px; }
  .step p { font-size: 15px; }
}
/* Phones: the logo and four links don't fit; Privacy stays in the footer of every page. */
@media (max-width: 430px) { .nav-privacy { display: none; } }
