/* Room-owned score overview: compact paper cards, brass details, emerald selection. */
.results-overview {
  --ro-ink:#16313d; --ro-soft:#536565; --ro-paper:#fcf8e9;
  --ro-line:#d7c995; --ro-green:#15543c; --ro-brass:#977132;
  color:var(--ro-ink); width:100%; min-width:0;
  font-family:"Nunito Sans",system-ui,sans-serif; text-align:left;
}
.results-overview * { box-sizing:border-box; }
.results-overview .ro-intro { display:flex; align-items:baseline; justify-content:space-between; gap:8px 18px; margin:0 0 10px; }
.results-overview .ro-section-title { font:900 18px/1.2 "Nunito Sans",sans-serif; color:var(--ro-ink); margin:0; }
.results-overview .ro-section-note { margin:0; font-size:12px; color:var(--ro-soft); }
.results-overview .ro-players { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:0 0 12px; }
.results-overview .ro-player {
  appearance:none; position:relative; display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  grid-template-areas:"avatar identity rank" "score score score" "running running badge";
  gap:5px 9px; align-items:center; min-width:0; margin:0; padding:12px;
  border:1px solid var(--ro-line); border-radius:14px;
  background:linear-gradient(145deg,#fffdf5,#f1ead3); color:var(--ro-ink);
  box-shadow:inset 0 1px 0 #fff,0 3px 9px #132c2a0b;
  font:inherit; text-align:left; cursor:pointer;
  transition:border-color .16s,box-shadow .16s,background .16s;
}
.results-overview .ro-player:hover { border-color:#8f804b; box-shadow:inset 0 1px 0 #fff,0 3px 12px #132c2a20; }
.results-overview .ro-player[aria-pressed="true"] {
  border-color:#277050; background:linear-gradient(145deg,#e8f1db,#d5e8d7);
  box-shadow:inset 0 0 0 2px #277050,0 3px 12px #163a2720;
}
.results-overview .ro-player:focus-visible,.results-overview .ro-tab:focus-visible { outline:3px solid #097a67; outline-offset:3px; }
.results-overview .ro-avatar {
  grid-area:avatar; display:grid; place-items:center; width:36px; height:36px;
  border:2px solid #f6e6b2; border-radius:50%; background:var(--player-accent,#24634b);
  color:#fff; text-shadow:0 1px 3px #00191d; font-size:20px; font-weight:900;
  box-shadow:0 0 0 1px #788777;
}
.results-overview .ro-identity { grid-area:identity; display:flex; flex-direction:column; min-width:0; }
.results-overview .ro-name { display:block; font-size:15px; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.results-overview .ro-tag { color:#496858; font-size:10px; line-height:1.3; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.results-overview .ro-tag:empty { display:none; }
.results-overview .ro-rank { grid-area:rank; align-self:start; padding:3px 6px; border:1px solid #a9905552; border-radius:7px; background:#fff9df; color:#6e582b; font-size:10px; line-height:1.3; font-weight:900; white-space:nowrap; }
.results-overview .ro-player-score { grid-area:score; display:flex; align-items:baseline; gap:7px; margin:1px 0; min-width:0; }
.results-overview .ro-player-score strong { font-size:clamp(24px,3.2vw,32px); line-height:1.1; font-weight:900; letter-spacing:-.055em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.results-overview .ro-player-score>span { color:var(--ro-soft); font-size:10px; white-space:nowrap; }
.results-overview .ro-running-total { grid-area:running; color:#4e605a; font-size:11px; line-height:1.3; font-weight:700; overflow-wrap:anywhere; }
.results-overview .ro-badge { grid-area:badge; justify-self:end; padding:3px 6px; border:1px solid #b7a26a; border-radius:6px; background:#f7e9b8; color:#674913; font-size:9px; line-height:1.3; font-weight:900; white-space:nowrap; }
.results-overview .ro-details { min-width:0; border:1px solid var(--ro-line); border-radius:14px; background:var(--ro-paper); box-shadow:inset 0 1px 0 #fff; overflow:hidden; }
.results-overview .ro-detail-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding:10px 14px; border-bottom:1px solid #d8cda577; background:#f1ecd9; }
.results-overview .ro-detail-title { margin:0; color:var(--ro-ink); font-size:14px; font-weight:900; line-height:1.3; overflow-wrap:anywhere; }
.results-overview .ro-tabs { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.results-overview .ro-tab { appearance:none; border:1px solid #b7b293; border-radius:8px; padding:5px 9px; min-height:32px; background:#fffbed; color:#3c514c; font:800 11px/1.2 "Nunito Sans",sans-serif; cursor:pointer; }
.results-overview .ro-tab:hover { background:#e3ecdc; }
.results-overview .ro-tab[aria-pressed="true"] { color:#fffbed; border-color:#184e39; background:var(--ro-green); box-shadow:inset 0 1px 0 #83ae7e55; }
.results-overview .ro-tab[hidden] { display:none; }
.results-overview .ro-detail-body { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(130px,.8fr); gap:22px; align-items:start; padding:12px 14px; }
.results-overview .ro-score-table { width:100%; margin:0; border-collapse:collapse; color:var(--ro-ink); font-size:12px; font-variant-numeric:tabular-nums; }
.results-overview .ro-score-table caption { text-align:left; color:#69766a; font-size:10px; font-weight:800; letter-spacing:.045em; text-transform:uppercase; padding-bottom:6px; }
.results-overview .ro-score-table th { text-align:left; font-weight:600; }
.results-overview .ro-score-table td { text-align:right; font-weight:900; }
/* The working ("2 x 50") sits between the label and the figure, quieter than
   both: it explains the number without competing with it. It collapses to
   nothing on a zero line, where there is no arithmetic worth showing. */
.results-overview .ro-score-table .ro-score-working { text-align:right; padding-right:12px; white-space:nowrap; font-weight:600; font-size:11px; color:#7c8a7e; font-variant-numeric:tabular-nums; }
.results-overview .ro-score-table th { width:1%; white-space:nowrap; }
.results-overview .ro-score-table .ro-score-value { width:1%; white-space:nowrap; }
.results-overview .ro-score-table th,.results-overview .ro-score-table td { padding:4px 0; border-bottom:1px solid #d8cda545; line-height:1.2; }
.results-overview .ro-score-table th { padding-right:10px; }
.results-overview .ro-score-table tfoot th,.results-overview .ro-score-table tfoot td { padding-top:8px; border-top:1px solid #ad9a5b; border-bottom:0; color:var(--ro-green); font-weight:900; }
.results-overview .ro-score-table tfoot td { font-size:20px; }
.results-overview .ro-highlights { display:grid; gap:7px; margin:0; min-width:0; }
.results-overview .ro-highlight { min-width:0; padding:8px 10px; border:1px solid #bccaab; border-radius:9px; background:linear-gradient(120deg,#e8eedb,#f2f2e6); }
.results-overview .ro-highlight dt { margin:0 0 2px; font-size:10px; color:#536a55; font-weight:800; }
.results-overview .ro-highlight dd { margin:0; color:#235139; font-size:18px; line-height:1.2; font-weight:900; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.results-overview .ro-empty { grid-column:1/-1; margin:0; padding:12px; color:var(--ro-soft); background:#f7f0db; border:1px solid #d7c995; border-radius:9px; font-size:13px; line-height:1.5; }
@media(min-width:900px) {
  .results-overview .ro-players { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .results-overview .ro-players:has(>.ro-player:nth-child(3):last-child) { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .results-overview .ro-players:has(>.ro-player:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px) {
  .results-overview .ro-intro { align-items:start; flex-direction:column; gap:3px; }
  .results-overview .ro-player { padding:10px; grid-template-columns:30px minmax(0,1fr); grid-template-areas:"avatar identity" "rank rank" "score score" "running running" "badge badge"; gap:4px 7px; }
  .results-overview .ro-avatar { width:29px; height:29px; font-size:17px; }
  .results-overview .ro-rank { justify-self:start; }
  .results-overview .ro-badge { justify-self:start; }
  .results-overview .ro-name { font-size:13px; }
  .results-overview .ro-player-score { align-items:start; flex-direction:column; gap:0; }
  .results-overview .ro-player-score strong { font-size:27px; }
  .results-overview .ro-detail-body { grid-template-columns:minmax(0,1fr) 115px; gap:12px; padding:10px; }
  .results-overview .ro-detail-head { padding:10px; }
  .results-overview .ro-highlight { padding:7px; }
  .results-overview .ro-highlight dd { font-size:15px; }
  .results-overview .ro-tab { min-height:36px; padding:6px 10px; }
}
@media(max-width:390px) {
  .results-overview .ro-players { grid-template-columns:minmax(0,1fr); }
  .results-overview .ro-player { grid-template-columns:34px minmax(0,1fr) auto; grid-template-areas:"avatar identity rank" "score score badge" "running running running"; gap:5px 8px; }
  .results-overview .ro-player-score { flex-direction:row; align-items:baseline; gap:7px; }
  .results-overview .ro-badge { justify-self:end; }
  .results-overview .ro-detail-body { grid-template-columns:minmax(0,1fr); }
  .results-overview .ro-highlights { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .results-overview .ro-highlight dd { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { .results-overview .ro-player { transition:none; } }
