/*
 * The landing page's skin.
 *
 * No JavaScript runs on this page, which is the whole point of it -- so unlike
 * `ui.css` and `guide.css` it cannot read the palette that `theme.ts` publishes
 * at boot. The tokens below are written out instead.
 *
 * They are not free to drift: `tests/site.test.ts` reads this :root block and
 * fails if any value stops matching `theme.ts`. One palette, still enforced,
 * without putting Phaser on a page whose job is to paint in one round trip.
 */

:root {
  --bg: #4a5568;
  --panel: #5a5768;
  --panelLit: #736d84;
  --panelDim: #3d3a4c;
  --edge: #141926;
  --text: #ffffff;
  --dim: #c3cddf;
  --accent: #69b7eb;
  --gold: #ffc107;
  --elixir: #c961e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, .l-cta, .l-tag {
  font-family: PokemonClassic, system-ui, sans-serif;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.l-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

/* ------------------------------------------------------------------ hero */

h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.25;
  text-shadow: 0 3px 0 var(--edge);
}

.l-lede {
  margin: 0 0 28px;
  font-size: clamp(17px, 2.6vw, 20px);
  color: var(--dim);
}

.l-cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  color: var(--edge);
  background: var(--gold);
  border: 3px solid var(--edge);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--edge);
  text-decoration: none;
}

.l-cta:hover, .l-cta:focus-visible { background: #ffd454; }
.l-cta:active { transform: translateY(3px); box-shadow: none; }

.l-after-cta {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--dim);
}

/* ------------------------------------------------------------------ shot */

/*
 * Shown at about the width of a phone, not the width of the column.
 *
 * The board is 620x1080 and the column is 760, so letting it fill meant a
 * 1250px-tall picture that pushed every word on the page below the fold. It
 * is a portrait game; showing it portrait-sized is both smaller and more
 * honest about what it is.
 */
.l-shot {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 36px auto;
  border: 3px solid var(--edge);
  border-radius: 12px;
  background: var(--panelDim);
}

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

h2 {
  margin: 40px 0 14px;
  font-size: clamp(16px, 3.4vw, 20px);
  color: var(--gold);
}

p { margin: 0 0 16px; }

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

.l-rules {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-rules li {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 10px;
}

.l-rules b { color: var(--gold); }

.l-tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--edge);
  background: var(--panelLit);
  border: 2px solid var(--edge);
  border-radius: 999px;
}

/* -------------------------------------------------------------- the notice */

.l-notice {
  margin: 44px 0 0;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--dim);
  background: var(--panelDim);
  border: 2px solid var(--edge);
  border-radius: 10px;
}

.l-notice b { color: var(--text); }

footer {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--dim);
}

@media (prefers-reduced-motion: reduce) {
  .l-cta:active { transform: none; }
}
