/* CorpseAsson: a handbill-and-leather look for the prototype. Painted art comes later. */
:root {
  --paper: #efe2c4; --paper-2: #e4d3ae; --ink: #2b1d12; --muted: #6e5a44; --line: #b79e74;
  --rust: #a8432a; --rust-dark: #7f2f1c; --brass: #c9962e; --table: #3a2a1c; --table-2: #2c1f14;
  --p0: #b8402f; --p1: #2f6db8; --p2: #d9a425; --p3: #7d4a8f; --p4: #4f8a4b;
  --display: "Rye", Georgia, serif; --body: "Alegreya Sans", system-ui, sans-serif;
  /* the shared kit's lobby and chat */
  --kit-bg: var(--paper); --kit-ink: var(--ink); --kit-muted: var(--muted); --kit-line: var(--line);
  --kit-accent: var(--rust); --kit-on-accent: #fff6e6; --kit-font: var(--body); --kit-display: var(--display);
  --kit-p0: var(--p0); --kit-p1: var(--p1); --kit-p2: var(--p2); --kit-p3: var(--p3); --kit-p4: var(--p4);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--table) radial-gradient(ellipse at 50% 30%, #4a3624, var(--table-2)); color: var(--ink); font: 17px/1.45 var(--body); }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: var(--ink); background: #f7eedb; border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 14px; min-height: 40px; }
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--rust); }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--rust); border-color: var(--rust-dark); color: #fff6e6; font-weight: 700; }
.primary:hover:not(:disabled) { background: var(--rust-dark); }
.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.error { color: var(--rust); min-height: 1.2em; margin: 6px 0; font-weight: 500; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }

/* ---------- title, setup, lobby, handoff ---------- */
.screen { min-height: 100%; }
#title, #handoff, #lobbyScreen { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; align-items: start; padding: 32px 16px 64px; }
#title, #handoff, #lobbyScreen { background: linear-gradient(rgb(30 20 12 / .35), rgb(30 20 12 / .7)), url("art/hero/title.webp") center 30% / cover fixed; }
@media (hover: none) { #title, #handoff, #lobbyScreen { background-attachment: scroll; } }   /* phones draw "fixed" backgrounds badly */
.emblem { display: block; width: 112px; height: 112px; margin: -6px auto 2px; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .25)); }
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
.roles figure { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.roles img { width: 64px; height: 85px; object-fit: cover; border-radius: 4px; border: 1.5px solid var(--ink); }
.roles figcaption { font-size: .88rem; line-height: 1.35; color: var(--ink); }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }
.pile { width: 34px; height: 34px; border-radius: 3px; box-shadow: 2px 2px 0 #8a6a45, 4px 4px 0 #6f5235; flex: none; }
.turn .left { display: flex; gap: 10px; align-items: center; }
.final-banner { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; border: 2px solid var(--ink); margin-bottom: 8px; }
/* Painted parchment (tools/art/paper.py). The card's aged edge is a border image, so it keeps its width at any size. */
.poster, #lobby.kit-lobby { border: 22px solid transparent; border-image: url("art/ui/paper_card.webp") 96 fill / 22px stretch;
  background: none; border-radius: 0; filter: drop-shadow(0 16px 26px rgb(0 0 0 / .5)); }
