* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    width: 100%;
}

.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: #000000;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 20px,
        rgba(255, 255, 255, 0.04) 20px,
        rgba(255, 255, 255, 0.04) 22px,
        transparent 22px,
        transparent 40px
    );
    background-size: 60px 60px;
}

.loader {
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.medallion-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medallion {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.medallion::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 0;
}

.ball {
    position: relative;
    width: 200px;
    height: 200px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ball-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    transform: translateY(8px);
}

.logo-ring {
    display: none;
}

.loading-text {
    margin: 24px 0 16px 0;
}

.loading-status {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Orbit Animation */
.orbit {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 0;
    left: 0;
}

.orbit-item {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-left: -3px;
    margin-top: -3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    animation: orbita 4s linear infinite;
}

@keyframes orbita {
    0% {
        transform: rotate(0deg) translateY(-130px);
    }
    100% {
        transform: rotate(360deg) translateY(-130px);
    }
}

body {
    background: #000000;
    color: #ffffff;
}

.progress-bar {
    width: 160px;
    height: 3px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #ffd700;
    animation: progressBar 3s ease-in-out infinite;
}

@keyframes progressBar {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-screen {
        padding: 16px;
    }

    .medallion-container {
        width: 240px;
        height: 240px;
        margin: 0 auto 24px;
    }

    .medallion {
        width: 180px;
        height: 180px;
    }

    .medallion::before {
        width: 180px;
        height: 180px;
    }

    .ball {
        width: 180px;
        height: 180px;
    }

    .orbit {
        width: 240px;
        height: 240px;
    }

    .orbit-item {
        width: 5px;
        height: 5px;
        margin-left: -2.5px;
        margin-top: -2.5px;
    }

    @keyframes orbita {
        0% {
            transform: rotate(0deg) translateY(-110px);
        }
        100% {
            transform: rotate(360deg) translateY(-110px);
        }
    }

    .loading-status {
        font-size: 13px;
    }

    .progress-bar {
        width: 140px;
    }

    .loading-tip {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .medallion-container {
        width: 180px;
        height: 180px;
        margin: 0 auto 20px;
    }

    .medallion {
        width: 140px;
        height: 140px;
    }

    .medallion::before {
        width: 140px;
        height: 140px;
    }

    .ball {
        width: 140px;
        height: 140px;
    }

    .orbit {
        width: 180px;
        height: 180px;
    }

    .orbit-item {
        width: 4px;
        height: 4px;
        margin-left: -2px;
        margin-top: -2px;
    }

    @keyframes orbita {
        0% {
            transform: rotate(0deg) translateY(-85px);
        }
        100% {
            transform: rotate(360deg) translateY(-85px);
        }
    }

    .loading-status {
        font-size: 12px;
    }

    .progress-bar {
        width: 120px;
        height: 2px;
    }

    .loading-tip {
        font-size: 10px;
    }
}

/* Random Tips for Desktop */
.random-tip {
    margin: 32px auto 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.5;
    max-width: 400px;
    display: none;
    animation: fadeInScale 0.8s ease-out;
    text-align: center;
}

/* Show on desktop only */
@media (min-width: 768px) {
    .random-tip {
        display: block !important;
    }
}

/* Loading tip animation */
.loading-tip {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    letter-spacing: 0.5px;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}