.siege-notes { margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.siege-pos { color: #f3cf6b; font-weight: 700; white-space: nowrap; }

.siege-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.siege-flag { padding: 2px 8px; border-radius: 2px; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: var(--frame); }
.siege-flag.pro { color: #f3cf6b; background: var(--well); }
.siege-flag.pro:hover { color: var(--bright); }
.siege-flag.pro.maybe { color: var(--muted); }
.siege-flag.ban { color: var(--loss); background: color-mix(in srgb, var(--loss) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 30%, transparent); }

.siege-pro { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.siege-pro:first-child { padding-top: 0; border-top: 0; box-shadow: none; }
.siege-pro:last-child { padding-bottom: 0; }
.siege-pro-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.siege-pro-who b { font-size: 17px; color: var(--bright); }
.siege-pro-who span { font-size: 14px; color: var(--text); }
.siege-pro small { font-size: 13px; color: var(--muted); }
.siege-links { display: flex; gap: 8px; margin-top: 6px; }
.siege-links a { padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; background: linear-gradient(#232323, #191919); box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #303030; }
.siege-links a:hover { color: var(--bright); }

.siege-names .alias b { font-size: 15px; }
.siege-names .alias.siege-current b { color: var(--rank); }

.match .siege-rank-icon { object-fit: contain; padding: 4px; }
.siege-banned { margin-left: 4px; padding: 0 5px; border-radius: 2px; font: 700 10px var(--body); font-style: normal; color: var(--loss); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 40%, transparent); }

.cs-top { display: grid; grid-template-columns: 52px minmax(0, 1fr) 46px auto; align-items: center; gap: 12px; padding: 14px var(--inset); }
.cs-icon { width: 52px; height: 52px; object-fit: contain; }
.cs-rank { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cs-rank b { font-size: 15px; color: var(--bright); }
.cs-rank > span { font: 700 17px var(--display); color: var(--text); }
.cs-ring { width: 46px; height: 46px; }
.cs-ring circle { fill: none; stroke-width: 3.5; transform: rotate(-90deg); transform-origin: center; }
.cs-ring-loss { stroke: var(--loss); }
.cs-ring.empty .cs-ring-loss { stroke: var(--edge); }
.cs-ring-win { stroke: var(--win); }
.cs-ring text { fill: var(--bright); font: 700 11px var(--body); text-anchor: middle; dominant-baseline: central; }
.cs-mini { display: grid; grid-template-columns: auto auto; gap: 1px 8px; margin: 0; font-size: 12px; }
.cs-mini dt { font-weight: 600; color: var(--faint); }
.cs-mini dd { margin: 0; text-align: right; color: var(--bright); font-variant-numeric: tabular-nums; }
.cs-legend { display: flex; align-items: center; gap: 10px; padding: 10px var(--inset); border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.cs-legend-icon { width: 30px; height: 30px; object-fit: contain; }
.cs-legend span { display: flex; flex-direction: column; line-height: 1.25; }
.cs-legend b { font-size: 14px; color: var(--bright); }
.cs-legend small { font-size: 12px; color: var(--muted); }
.cs-sides { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.cs-side { display: flex; flex-direction: column; gap: 1px; padding: 10px var(--inset); line-height: 1.25; }
.cs-side + .cs-side { border-left: 1px solid #000; box-shadow: inset 1px 0 0 var(--edge-soft); }
.cs-side small { font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cs-side b { font-size: 14px; color: var(--bright); }
.cs-side span { font-size: 12px; color: var(--muted); }
.cs-modes th, .cs-modes td { padding: 8px var(--inset); font-size: 14px; }
.cs-modes th { font-size: 11px; }

.mr-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0; background: none; border: 0; color: var(--faint); font: 600 11px var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mr-toggle i { position: relative; width: 26px; height: 14px; border-radius: 7px; background: var(--well); box-shadow: var(--frame); }
.mr-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: transform .15s ease; }
.mr-toggle[aria-pressed="true"] i::after { transform: translateX(12px); background: var(--rank); }
.mr-toggle span:first-child, .mr-toggle[aria-pressed="true"] span:last-child { color: var(--bright); }
.mr-toggle[aria-pressed="true"] span:first-child { color: var(--faint); }
.mr-block .block-head { flex-wrap: nowrap; }
.mr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px var(--inset); border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.mr-row:first-child { border-top: 0; box-shadow: none; }
.mr-max, .mr-final { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mr-block .mr-final, .mr-block.final .mr-max { display: none; }
.mr-block.final .mr-final { display: flex; }
.mr-icon { width: 34px; height: 34px; flex: none; object-fit: contain; }
.mr-name { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 6px; min-width: 0; line-height: 1.3; }
.mr-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--bright); }
.mr-name small { font-size: 11px; color: var(--faint); }
.mr-name > span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mr-games { font: 700 15px var(--display); color: var(--text); }

.rp-map { position: relative; aspect-ratio: 360 / 142; margin: 12px var(--inset) 4px; }
.rp-map::before { content: ""; position: absolute; inset: 0; background: var(--edge); -webkit-mask: url("/img/world.svg") center / 100% 100% no-repeat; mask: url("/img/world.svg") center / 100% 100% no-repeat; }
.rp-map i { position: absolute; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; background: color-mix(in srgb, var(--rank) 75%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rank) 25%, transparent); }
.rp-table th, .rp-table td { padding: 8px var(--inset); font-size: 14px; }
.rp-table th { font-size: 11px; }
.side-collapse:not(.open) .mr-row:nth-child(n+4), .side-collapse:not(.open) .rp-table tbody tr:nth-child(n+4) { display: none; }
.side-more { display: block; width: 100%; padding: 10px; border: 0; border-top: 1px solid #000; background: none; box-shadow: inset 0 1px 0 var(--edge-soft); color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.side-more:hover { color: var(--bright); background: rgba(255,255,255,.02); }

.rb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--inset); }

.en-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.en-filters .ctl { width: 200px; }
.en-filters select { padding: 9px 10px; background: var(--well); color: var(--bright); border: 1px solid var(--edge); border-radius: 3px; font: 14px var(--body); }
.en-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; padding: 4px; background: var(--raised); box-shadow: var(--frame); border-radius: var(--radius); }
.en-kinds button { padding: 10px; border: 0; border-radius: 3px; background: none; color: var(--muted); font: 600 14px var(--body); cursor: pointer; }
.en-kinds button:hover { color: var(--bright); }
.en-kinds button[aria-selected="true"] { background: var(--well); box-shadow: var(--frame); color: var(--bright); }
.en-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.en-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 12px; padding: 10px 0 10px 12px; overflow: hidden; background: var(--raised); box-shadow: var(--frame); border-radius: 3px; color: inherit; text-decoration: none; }
.en-card:hover { background: #191919; }
.en-icon { grid-row: 1 / 3; width: 34px; height: 34px; object-fit: contain; }
.en-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.en-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--bright); }
.en-who small, .en-stats { font-size: 12px; color: var(--muted); }
.en-stats { grid-column: 2; }
.en-count { grid-column: 3; grid-row: 1 / 3; align-self: stretch; display: grid; place-items: center; min-width: 52px; margin: -10px 0; background: var(--well); box-shadow: inset 1px 0 0 #000; font: 700 16px var(--display); color: var(--bright); }
@media (max-width: 720px) {
  .en-filters .ctl { flex: 1; width: auto; }
  .en-kinds button { padding: 9px 4px; font-size: 13px; }
}
