﻿:root {
    --bg: #070604;
    --bg2: #10100d;
    --panel: rgba(14, 15, 13, 0.9);
    --panel2: rgba(31, 24, 14, 0.84);
    --line: rgba(245, 180, 70, 0.28);
    --gold: #f0b957;
    --gold2: #ffe3a2;
    --blue: #18a9ff;
    --blue2: #8adfff;
    --text: #f8f0dd;
    --muted: #bdb29e;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 52% 0%, rgba(24, 169, 255, 0.16), transparent 29rem),
        radial-gradient(circle at 88% 22%, rgba(240, 185, 87, 0.13), transparent 24rem),
        linear-gradient(180deg, #050504 0%, #0b0a08 48%, #070604 100%);
    font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 58px;
    padding: 8px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 5, 4, 0.9);
    backdrop-filter: blur(14px);
}
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 18px;
    width: max-content;
    max-width: calc(100vw - 560px);
    font-size: .9rem;
    font-weight: 800;
    color: var(--muted);
}
.main-nav a { padding: 9px 0; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--gold2); }
.header-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.top-download, .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.top-download, .btn-primary {
    color: #120c03;
    background: linear-gradient(180deg, #fff0ba, #e2a13e);
    box-shadow: 0 12px 26px rgba(226, 161, 62, 0.24);
}
.top-download:hover, .btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { color: var(--gold2); background: rgba(255,255,255,.035); }
.btn-ghost:hover { border-color: rgba(24,169,255,.55); color: var(--blue2); }
.language-switch { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.24); }
.language-switch a { opacity: .62; border-radius: 4px; overflow: hidden; border: 1px solid transparent; }
.language-switch a.active, .language-switch a:hover { opacity: 1; border-color: var(--gold); }
.language-switch img { width: 28px; height: 18px; object-fit: cover; }

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    gap: 34px;
    align-items: center;
    max-width: 1260px;
    margin: 0 auto;
    padding: 46px 28px 22px;
}
.hero--ranked {
    grid-template-columns: minmax(270px, 330px) minmax(0, 1fr) minmax(270px, 330px);
    max-width: 1320px;
    gap: 18px;
    align-items: center;
}
.hero-main--center {
    text-align: center;
}
.hero-main--center .hero-logo-wrap {
    width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
}
.hero-logo-wrap {
    position: relative;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 25px 30px rgba(0,0,0,.66));
}
.hero-logo-wrap .hero-logo {
    width: 100%;
    margin: 0;
    filter: none;
}
.gem-glow {
    position: absolute;
    z-index: 2;
    width: clamp(16px, 4.1%, 28px);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255,255,255,.88) 0 8%, rgba(103,226,255,.78) 13% 28%, rgba(21,144,255,.42) 42%, rgba(21,144,255,0) 72%);
    box-shadow:
        0 0 7px rgba(130,235,255,.7),
        0 0 15px rgba(21,144,255,.46),
        0 0 28px rgba(21,144,255,.22);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%) scale(.74);
    opacity: .6;
    animation: gemPulse 2.8s ease-in-out infinite;
}
.gem-glow::after {
    content: "";
    position: absolute;
    inset: -24%;
    background:
        linear-gradient(90deg, transparent 46%, rgba(255,255,255,.56) 49%, transparent 53%),
        linear-gradient(0deg, transparent 46%, rgba(255,255,255,.46) 49%, transparent 53%);
    transform: rotate(45deg) scale(.58);
    opacity: .36;
    animation: gemSpark 3.4s ease-in-out infinite;
}
.gem-glow--left {
    left: 9.05%;
    top: 57.45%;
}
.gem-glow--right {
    left: 90.8%;
    top: 57.25%;
    animation-delay: .55s;
}
.gem-glow--bottom {
    left: 48.75%;
    top: 83.55%;
    width: clamp(18px, 4.6%, 31px);
    animation-delay: 1.05s;
}
.gem-glow--bottom::after {
    inset: -16%;
    opacity: .26;
}
@keyframes gemPulse {
    0%, 100% {
        opacity: .38;
        transform: translate(-50%, -50%) scale(.64);
        filter: saturate(1.05);
    }
    50% {
        opacity: .86;
        transform: translate(-50%, -50%) scale(.96);
        filter: saturate(1.28);
    }
}
@keyframes gemSpark {
    0%, 100% {
        opacity: .14;
        transform: rotate(45deg) scale(.48);
    }
    48%, 58% {
        opacity: .58;
        transform: rotate(45deg) scale(.86);
    }
}
.hero-main--center .hero-text {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hero-main--center .hero-actions {
    justify-content: center;
}
.hero-side-card {
    padding: 0;
}
.hero-side-card iframe {
    display: block;
    width: 100%;
    height: 330px;
    border: 0;
    border-radius: 8px;
    background: transparent;
}
.hero-main { align-self: center; text-align: left; }
.hero-main.hero-main--center { text-align: center; }
.hero-logo { width: min(720px, 100%); margin: 0 0 16px; filter: drop-shadow(0 25px 30px rgba(0,0,0,.66)); }
.eyebrow { margin: 0 0 10px; color: var(--gold2); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-text { max-width: 570px; margin: 0 0 22px; color: #e9dfcb; font-size: 1.05rem; line-height: 1.58; }
.hero-actions { display: flex; justify-content: flex-start; flex-wrap: nowrap; gap: 12px; }
.hero-actions .btn {
    flex: 0 0 auto;
    min-width: 154px;
    white-space: nowrap;
}
.panel, .hero-panel, .news-card, .download-card, .guide-card, .rules-list article, .rank-frame-card, .rank-menu {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(17,20,16,.92), rgba(13,12,10,.9));
    box-shadow: var(--shadow);
}
.hero-sidebar { display: grid; gap: 12px; align-self: center; }
.hero-panel { padding: 12px; }
.hero-panel iframe, .ranking-panel iframe, .leader-widgets iframe, .hero-side-card iframe {
    width: 100%;
    border: 0;
    background: transparent;
}
.status-panel iframe { height: 324px; }
.mini-ranking-panel header { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 2px 2px 10px; }
.mini-ranking-panel h2 { margin: 0; font-size: 1.25rem; }
.mini-ranking-panel iframe { height: 330px; }
.quick-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1120px;
    margin: 12px auto 0;
    padding: 0 28px;
    gap: 12px;
}
.quick-bar a {
    min-height: 86px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
}
.quick-bar strong { display: block; color: var(--gold2); font-size: 1.05rem; }
.quick-bar span { display: block; margin-top: 6px; color: var(--muted); }
.section { max-width: 1180px; margin: 0 auto; padding: 46px 28px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.panel { padding: 18px; }
.panel header { margin-bottom: 12px; }
.panel h2, .section-heading h2, .page-hero h1 { margin: 0; color: var(--text); line-height: 1.08; }
.ranking-panel iframe { min-height: 330px; }
.leader-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.leader-widgets iframe { height: 330px; border: 1px solid rgba(255,255,255,.07); border-radius: 6px; }
.server-highlight-widgets iframe { height: 390px; }
.server-highlight-widgets iframe:first-child { height: 390px; }
.split { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; }
.section-heading p:not(.eyebrow), .page-hero p { color: var(--muted); line-height: 1.65; }
.news-grid, .download-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card, .download-card, .guide-card { padding: 20px; }
.news-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--gold2); font-size: .76rem; text-transform: uppercase; font-weight: 900; }
.news-card h3, .download-card h2, .guide-card h2 { margin: 16px 0 8px; color: var(--text); }
.news-card p, .download-card p, .guide-card p, .rules-list p { color: var(--muted); line-height: 1.58; }
.inner-page { min-height: 70vh; }
.page-hero { max-width: 1000px; margin: 0 auto; padding: 62px 28px 30px; text-align: center; }
.page-hero img { width: min(620px, 88vw); margin: 0 auto 10px; }
.download-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; }
.download-grid { grid-template-columns: 1fr; }
.download-group { display: grid; gap: 12px; }
.download-group + .download-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(240,185,87,.18); }
.download-group-head { padding: 2px 4px 6px; }
.download-group-head h2 { margin: 6px 0 4px; color: var(--text); }
.download-group-head p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
.download-group-head .download-alert { margin-top: 10px; color: var(--gold2); font-weight: 800; }
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.download-card.is-primary { border-color: rgba(24,169,255,.5); background: linear-gradient(180deg, rgba(20,39,42,.92), rgba(16,14,10,.92)); }
.download-card-manual { background: linear-gradient(180deg, rgba(19,17,13,.92), rgba(8,10,9,.92)); }
.btn-disabled { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.install-panel img { width: 110px; margin-bottom: 12px; }
.tool-links { display: grid; gap: 8px; margin-top: 14px; }
.tool-links a { padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; color: var(--gold2); }
.rank-browser { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 20px; max-width: 1320px; }
.rank-menu { display: grid; align-content: start; gap: 8px; padding: 12px; }
.rank-menu a { padding: 13px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; color: var(--muted); font-weight: 800; }
.rank-menu a.active, .rank-menu a:hover { color: var(--gold2); border-color: var(--line); background: rgba(240,185,87,.1); }
.rank-frame-card { padding: 16px; }
.rank-frame-card iframe { display: block; width: 100%; min-height: 720px; border: 0; background: transparent; }
.guide-card img { width: 70px; height: 70px; object-fit: contain; }
.rules-list { display: grid; gap: 12px; max-width: 900px; }
.rules-list article { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: center; padding: 16px; }
.rules-list span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #110b03; background: var(--gold); font-weight: 900; }
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    padding: 28px;
    border-top: 1px solid var(--line);
    background: rgba(5,5,4,.82);
}
.site-footer div { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.site-footer img { width: 38px; height: 38px; object-fit: contain; }
.site-footer strong { color: var(--text); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; color: var(--gold2); font-weight: 800; }

@media (max-width: 1180px) {
    .site-header {
        position: sticky;
        justify-content: center;
        flex-wrap: wrap;
    }
    .main-nav {
        position: static;
        order: 3;
        transform: none;
        width: 100%;
        max-width: none;
        flex-wrap: wrap;
    }
}

@media (max-width: 980px) {
    .site-header { justify-items: center; }
    .main-nav { flex-wrap: wrap; }
    .hero, .hero--ranked, .dashboard-grid, .split, .download-layout, .rank-browser, .leader-widgets { grid-template-columns: 1fr; }
    .hero { min-height: 0; padding-top: 32px; }
    .hero-main { text-align: center; }
    .hero-logo { margin-left: auto; margin-right: auto; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .quick-bar, .news-grid, .guide-grid { grid-template-columns: 1fr; }
    .download-card { align-items: flex-start; flex-direction: column; }
    .site-footer { align-items: flex-start; flex-direction: column; }
}

