:root {
    --bg: #111;
    --panel: #181818;
    --panel-alt: #1d1d1d;
    --line: #343434;
    --line-light: #444;
    --text: #d6d6d6;
    --muted: #838383;
    --green: #91b653;
    --green-dark: #28351b;
    --amber: #c8a85a;
    --red: #c46a61;
    --blue: #6989a7;
    --width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-width: 320px;
    background: #0e0e0e;
    color: var(--text);
    font: 12px Verdana, Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

.page {
    width: min(calc(100% - 24px), var(--width));
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    margin-top: 14px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    background: #171717;
}

.logo {
    font: bold 20px "Courier New", monospace;
    letter-spacing: -1px;
}

.logo span {
    color: var(--green);
}

.logo small {
    display: block;
    margin-top: -2px;
    color: var(--muted);
    font: 9px Verdana, sans-serif;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 3px;
}

.nav a {
    padding: 10px 13px;
    border: 1px solid transparent;
    color: #999;
    font-size: 10px;
    font-weight: bold;
}

.nav a:hover,
.nav a.active {
    border-color: var(--line);
    background: #202020;
    color: var(--green);
}

.content {
    padding: 34px 0 20px;
}

.intro,
.page-heading,
.server-heading {
    margin-bottom: 25px;
}

.intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    color: #e5e5e5;
    font: bold clamp(27px, 5vw, 43px) "Arial Narrow", Arial, sans-serif;
    letter-spacing: -1px;
}

h2 {
    font-size: 12px;
}

.kicker {
    margin-bottom: 7px;
    color: var(--green);
    font: bold 10px "Courier New", monospace;
    letter-spacing: 1px;
}

.muted {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
}

.button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #7e9e48;
    background: #6f8d3d;
    color: #10140c;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}

.button:hover {
    background: var(--green);
}

.button-secondary {
    border-color: var(--line-light);
    background: #292929;
    color: #ccc;
}

.button-secondary:hover {
    background: #333;
}

.summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.summary > div {
    padding: 17px 18px;
    border-left: 1px solid var(--line);
}

.summary > div:first-child {
    border-left: 0;
}

.summary span,
.summary strong {
    display: block;
}

.summary span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 9px;
    font-weight: bold;
}

.summary strong {
    color: var(--green);
    font: bold 25px "Courier New", monospace;
}

.panel {
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.panel-title {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 15px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-alt);
}

.panel-title h2 {
    margin: 0;
    color: #ddd;
    font-size: 10px;
    letter-spacing: .5px;
}

.panel-title > span,
.panel-title > a {
    color: var(--muted);
    font: 9px "Courier New", monospace;
}

.server-table-wrap {
    overflow-x: auto;
}

.server-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.server-table th,
.server-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #2d2d2d;
    text-align: left;
    vertical-align: middle;
}

.server-table th {
    background: #141414;
    color: #707070;
    font-size: 9px;
}

.server-table tbody tr:hover {
    background: #1d1f1b;
}

.server-table tbody tr:last-child td {
    border-bottom: 0;
}

.row-number {
    color: #5d5d5d;
    font-family: "Courier New", monospace;
}

.server-name {
    display: block;
    margin-bottom: 3px;
    color: #ddd;
    font-weight: bold;
}

.server-name:hover,
.details:hover {
    color: var(--green);
}

.copy-ip {
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    font: 10px "Courier New", monospace;
}

.copy-label {
    margin-left: 5px;
    padding: 2px 4px;
    border: 1px solid #3b3b3b;
    color: #686868;
    font: 8px Verdana, sans-serif;
}

.status {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid;
    font-size: 8px;
    font-weight: bold;
}

.status-online {
    border-color: #40562a;
    background: #202c17;
    color: var(--green);
}

.status-offline {
    border-color: #5b2f2b;
    background: #2d1b1a;
    color: var(--red);
}

.status-maintenance {
    border-color: #5a4b27;
    background: #2d2819;
    color: var(--amber);
}

.countdown {
    display: block;
    color: #d2d2d2;
    font: bold 12px "Courier New", monospace;
}

