/* S.Matching: same window frame as .game-window (gameplay.css), centred like the native window. */
#gameHud .s-matching{left:50%;right:auto;top:72px;transform:translateX(-50%);width:min(600px,calc(100vw - 24px));box-sizing:border-box;z-index:40;font-size:12px;color:#e9e1cc;display:flex;flex-direction:column;overflow:hidden;max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px)}
#gameHud .s-matching[hidden]{display:none}
.s-matching>*{flex:0 0 auto}
.s-matching-scroll{flex:1 1 auto!important;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7d7563 #131a1d;margin:0 -6px;padding:0 6px}
.s-matching p{margin:0}
.s-matching-tabs,.s-matching-groups{display:flex;gap:4px;margin:0 0 8px}
.s-matching-groups{margin-bottom:10px}
#gameHud .s-matching-tab,#gameHud .s-matching-group{flex:1;padding:7px 8px;font-size:12px;background:#121c22;border-color:#5e5a49;color:#c9bf9f}
#gameHud .s-matching-group{flex:0 0 auto;min-width:88px;padding:5px 12px;font-size:11px}
#gameHud .s-matching-tab[aria-selected="true"],#gameHud .s-matching-group[aria-selected="true"]{background:linear-gradient(#5b4f32,#2c2a1e);border-color:#d8bd7c;color:#ffe9b5}
.s-matching-emblem{display:flex;align-items:center;gap:12px;padding:8px 12px;margin-bottom:8px;background:linear-gradient(90deg,#0b141acc,#18242acc);border:1px solid #6f664e66}
.s-matching-mark{flex:0 0 46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:30px;line-height:1;color:#f4d891;background:radial-gradient(circle,#3a3322 0,#14181a 70%);border:2px solid #b49a5e;box-shadow:0 0 12px #c8a55a55,inset 0 0 8px #000}
.s-matching-emblem p{font-size:12px;line-height:1.6;color:#d9cfb5;white-space:pre-line}
.s-matching-selfbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px}
.s-matching-selfbar[hidden]{display:none}
.s-matching-self{font-size:11px;color:#b9c6c4;margin:0!important;min-width:0}
#gameHud .s-matching-refresh{flex:0 0 auto;padding:3px 10px;font-size:11px}
.s-matching-avail{display:inline-block;font-size:10px;font-weight:normal;color:#c5bca8;margin-left:8px}.s-matching-avail.ok{color:#a9d3a0}
.s-matching-row.unavailable td.s-col-name{color:#bdb6a4}
.s-matching-table{width:100%;border-collapse:collapse;table-layout:fixed;margin-bottom:8px}
.s-matching-table[hidden]{display:none}
.s-matching-table th{font-weight:normal;font-size:11px;color:#e5c97f;padding:6px 4px;border-bottom:1px solid #a28c6188;background:#1c252a;text-align:center}
.s-matching-table td{padding:6px 4px;border-bottom:1px solid #a28c6126;text-align:center;font-size:12px;color:#e9e1cc;overflow-wrap:anywhere}
.s-matching-table .s-col-level{width:52px}.s-matching-table .s-col-itemLevel{width:132px}.s-matching-table .s-col-select{width:48px}
.s-matching-table td.s-col-name{text-align:left}
.s-matching-table td.fail{color:#e3926f}.s-matching-table td.pass{color:#a9d3a0}
.s-matching-table td small{font-size:10px;opacity:.85}
.s-matching-row.selected td{background:#4b432a66}
.s-matching-row:hover td{background:#3a3a2a44}
.s-matching input[type="checkbox"]{margin:0;height:18px;width:18px;accent-color:#d8bd7c;cursor:pointer;vertical-align:middle}
.s-matching input[type="checkbox"]:disabled{cursor:default;opacity:.45}
.s-matching-note{font-size:12px;color:#d8a06a;margin:4px 0 8px!important}
.s-matching-note[hidden],.s-matching-info[hidden],.s-matching-status[hidden]{display:none}
#gameHud .s-matching-arena{margin:0 0 8px;width:100%}
.s-matching-info{padding:10px 12px;margin-bottom:8px;border:1px solid #8b805155;background:#0a131b99;font-size:11px;color:#c4ccc8}
.s-matching-info b{display:block;font-size:13px;color:#ebd49f;margin-bottom:4px}
.s-matching-info p{line-height:1.6}.s-matching-info small{display:block;margin-top:6px;color:#a2aca3}
.s-matching-status{font-size:12px;color:#c9d6c8;margin:2px 0 8px!important;min-height:18px}
.s-matching-status.warn{color:#e8b48a}
.s-matching-footer{display:flex;justify-content:center;gap:8px;padding-top:10px;border-top:1px solid #ad987040}
#gameHud .s-matching-footer button{min-width:96px;padding:7px 14px;font-size:12px}
#gameHud .s-matching button:disabled{opacity:.45;cursor:default}
#gameHud .s-matching button:focus-visible,.s-matching input:focus-visible{outline:2px solid #f6e7ad;outline-offset:2px}
@media(max-width:600px){#gameHud .s-matching{top:64px;padding:0 12px 12px;max-height:calc(100vh - 76px);max-height:calc(100dvh - 76px)}.s-matching-mark{flex-basis:40px;height:40px;font-size:22px}.s-matching-table .s-col-level{width:40px}.s-matching-table .s-col-itemLevel{width:96px}.s-matching-table .s-col-select{width:40px}#gameHud .s-matching-footer button{min-width:0;flex:1}}
/* Party (round 11): buff line, queue status, PC role popup (modal), found popup, HUD queue badge. */
.s-matching-emblem-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.s-matching-buff{font-size:11px;color:#f1d58e;cursor:help;text-decoration:underline dotted #f1d58e88;text-underline-offset:3px;align-self:flex-start}
.s-matching-buff[hidden]{display:none}
.s-matching-table.locked tbody td{opacity:.62}
.s-matching-queue{padding:9px 12px 11px;margin-bottom:8px;border:1px solid #b49a5e66;background:linear-gradient(90deg,#1d2a2ecc,#0e171ccc)}
.s-matching-queue[hidden]{display:none}
.s-matching-queue b{display:block;font-size:13px;color:#ebd49f;margin-bottom:4px}
.s-matching-queue p{font-size:12px;line-height:1.7;color:#d6dccf}
.party-match-slots{display:flex;gap:6px;margin-top:8px}
.party-match-slot{flex:1 1 0;min-width:0;height:32px;display:grid;place-items:center;font-size:11px;border:1px solid #6f664e;border-radius:2px;background:#0b1216;color:#d9cfb5;box-shadow:inset 0 0 6px #000a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.party-match-slot.empty{border-style:dashed;border-color:#5a5446;background:#0a0f12;color:transparent}
.party-match-slot.filled.tank{border-color:#7fa6c8;color:#d8ecfb;background:linear-gradient(#2a4458,#121e28)}
.party-match-slot.filled.deal{border-color:#c8906c;color:#fbe3d6;background:linear-gradient(#55332a,#26150f)}
.party-match-found .party-match-slot.filled{opacity:.5}
.party-match-found .party-match-slot.ready{opacity:1;border-color:#f2d48a;box-shadow:inset 0 0 6px #000a,0 0 9px #f2d48a99}
#gameHud .party-match-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:12px;background:#03080bb8;pointer-events:auto}
#gameHud .party-match-modal[hidden]{display:none}
#gameHud .party-match-role{position:relative;right:auto;top:auto;width:min(340px,calc(100vw - 24px));max-height:none;box-sizing:border-box;font-size:12px;color:#e9e1cc}
.party-match-role-note{font-size:12px;line-height:1.6;color:#d6dccf;margin:0 0 12px}
.party-match-role-options{display:flex;gap:10px;margin:0 0 12px}
.party-match-role-options[hidden]{display:none}
#gameHud .party-match-role-option{flex:1 1 0;height:66px;font-size:15px!important;letter-spacing:.5px;border-width:2px}
#gameHud .party-match-role-option.tank{border-color:#5d7c96}
#gameHud .party-match-role-option.deal{border-color:#966a50}
#gameHud .party-match-role-option.selected{border-color:#f2d48a;background:linear-gradient(#5b4f32,#2c2a1e);color:#ffe9b5;box-shadow:0 0 12px #f2d48a66,inset 0 0 0 1px #000}
.party-match-popup-footer{display:flex;justify-content:center;gap:8px;padding-top:10px;border-top:1px solid #ad987040}
#gameHud .party-match-popup-footer button{min-width:96px;padding:7px 14px;font-size:12px}
#gameHud .party-match-popup-footer button[hidden]{display:none}
#gameHud .party-match-role button:disabled,#gameHud .party-match-found button:disabled{opacity:.45;cursor:default}
.party-match-popup-note{font-size:12px;line-height:1.6;color:#e8c48a;margin:0 0 10px}
.party-match-popup-note[hidden]{display:none}
#gameHud .party-match-found{left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 24px));box-sizing:border-box;z-index:78!important;font-size:12px;color:#e9e1cc;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
#gameHud .party-match-found[hidden]{display:none}
.party-match-found p{margin:0}
.party-match-found-role{font-size:12px;color:#d6dccf}
.party-match-countdown-row{display:flex;align-items:center;gap:10px;margin:12px 0 10px}
.party-match-countdown{flex:1;height:10px;appearance:none;-webkit-appearance:none;border:1px solid #080b0c;box-shadow:0 0 0 1px #a3936d44;background:#070d11}
.party-match-countdown::-webkit-progress-bar{background:#080e12}
.party-match-countdown::-webkit-progress-value{background:linear-gradient(#f0d48a,#a37a2c)}
.party-match-countdown::-moz-progress-bar{background:linear-gradient(#f0d48a,#a37a2c)}
.party-match-countdown-text{min-width:56px;text-align:right;font-size:13px;color:#f1d58e}
#gameHud .party-match-waiting{position:absolute;right:284px;top:110px;z-index:5;display:flex;align-items:center;gap:7px;max-width:240px;padding:4px 11px 4px 5px!important;font-size:11px;border-color:#c8a55a!important;box-shadow:0 0 10px #c8a55a55,inset 0 1px #d9d4b218!important;cursor:pointer}
#gameHud .party-match-waiting[hidden]{display:none}
.party-match-waiting-mark{flex:0 0 22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:15px;line-height:1;color:#f4d891;background:radial-gradient(circle,#3a3322 0,#14181a 70%);border:1px solid #b49a5e}
@media(max-width:1100px){#gameHud .party-match-waiting{right:250px}}
@media(max-width:720px){#gameHud .party-match-waiting{right:auto;left:10px;top:112px}#gameHud .party-match-role-option{height:56px}}
