/* The leaderboard, shared by the game and the games hub.
   VERSION: 20261116-1210

   LIFTED OUT OF nametown.css ON 2026-11-08, when Bryce asked for the same
   board inside the Name That Town box on /games. The alternative was a second
   copy of these rules in games.css, and two copies of one table is how the
   hub's board quietly stops matching the game's the next time either moves.

   The markup these style is built in two places -- nametown.js paints it in
   the browser, games.html renders it server-side -- so the class names are
   the contract between them: .ntbwrap, .ntbtitle, table.ntbt with .pl / .wh /
   .num / .tm cells, tr.mine for your own row, tr.gap + tr.pinned for someone
   below the cut, and .ntbyou for the line under it.

   BOTH titles name the state now -- Bryce, 2026-11-16 -- as "<State>
   Leaderboard" with the state in orange, so .ntbst joins the contract above.
   The hub still shows ALL TIME only and so has no <h3> subheadings; the game
   page has both boards and keeps them. */
.ntbtitle{margin:0 0 12px;font-size:15px;font-weight:700;text-align:center;
  color:var(--offwhite,#F5F1E8);letter-spacing:.2px}
/* THE STATE IS THE COLOURED WORD. It is the part of the heading that differs
   between one board and the next -- two panels on the hub, and the page title
   on a site that plays several states -- so it leads and it carries the
   orange, while "Leaderboard" after it stays offwhite and does the
   explaining. Written by games.html server-side and by nametown.js in the
   browser; it is in here, not in games.css, so the two cannot drift. */
.ntbtitle .ntbst{color:var(--orange,#e8913c)}

.ntbwrap{max-width:520px;margin:18px auto 0;padding:14px 16px;
  border:1px solid var(--line,#26323c);border-radius:12px;
  background:rgba(255,255,255,.02)}
/* "THIS PUZZLE" AND "ALL TIME", orange since 2026-11-16 at Bryce's asking.
   They were muted grey, which read as a caption on the table rather than as
   the thing that says WHICH table -- and the two boards are otherwise
   identical, so the label is all there is to tell them apart. Nothing else on
   either page uses an <h3> inside a board panel, so this rule reaches those
   two headings and nothing more. */
.ntbwrap h3{font-size:12px;text-transform:uppercase;letter-spacing:.05em;
  color:var(--orange,#e8913c);margin:0 0 7px;font-weight:600}
.ntbwrap table{margin-bottom:16px}
.ntbt{width:100%;border-collapse:collapse;font-size:13px}
.ntbt td{padding:5px 7px;border-bottom:1px solid rgba(255,255,255,.045)}
/* COLUMN NAMES -- Bryce, 2026-11-08, asking for "points" to be labelled.
   Four columns of bare numbers left the reader to work out which was the
   score and which the clock, and the two boards do not even hold the same
   fourth column. Small caps and muted, so the head reads as a label rather
   than as the first row of the table. */
.ntbt th{padding:0 7px 5px;font-size:10px;font-weight:700;
  letter-spacing:.07em;text-transform:uppercase;color:rgba(245,241,232,.42);
  border-bottom:1px solid rgba(255,255,255,.09)}
.ntbt th.pl{text-align:left}
.ntbt th.wh{text-align:left}
.ntbt th.num{text-align:right}
.ntbt .pl{width:28px;color:var(--muted,#8a8f98);font-variant-numeric:tabular-nums}
.ntbt .wh{color:var(--offwhite,#F5F1E8)}
/* nowrap since the head arrived: "POINTS" is a wider word than any score
   under it, so without it the head sets the column widths and "2m 11s"
   breaks over two lines in the one beside it. */
.ntbt .num{text-align:right;font-variant-numeric:tabular-nums;width:46px;
  white-space:nowrap}
.ntbt .tm{color:var(--muted,#8a8f98);font-size:12px}
/* Your own row, found by the name you chose -- see the note in nametown.js
   about why it is matched on the name and not on an id. */
.ntbt tr.mine td{background:rgba(232,118,44,.12)}
.ntbt tr.mine .wh{font-weight:700;color:var(--orange,#e8913c)}

/* THE PINNED ROW, for a player outside the top 25. The break above it is
   load-bearing: a row reading 40th directly under one reading 25th looks
   like a bug in the ranking, and the gap is what says "and further down". */
.ntbt tr.gap td{border-bottom:0;padding:2px 7px;text-align:center;
  line-height:1;letter-spacing:.3em;color:var(--muted,#8a8f98)}
.ntbt tr.pinned td{border-top:1px solid rgba(255,255,255,.09)}
/* Pulled up under the rows it describes. The table above carries a 16px
   bottom margin (`h3 + table`), which would otherwise push this line into
   the middle of the gap between the two boards; the alternative was :has(),
   and a leaderboard caption is not worth a support floor. */
.ntbyou{margin:-11px 0 16px;font-size:11.5px;color:var(--muted,#8a8f98)}