.poster { width: min(560px, 100%); outline: 1px solid rgb(43 29 18 / .55); outline-offset: -8px; padding: 14px 12px 10px; }
.poster input, .poster select, .poster button:not(.primary):not(.quiet), .kit-lobby input, .kit-lobby select { background-color: rgb(255 249 234 / .72); }
.roles figure { background: rgb(255 249 234 / .45); }
.poster.center { text-align: center; margin-top: 12vh; }
/* Early access badge on the title. Remove this rule (and the .early line in index.html) when early access ends. */
.early { display: block; width: fit-content; margin: 8px auto 2px; padding: 3px 12px; border-radius: 6px; font: 700 .85rem/1.4 var(--body); letter-spacing: .02em; text-align: center;
  background: linear-gradient(180deg, #f6ead0, #e3cf9f); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 rgb(0 0 0 / .3); cursor: help; }
.early span { display: block; font: italic 500 .8rem/1.3 var(--body); color: var(--muted); letter-spacing: 0; }

/* the link back to punatic.org */
.home-link { text-align: center; margin: 14px 0 2px; }
.moregames { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--rust-dark); font-weight: 700; text-decoration: none; border: 1.5px solid var(--line); border-radius: 6px; background: rgb(255 249 234 / .72); }
.moregames:hover, .moregames:focus-visible { border-color: var(--rust); background: #f7eedb; }
.final-card .foot .moregames { margin-left: auto; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; color: var(--muted); text-align: center; }
.poster h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); text-align: center; margin: 4px 0 2px; color: var(--rust-dark); line-height: 1.05; }
.tag { text-align: center; margin: 0 0 18px; color: var(--muted); font-style: italic; }
.poster h2 { font-size: 1.15rem; margin: 18px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
#handoff h2 { font-size: 2rem; border: 0; margin: 12px 0 24px; }
#seats { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
#seats li { display: grid; grid-template-columns: 18px 1fr auto auto; gap: 8px; align-items: center; }
#seats .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(0 0 0 / .35); }
#seats input { min-width: 0; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; }
.field input { min-width: 0; flex: 1; max-width: 300px; }
.setup .row { margin-top: 12px; }
#joinForm { display: flex; gap: 6px; }
#joinCode { width: 8.5em; text-transform: uppercase; letter-spacing: .15em; }
.how { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.how summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.how li { margin: 4px 0; }
#lobby { width: min(560px, 100%); }

/* ---------- the game: a fullscreen table with floating parchment bars ---------- */
#play { height: 100vh; height: 100dvh; }
#table { position: relative; height: 100%; overflow: hidden; background: radial-gradient(circle at 45% 40%, rgb(20 12 6 / .25), rgb(20 12 6 / .6)), url("art/hero/table.webp") 0 0 / 360px repeat, #4d3b25;
  --gap: 12px; --hud-top: 64px; --hud-bottom: 120px; }
#board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#board:active { cursor: grabbing; }
#board .tile rect:first-child { shape-rendering: crispEdges; }
#board .spot { fill: rgb(255 240 200 / .12); stroke: #f3dfae; stroke-width: 3; stroke-dasharray: 10 8; }
#board .latest { fill: none; stroke: #fff2c8; stroke-width: 4; }
#board .preview { opacity: .92; }
#board .preview-frame { fill: none; stroke: var(--brass); stroke-width: 6; }
#board .choice circle { fill: rgb(255 246 220 / .85); stroke: var(--ink); cursor: pointer; }
#board .choice .ring { fill: none; stroke: var(--rust); stroke-width: 2.5; animation: pulse 1.4s ease-out infinite; pointer-events: none; transform-box: fill-box; transform-origin: center; }
#board .choice:hover circle:first-child { fill: #fff; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #board .choice .ring { animation: none; } }

/* A floating parchment piece. */
.tablebar button, .players .seat, .log-panel, .turnbar, .tilecard, #toast, #finalBar, .final-card {
  background: var(--paper) url("art/ui/paper.webp") center / 512px; border: 2px solid var(--ink); box-shadow: 0 6px 18px rgb(0 0 0 / .4); }

/* Top: table buttons on the left, the players on the right. Clicks pass through the gaps to the board. */
.hud-top { position: absolute; top: var(--gap); left: var(--gap); right: var(--gap); z-index: 10; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.tablebar { display: flex; gap: 6px; flex-wrap: wrap; }
.tablebar button { width: 40px; padding: 0; font-weight: 700; border-width: 1.5px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; position: relative; }
.tablebar button.wide { width: auto; padding: 0 12px; font-weight: 500; }
.tablebar button[aria-pressed="true"]:is(#logToggle, #tileToggle) { background: #e9d3a3; border-color: var(--rust); box-shadow: inset 0 2px 4px rgb(0 0 0 / .15), 0 6px 18px rgb(0 0 0 / .4); }
.tablebar button img { width: 20px; height: 20px; border-radius: 2px; box-shadow: 1px 1px 0 #8a6a45; }
.tablebar .count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff6e6; font-size: .75rem; display: grid; place-items: center; }
.tablebar .leave.confirm { background: var(--rust); color: #fff6e6; border-color: var(--rust-dark); }

/* Players: an icon in their colour, followers in hand, score. The one to play is lit. */
.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.players .seat { --pc: var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 232px; padding: 5px 12px 5px 5px; border-radius: 30px 8px 8px 30px;
  border-color: rgb(43 29 18 / .7); transition: transform .2s, box-shadow .2s; }
.players .seat.now { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc), 0 0 18px 2px color-mix(in srgb, var(--pc) 70%, transparent), 0 6px 18px rgb(0 0 0 / .4); transform: translateX(-6px); }
.players .seat.win { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass), 0 6px 18px rgb(0 0 0 / .4); }
.picon { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pc) 70%, #fff), var(--pc) 55%, color-mix(in srgb, var(--pc) 75%, #000));
  border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: inset 0 -3px 5px rgb(0 0 0 / .25); }
