/* Groundworks proposal — the handful of styles doc.css does not already carry.
 *
 * A file rather than a <style> block for the same reason the JS is a file:
 * the page should look identical whether it is read from disk or from
 * terratd.com, and the shared palette should stay in one place. Every colour
 * below is a doc.css variable — nothing here introduces a hex, so a retint of
 * the wiki retints this page with it.
 */

/* ---------- Price cards ---------- */
.priceCard { position: relative; }
.priceCard h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.priceCard .price {
  color: var(--gold); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 800;
}
.priceCard .swatch {
  display: inline-block; width: 11px; height: 11px; border-radius: 3px;
  margin-right: 7px; vertical-align: -1px; border: 1px solid var(--line);
}
.priceCard p { margin: 6px 0 0; font-size: 13px; color: var(--dim); }
.priceCard .on { display: block; margin-top: 7px; font-size: 11.5px; color: var(--dim); }
.priceCard .on b { color: var(--text); }

/* ---------- HUD pill mockup ---------- */
.hudMock {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--surface-lo); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin: 10px 0 4px;
}
.pill {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px;
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.pill .lbl { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.pill .val { font-weight: 800; }
.pill.gold .val { color: var(--gold); }
.pill.life .val { color: var(--life); }
.pill.wave .val { color: var(--wave); }
.pill.new { border-color: var(--accent-2); }
.pill.new .val { color: var(--accent-2); }
.hudMock .newTag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-2);
}

/* ---------- The interactive board ---------- */
.boardBar { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 10px; }
.btnGroup { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btnGroup .glabel {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--dim); font-weight: 800; margin-right: 2px;
}
.btnGroup button {
  font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px;
}
.btnGroup button:hover { border-color: var(--accent); }
.btnGroup button[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-bg); color: var(--accent); font-weight: 700;
}
.btnGroup button .cost { color: var(--gold); font-variant-numeric: tabular-nums; }

.boardStats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.boardWrap {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface-lo); line-height: 0;
}
#board { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: crosshair; }

/* ---------- Price-of-shape table ---------- */
#shapeTable td.hi { color: var(--accent); font-weight: 700; }
#shapeTable tr.dead td { color: var(--dim); }
