:root {
    color-scheme: dark;

    --background: #030713;
    --surface: rgba(10, 20, 42, 0.82);
    --surface-light: rgba(20, 34, 65, 0.84);
    --border: rgba(64, 214, 255, 0.22);
    --border-strong: rgba(77, 224, 255, 0.55);

    --text: #f3f8ff;
    --muted: #9dadc7;

    --cyan: #36dfff;
    --blue: #2787ff;
    --purple: #9b5cff;
    --green: #42f5a4;
    --yellow: #ffcb57;

    --page-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(25, 105, 255, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(148, 55, 255, 0.15),
            transparent 32%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

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

button {
    font: inherit;
}

.background-layer {
    position: fixed;
    inset: 0;
    z-index: -3;

    background-image:
        linear-gradient(
            90deg,
            rgba(3, 7, 19, 0.96) 0%,
            rgba(3, 7, 19, 0.72) 48%,
            rgba(3, 7, 19, 0.9) 100%
        ),
        linear-gradient(
            180deg,
            rgba(3, 7, 19, 0.1),
            var(--background) 90%
        ),
        url("/assets/tgaming-background.png");

    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.grid-layer {
    position: fixed;
    inset: 0;
    z-index: -2;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(54, 223, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(54, 223, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 78%
        );
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 76px;
    padding: 12px max(24px, calc((100vw - var(--page-width)) / 2));

    border-bottom: 1px solid rgba(71, 155, 255, 0.16);

    background: rgba(3, 7, 19, 0.82);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 45px;
    height: 45px;

    border: 1px solid var(--border-strong);
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            rgba(54, 223, 255, 0.18),
            rgba(155, 92, 255, 0.18)
        );

    color: white;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -1px;

    box-shadow:
        0 0 22px rgba(54, 223, 255, 0.18),
        inset 0 0 20px rgba(54, 223, 255, 0.08);
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name strong {
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-name small {
    margin-top: 5px;
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 27px;
}

.navigation a {
    position: relative;
    padding: 12px 0;

    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.navigation a:hover {
    color: var(--text);
}

.navigation a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;

    height: 2px;

    content: "";
    transform: scaleX(0);
    transform-origin: center;

    background: linear-gradient(90deg, var(--cyan), var(--purple));

    transition: transform 160ms ease;
}

.navigation a:hover::after {
    transform: scaleX(1);
}

.small-button,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 22px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.small-button,
.primary-button {
    border: 1px solid rgba(54, 223, 255, 0.75);

    background:
        linear-gradient(
            135deg,
            rgba(20, 178, 255, 0.95),
            rgba(92, 80, 255, 0.95)
        );

    box-shadow: 0 0 24px rgba(44, 166, 255, 0.23);
}

.small-button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.small-button:hover,
.primary-button:hover {
    box-shadow: 0 0 32px rgba(44, 166, 255, 0.36);
}

.secondary-button {
    border: 1px solid var(--border);
    background: rgba(8, 17, 38, 0.75);
}

.secondary-button:hover {
    border-color: var(--border-strong);
}

main,
.site-footer {
    width: min(calc(100% - 48px), var(--page-width));
    margin-inline: auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: 70px;

    min-height: calc(100vh - 76px);
    padding: 90px 0;
}

.hero-content {
    max-width: 770px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--cyan);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.19em;
}

.eyebrow::before {
    width: 31px;
    height: 2px;

    content: "";

    background: linear-gradient(90deg, var(--cyan), var(--purple));
    box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
    max-width: 800px;
    margin: 25px 0 24px;

    font-size: clamp(52px, 7.5vw, 96px);
    line-height: 0.91;
    letter-spacing: -0.065em;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            #83a8ff 47%,
            #bd72ff
        );

    background-clip: text;
    color: transparent;
}

.hero-content > p {
    max-width: 670px;
    margin: 0;

    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 38px;
}

.network-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;

    margin-top: 49px;
}

.network-summary div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.network-summary strong {
    font-size: 17px;
}

.network-summary span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-panel,
.server-card,
.status-board,
.news-card,
.information-card {
    border: 1px solid var(--border);
    background:
        linear-gradient(
            145deg,
            rgba(19, 38, 73, 0.78),
            rgba(6, 13, 31, 0.89)
        );

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(16px);
}

.hero-panel {
    position: relative;
    overflow: hidden;

    padding: 36px;

    border-radius: 22px;
}

.hero-panel::before {
    position: absolute;
    top: -80px;
    right: -80px;

    width: 180px;
    height: 180px;

    content: "";

    border-radius: 50%;

    background: rgba(73, 119, 255, 0.23);
    filter: blur(35px);
}

.panel-label {
    color: var(--purple);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.19em;
}

.hero-panel h2 {
    margin: 19px 0 14px;
    font-size: 29px;
}

.hero-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.panel-status {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 32px;
    padding-top: 23px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--green);
    font-size: 14px;
    font-weight: 750;
}

.status-light {
    display: inline-block;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--green);
    box-shadow: 0 0 13px var(--green);
}

