[hidden]#coopVotePanel,[hidden]#coopResultPanel,[hidden]#roomCoopPanel{display:none}
.coopPanel{margin:10px 0;padding:12px;border:1px solid var(--sif-edge);border-radius:11px;background:var(--sif-mint-lite);color:var(--sif-text);font-size:13px}
.coopPanel strong{color:var(--sif-mint)}
.coopPanel p{margin:6px 0}
#coopVotePanel>span{margin-inline-start:8px}
.coopNameForm label{display:block;font-weight:800;margin:8px 0 4px}
.coopNameLine{display:flex;gap:7px}
.coopNameLine input{flex:1;min-width:0;padding:6px 8px;border:1px solid var(--sif-edge);border-radius:8px;background:var(--sif-paper);color:var(--sif-text)}

.coopDuelSides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.coopDuelSide{min-width:0;border-radius:8px;padding:7px 8px;background:var(--sif-paper);border:1px solid var(--sif-edge);overflow-wrap:anywhere}
.coopDuelSide[data-side="1"] strong{color:var(--sif-pink)}
.coopDuelSide[data-side="2"] strong{color:var(--sif-blue)}
.seatNumber{font-weight:750;color:var(--sif-quiet);font-size:.85em}
#roomPlayerList .seat.empty{display:flex;justify-content:space-between;align-items:center;gap:8px}
#roomPlayerList .seatMoveBtn{white-space:nowrap}
.seatRequest{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin:7px 0;padding:8px;border-radius:9px;border:1px solid var(--sif-edge);background:var(--sif-blue-lite)}
.seatRequest button+button{margin-left:5px}
.seatRequests[hidden]{display:none}

.coopTieNote{font-weight:750;color:var(--sif-mint)}

