/* The site: parchment sheets with dark ink on a dark leather ground, a book serif, small-caps headings (the user,
   12.10.2026: "game of thrones style. Readable but not too impressive but also not modern"). No glow or gradients.
   Text sits on parchment or in the dark header; on the ground itself only in parchment's colour. The board's own
   styles: css/board.css. */
:root { --ground: #2e251b; --head: #231c14; --headline: #5a4a33; --gold: #e2c98f;
  --parch: #ecdfc0; --parch2: #e3d3ae; --ink: #2a1f14; --dim: #6b5a42; --rule: #9c8560; --hair: #d3c29c;
  --accent: #7d1d14;
  /* the older names, still read by the board's styles */
  --bg: var(--ground); --panel: var(--parch); --line: var(--rule); --fg: var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--parch);
  font: 15px/1.45 "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif; }
a { color: var(--accent); }
header.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 16px;
  background: var(--head); color: var(--parch); border-bottom: 2px solid var(--headline); }
header.top a { color: var(--gold); }
header.top .home { font-size: 19px; text-decoration: none; font-variant: small-caps; letter-spacing: .08em; }
/* A sheet of parchment: a thin double rule inside its edge. */
.sheet, main.list { background: var(--parch); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 3px var(--parch), inset 0 0 0 4px var(--rule); padding: 10px 14px 12px; }
.sheet:empty { display: none; }
.sheet h1, .sheet h2, main.list h1, main.list h2 { font-weight: normal; font-variant: small-caps; letter-spacing: .06em;
  color: var(--accent); }
.sheet h2, main.list h2 { font-size: 17px; margin: 0 0 6px; border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
main.list { max-width: 1100px; margin: 12px auto; padding: 8px 20px 40px; }
main.list h2 { margin-top: 28px; }
table.games { width: 100%; border-collapse: collapse; }
table.games td { padding: 6px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
table.games td.players { color: var(--dim); }
.seat { white-space: nowrap; margin-right: 10px; }
/* A phone: a game's row stacked, its name on a line of its own, then the variant and the turn, then the houses
   (step 4G: the table was wider than the screen). */
@media (max-width: 600px) {
  main.list { margin: 0; padding: 6px 12px 30px; }
  table.games, table.games tbody, table.games tr { display: block; }
  table.games tr { padding: 6px 0; border-bottom: 1px solid var(--hair); }
  table.games td { display: inline; padding: 0; border: 0; }
  table.games td:first-child { display: block; font-size: 16px; }
  table.games td:nth-child(2)::after { content: " · "; }
  table.games td.players { display: block; margin-top: 2px; }
  .seat { white-space: normal; display: inline-block; }
}
.newgame { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.hint { color: var(--dim); }
button, select, input { font: inherit; background: var(--parch2); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 3px; padding: 3px 10px; }
button { cursor: pointer; } button:hover { border-color: var(--ink); }
button:disabled { opacity: .5; cursor: default; }
.you { font-size: 13px; color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: 0 6px; }
/* The old sites' games, folded away on the list (index.php). */
details.oldgames { margin-top: 28px; }
details.oldgames summary { cursor: pointer; color: var(--dim); font-variant: small-caps; letter-spacing: .06em; font-size: 16px; }
details.oldgames[open] summary { color: var(--accent); margin-bottom: 6px; }
