:root {
  --brown: #4a2c1d;
  --gold: #f1c400;
  --ink: #1d1d1f;
  --muted: #5f5f66;
  --line: #e3ded8;
  --bg: #faf8f5;
  --card: #ffffff;
  --c: #257de0;      /* Cooperate */
  --d: #f47230;      /* Defect */
  --c-soft: #e3effc;
  --d-soft: #fdeadf;
  --s1: #6a4ce2; --s2: #00b894; --s3: #ec4647;   /* stage lines */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
button {
  font: inherit; border: 0; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  background: var(--brown); color: #fff; font-weight: 600;
}
button:disabled { opacity: .4; cursor: default; }
button.ghost { background: transparent; color: var(--brown); border: 2px solid var(--brown); }
input {
  font: inherit; font-size: 18px; padding: 14px; border-radius: 12px; border: 2px solid var(--line); width: 100%;
}
input:focus { outline: none; border-color: var(--brown); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.muted { color: var(--muted); }
.tag-c, .tag-d { font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.tag-c { background: var(--c-soft); color: #1a5fae; }
.tag-d { background: var(--d-soft); color: #a8461a; }
.topbar { background: var(--brown); color: #fff; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.topbar .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.topbar b { letter-spacing: .02em; }

/* payoff matrix */
table.matrix { border-collapse: separate; border-spacing: 4px; width: 100%; }
table.matrix th { font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px; }
table.matrix td { text-align: center; border-radius: 8px; padding: 10px 6px; background: #f3f0ec; font-variant-numeric: tabular-nums; }
table.matrix td .you { font-weight: 800; }
