body { padding: 0; margin: 0; -ms-overflow-style: none; scrollbar-width: none; }
body::-webkit-scrollbar { display: none;}
#unity-container { position: fixed; }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas {width: 100%; height: 100%; background: #231F20}
.unity-mobile #unity-canvas { width: 100%; height: 100% }
.landscape-screenX { transform-origin: top left; transform: rotate(90deg) translateY(-100%)}
.landscape-screenY{ transform-origin: top left;transform: rotate(270deg) translateX(-100%);}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#unity-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1b31, #1a2a4a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

#logo-container {
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

#game-logo {
    width: 1310px; height: 733px;
    background: url('logo.png') no-repeat center;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

#logo-text {
    width: 100%;
    height: 120px;
    text-align: center;
    font-size: 2.3rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#loading-container {
    width: 80%;
    max-width: 500px;
    text-align: center;
}

#loading-text {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

#progress-container {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c9ff, #92fe9d);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.5);
}

#progress-percentage {
    color: white;
    font-size: 1rem;
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

#tips-container {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 500px;
    text-align: center;
    line-height: 1.5;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tip {
    animation: fadeInOut 4s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
