html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#unity-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#unity-container.unity-desktop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    height: 100%
}

#unity-canvas {
    background: {
            {
                {
                BACKGROUND_COLOR
            }
        }
    }
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%
}

#unity-loading-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

#unity-logo {
    width: clamp(150px, 40vw, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
    background-size: contain;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    animation: logo-pulse 2s ease-in-out infinite;
}

#unity-progress-bar-empty {
    width: clamp(200px, 60vw, 400px);
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
    transition: width 0.3s ease-out;
}

#unity-progress-text {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: uppercase;
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

#unity-footer {
    position: relative;
    width: 100%;
    height: 40px;
    background: #111;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.unity-mobile #unity-footer {
    display: none
}

#unity-build-title {
    display: none;
}

#unity-fullscreen-button {
    cursor: pointer;
    width: 24px;
    height: 24px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
    opacity: 0.5;
    transition: opacity 0.3s;
}

#unity-fullscreen-button:hover {
    opacity: 1;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 8px;
    color: #333;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

#orientation-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a1a2e;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

.orientation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: pulse 2s infinite;
}

.device-icon {
    font-size: 64px;
    line-height: 1;
}

.orientation-text {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 0 20px;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}