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

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

#unity-container {
    width: 100%;
    height: 100%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Loading Screen ─────────────────────── */
#loading-screen {
    position: fixed;
    inset: 0;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.6s ease-out;
}

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

#loading-content {
    text-align: center;
    color: #e0e0e0;
    max-width: 500px;
    width: 90%;
}

#loading-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    letter-spacing: -1px;
}

#loading-subtitle {
    font-size: 12px;
    color: #444;
    margin-bottom: 48px;
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#progress-bar-container {
    width: 100%;
    height: 3px;
    background: #1a1a2e;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 18px;
}

#progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    width: 0%;
    transition: width 0.25s ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on progress bar */
#progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 50%,
            transparent 100%);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

#loading-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

#loading-text {
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #444;
}

#progress-percentage {
    font-size: 13px;
    color: #00d4aa;
    font-family: 'Monaco', 'Courier New', monospace;
    font-weight: 700;
}

#loading-phase {
    font-size: 11px;
    color: #2a2a3e;
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 1px;
    min-height: 16px;
    transition: opacity 0.3s;
}

/* Warning/error banner */
#unity-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
}

/* Hide default Unity footer chrome */
#unity-footer {
    display: none;
}