.server-table small {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 8px;
}

.details {
    color: #888;
    font-size: 9px;
    font-weight: bold;
    white-space: nowrap;
}

.empty {
    padding: 30px !important;
    color: var(--muted);
    text-align: center !important;
}

.help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #3d492f;
    background: #191d16;
}

.help-box h2 {
    margin-bottom: 5px;
    color: var(--green);
}

.help-box p {
    margin-bottom: 0;
    color: #858b7e;
}

.footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 35px;
    border-top: 1px solid #292929;
    color: #5f5f5f;
    font-size: 9px;
}

.footer a:hover {
    color: var(--green);
}

.page-heading {
    padding: 12px 0 3px;
}

.page-heading h1 {
    margin-bottom: 7px;
}

.back {
    display: inline-block;
    margin-bottom: 18px;
    color: #777;
    font-size: 9px;
    font-weight: bold;
}

.back:hover {
    color: var(--green);
}

.large-copy {
    margin-top: 2px;
    font-size: 12px;
}

.server-summary strong {
    font-size: 18px;
}

.chart-panel {
    padding-bottom: 10px;
}

.chart-wrap {
    height: 310px;
    padding: 13px 12px 0;
}

.line-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.player-table code {
    color: #a7a7a7;
    font: 10px "Courier New", monospace;
}

.login-box {
    width: min(calc(100% - 30px), 390px);
    margin: 12vh auto 0;
    padding: 25px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    background: var(--panel);
}

.login-box h1 {
    font-size: 30px;
}

.login-box form {
    display: grid;
    gap: 15px;
    margin: 22px 0;
}

label {
    display: grid;
    gap: 6px;
    color: #848484;
    font-size: 9px;
    font-weight: bold;
}

input,
select {
    width: 100%;
    min-height: 37px;
    padding: 8px 9px;
    border: 1px solid #3b3b3b;
    border-radius: 0;
    outline: 0;
    background: #111;
    color: #ddd;
}

input:focus,
select:focus {
    border-color: #68843b;
}

.admin-page {
    width: min(calc(100% - 24px), 1300px);
    margin: 0 auto;
    padding: 25px 0 45px;
}

.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.admin-header h1 {
    margin-bottom: 0;
    font-size: 34px;
}

.admin-actions {
    display: flex;
    gap: 7px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(480px, 1.15fr);
    gap: 20px;
    align-items: start;
}

.admin-form-panel {
    position: sticky;
    top: 15px;
}

.admin-form {
    display: grid;
    gap: 13px;
    padding: 17px;
}

.compact-form {
    grid-template-columns: 1fr;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    width: auto;
    min-height: auto;
}

.settings-panel {
    margin-bottom: 20px;
}

.admin-server-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 15px;
    border-bottom: 1px solid #2d2d2d;
}

.admin-server-list article:last-child {
    border-bottom: 0;
}

.admin-server-list strong,
.admin-server-list small {
    display: block;
}

.admin-server-list small {
    margin-top: 3px;
    color: #707070;
    font: 9px "Courier New", monospace;
}

.server-admin-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-admin-buttons a,
.server-admin-buttons button {
    padding: 5px 7px;
    border: 1px solid #404040;
    background: #242424;
    color: #aaa;
    font-size: 8px;
    cursor: pointer;
}

.server-admin-buttons button {
    border-color: #59302d;
    color: #c77b74;
}

.flash {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid;
}

.flash-success {
    border-color: #40562a;
    background: #202c17;
    color: var(--green);
}

.flash-error {
    border-color: #5b2f2b;
    background: #2d1b1a;
    color: var(--red);
}

@media (max-width: 900px) {
    .summary {
        grid-template-columns: 1fr 1fr;
    }

    .summary > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .summary > div:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-panel {
        position: static;
    }
}

@media (max-width: 650px) {
    .header,
    .intro,
    .help-box,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header {
        padding: 15px;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
    }

    /*.nav a {
        padding-left: 0;
        padding-right: 18px;
    }*/

    .intro .button,
    .help-box .button {
        width: 100%;
    }

    .summary {
        grid-template-columns: 1fr;
    }

    .summary > div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .summary > div:first-child {
        border-top: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        width: 100%;
    }

    .admin-actions .button {
        flex: 1;
    }

    .chart-wrap {
        height: 260px;
    }
}


