:root {
  /* Canonical Mosaic vivid palette (game/src/ui/tileRender.ts) */
  --red: #FF1744;
  --green: #00E676;
  --blue: #2196F3;
  --yellow: #FFEA00;
  --magenta: #DE21F3;

  --bg: #101014;
  --panel: #16161c;
  --border: #26262e;
  --text: #e8e8ee;
  --muted: #9a9aa8;

  --maxw: 920px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 88px 0 56px;
}

.wordmark {
  font-size: clamp(56px, 13vw, 132px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 0.95;
}

.tagline {
  font-size: clamp(16px, 3.4vw, 22px);
  color: var(--text);
  margin: 14px 0 0;
  font-weight: 600;
}

/* Hero artwork: the game's title-screen board (always default colours).
   Height-capped so it scales with the viewport instead of pushing the
   CTAs below the fold on typical laptop screens. */
.hero-art { margin: 26px auto 0; }
.hero-art img {
  display: block; margin: 0 auto;
  max-width: min(620px, 86vw); max-height: 34vh;
  width: auto; height: auto;
  border-radius: 10px;
}

.lede {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 18px);
}

/* ---- Buttons ---- */
.cta-hero {
  max-width: 460px;
  margin: 34px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-pair {
  display: flex;
  gap: 12px;
}
.cta-pair > * { flex: 1; }        /* equal width + equal height */
.btn-block { width: 100%; text-align: center; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #3a3a44; }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #062b16;
}
.btn-primary:hover { background: #19f084; border-color: #19f084; }

/* ---- Recognition ---- */
.featured {
  text-align: center;
  margin: 0 0 64px;
}
.featured-badge {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
}

/* ---- About ---- */
.about {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
  font-size: clamp(16px, 2.6vw, 19px);
}
.about em { color: var(--text); font-style: italic; }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.card h2 { margin: 0; font-size: 19px; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card .btn,
.card .steam-badge { width: 100%; margin-top: 6px; }

/* ---- Steam platform badge (button-sized) ---- */
.steam-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;         /* matches .btn height */
  border-radius: 8px;
  border: 1px solid #2a3f55;
  background: #1b2838;        /* Steam's signature dark blue */
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: default;
}
.steam-mark {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.steam-word {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
/* ---- Steam "coming soon" announcement (hero, not a button) ---- */
.steam-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;      /* match the button height above */
  border-radius: 8px;
  border: 1px solid #2a3f55;
  background: #1b2838;      /* same Steam colour as the card's Steam button */
  color: #ffffff;
}
.steam-announce-text {
  font-weight: 700;
  font-size: 16px;         /* on its own line, sized close to the logo */
}

/* ---- Footer ---- */
.site-foot {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
