:root {
    --sky-top: #6fc8ef;
    --sky-bottom: #dff6ff;

    --blue: #318dc0;
    --blue-dark: #216b96;
    --blue-light: #77cfee;

    --green: #5da85a;
    --green-dark: #3f8142;
    --green-light: #8bcf79;

    --white: #f9fdff;
    --glass: rgba(255, 255, 255, .78);
    --glass-strong: rgba(255, 255, 255, .9);
    --border: rgba(35, 111, 151, .32);

    --text: #21485b;
    --muted: #557685;

    --shadow: 0 3px 12px rgba(37, 106, 132, .20);

    --width: 980px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.72) 0 3px, transparent 4px),
        radial-gradient(circle at 83% 32%, rgba(255,255,255,.5) 0 4px, transparent 5px),
        linear-gradient(
            to bottom,
            var(--sky-top) 0,
            #a8e1f5 45%,
            var(--sky-bottom) 100%
        );

    color: var(--text);
    font-family: Tahoma, Verdana, Arial, sans-serif;
}

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

a:hover {
    text-decoration: none;
}

.site {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 28px), var(--width));
    margin: 28px auto 50px;
}

/* clouds */

.sky-decoration {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.cloud {
    width: 150px;
    height: 42px;
    opacity: .58;
    background: rgba(255,255,255,.75);
    border-radius: 30px;
    box-shadow:
        35px -16px 0 -3px rgba(255,255,255,.72),
        73px -8px 0 -1px rgba(255,255,255,.7),
        104px 5px 0 -4px rgba(255,255,255,.68);
}

.cloud-a {
    top: 80px;
    left: 4%;
    transform: scale(.8);
}

.cloud-b {
    top: 210px;
    right: 4%;
    transform: scale(1.05);
}

.cloud-c {
    top: 440px;
    left: 1%;
    transform: scale(.55);
}

/* header */

.header {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px 9px 0 0;
    background: var(--glass-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(7px);
}

.header-main {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 19px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #195e7e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    text-shadow: 0 1px 0 white;
}

.logo-spark {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: white;
    background: linear-gradient(#72c7e9, #318bbd);
    border: 1px solid #2778a5;
    border-radius: 7px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8),
        0 1px 3px rgba(20, 90, 120, .3);
    font-size: 15px;
}

.subtitle {
    color: #6b8d9c;
    font-size: 11px;
}

/* nav */

.nav {
    display: flex;
    border-top: 1px solid rgba(45, 122, 155, .25);
    background: linear-gradient(#eafaff, #ccecf7);
}

.nav-item {
    min-width: 90px;
    padding: 9px 16px;
    border-right: 1px solid rgba(45, 122, 155, .18);
    color: #3d7186;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.nav-item:hover {
    color: #1c5975;
    background: rgba(255,255,255,.45);
}

.nav-item.active {
    color: white;
    background: linear-gradient(#58add2, #3189b8);
    text-shadow: 0 1px 1px rgba(0,0,0,.18);
}

/* content */

.content {
    padding: 22px 0 0;
}

.welcome-panel,
.ranking-panel,
.activity-panel,
.server-panel,
.server-note,
.feature-panel {
    border: 1px solid var(--border);
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(7px);
}

.welcome-panel {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 22px;
    padding: 26px;
    border-radius: 10px;
}

.tiny-title {
    margin-bottom: 7px;
    color: #397d99;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: .12em;
}

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

h1 {
    margin-bottom: 8px;
    color: #215f7c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: normal;
    text-shadow: 0 1px white;
}

.welcome-copy p {
    max-width: 570px;
    margin-bottom: 8px;
    color: var(--muted);
    line-height: 1.65;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.aero-button {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #72a9bd;
    border-radius: 7px;
    background: linear-gradient(#ffffff, #e0f4fa);
    color: #356b80;
    box-shadow:
        inset 0 1px 0 white,
        0 1px 2px rgba(34, 105, 131, .18);
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
}

.aero-button:hover {
    background: linear-gradient(#ffffff, #cbeef8);
}

.aero-button.primary {
    border-color: #337fa7;
    background: linear-gradient(#73c7e9, #318cbb);
    color: white;
    text-shadow: 0 1px rgba(0,0,0,.18);
}

.aero-button.primary:hover {
    background: linear-gradient(#83d0ee, #3995c2);
}

.online-card {
    align-self: center;
    padding: 18px;
    border: 1px solid rgba(48, 127, 161, .28);
    border-radius: 8px;
    background: rgba(230, 249, 255, .68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.online-heading,
.server-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #53816a;
    font-size: 10px;
    font-weight: bold;
}

.online-light {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #68bd62;
    border: 1px solid #4c9849;
    box-shadow: 0 0 5px rgba(70, 185, 80, .55);
}

.server-ip {
    margin: 14px 0 10px;
    color: #22698b;
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.small-link {
    color: #3a83a2;
    font-size: 10px;
}

.small-link:hover {
    color: #1e607f;
    text-decoration: underline;
}

/* section / features */

.section-title {
    margin: 22px 2px 10px;
}

.section-title > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.grass-mark {
    color: var(--green);
    font-size: 18px;
}

.section-title h2 {
    margin: 0;
    color: #326b80;
    font-size: 15px;
}

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

.feature-panel {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 20px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
}

.feature-panel:hover {
    border-color: rgba(45, 126, 160, .48);
    background: rgba(255,255,255,.88);
}

.feature-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    color: white;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 1px 3px rgba(40, 100, 120, .25);
}

.feature-icon.blue {
    background: linear-gradient(#79cce9, #3b91bc);
}

.feature-icon.green {
    background: linear-gradient(#9bd57f, #5b9e55);
}

.feature-panel h3 {
    margin-bottom: 3px;
    color: #326e86;
    font-size: 12px;
}

.feature-panel p {
    margin: 0;
    color: #678592;
    font-size: 10px;
}

.feature-arrow {
    color: #70a8b9;
    font-size: 18px;
}

.grass-strip {
    height: 13px;
    margin-top: 22px;
    border: 1px solid #4e9249;
    border-radius: 5px 5px 0 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.12) 0 5px,
            transparent 5px 11px
        ),
        linear-gradient(#80c96e, #4d994d);
    box-shadow: inset 0 1px rgba(255,255,255,.45);
}

/* generic page */

.page-heading {
    padding: 6px 3px 19px;
}

.page-heading h1 {
    margin-bottom: 3px;
    font-size: 31px;
}

.page-heading p {
    margin-bottom: 4px;
    color: var(--muted);
}

.last-update {
    color: #7896a1;
    font-size: 10px;
}

/* rankings */

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.ranking-panel {
    overflow: hidden;
    border-radius: 8px;
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(45, 125, 157, .22);
    background: linear-gradient(#edfaff, #d8f1f8);
}

.ranking-title > span {
    color: var(--green);
}

.ranking-title h2 {
    margin: 0;
    color: #356f83;
    font-size: 11px;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 20px 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 45px;
    padding: 5px 9px;
    border-bottom: 1px solid rgba(55, 122, 148, .13);
}

.ranking-list li:last-child {
    border-bottom: 0;
}

.ranking-list li:hover {
    background: rgba(255,255,255,.48);
}

.rank-number {
    color: #7b9ca8;
    font-size: 10px;
    text-align: center;
}

.player-avatar,
.event-avatar {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    border: 1px solid rgba(55, 112, 133, .25);
    border-radius: 4px;
    background: #d9edf2;
}

.player-name {
    min-width: 0;
    overflow: hidden;
    color: #376d81;
    font-size: 10px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-value {
    color: #638694;
    font-family: "Courier New", monospace;
    font-size: 9px;
    white-space: nowrap;
}

.ranking-empty,
.activity-empty {
    padding: 14px;
    color: #78919b;
    font-size: 10px;
}

/* activity */

.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-top: 14px;
}

.activity-panel {
    overflow: hidden;
    border-radius: 8px;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 9px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(55, 122, 148, .13);
}

.activity-list li:last-child {
    border-bottom: 0;
}

.event-content {
    min-width: 0;
}

.event-content strong {
    display: block;
    color: #376d81;
    font-size: 10px;
}

.event-content span {
    display: block;
    color: #688895;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.event-content time {
    display: block;
    margin-top: 2px;
    color: #8ba2aa;
    font-family: "Courier New", monospace;
    font-size: 8px;
}

/* server */

.server-panel {
    overflow: hidden;
    border-radius: 10px;
}

.server-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 25px;
}

.big-ip {
    margin: 7px 0 9px;
    color: #236b8c;
    font-family: "Courier New", monospace;
    font-size: clamp(18px, 4vw, 25px);
    font-weight: bold;
    overflow-wrap: anywhere;
}

.server-info {
    display: flex;
    border-top: 1px solid rgba(45, 125, 157, .18);
    background: rgba(224, 247, 252, .42);
}

.server-info > div {
    min-width: 150px;
    padding: 11px 15px;
    border-right: 1px solid rgba(45, 125, 157, .15);
}

.server-info span {
    display: block;
    margin-bottom: 2px;
    color: #7695a0;
    font-size: 9px;
    text-transform: uppercase;
}

.server-info strong {
    color: #467789;
    font-size: 11px;
}

.server-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 14px;
    padding: 14px 17px;
    border-radius: 8px;
}

.note-icon {
    color: #4da4c7;
    font-size: 24px;
}

.server-note strong {
    color: #39758b;
    font-size: 11px;
}

.server-note p {
    margin: 2px 0 0;
    color: #6e8994;
    font-size: 10px;
}

/* responsive */

@media (max-width: 800px) {
    .welcome-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 540px) {
    .site {
        width: calc(100% - 14px);
        margin-top: 12px;
    }

    .header-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .logo {
        font-size: 23px;
    }

    .nav-item {
        flex: 1;
        min-width: 0;
        padding: 9px 5px;
    }

    .feature-grid,
    .ranking-grid,
    .activity-grid {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        padding: 19px;
    }

    .server-panel-top {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .copy-button {
        width: 100%;
    }

    .server-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .server-info > div {
        min-width: 0;
    }
}
