@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);

html,
body {
    height: 100%;
}

body {
    margin: 0;
    position: relative;
    overflow: hidden;
    color: #d8e8f3;
    background: #01050b;
    font-family: "News Cycle", sans-serif;
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: starwarshead;
    src: url(../fonts/Starjedi.woff);
}

#background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#bg1 {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(2, 8, 16, 0.82), rgba(1, 4, 10, 0.9));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    -webkit-background-size: cover;
}

.bg-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #01050b;
}

.bg-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.bg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 8, 16, 0.82), rgba(1, 4, 10, 0.9));
    z-index: 2;
}

.bg-video-debug {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    padding: 8px 10px;
    background: rgba(2, 8, 16, 0.78);
    border: 1px solid rgba(126, 188, 223, 0.45);
    color: #b9def1;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-page {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    animation: intro-fade 6s ease forwards;
}

.intro-overlay {
    width: min(720px, 90%);
    text-align: center;
}

.intro-text {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 42px);
    line-height: 1.35;
    letter-spacing: 0.07em;
    color: #78d8ff;
}

@keyframes intro-fade {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.rest-page {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hud-frame {
    position: relative;
    width: min(1280px, 92%);
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6vh 0 5vh;
    box-sizing: border-box;
    z-index: 2;
}

.headline-block {
    text-align: center;
}

.headline-top,
.headline-bottom {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #7db7d8;
    font-size: clamp(11px, 1vw, 15px);
}

.server-name {
    margin: 14px 0;
    font-family: starwarshead, "News Cycle", sans-serif;
    text-transform: lowercase;
    font-size: clamp(42px, 5vw, 90px);
    line-height: 1;
    color: #111;
    -webkit-text-stroke: 2px #84ddff;
    text-shadow: 0 0 14px rgba(66, 174, 223, 0.35);
}

.status-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: stretch;
}

.status-card {
    min-height: 220px;
    padding: 16px;
    border: 1px solid rgba(112, 175, 209, 0.38);
    background: rgba(6, 12, 22, 0.72);
    box-shadow: inset 0 0 0 1px rgba(11, 25, 43, 0.75);
}

.card-title {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #a8d2eb;
    font-size: 14px;
}

.card-subtitle {
    margin: 6px 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6fb5dc;
    font-size: 12px;
}

.card-text {
    margin: 0;
    color: #d9eaf6;
    font-size: 13px;
    line-height: 1.42;
}

.center-card {
    text-align: center;
}

.avatar-wrap {
    margin-top: 2px;
}

.welcome {
    margin: 10px 0 14px;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e9f6ff;
}

.server-meta p {
    margin: 4px 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9cc8df;
}

.server-meta span,
.server-meta abbr {
    color: #ffffff;
    text-decoration: none;
}

.loading-panel {
    margin: 0 auto;
    width: min(900px, 100%);
    border: 1px solid rgba(126, 188, 223, 0.45);
    background: rgba(6, 11, 18, 0.9);
    padding: 12px 14px;
    box-sizing: border-box;
}

.loading-labels {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #b9def1;
    font-size: 12px;
}

#load-box {
    margin-top: 10px;
    width: 100%;
    height: 14px;
    border: 1px solid rgba(140, 197, 229, 0.48);
    background: rgba(8, 16, 30, 0.9);
    overflow: hidden;
}

#load-box-width {
    width: 0;
    height: 100%;
    transition: width 0.25s ease;
    background: linear-gradient(90deg, #5ba9d4 0%, #9fd9f5 100%);
    box-shadow: 0 0 12px rgba(104, 190, 236, 0.65);
}

#loading-file {
    margin: 10px 0 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #8db7d3;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

    .status-card {
        min-height: 0;
    }

    .hud-frame {
        padding-top: 4vh;
    }
}
