*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #0d0d12;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    overscroll-behavior: none;
}

#unity-container {
    position: fixed;
    inset: 0;
    padding:
        env(safe-area-inset-top)
        env(safe-area-inset-right)
        env(safe-area-inset-bottom)
        env(safe-area-inset-left);
}

#unity-canvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    touch-action: none;
}

/* Modern Dark Loading Screen */
#custom-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1f1f2e 0%, #0d0d12 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Pulsing Animation for Logo */
#custom-logo {
    max-width: 250px;
    max-height: 250px;
    margin-bottom: 50px;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.5));
    /* animation: pulse 2.5s infinite ease-in-out; */
}

/* @keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
} */

/* Sleek Progress Bar Container */
#custom-progress-bar-empty {
    width: 400px;
    max-width: 80%;
    /* Responsive for smaller screens */
    height: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Glowing Gradient Fill */
#custom-progress-bar-full {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
    transition: width 0.1s ease-out;
    /* Smooth snapping */
}

/* Clean, Monospaced-Number Text */
#custom-loading-text {
    margin-top: 25px;
    color: #a0a0b5;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
