:root {
  --bg: #151a24;
  --panel: #1f2533;
  --panel-2: #262d3d;
  --border: #323a4d;
  --text: #e8ebf0;
  --muted: #9aa3b2;
  --gold: #fde68a;
  --crimson: #c8342b;
  --green: #4ade80;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- hero: the board, with the title over its far edge ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.hero-board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 80%, transparent 100%);
  opacity: 0.85;
}

.hero-text {
  max-width: 720px;
  margin-top: 64px;
  padding: 28px 24px 32px;
  text-align: center;
  background: rgba(21, 26, 36, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }

h1 {
  margin: 14px 0 2px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tagline { margin: 0; font-size: clamp(19px, 2.6vw, 24px); font-weight: 600; color: var(--gold); }
.lede { margin: 14px auto 0; max-width: 560px; color: #c5cad4; }

.ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
}
.btn[aria-disabled="true"] { cursor: default; }
.btn.primary { background: #166534; border-color: var(--green); color: #f0fdf4; }
.btn.primary:hover { text-decoration: none; filter: brightness(1.1); }

/* ---------- sections ---------- */

main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0 8px; }

h2 { margin: 0 0 6px; text-align: center; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.01em; }
.sub { margin: 0 auto 26px; max-width: 640px; text-align: center; color: var(--muted); }
.center { text-align: center; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }

.tile {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tile h3 { margin: 0 0 6px; font-size: 19px; }
.tile p { margin: 0; color: var(--muted); }

.goals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* an odd last row sits in the middle */
  gap: 12px;
}
.goals li {
  flex: 0 1 calc((100% - 24px) / 3);
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}
.goals b { display: block; color: var(--gold); font-size: 17px; }
.goals span { color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.gallery img, .split img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.pieces {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.pieces figure, .extras figure {
  margin: 0;
  padding: 16px 10px 14px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.pieces img { height: 92px; width: auto; max-width: 100%; object-fit: contain; }
.pieces figcaption, .extras figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pieces b, .extras b { display: block; color: var(--text); font-size: 15px; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.extras figure { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; }
.extras img { height: 72px; width: auto; flex: none; }
.extras figcaption { margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-top: 18px; }
.split p { margin: 0 0 12px; color: #c5cad4; }
.ticks { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.ticks li { margin: 4px 0; }
.ticks b { color: var(--text); }

.platform-row {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.platform-row li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 600;
}

footer { margin-top: 56px; padding: 26px 20px 40px; text-align: center; border-top: 1px solid var(--border); }
.small { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- narrower screens ---------- */

@media (max-width: 960px) {
  .pieces { grid-template-columns: repeat(4, 1fr); }
  .goals li { flex-basis: calc((100% - 12px) / 2); }
  .extras { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-text { margin: 40px 16px 120px; }
  .three, .gallery { grid-template-columns: 1fr; }
  .goals li { flex-basis: 100%; }
  .pieces { grid-template-columns: repeat(2, 1fr); }
  .pieces img { height: 76px; }
  section { padding-top: 44px; }
}

/* the game's coin (from core): inline with text, on the baseline */
img.coin, .split img.coin { display: inline; height: 1.15em; width: auto; vertical-align: -0.22em; margin: 0 0.04em; border: 0; border-radius: 0; }
