html {
    -ms-touch-action: none;
    touch-action: none;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #888;
    background-color: #333;
    font-family: Helvetica, Verdana, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    text-align: center;
}

canvas {
    background-color: transparent;
}

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
    width: 100%;
    height: 100%;
}

:root {
    --safe-top: env(safe-area-inset-top);
    --safe-right: env(safe-area-inset-right);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
}


#loading-screen {

    --gradient-top: #1abbad;
    --gradient-bottom: #405f99;
    --neon-cyan: #00d1ec;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(65deg, var(--gradient-top), var(--gradient-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-15%);
}

#loading-progress-container {
    --circle-size: clamp(140px, 35vw, 200px);
    position: relative;
    width: var(--circle-size);
    height: var(--circle-size);
    margin-bottom: 20px;
}

#loading-progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

#loading-progress-circle circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    filter: drop-shadow(-2px 2px 2px rgba(0, 0, 0, 0.35));
}

#loading-progress-circle-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

#loading-progress-circle-fill {

    stroke: var(--neon-cyan);
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 0.4s ease-out;
    animation: progress 2s infinite;
}

@keyframes progress {
    0% {
        stroke-dashoffset: 440;
    }

    100% {
        stroke-dashoffset: 0;
    }
}


#loading-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);

    font-size: clamp(24px, 8vw, 32px);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.loading-title {
    color: white;
    font-size: clamp(22px, 7vw, 30px);
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    margin-top: 20px;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    #loading-content {
        transform: translateY(-10%);
    }

    #loading-progress-container {
        --circle-size: clamp(120px, 50vw, 160px);
        margin-bottom: 15px;
    }

    .loading-title {
        font-size: 20px;
        margin-top: 15px;
    }

    #loading-percentage {
        font-size: 22px;
    }
}