.intro code,
.page-heading code,
.form-note code {
    color: #aebf8d;
    font: 11px "Courier New", monospace;
}

.server-table td > small {
    display: block;
    margin-top: 3px;
}

.admin-edit-panel {
    margin-bottom: 20px;
}

.form-row-three {
    grid-template-columns: 1.5fr 1fr .55fr;
}

.form-note {
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #383838;
    background: #141414;
    color: #777;
    font-size: 10px;
}

.admin-table code {
    color: #aaa;
    font: 10px "Courier New", monospace;
}

@media (max-width: 800px) {
    .form-row-three {
        grid-template-columns: 1fr;
    }
}


.status-permanent {
    border-color: #36536a;
    background: #182731;
    color: #83abc8;
}

.permanent-text {
    color: #83abc8 !important;
    font-size: 15px !important;
}

.field-help {
    color: #686868;
    font-size: 9px;
    font-weight: normal;
}

.expired-row {
    opacity: .62;
}

.expired-row:hover {
    opacity: .86;
}


.rounds-panel {
    border-top: 2px solid #9a7640;
}

.queue-position {
    display: inline-block;
    min-width: 34px;
    padding: 4px 6px;
    border: 1px solid #66502c;
    background: #292115;
    color: #d0aa65;
    font: bold 10px "Courier New", monospace;
    text-align: center;
}

.rounds-count {
    color: #d0aa65;
    font: bold 17px "Courier New", monospace;
}

.rounds-summary {
    color: #d0aa65 !important;
    font-size: 17px !important;
}

.status-rounds {
    border-color: #66502c;
    background: #292115;
    color: #d0aa65;
}

.status-time {
    border-color: #3e5265;
    background: #19242d;
    color: #84a6c0;
}

.package-fields[hidden] {
    display: none;
}

.package-fields {
    display: grid;
    gap: 13px;
    padding: 13px;
    border: 1px solid #343434;
    background: #141414;
}


.pricing-panel {
    margin-bottom: 20px;
    border: 1px solid #3e4931;
    border-top: 3px solid var(--green);
    background: #161914;
}

.pricing-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 15px;
    border-bottom: 1px solid #343b2d;
    background: #1b1f18;
}

.pricing-header h2 {
    margin: 3px 0 0;
    color: #ddd;
    font-size: 13px;
}

.pricing-header > span {
    color: #6f7767;
    font: 9px "Courier New", monospace;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.price-card {
    min-width: 0;
    padding: 18px 14px;
    border-left: 1px solid #30372b;
    background: #161914;
}

.price-card:first-child {
    border-left: 0;
}

.price-card-featured {
    background: #202619;
}

.price-type,
.price-card strong,
.price-card small {
    display: block;
}

.price-type {
    min-height: 27px;
    color: #858d7c;
    font-size: 8px;
    font-weight: bold;
    letter-spacing: .5px;
}

.price-card strong {
    overflow: hidden;
    color: var(--green);
    font: bold clamp(17px, 2.1vw, 25px) "Courier New", monospace;
    letter-spacing: -1px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price-card small {
    margin-top: 7px;
    color: #666c61;
    font-size: 8px;
}

.pricing-form-row {
    grid-template-columns: .65fr 1fr 1fr;
}

.pricing-form-row-four {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 950px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .price-card:nth-child(4) {
        border-left: 0;
        border-top: 1px solid #30372b;
    }

    .price-card:nth-child(5),
    .price-card:nth-child(6) {
        border-top: 1px solid #30372b;
    }

    .pricing-form-row,
    .pricing-form-row-four {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .price-card:nth-child(odd) {
        border-left: 0;
    }

    .price-card:nth-child(n+3) {
        border-top: 1px solid #30372b;
    }

    .pricing-form-row,
    .pricing-form-row-four {
        grid-template-columns: 1fr;
    }
}
