@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at center, #111b2e 0%, #060911 100%);
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    overflow: hidden;
}

body, canvas, #canvas {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000000;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #000000;
    display: block;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    z-index: 99;
}

.loading-card {
    background: rgba(12, 19, 32, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 60px rgba(0, 180, 255, 0.20), inset 0 0 30px rgba(0, 229, 255, 0.05);
    border-radius: 28px;
    padding: 36px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 440px;
    width: 90%;
    animation: floatIn 0.8s ease-out;
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.game-logo {
    width: 200px;
    height: 200px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 28px rgba(0, 229, 255, 0.45);
    border: 2px solid rgba(0, 229, 255, 0.5);
    margin-bottom: 16px;
    animation: pulseLogo 3s infinite alternate ease-in-out;
}

@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3)); }
    100% { transform: scale(1.03); filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.6)); }
}

.game-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.7), 0 4px 12px rgba(0, 0, 0, 0.9);
    margin: 0 0 22px 0;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

#unity-loading-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 14px;
    background: rgba(4, 10, 20, 0.8);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
    margin: 14px 0 10px 0;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff9900 0%, #ff5500 50%, #00e1ff 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 225, 255, 0.7);
    animation: gradientShift 2s linear infinite;
    transition: width 0.2s ease-out;
}

@keyframes gradientShift {
    0% { background-position: 100% 0%; }
    100% { background-position: -100% 0%; }
}

.loading-status {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6ed6ff;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
}

.spinner {
    margin: 14px 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(0, 210, 255, 0.15);
    border-top-color: #00e1ff;
    border-right-color: #ffaa00;
    animation: spinner-spin 0.9s infinite linear;
}

@keyframes spinner-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .loading-card {
        padding: 24px 20px;
    }
    #unity-logo img.game-logo {
        max-height: 100px;
    }
    .animated-badge {
        width: 80px;
        height: 80px;
    }
}

/* Branding Logo Overlay */
.branding-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.branding-logo {
    height: clamp(20px, 3.6vh, 34px);
    width: auto;
    max-width: min(240px, 85vw);
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 5px rgba(0, 0, 0, 0.6));
    opacity: 0.92;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

