:root {
    --bg: #07090d;
    --blue: #3b82f6;
    --blue-deep: #2563eb;
    --panel: #151b24;
    --panel-hover: #1c2430;
    --text: #ffffff;
    --muted: #8b93a1;
    --green: #22c55e;
    --orange: #f59e0b;
    --danger: #ef4444;
    --glow: rgba(59, 130, 246, 0.28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Inter, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background:
        radial-gradient(ellipse 42% 32% at 50% 18%, rgba(37, 99, 235, 0.1), transparent 70%),
        #07090d;
}

.bg-stripes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-stripes::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.09) 0px,
        rgba(255, 255, 255, 0.09) 1px,
        transparent 1px,
        transparent 16px
    );
    animation: stripeMove 8s linear infinite;
}

.particles,
.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particles {
    z-index: 0;
}

.spotlight {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        90px 90px at var(--mx, 50%) var(--my, 18%),
        rgba(59, 130, 246, 0.18),
        transparent 72%
    );
}

.vignette {
    z-index: 2;
    box-shadow: inset 0 0 180px 40px rgba(0, 0, 0, 0.45);
}

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 3;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.site-nav a i {
    font-size: 16px;
}

.site-nav a:hover {
    background: var(--panel);
}

.soon-toast {
    position: fixed;
    top: 22px;
    left: 50%;
    z-index: 20;
    transform: translateX(-50%) translateY(-8px);
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.soon-toast.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 0;
}

.btn-primary {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4b90f7 0%, #2f74e8 100%);
    color: #fff;
    font: 700 11px/1 Inter, "Segoe UI", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-secondary {
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--panel);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-secondary:hover {
    background: var(--panel-hover);
    transform: translateY(-2px);
}

.btn-tiktok:hover {
    background: #111827;
    border-color: rgba(254, 44, 85, 0.7);
    box-shadow: 0 8px 22px rgba(254, 44, 85, 0.28), 0 0 16px rgba(37, 244, 238, 0.18);
    color: #25f4ee;
}

.btn-youtube:hover {
    background: #2a1212;
    border-color: rgba(255, 0, 0, 0.65);
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.28);
    color: #ff6b6b;
}

.btn-discord:hover {
    background: #1b2140;
    border-color: rgba(88, 101, 242, 0.7);
    box-shadow: 0 8px 22px rgba(88, 101, 242, 0.32);
    color: #c4c9ff;
}

.btn-primary svg,
.btn-secondary svg,
.btn-secondary i {
    width: 14px;
    height: 14px;
}

.btn-secondary i {
    font-size: 14px;
    width: auto;
    height: auto;
}

.site-main {
    flex: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 8px 0 56px;
}

.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0 36px;
}

.welcome-logo {
    width: 168px;
    height: 168px;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.28));
    margin-bottom: 18px;
}

.welcome h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    max-width: 720px;
}

.dev-banner {
    margin-top: 18px;
    max-width: 720px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
    animation: devPulse 1.7s ease-in-out infinite;
}

@keyframes devPulse {
    0%, 100% {
        opacity: 0.72;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1.045);
        box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
    }
}

.client-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4b90f7 0%, #2f74e8 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.32);
}

.client-download i {
    font-size: 15px;
}

.client-download:hover {
    filter: brightness(1.08);
}

.live-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.05fr);
    gap: 0;
    align-items: stretch;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 38%, transparent 100%),
        radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.1), transparent 42%),
        rgba(12, 16, 23, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.25s ease;
}

.live-card-glow {
    position: absolute;
    inset: auto auto -40% -12%;
    width: 55%;
    height: 160%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 68%);
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    filter: blur(8px);
}

.live-card.is-loading {
    opacity: 0.82;
}

.live-card::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: #64748b;
    z-index: 2;
}

.live-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%, transparent 72%, rgba(96, 165, 250, 0.05) 100%);
}

.live-card.is-online {
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 0 48px rgba(37, 99, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.live-card.is-online .live-card-glow {
    opacity: 1;
}

.live-card.is-online::before {
    background: linear-gradient(180deg, #bfdbfe, #60a5fa 40%, #2563eb);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.75);
}

.live-card.is-offline {
    border-color: rgba(239, 68, 68, 0.32);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(120% 140% at 0% 0%, rgba(239, 68, 68, 0.1), transparent 42%),
        rgba(12, 16, 23, 0.92);
}

.live-card.is-offline::before {
    background: linear-gradient(180deg, #fca5a5, #ef4444 40%, #b91c1c);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.live-status-col,
.live-players-col {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 28px 30px;
}

.live-status-col {
    display: flex;
    align-items: center;
    gap: 20px;
}

.live-players-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 18px 0 28px -24px rgba(96, 165, 250, 0.35);
}

.live-pulse-wrap {
    position: relative;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.12), transparent 42%),
        rgba(8, 12, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 24px rgba(0, 0, 0, 0.28);
}

.live-card.is-online .live-pulse-wrap {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(191, 219, 254, 0.28),
        0 0 28px rgba(37, 99, 235, 0.28);
}

.live-pulse-wrap::before,
.live-pulse-wrap::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid rgba(139, 147, 161, 0.28);
}

.live-card.is-online .live-pulse-wrap::before,
.live-card.is-online .live-pulse-wrap::after {
    border-color: rgba(96, 165, 250, 0.6);
    animation: livePulse 2.1s ease-out infinite;
}

.live-card.is-online .live-pulse-wrap::after {
    animation-delay: 0.7s;
}

.live-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9aa3b2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.live-status-copy strong,
#stat-status {
    display: block;
    margin-top: 6px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
}

.live-card.is-online #stat-status {
    color: #93c5fd;
    text-shadow: 0 0 22px rgba(59, 130, 246, 0.55);
}

