* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#renderCanvas {
    width: 100%;
    height: 100vh;
    display: block;
    touch-action: none;
    outline: none;
}

canvas {
    outline: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c3a66 0%, #1b6b3e 50%, #0c3a66 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-icon {
    font-size: 72px;
    margin-bottom: 16px;
    animation: bounce 1.2s ease infinite;
}

.loading-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 16px rgba(255, 215, 0, 0.4);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.loading-subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin: 0 0 28px 0;
}

.loading-bar-container {
    width: 280px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto 20px auto;
    overflow: hidden;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4a);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loading-tip {
    font-size: 13px;
    opacity: 0.65;
    margin: 0;
    font-style: italic;
}