.picon svg { width: 24px; height: 27px; }
.picon path { fill: #fff6e6; stroke: #1d140d; stroke-width: 1.6; stroke-linejoin: round; }
.seat.now .picon { animation: nowpulse 1.8s ease-in-out infinite; }
@keyframes nowpulse { 50% { box-shadow: inset 0 -3px 5px rgb(0 0 0 / .25), 0 0 0 4px color-mix(in srgb, var(--pc) 45%, transparent); } }
@media (prefers-reduced-motion: reduce) { .seat.now .picon { animation: none; } }
.pmeta { display: grid; min-width: 0; line-height: 1.2; }
.players .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players .men { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.players .men b { color: var(--ink); }
.players .men small { font-size: .8rem; }
.fig { width: 11px; height: 14px; flex: none; }
.fig path { fill: var(--pc); stroke: #1d140d; stroke-width: 1.8; stroke-linejoin: round; }
.players .pts { font-family: var(--display); font-size: 1.45rem; min-width: 1.6em; text-align: right; }

/* The game log: a button shows or hides it. */
.log-panel { position: absolute; z-index: 9; left: var(--gap); top: calc(var(--hud-top) + 8px); width: 300px; max-height: calc(100% - var(--hud-top) - var(--hud-bottom) - 24px);
  display: flex; flex-direction: column; border-radius: 6px; }
.log-panel header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 2px 12px; border-bottom: 1px solid var(--line); }
.log-panel header b { font-family: var(--display); font-weight: 400; }
.log-panel .x, .final-card .x { min-height: 32px; padding: 2px 10px; }
#log { margin: 0; padding: 8px 12px 10px 30px; font-size: .88rem; color: var(--muted); overflow-y: auto; overscroll-behavior: contain; }
#log li { margin: 2px 0; }
#log li:first-child { color: var(--ink); }

/* Bottom: whose turn and the buttons in the middle, the tile preview on the right. */
.dock { position: absolute; z-index: 10; left: var(--gap); right: var(--gap); bottom: var(--gap); display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: end; gap: 12px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-spacer { pointer-events: none; }
.turnbar { --pc: var(--line); grid-column: 2; min-width: min(360px, 100%); max-width: 560px; border-radius: 8px; border-top: 6px solid var(--pc); padding: 8px 14px 10px; text-align: center; }
.turnline { display: flex; justify-content: center; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.turntext { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.clock.low { color: var(--rust); font-weight: 700; }
.hint { color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
.turnbar .error { margin: 2px 0 0; min-height: 0; }
.turnbar .error:empty { display: none; }
#handButtons { justify-content: center; margin-top: 8px; }
.tilecard { grid-column: 3; justify-self: end; width: 168px; border-radius: 8px; padding: 10px 10px 6px; text-align: center; }
.tilewrap { position: relative; }
#handTile { width: 100%; aspect-ratio: 1; display: block; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .35)); }
.tiles-left { position: absolute; right: -4px; bottom: -4px; background: var(--ink); color: #fff6e6; font: 400 1rem var(--display); padding: 3px 9px 2px; border-radius: 6px;
  border: 2px solid var(--brass); box-shadow: 0 3px 8px rgb(0 0 0 / .45); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.handname { font-weight: 700; font-size: .9rem; line-height: 1.2; margin-top: 6px; }
#play.is-online .dock { right: 76px; }                 /* clear of the chat button */

#toast { position: absolute; z-index: 12; left: 50%; top: calc(var(--hud-top) + 8px); transform: translateX(-50%); padding: 8px 16px; border-radius: 4px;
  font-weight: 500; max-width: min(560px, calc(100% - 32px)); text-align: center; }

/* Final scores: a card over the table; close it to look at the board, 🏆 brings it back. */
.final-wrap { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgb(20 12 6 / .45); overflow-y: auto; }
.final-card { position: relative; width: min(440px, 100%); max-height: calc(100% - 8px); overflow-y: auto; border-radius: 8px; padding: 14px 16px; }
.final-card .x { position: absolute; top: 6px; right: 6px; z-index: 1; background: rgb(255 249 234 / .85); border-color: var(--line); }
.final-card .foot { margin-top: 12px; }
#final { --c-town: #a5462f; --c-rail: #5d6670; --c-mine: #c99a2e; --c-range: #7f9a55; }
.fcards { display: grid; gap: 8px; margin: 6px 0 10px; }
.fcard { background: rgb(255 250 238 / .7); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.fcard.win { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.fhead { display: flex; align-items: center; gap: 7px; }
.fhead .rank { font-family: var(--display); color: var(--muted, #7a6a55); width: 1em; }
.fhead .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.fhead .fname { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fhead .ftotal { font-family: var(--display); font-size: 1.35rem; }
.fbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgb(0 0 0 / .07); margin: 5px 0 4px; }
.fbar .seg { height: 100%; }
.fbar .seg + .seg { box-shadow: -1px 0 0 rgb(255 255 255 / .6); }
.seg.town, .key.town { background: var(--c-town); } .seg.rail, .key.rail { background: var(--c-rail); }
.seg.mine, .key.mine { background: var(--c-mine); } .seg.range, .key.range { background: var(--c-range); }
.fparts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .82rem; }
.fparts .part { white-space: nowrap; }
.fparts small { color: var(--muted, #7a6a55); }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }
.fhigh { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: .85rem; }
.fhigh dt { color: var(--muted, #7a6a55); }
.fhigh dd { margin: 0; }
#final h3 { font-family: var(--display); font-weight: 400; margin: 0 0 6px; }

/* Middling screens: slimmer player cards. */
@media (max-width: 1100px) {
  .players .seat { width: 196px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; }
  .picon { width: 38px; height: 38px; }
  .picon svg { width: 20px; height: 23px; }
  .tilecard { width: 140px; }
}

/* Phones: players in a row across the top, the buttons under them; the turn bar across the bottom
   with a smaller tile preview above it on the right. */
@media (max-width: 760px) {
  .poster { padding: 10px 6px 6px; }
  #seats li { grid-template-columns: 16px 1fr auto; }
  #seats li .x { grid-column: 3; }
  #seats li select { grid-column: 2 / 4; }

  #table { --gap: 8px; }
  .hud-top { flex-direction: column-reverse; align-items: stretch; gap: 6px; top: calc(var(--gap) + env(safe-area-inset-top)); }
  .tablebar { gap: 5px; }
  .tablebar .zoom { display: none; }                  /* pinch to zoom */
  .tablebar button { width: 44px; min-height: 44px; }
  .tablebar button.wide { padding: 0 10px; }
  .tablebar .lbl { display: none; }
  .tablebar button.wide.leave.confirm .lbl { display: inline; }
  .players { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 5px; }
  .players .seat { position: relative; flex: 1 1 0; min-width: 0; width: auto; grid-template-columns: 32px auto; justify-content: center; column-gap: 7px;
    padding: 4px 10px 4px 4px; border-radius: 22px 8px 8px 22px; }
  .players .seat.now { transform: translateY(2px); }
  .picon { width: 32px; height: 32px; grid-row: 1 / 3; border-width: 1.5px; }
  .picon svg { width: 17px; height: 19px; }
  .pmeta { display: contents; }
  .players .name { display: none; }                 /* the colour says who; the turn bar names them */
  .players .pts { grid-column: 2; grid-row: 1; font-size: 1.15rem; line-height: 1; text-align: left; min-width: 0; }
  .players .men { grid-column: 2; grid-row: 2; font-size: .78rem; }
  .players .men small { display: none; }

  .log-panel { left: var(--gap); right: var(--gap); width: auto; z-index: 15; }
  .dock { grid-template-columns: 1fr; gap: 6px; bottom: calc(var(--gap) + env(safe-area-inset-bottom)); }
  .dock-spacer { display: none; }
  .tilecard { grid-column: 1; grid-row: 1; width: 108px; padding: 6px 6px 4px; }
  .handname { font-size: .78rem; margin-top: 4px; }
  .tiles-left { font-size: .85rem; padding: 2px 7px 1px; }
  .turnbar { grid-column: 1; grid-row: 2; min-width: 0; max-width: none; padding: 6px 10px 8px; }
  .turntext { font-size: 1.05rem; }
  .hint { font-size: .85rem; }
  #handButtons { flex-wrap: nowrap; }
  #handButtons button { min-height: 48px; padding: 10px 14px; flex: 1; }
  #play.is-online .dock { right: var(--gap); bottom: calc(68px + env(safe-area-inset-bottom)); }
  #toast { font-size: .9rem; width: calc(100% - 16px); }
  #info { top: calc(var(--hud-top) + 8px) !important; left: 8px !important; right: 8px; max-width: none; }
  #finalBar { top: calc(var(--hud-top) + 8px); max-width: calc(100% - 16px); }
}

/* ---------- feature highlight, scoring effects ---------- */
#board .highlight .feat > * { pointer-events: none; }
#board .highlight .feat.hl > * { fill: rgb(255 238 170 / .42); stroke: #fff3c4; stroke-width: 3; }
#board .highlight .feat.hl.range > * { stroke: none; fill: rgb(255 240 190 / .42); }
#board .highlight .feat.hl.rail > .line { fill: none; stroke: rgb(255 240 180 / .6); }
#board .highlight .feat.touch > * { fill: rgb(255 255 255 / .18); stroke: #fff3c4; stroke-width: 2; stroke-dasharray: 6 5; }
#board .flashes .feat > * { fill: var(--flash, #fff); stroke: none; opacity: 0; animation: flash 1.6s ease-out; }
#board .flashes .feat.rail > .line { fill: none; stroke: var(--flash, #fff); }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .6; } 60% { opacity: .45; } 100% { opacity: 0; } }
#board .floats text { font: 400 40px var(--display); paint-order: stroke; stroke: #2b1d12; stroke-width: 7px; stroke-linejoin: round;
  animation: rise 1.7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { 0% { transform: translateY(10px); opacity: 0; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-80px); opacity: 0; } }
#board .going-home > g { animation: home 1.3s ease-in forwards; }
@keyframes home { 0% { opacity: 1; } 100% { transform: translateY(-46px) scale(.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #board .floats text { animation-duration: 2.2s; animation-timing-function: steps(1, end); }
  #board .going-home > g, #board .flashes .feat > * { animation: none; }
}
#info { position: absolute; z-index: 11; left: var(--gap); top: calc(var(--hud-top) + 8px); transition: left .15s; max-width: min(320px, calc(100% - 24px)); background: var(--paper) url("art/ui/paper.webp") center / 512px; border: 2px solid var(--ink);
  border-left: 8px solid var(--info, var(--line)); border-radius: 4px; padding: 8px 12px; box-shadow: 0 6px 18px rgb(0 0 0 / .4); pointer-events: none; font-size: .93rem; line-height: 1.35; }
#info b { font-family: var(--display); font-weight: 400; font-size: 1.05rem; display: block; margin-bottom: 2px; }
#info div { color: var(--muted); }
#info div:last-child { color: var(--ink); font-weight: 500; }
#finalBar { position: absolute; z-index: 12; left: 50%; top: calc(var(--hud-top) + 8px); transform: translateX(-50%); display: flex; gap: 12px; align-items: center;
  border-radius: 4px; padding: 4px 6px 4px 16px; max-width: calc(100% - 140px); }
#finalText { font-family: var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.players .pts.bump { animation: bump .5s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); color: var(--rust); } }
#table.log-open #info { left: calc(var(--gap) + 312px); }
