@charset "utf-8";
/* Server browser and match monitor, /servers */
#servers {
    margin: 12px 0 16px 0;
    font-size: 14px;
    color: rgb(240, 224, 224);
}
#servers [hidden] {
    display: none !important;
}
#servers button {
    font: inherit;
    cursor: pointer;
}
/* When people play on the left, the search and how things stand on the right; one column on narrow screens or with no history */
.servers-top {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(220px, 1fr);
    gap: 12px 28px;
    align-items: start;
    margin-bottom: 6px;
}
.servers-top:has(> .servers-global[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}
.servers-top:has(> .servers-global[hidden]) > .servers-side {
    grid-column: 1;
}
.servers-side {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.servers-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.servers-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    align-items: center;
}
/* the label sits on the middle of its big number, not its baseline */
.servers-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgb(220, 160, 160);
    font-size: 90%;
}
.servers-stat strong {
    color: rgb(255, 255, 255);
    font-size: 220%;
    line-height: 1;
}
/* bottom right of the side, on the release's line rather than one of its own */
.servers-side > .servers-indicator {
    position: absolute;
    right: 0;
    bottom: 0;
}
.servers-statline {
    flex: 1 0 100%;
    margin: 0;
    font-size: 90%;
    color: rgb(200, 200, 200);
}
.servers-link {
    padding: 0;
    color: rgb(255, 140, 140);
    background: none;
    border: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.servers-filter {
    flex: 1 1 260px;
    min-width: 0;
    padding: 5px 10px;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgb(255, 64, 64);
    border-radius: 4px;
}
.servers-filter:focus {
    outline: none;
    box-shadow: 0 0 6px rgb(255, 0, 0);
}
.servers-toggle {
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
    cursor: pointer;
}
.servers-indicator {
    margin-left: auto;
    white-space: nowrap;
    font-size: 85%;
}
.servers-indicator::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: rgb(160, 160, 160);
    vertical-align: middle;
}
.servers-indicator.live::before {
    background-color: rgb(80, 220, 110);
    box-shadow: 0 0 6px rgb(80, 220, 110);
}
.servers-indicator.polling::before {
    background-color: rgb(240, 200, 70);
}
.servers-indicator.offline::before {
    background-color: rgb(255, 60, 60);
}
/* The Matchmaking queue: what it does, how close a match is and who's waiting on the left, its buttons on the right */
.servers-queue {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 64, 64, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
}
.servers-queuetext {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.servers-queuehelp {
    color: rgb(204, 204, 204);
    font-size: 0.9em;
}
.servers-queuecounts {
    color: rgb(150, 150, 150);
    font-size: 0.9em;
}
.servers-queuewaiting {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    max-height: 4.8em;
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9em;
}
.servers-queuename {
    color: rgb(255, 255, 255);
}
.servers-queuehandle {
    color: rgb(150, 150, 150);
}
.servers-queueactions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.servers-queuerow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.servers-queuelabel {
    color: rgb(170, 170, 170);
}
.servers-queuebutton {
    padding: 4px 12px;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgb(255, 64, 64);
    border-radius: 4px;
    text-decoration: none;
}
.servers-queuebutton:hover, .servers-queuebutton:focus {
    background-color: rgba(160, 0, 0, 0.6);
    color: rgb(255, 255, 255);
    text-decoration: none;
}
.servers-queuebutton.primary {
    background-color: rgb(190, 30, 30);
}
.servers-queuebutton[disabled] {
    opacity: 0.5;
    cursor: default;
}
.servers-banner, .servers-notice {
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgb(255, 64, 64);
    background-color: rgba(120, 0, 0, 0.6);
    color: rgb(255, 255, 255);
}
.servers-notice {
    background-color: rgba(0, 0, 0, 0.6);
}
.servers-dismiss, .servers-close {
    float: right;
    padding: 0 6px;
    color: rgb(255, 200, 200);
    background: none;
    border: 0;
    font-size: 120% !important;
    line-height: 1;
}
.servers-scroll {
    overflow-x: auto;
    border-radius: 4px;
    border: 1px solid rgb(255, 64, 64);
}
.servers-table {
    width: 100%;
}
.servers-table.stale .servers-row {
    opacity: 0.6;
}
.servers-table > thead > tr {
    background-color: rgba(0, 0, 0, 0.75);
}
.servers-table > thead > tr > th {
    padding: 0;
    white-space: nowrap;
}
.servers-sort {
    position: relative;
    display: block;
    width: 100%;
    padding: 6px 10px;
    text-align: left;
    color: rgb(255, 255, 255);
    background: none;
    border: 0;
    font-weight: bold;
    text-shadow: -1px -1px 5px rgb(255, 0, 0);
}
.servers-sort.active {
    color: rgb(255, 200, 200);
}
/* The sort arrow sits in the button's right padding, so it never widens the column */
.servers-sortdir {
    position: absolute;
    right: 0;
    width: 10px;
    text-align: center;
}
.servers-playersicon, .servers-timeicon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
}
.servers-playersicon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.servers-timeicon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.servers-row {
    background-color: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.servers-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.4);
}
.servers-row:hover, .servers-row:focus, .servers-row.open {
    background-color: rgba(120, 0, 0, 0.5);
    outline: none;
}
/* Every row is one line high: long text is cut short, with the whole of it in the cell's title */
.servers-row > td {
    vertical-align: middle;
    white-space: nowrap;
}
.servers-desc, .servers-mode {
    overflow: hidden;
    text-overflow: ellipsis;
}
.servers-mode {
    max-width: 19em;
}
.servers-row small, .servers-team small {
    color: rgb(200, 160, 160);
}
.servers-desc {
    width: 100%;
    max-width: 0; /* takes what the other columns leave */
    min-width: 12em;
    color: rgb(255, 255, 255);
}
.servers-num {
    white-space: nowrap;
}
.servers-addr {
    white-space: nowrap;
}
#servers code {
    padding: 0;
    color: rgb(255, 210, 210);
    background: none;
}
#servers .servers-join {
    color: rgb(255, 210, 210);
    font-family: monospace;
    font-size: 85%;
    text-decoration: none;
}
#servers .servers-join:hover, #servers .servers-join:focus {
    color: rgb(255, 255, 255);
    text-decoration: underline dotted;
    outline: none;
}
.servers-empty {
    padding: 12px 10px;
    text-align: center;
    color: rgb(220, 180, 180);
}
.servers-panel > td {
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.7);
}
.servers-match {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
}
.servers-match > * {
    grid-column: 2;
}
.servers-match:has(> .servers-mapimg[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}
.servers-match:has(> .servers-mapimg[hidden]) > * {
    grid-column: 1;
}
.servers-match > .servers-mapimg {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 128px;
    height: 128px;
    border-radius: 4px;
    border: 1px solid rgba(255, 64, 64, 0.6);
    object-fit: cover;
}
.servers-match dl {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin: 0 0 8px 0;
}
.servers-match dt {
    font-size: 80%;
    font-weight: normal;
    color: rgb(220, 160, 160);
}
.servers-match dd {
    margin: 0;
    color: rgb(255, 255, 255);
}
/* When people play: weekdays by hours, the hour now outlined, unknown hours hatched */
.servers-history {
    max-width: 560px;
    margin: 0 0 10px 0;
}
.servers-global .servers-history {
    margin: 0;
}
.servers-busy .servers-history {
    max-width: none;
}
.servers-historytitle {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 12px;
    font-size: 80%;
    color: rgb(220, 160, 160);
    margin-bottom: 4px;
}
.servers-historytitle small {
    color: rgb(200, 200, 200);
}
.servers-heat {
    display: grid;
    grid-template-columns: 2.6em repeat(24, minmax(0, 1fr));
    gap: 2px;
    align-items: center;
}
.servers-heatcell {
    aspect-ratio: 1.4;
    border-radius: 2px;
    background: rgba(224, 72, 72, 0.12);
}
.servers-heatcell:hover {
    outline: 1px solid rgb(255, 160, 160);
}
.servers-heatcell.unknown {
    background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255, 255, 255, 0.08) 3px 4px);
}
.servers-heatcell.now {
    outline: 1px solid rgba(255, 255, 255, 0.8);
    outline-offset: 1px;
}
.servers-heatday, .servers-heathour {
    font-size: 70%;
    color: rgb(170, 170, 170);
    line-height: 1.2;
}
.servers-heathour {
    white-space: nowrap;
    overflow: visible;
}
.servers-message {
    margin: 8px 0;
    color: rgb(255, 200, 120);
}
.servers-panelbody {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.servers-scoreboard {
    flex: 3 1 360px;
    min-width: 0;
}
.servers-feedbox {
    flex: 2 1 260px;
    min-width: 0;
}
.servers-panelbody h3 {
    margin-top: 4px;
    font-size: 18px;
}
.servers-team {
    width: 100%;
    margin-bottom: 10px;
    table-layout: fixed; /* every column but the name as wide as it says, so they line up from team to team */
}
.servers-team th, .servers-team td {
    padding: 3px 8px;
    border-bottom: 1px solid rgba(255, 64, 64, 0.4);
}
.servers-team .servers-num {
    width: 4.5em;
    text-align: right;
}
/* as wide in every team's table, so the columns line up down the scoreboard */
.servers-team .servers-account {
    width: 9em;
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* The score is a badge outlined in the team's colour, so it doesn't read as part of the name */
.servers-teamscore {
    display: inline-block;
    min-width: 2em;
    margin-left: 0.6em;
    padding: 0.36em 0.4em 0 0.4em;
    line-height: 1;
    vertical-align: 0.05em;
    border: 1px solid;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
    font-size: 115%;
    font-weight: bold;
    text-align: center;
    text-shadow: none;
}
.servers-motd {
    margin: 0 0 8px;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: rgb(230, 220, 220);
    font-style: italic;
}
.servers-specs {
    margin: 0 0 8px 0;
}
.servers-player {
    font-weight: bold;
    text-shadow: 0 0 3px rgb(0, 0, 0), 0 0 1px rgb(0, 0, 0);
}
.servers-feedstate {
    margin: 0 0 6px 0;
    font-size: 85%;
    color: rgb(255, 200, 120);
}
.servers-feedstate:empty {
    display: none;
}
.servers-feed {
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 90%;
}
.servers-feed li {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 64, 64, 0.2);
}
.servers-feed time {
    color: rgb(180, 140, 140);
    font-size: 85%;
    font-family: monospace;
}
.servers-feed li.map {
    color: rgb(255, 255, 255);
    font-weight: bold;
}
.servers-feed li.broadcast {
    color: rgb(220, 210, 255);
}
.servers-feed li.join, .servers-feed li.leave, .servers-feed li.team {
    color: rgb(200, 180, 180);
}
.servers-feed li.chat {
    color: rgb(255, 255, 255);
}
.servers-feed:empty::before {
    content: "Waiting for something to happen\2026";
    color: rgb(180, 140, 140);
}
.servers-footnote {
    font-size: 90%;
}
@media (max-width: 767px) {
    .servers-opt {
        display: none;
    }
    .servers-panel > td {
        padding: 10px 8px;
    }
    .servers-row > td, .servers-sort {
        padding-left: 6px;
        padding-right: 6px;
    }
    .servers-desc {
        min-width: 8em;
    }
    .servers-match > .servers-mapimg {
        grid-row: 1;
        width: 80px;
        height: 80px;
    }
    .servers-match > .servers-message, .servers-match > .servers-panelbody, .servers-match > .servers-busy {
        grid-column: 1 / -1;
    }
}
@media (max-width: 800px) {
    .servers-top {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 560px) {
    .servers-wide {
        display: none;
    }
}
/* Icons sit inside the line, so rows stay one line high; a percentage max-width would let the table squeeze them out */
.servers-icon {
    max-width: none;
    width: 1.3em;
    height: 1.3em;
    margin: -0.2em 0.3em -0.1em 0;
    vertical-align: -0.2em;
}
.servers-modepart + .servers-modepart {
    margin-left: 0.4em;
}
.servers-mutators .servers-modepart + .servers-modepart {
    margin-left: 0.15em;
}
.servers-mutators .servers-icon {
    margin-right: 0;
}
.servers-teamicon {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    margin: -0.2em 0.3em -0.1em 0;
    vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
/* Master Modes in the colours the game's server browser gives them: Locked yellow, Private and Password red */
.servers-accessicon {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    margin: -0.2em 0.3em -0.1em 0;
    vertical-align: -0.2em;
    background-color: rgb(240, 224, 224);
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.servers-accessicon.locked {
    background-color: rgb(240, 220, 90);
}
.servers-accessicon.private, .servers-accessicon.password {
    background-color: rgb(255, 100, 100);
}
.servers-priv {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.3em;
    vertical-align: -0.12em;
    background-color: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.servers-version {
    display: inline-block;
    padding: 0.24em 0.35em 0.07em 0.35em;
    line-height: 1;
    border-radius: 3px;
    border: 1px solid;
    cursor: help;
}
.servers-version.current {
    color: rgb(170, 240, 180);
    border-color: rgba(80, 220, 110, 0.7);
    background-color: rgba(10, 80, 30, 0.5);
}
.servers-version.outdated {
    color: rgb(255, 200, 120);
    border-color: rgba(255, 170, 60, 0.7);
    background-color: rgba(120, 60, 0, 0.5);
}
.servers-version.development {
    color: rgb(180, 210, 255);
    border-color: rgba(110, 160, 255, 0.7);
    background-color: rgba(20, 50, 120, 0.5);
}
.servers-tag {
    display: inline-block;
    margin-left: 0.4em;
    padding: 0.24em 0.35em 0.07em 0.35em;
    line-height: 1;
    font-size: 85%;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgb(200, 200, 200);
}
#servers a.servers-weblink {
    color: rgb(0, 200, 224);
    text-decoration: none;
}
#servers a.servers-weblink:hover, #servers a.servers-weblink:focus {
    color: rgb(128, 255, 255);
    text-decoration: underline;
}
.servers-objectives {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.servers-objteam {
    font-weight: bold;
}
.servers-objbar {
    display: inline-block;
    width: 48px;
    height: 6px;
    vertical-align: middle;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}
.servers-objbar > span {
    display: block;
    height: 100%;
}
/* a bridged sender's own account, after their name, grey as the game draws it */
.servers-account {
    color: rgb(170, 170, 170);
}
