* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0F0E0E;
    -webkit-font-smoothing: antialiased;
}

/* ========================= */
/* FONTS                     */
/* ========================= */
@font-face {
    font-family: 'Akrobat';
    src: url('fonts/Akrobat-Bold.otf');
    font-weight: 700;
}

@font-face {
    font-family: 'Akrobat';
    src: url('fonts/Akrobat-ExtraBold.otf');
    font-weight: 800;
}

@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Onest';
    src: url('fonts/Onest-SemiBold.ttf');
    font-weight: 600;
}

/* ========================= */
/* BACKGROUND                */
/* ========================= */
.background-overlay {
    position: fixed;
    inset: 0;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
    
}

/* ========================= */
/* MAIN LAYOUT               */
/* ========================= */
.main-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    z-index: 1;
}

/* ========================= */
/* CHARACTER ROTATION        */
/* ========================= */
.character-wrapper {
    position: absolute;
    left: 1.5%;
    bottom: -1%;
    height: 92%;
    z-index: 1;
    pointer-events: none;
}

.character-img {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;

    animation: characterIdle 6s ease-in-out infinite;
    transform-origin: center bottom;
}

.character-img.active {
    opacity: 1;
}

@keyframes characterIdle {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.01); }
    100% { transform: translateY(0) scale(1); }
}

/* ========================= */
/* RIGHT CONTENT             */
/* ========================= */
.content-right {
    margin-left: auto;
    max-width: 520px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 2;
}

/* LOGO */
.logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

/* TEXTS */
.server-eyebrow {
    font-family: 'Onest';
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.loading-subtitle {
    font-family: 'Akrobat';
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(90deg, #FFFFFF, #C6D6E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description-text {
    font-family: 'Onest';
    font-size: 16px;
    line-height: 30px;
    color: #B5B5B5;
    max-width: 460px;
}

/* ========================= */
/* SOCIAL SECTION (FIXED)    */
/* ========================= */
.social-section {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.social-header {
    font-family: 'Akrobat';
    font-size: 16px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85);
}

.social-buttons {
    display: flex;
    gap: 16px;
}

/* BUTTON */
.btn-container {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.btn-container:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 18px;
    height: 18px;
}

.handle-text {
    font-family: 'Onest';
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.95;
}

/* ========================= */
/* FAKE LOADING              */
/* ========================= */
.fake-loading-wrapper {
    position: fixed;
    bottom: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.fake-loading {
    font-family: 'Onest';
    font-size: 14px;
    color: #C6D6E1;
    opacity: 0.85;
}

/* SPINNER */
.loading-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(198,214,225,0.25);
    border-top-color: #C6D6E1;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================= */
/* FADE OUT                  */
/* ========================= */
body.fade-out {
    animation: fadeOut 0.8s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(1.02);
    }
}
