/* The outer bevel and the inset green rail frame a compact, translucent match ledger. */
#scores {
  width: clamp(530px, 68vw, 710px); max-width: 96vw; max-height: 94vh; margin: auto;
  padding: 5px; overflow: auto; color: #d5e5de; border: 1px solid #302c28; border-radius: 12px;
  background: linear-gradient(120deg, #e2ccb0, #413d38 3%, #af966a 5%, #39393b 16%, #a2997f 50%, #39383a 78%, #a69573 94%, #514b43);
  box-shadow: 0 0 0 1px #cab58d, inset 0 0 0 1px #ffffff57, 0 9px 32px #000c;
  font-variant-numeric: tabular-nums;
}
#scores::backdrop { background: #03131263 }
.sb-title { position: relative; display: grid; place-items: center; padding: 5px 30px; color: #f6deb0;
  border: 1px solid #b29b66; border-radius: 8px 8px 2px 2px; text-shadow: 0 1px 3px black;
  background: repeating-linear-gradient(45deg, transparent 0 13px, #cead6710 14px, transparent 15px 24px), linear-gradient(90deg, #2b2724, #625030 46%, #635132 54%, #2b2724);
  box-shadow: inset 0 2px 3px #000a, inset 0 -2px 3px #191a17; }
.sb-title h2 { margin: 0; font: bold 1.1rem/1.4 Georgia, serif; letter-spacing: .15em }
.sb-title h2::before, .sb-title h2::after { content: '◆'; font-size: .46em; color: #c5a871; vertical-align: middle; margin: 0 12px }
.sb-title button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0;
  border: 2px ridge #b6a17b; border-radius: 50%; color: #efd9a7; background: #18302e; font: 17px/1 system-ui }
.sb-panel { padding: 0 5px 4px; border: 1px solid #74705b; border-radius: 5px 5px 8px 8px;
  background: linear-gradient(110deg,#11241fee,#081514f2 56%,#19211ce8); box-shadow: inset 0 0 14px #000b }
.sb-totals { display: flex; justify-content: center; align-items: center; gap: 14px; height: 42px; font-size: .79rem; letter-spacing: .09em }
.sb-totals span { display: inline-flex; align-items: center; gap: 11px; color: #99e2ce }
.sb-totals span:last-child { color: #ff9b86 }
.sb-totals b { font: bold 1.45rem Georgia,serif }
.sb-totals small { padding: 0 10px; border-inline: 1px solid #70664a; color: #d5c39a; font-size: .65rem }
.sb-panel table { width: 100%; border: 1px solid #376055; border-spacing: 0; border-radius: 6px; overflow: hidden; table-layout: fixed; text-align: left; font-size: .83rem }
.sb-panel th { padding: 5px 8px; color: #acbdb1; background: #112e29; font-size: .68rem; font-weight: 600 }
.sb-panel th:first-child { width: 30% } .sb-panel th:nth-child(2) { width: 36% } .sb-panel th:nth-child(3) { width: 17% }
.sb-panel td { height: 42px; border-top: 1px solid #aebfaf13; padding: 3px 8px }
.sb-cyan { --accent: #7edac4; background: linear-gradient(90deg,#244139,#0a1716 80%) }
.sb-coral { --accent: #ed9e88; background: linear-gradient(90deg,#382f2d,#181b1a 80%) }
.sb-coral tr:first-child td { border-top: 4px double #857058 }
.sb-panel tbody td:first-child { border-left: 3px solid var(--accent) }
.sb-panel tbody tr:nth-child(even) { background-color: #ffffff04 }
.sb-panel .sb-me { background: linear-gradient(90deg,#ad87473b,#ad87470b); color: #fff1c2 }
.sb-id, .sb-slots { display: flex; align-items: center; gap: 4px }
.sb-id { gap: 9px } .sb-id > span:last-child { min-width: 0 }
.sb-id strong, .sb-id small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.sb-id small { font-size: .64rem; color: #acbcb6 }
.sb-id small.sb-bounty { color: #ffd27c; font-weight: 700 }
.sb-face { position: relative; flex: 0 0 auto }
.sb-face .hud-portrait { width: 32px; height: 32px; min-height: 0; border: 1px solid #938362; border-radius: 1px }
.sb-face small { position: absolute; right: -2px; bottom: -1px; min-width: 12px; text-align: center; color: #ffe6a8; background: #162326; border: 1px solid #867751; font: 10px/12px var(--mono) }
.sb-icon { position: relative; flex: 0 1 23px; max-width: 23px; aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid #a48e61; color: #f6ebcb; background: linear-gradient(135deg, var(--tile), #141c20); box-shadow: inset 0 0 0 1px #ffffff1a, 0 1px 2px #000 }
.sb-icon svg { width: 80%; height: 80%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.sb-icon b { position: absolute; bottom: -2px; right: -2px; background: #1b2321; color: #ffe3a3; font: bold 10px/11px Georgia,serif; padding-inline: 1px }
.sb-icon.vacant { color: #91a39b; background: #0b1414; border-color: #495249; font: 12px var(--mono) }
.sb-kda { color: #daebe3; white-space: nowrap; font: .78rem var(--mono) }
.sb-info { color: #b7c8bd; font-size: .7rem }
.sb-note { margin: 6px 3px 2px; color: #acbbb1; text-align: center; font-size: .66rem }
@media(max-width: 540px) {
  #scores { width: 96vw; padding: 3px }
  .sb-panel .sb-slots { display: grid; grid-template-columns: repeat(3, 20px); gap: 3px }
  .sb-panel th:first-child { width: 34% } .sb-panel th:nth-child(2) { width: 25% } .sb-panel th:nth-child(3) { width: 20% }
  .sb-panel th, .sb-panel td { padding-inline: 4px } .sb-id { gap: 5px } .sb-kda { font-size: .72rem }
}
@media(max-height: 470px) { .sb-panel td { height: 32px } .sb-face .hud-portrait { width: 25px; height: 25px } .sb-totals { height: 30px } }