.coopChoiceVotes{display:grid;gap:3px;margin-top:4px;font-size:12px;line-height:1.4;color:var(--sif-quiet);font-variant-numeric:tabular-nums}
.coopVoteLine,.coopVoteDots{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0}
.coopVoteLine b{color:var(--sif-text)}
.coopVoteDots{gap:4px}
.coopVoteDot{display:inline-block;flex:none;width:10px;height:10px;border-radius:50%;background:var(--vote-color);box-shadow:inset 0 0 0 1px #0002}
.coopVoteSelected{font-weight:800;color:var(--sif-mint)}
.coopVoteSide{font-weight:800;color:var(--sif-pink)}
.coopVoteSide[data-side='2']{color:var(--sif-blue)}
.choiceBtn.dimmed.coopVotedChoice{opacity:1}

.coopVoteDot{width:14px;height:14px;box-shadow:inset 0 0 0 1px #0003}
.coopVoteLine .coopVoteCount{min-width:19px;text-align:center;padding-inline:3px;border-radius:5px;background:var(--sif-blue-lite);font-size:12px}
.coopVoteTime,.coopVoteSelected,.coopRoomTeamHead strong{display:inline-flex;align-items:center;gap:4px}
#roomPlayerList .coopRoomTeam{--team-ink:#cc3e63;--team-soft:var(--sif-pink-lite);display:grid;gap:6px;border:1.5px solid var(--team-ink);border-radius:12px;background:var(--team-soft);padding:7px}
#roomPlayerList .coopRoomTeam[data-side='2']{--team-ink:#337ebe;--team-soft:var(--sif-blue-lite)}
.coopRoomTeamHead{display:flex;align-items:center;justify-content:space-between;color:var(--team-ink);padding-inline:3px}
.coopRoomJoin{min-width:38px;min-height:34px;display:grid;place-items:center;color:var(--team-ink)}
.coopRoomFree{display:grid;gap:6px}
.coopRoomEmpty{padding-inline:3px}

.coopAbstained{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;margin-top:7px;color:var(--sif-quiet)}
.coopTeamLink{display:inline-flex;align-items:center;gap:4px;border:0;padding:2px 0;background:none;color:var(--sif-blue);font:inherit;font-weight:800;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.coopTeamDialog{width:min(360px,calc(100% - 32px));border:1px solid var(--sif-edge);border-radius:14px;background:var(--sif-paper);color:var(--sif-text);padding:18px 20px;box-shadow:0 16px 40px #0003}
.coopTeamDialog::backdrop{background:#20152c80}
.coopTeamDialog h2{margin:0;overflow-wrap:anywhere}
.coopRosterList{display:grid;gap:5px;margin:8px 0 14px;padding-left:20px}

.coopAbstained{flex-wrap:nowrap;font-size:12px}
.coopAbstained .coopVoteDots{flex-wrap:nowrap;gap:4px}
.coopAbstained .coopVoteDot{width:12px;height:12px}
.coopChoiceVotes{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px}
.coopTeamDialog{width:min(370px,calc(100% - 28px));padding:0;overflow:hidden;border:1px solid var(--sif-edge);border-radius:16px}
.coopTeamCardHead{display:flex;align-items:center;gap:10px;padding:11px 14px;background:var(--sif-pink-lite);border-bottom:1px solid var(--sif-edge)}
.coopTeamCardHead h2{flex:1;min-width:0;font-size:18px;font-weight:850}
.coopTeamCardHead .iconBtn{min-width:32px;min-height:32px}
.coopTeamCardIcon{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:9px;background:var(--sif-pink);color:white}
.coopTeamCardBody{padding:11px 14px 14px}
.coopTeamRosterLabel{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--sif-quiet)}
.coopRosterList{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;list-style:none;padding:0;margin:8px 0 0}
.coopRosterList li{display:flex;min-width:0;align-items:center;gap:5px;border:1px solid var(--sif-edge);border-radius:8px;padding:5px;background:var(--sif-paper);font-size:12px}
.coopRosterList li b{min-width:0;overflow-wrap:anywhere}
.coopRosterList li small{margin-left:auto;color:var(--sif-pink);white-space:nowrap;font-weight:800}
.coopRosterAvatar{display:grid;place-items:center;width:21px;height:21px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--vote-color) 30%,var(--sif-paper));color:var(--sif-text);font-weight:800}

.choiceBtn:has(>.coopChoiceVotes){gap:8px}
.choiceBtn>.coopChoiceVotes{flex:0 1 auto;min-width:0;max-width:46%;margin:0 0 0 auto;display:flex;justify-content:flex-end;gap:2px 7px}
.choiceBtn>.coopChoiceVotes .coopVoteLine{justify-content:flex-end;gap:3px 4px}
.choiceBtn>.coopChoiceVotes .coopVoteDot{width:11px;height:11px}
.choiceBtn>.coopChoiceVotes .coopVoteDots{gap:3px}
.choiceBtn>.coopChoiceVotes .coopVoteTime{white-space:nowrap}
#coopResultPanel{box-sizing:border-box;width:100%}
#coopResultPanel .coopNameLine{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px}
#coopResultPanel .coopNameLine input{width:100%;box-sizing:border-box}
#coopResultPanel .coopNameLine button{white-space:nowrap;padding-inline:10px;min-width:0}
#roomPlayerList .seatIconBtn{display:inline-grid;place-items:center;min-width:36px;min-height:32px;padding:3px 7px}
#roomPlayerList .seatIconBtn .coopGlyph{width:18px;height:18px}
#roomPlayerList .coopRoomTeam .seat{min-height:38px;padding:5px 7px}

#coopResultPanel.coopResultTeamCard{padding:0;overflow:hidden;background:var(--sif-paper);border-radius:14px}
.coopResultTeamTitle{min-width:0;flex:1;font-size:17px;overflow-wrap:anywhere}
#coopResultPanel .coopResultTeamTitle{color:var(--sif-text)}
.coopPublishBadge{padding:3px 7px;background:var(--sif-paper);color:var(--sif-quiet);border-radius:8px;white-space:nowrap;font-size:11px}
#coopResultPanel .coopNameForm{margin-top:9px}
.coopDuelLifePills{margin-top:8px}
.coopDuelHearts{display:inline-flex;gap:3px;margin-inline-start:5px;color:var(--sif-pink);white-space:nowrap}
.coopDuelHearts .lost{color:var(--sif-edge)}

.coopSeatCaptain{display:inline-block;margin-inline-start:3px;padding:0 4px;border-radius:5px;background:var(--sif-pink-lite);color:var(--sif-pink);font-size:10px;white-space:nowrap;vertical-align:middle}

/* Double-team PK result only */
#viewResult.duelFinishTheme .shareCardTop{min-height:125px;align-items:center;background:linear-gradient(116deg,#c83177 0 46%,#813eac 46.15% 58%,#3868bd 58.15% 100%)}
#viewResult.duelFinishTheme .shareCardTop>*{position:relative;z-index:1}
#viewResult.duelFinishTheme .shareCardTitle{color:#fff}
#viewResult.duelFinishTheme .sharePlayerRow,#viewResult.duelFinishTheme .shareBigMetric,#viewResult.duelFinishTheme #shareBlocksWrap,#viewResult.duelFinishTheme #resultSubtitle{display:none}
#coopResultPanel.duelFinishPanel{border:0;background:transparent;box-shadow:none}
.duelFinishVerdict{display:flex;align-items:center;gap:10px;color:#644621;background:#fff4d6;border:1px solid #f0db99;border-radius:12px;padding:9px 10px}
.duelFinishVerdict>span{width:32px;height:32px;display:grid;place-items:center;background:#ffe8a1;border-radius:50%;flex:none}
.duelFinishVerdict strong,.duelFinishVerdict small{display:block}
.duelFinishTeams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.duelFinishTeam{min-width:0;padding:9px 8px;border:1px solid var(--team-edge);border-radius:12px;background:var(--team-tint);color:var(--team-ink);--team-ink:#aa2470;--team-tint:#fff0f6;--team-edge:#f5c7de}
.duelFinishTeam[data-side="2"]{--team-ink:#215fa9;--team-tint:#edf5ff;--team-edge:#c7ddf8}
.duelFinishTeam h3{margin:0;font-size:14px;color:inherit}
.duelFinishTime{display:block;margin:5px 0 2px;font-size:clamp(17px,5.8vw,28px);line-height:1.2;font-variant-numeric:tabular-nums}
.duelFinishTeam small,.duelFinishNote{font-size:11px}
.duelFinishRoster{display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:7px;border-top:1px solid var(--team-edge);color:#33243b;font-size:11px;overflow-wrap:anywhere}
.duelFinishRoster span{display:flex;gap:5px;align-items:baseline}
.duelFinishRoster i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--team-ink)}
.duelFinishNote{padding:0;margin:0;color:var(--sif-quiet)}
