@font-face {
    font-family: 'Stratum2';
    src: url('Stratum2WebRegular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stratum2';
    src: url('Stratum2WebMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stratum2';
    src: url('Stratum2WebBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --safe-pad: min(10vw, 10vh);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #121212;
    color: #ffffff;
    font-family: 'Stratum2', sans-serif;
}

video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

#bg-video {
    z-index: 0;
    filter: brightness(0.75);
}

#ui-layer {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--safe-pad);
}

.top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.center-action {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 3;
}

#cs2-logo {
    max-width: min(360px, 60vw);
    max-height: 22vh;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

#start-btn {
    padding: 15px 68px;
    background-color: #E48717;
    color: #121212;
    border: none;
    border-radius: 0;
    font-family: 'Stratum2', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.14em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

#start-btn:hover {
    background-color: #f59724;
}

#start-btn:active {
    transform: scale(0.98);
}

#loading-block {
    width: 100%;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 12px;
    gap: 20px;
}

.loading-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
}

#percent-text {
    color: #E48717;
    margin-left: 8px;
}

#stage-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.18);
}

#progress-fill {
    width: 0%;
    height: 100%;
    background-color: #E48717;
    transition: width 0.12s linear;
}

#cutscene-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    background-color: #000000;
}

#loading-video {
    z-index: 11;
}

#rickroll-video {
    z-index: 12;
}

#black-fade {
    position: fixed;
    inset: 0;
    z-index: 15;
    background-color: #000000;
    opacity: 0;
    pointer-events: none;
}

#rickroll-footer {
    position: fixed;
    bottom: var(--safe-pad);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transition: opacity 0.8s ease;
}

#rickroll-footer.visible {
    opacity: 1;
}

.socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.socials a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.socials a:hover {
    color: #E48717;
}

.hidden {
    display: none !important;
}

@media (max-width: 720px) {
    .top-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 11px;
    }

    .status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .loading-title {
        font-size: 24px;
    }

    #stage-text {
        font-size: 13px;
        text-align: left;
    }
}