.live-card.is-offline #stat-status {
    color: #fca5a5;
    text-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}

.live-status-copy small,
.live-fill-label {
    display: block;
    margin-top: 8px;
    color: #c5cbd6;
    font-size: 14px;
}

.live-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
    color: #8b97ab;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.live-count strong {
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.92;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.live-count-rest {
    color: #8b97ab;
}

.live-meter {
    position: relative;
    margin-top: 16px;
    height: 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.live-meter-track {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 12%
    );
    pointer-events: none;
}

.live-meter-fill {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
    width: 0;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6 45%, #7dd3fc);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.7);
    transition: width 0.45s ease, min-width 0.45s ease;
}

.live-meter-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-120%);
    animation: meterShine 2.8s ease-in-out infinite;
}

.live-meter-fill.is-occupied {
    min-width: 14px;
}

.live-card.is-offline .live-meter-fill {
    background: linear-gradient(90deg, #7f1d1d, #ef4444);
    box-shadow: none;
}

.live-card.is-offline .live-meter-fill::after {
    animation: none;
}

.status-dot {
    position: relative;
    z-index: 1;
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--muted);
    box-shadow: 0 0 0 7px rgba(139, 147, 161, 0.14);
}

.status-dot.is-online {
    background: #60a5fa;
    box-shadow:
        0 0 0 7px rgba(37, 99, 235, 0.18),
        0 0 22px rgba(96, 165, 250, 0.95);
}

.status-dot.is-offline {
    background: #ef4444;
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0.16);
}

@keyframes livePulse {
    0% {
        inset: 16px;
        opacity: 0.75;
    }
    100% {
        inset: -10px;
        opacity: 0;
    }
}

@keyframes meterShine {
    0%,
    35% {
        transform: translateX(-120%);
    }
    70%,
    100% {
        transform: translateX(120%);
    }
}

.content-card {
    background: rgba(21, 27, 36, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 22px 24px 24px;
    margin-top: 16px;
    scroll-margin-top: 88px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-title i {
    font-size: 18px;
    color: #fff;
}

.news-empty {
    color: var(--muted);
    text-align: center;
    padding: 28px 8px 16px;
    font-size: 15px;
}

.about-card {
    border-color: rgba(59, 130, 246, 0.18);
    box-shadow: inset 3px 0 0 var(--blue);
}

.about-card .section-title i {
    color: #60a5fa;
}

.about-body p {
    color: #c5cbd6;
    font-size: 15px;
    line-height: 1.75;
    margin-top: 14px;
}

.about-body strong {
    color: #60a5fa;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.28);
}

.about-values {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0 4px;
}

.about-values li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.about-values i {
    color: #60a5fa;
    width: 16px;
    text-align: center;
}

.about-tagline {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    line-height: 1.55;
    text-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 28px 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer a {
    color: #93c5fd;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 18px;
}

@keyframes stripeMove {
    from { transform: translate(0, 0); }
    to { transform: translate(-320px, 320px); }
}

@media (prefers-reduced-motion: reduce) {
    .dev-banner {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .live-card.is-online .live-pulse-wrap::before,
    .live-card.is-online .live-pulse-wrap::after,
    .live-meter-fill::after {
        animation: none;
        opacity: 0.35;
    }

    .btn-secondary,
    .btn-secondary:hover {
        transition: none;
        transform: none;
    }
}

@media (max-width: 860px) {
    .site-header,
    .site-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .welcome-logo {
        width: 128px;
        height: 128px;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .dev-banner {
        font-size: 15px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .welcome {
        padding-bottom: 24px;
    }

    .site-main {
        width: min(1120px, calc(100% - 28px));
    }

    .live-card {
        grid-template-columns: 1fr 1fr;
    }

    .live-status-col,
    .live-players-col {
        padding: 22px 18px;
    }

    .site-nav a {
        font-size: 13px;
        padding: 0 8px;
    }

    .about-values {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .welcome-logo {
        width: 108px;
        height: 108px;
    }

    .welcome h1 {
        font-size: 20px;
        padding: 0 8px;
    }

    .dev-banner {
        font-size: 14px;
        padding: 8px 14px;
    }

    .client-download {
        height: 42px;
        padding: 0 16px;
        font-size: 13px;
    }

    .live-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .live-status-col,
    .live-players-col {
        padding: 22px 20px;
    }

    .live-players-col {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 18px 28px -24px rgba(96, 165, 250, 0.35);
    }

    .live-count strong {
        font-size: 44px;
    }

    .live-status-copy strong,
    #stat-status {
        font-size: 30px;
    }

    .live-pulse-wrap {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .site-header {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .content-card {
        padding: 18px 16px 18px;
    }

    .about-body p {
        font-size: 14px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }
}