.status-light.setup {
    background: var(--yellow);
    box-shadow: 0 0 13px var(--yellow);
}

.content-section {
    padding: 100px 0 30px;
    scroll-margin-top: 80px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 34px;
}

.section-heading h2,
.information-card h2 {
    margin: 14px 0 0;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.section-heading > p {
    max-width: 470px;
    margin: 0;

    color: var(--muted);
    line-height: 1.7;
}

.card-grid,
.news-grid,
.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

.server-card {
    padding: 30px;
    border-radius: 18px;

    transition:
        transform 170ms ease,
        border-color 170ms ease;
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.game-type {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.setup-status {
    padding: 7px 10px;

    border: 1px solid rgba(255, 203, 87, 0.25);
    border-radius: 999px;

    background: rgba(255, 203, 87, 0.08);
    color: var(--yellow);

    font-size: 11px;
    font-weight: 700;
}

.server-card h3 {
    margin: 25px 0 12px;
    font-size: 30px;
}

.server-card > p,
.news-card p,
.information-card p {
    color: var(--muted);
    line-height: 1.7;
}

.server-details {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin: 25px 0;
}

.server-details span {
    padding: 7px 10px;

    border: 1px solid rgba(93, 125, 180, 0.18);
    border-radius: 7px;

    background: rgba(65, 90, 140, 0.08);
    color: #b8c6da;

    font-size: 11px;
    font-weight: 650;
}

.copy-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 54px;
    padding: 0 16px;

    cursor: pointer;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(2, 8, 19, 0.66);
    color: var(--text);
}

.copy-button:hover {
    border-color: var(--border-strong);
}

.copy-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #c4d2e9;
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

.copy-button strong {
    margin-left: 16px;
    color: var(--cyan);
    font-size: 12px;
}

.status-board {
    overflow: hidden;
    border-radius: 18px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 72px;
    padding: 15px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.status-row > span {
    color: var(--muted);
    font-size: 13px;
}

.news-card,
.information-card {
    padding: 31px;
    border-radius: 18px;
}

.news-card time {
    color: var(--cyan);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-card h3 {
    margin: 15px 0 9px;
    font-size: 23px;
}

.split-section {
    padding: 100px 0;
}

.information-card {
    scroll-margin-top: 100px;
}

.information-card ol {
    margin: 28px 0 0;
    padding-left: 23px;

    color: var(--muted);
    line-height: 2;
}

.staff-member {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 29px;
    padding: 17px;

    border: 1px solid rgba(72, 200, 255, 0.18);
    border-radius: 13px;

    background: rgba(21, 58, 94, 0.18);
}

.staff-avatar {
    display: grid;
    place-items: center;

    width: 53px;
    height: 53px;

    border: 1px solid var(--border-strong);
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(54, 223, 255, 0.2),
            rgba(155, 92, 255, 0.25)
        );

    font-weight: 900;
}

.staff-member > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.staff-member span {
    color: var(--muted);
    font-size: 13px;
}

.staff-note {
    margin-top: 21px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 30px 0 45px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
    color: var(--muted);
    font-size: 13px;
}

.copy-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;

    padding: 13px 17px;

    transform: translateY(30px);
    pointer-events: none;
    opacity: 0;

    border: 1px solid rgba(66, 245, 164, 0.42);
    border-radius: 10px;

    background: rgba(7, 28, 26, 0.95);
    color: var(--green);

    font-size: 13px;
    font-weight: 750;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.copy-notice.visible {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 930px) {
    .navigation {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 100px 0 55px;
    }

    .hero-panel {
        max-width: 600px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    main,
    .site-footer {
        width: min(calc(100% - 30px), var(--page-width));
    }

    .site-header {
        padding-inline: 15px;
    }

    .small-button {
        min-height: 41px;
        padding-inline: 14px;
    }

    .brand-name {
        display: none;
    }

    .hero h1 {
        font-size: clamp(46px, 16vw, 69px);
    }

    .card-grid,
    .news-grid,
    .split-section {
        grid-template-columns: 1fr;
    }

    .network-summary {
        gap: 22px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-brand .brand-name {
        display: flex;
    }
}

/* Community and server catalog pages */

.page-main {
    padding-top: 70px;
    padding-bottom: 100px;
}

.page-hero {
    max-width: 850px;
    padding: 80px 0 70px;
}

.page-hero h1 {
    margin: 22px 0 20px;

    font-size: clamp(48px, 8vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.page-hero > p {
    max-width: 720px;
    margin: 0;

    color: var(--muted);
    font-size: 19px;
    line-height: 1.75;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.community-card,
.forum-notice,
.catalog-card {
    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(19, 38, 73, 0.78),
            rgba(6, 13, 31, 0.91)
        );

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(16px);
}

.community-card {
    display: flex;
    flex-direction: column;

    min-height: 285px;
    padding: 28px;

    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.community-card:hover,
.catalog-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.forum-icon {
    display: grid;
    place-items: center;

    width: 45px;
    height: 45px;

    border: 1px solid var(--border-strong);
    border-radius: 11px;

    background: rgba(54, 223, 255, 0.09);
    color: var(--cyan);

    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 850;
}

.community-card h2 {
    margin: 24px 0 10px;
    font-size: 23px;
}

.community-card p {
    flex: 1;

    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.community-card a,
.catalog-link {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.forum-notice {
    margin-top: 75px;
    padding: 36px;
}

.forum-notice h2 {
    margin: 18px 0 12px;
    font-size: 32px;
}

.forum-notice p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.catalog-section {
    padding: 45px 0 75px;
}

.hosted-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px;
}

.catalog-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 28px;
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(6, 15, 34, 0.82);
}

.search-field {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;

    max-width: 650px;
}

.search-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;

    border: 1px solid rgba(88, 164, 224, 0.28);
    border-radius: 9px;

    outline: none;

    background: rgba(2, 8, 19, 0.78);
    color: var(--text);

    font: inherit;
}

.search-field input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(54, 223, 255, 0.1);
}

.catalog-count {
    min-width: 170px;
    padding-bottom: 14px;

    color: var(--cyan);
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card {
    display: flex;
    flex-direction: column;

    min-height: 230px;
    padding: 23px;

    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.catalog-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.catalog-card > p {
    flex: 1;

    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 17px;
}

.catalog-meta span {
    padding: 6px 8px;

    border: 1px solid rgba(72, 200, 255, 0.17);
    border-radius: 7px;

    background: rgba(40, 110, 170, 0.08);
    color: #b7c8df;

    font-size: 10px;
    font-weight: 700;
}

.load-more-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.catalog-disclaimer,
.loading-message,
.empty-state {
    color: var(--muted);
    line-height: 1.7;
}

.catalog-disclaimer {
    margin-top: 30px;
    font-size: 13px;
    text-align: center;
}

.empty-state {
    grid-column: 1 / -1;

    padding: 30px;

    border: 1px dashed var(--border);
    border-radius: 14px;

    text-align: center;
}

@media (max-width: 950px) {
    .community-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .community-grid,
    .catalog-grid,
    .hosted-grid {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-count {
        padding-bottom: 0;
        text-align: left;
    }
}

/* Live AMP status */

.live-status-badge {
    padding: 7px 11px;

    border: 1px solid
        rgba(150, 165, 190, 0.28);

    border-radius: 999px;

    background:
        rgba(120, 135, 160, 0.1);

    color: var(--muted);

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.live-status-badge.online {
    border-color:
        rgba(66, 245, 164, 0.35);

    background:
        rgba(66, 245, 164, 0.09);

    color: var(--green);

    box-shadow:
        0 0 18px
        rgba(66, 245, 164, 0.08);
}

.live-status-badge.offline,
.live-status-badge.error {
    border-color:
        rgba(255, 96, 110, 0.36);

    background:
        rgba(255, 96, 110, 0.09);

    color: #ff7b89;
}

.live-status-badge.starting,
.live-status-badge.stopping,
.live-status-badge.restarting,
.live-status-badge.updating,
.live-status-badge.installing {
    border-color:
        rgba(255, 203, 87, 0.36);

    background:
        rgba(255, 203, 87, 0.09);

    color: var(--yellow);
}

/* Homepage live AMP integration */

.home-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

#home-live-server-grid .empty-state {
    grid-column: 1 / -1;
}

#home-status-board .status-row > span {
    max-width: 55%;
    text-align: right;
}

/* TGaming staff list */

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 29px;
}

.staff-list .staff-member {
    margin-top: 0;
}
