html, body {
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    overflow:hidden;
    background:#0f172a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

body.unselectable {
    user-select:none;
    -webkit-user-select:none;
}

#unity-container {
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    background:#0f172a;
}

#unity-canvas {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
    background:#000;
    opacity:0;
    transition:opacity .25s linear;
}

#unity-canvas.ready {
    opacity:1;
}

#unity-loading-bar {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:#0f172a;
    color:#cbd5e1;
    padding:20px;
    box-sizing:border-box;
}

#unity-logo {
    width:140px;
    height:140px;
    margin-bottom:20px;
}

#unity-logo svg {
    width:100%;
    height:100%;
}

.game-title {
    font-size:22px;
    font-weight:600;
    margin-bottom:24px;
    color:#e2e8f0;
    text-align:center;
}

.progress-wrap {
    width:280px;
    text-align:center;
}

.progress-track {
    width:100%;
    height:8px;
    background:#1e293b;
    border-radius:999px;
    overflow:hidden;
}

.progress-fill {
    width:0%;
    height:100%;
    background:linear-gradient(90deg,#0EA5E9,#38BDF8);
    transition:width .2s linear;
}

.progress-text {
    margin-top:8px;
    font-size:14px;
    color:#94a3b8;
    display:flex;
    justify-content:space-between;
}

.status-wrap {
    margin-top:18px;
    padding:14px 20px;
    background:#1e293b;
    border-radius:14px;
    box-shadow:0 15px 40px rgba(0,0,0,0.5);
    max-width:300px;
    text-align:center;
}

.status-text {
    font-size:14px;
    color:#e2e8f0;
}

#retry-btn {
    margin-top:20px;
    padding:10px 20px;
    border:none;
    background:#0EA5E9;
    color:white;
    border-radius:999px;
    cursor:pointer;
    display:none;
}

#pauseOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    z-index: 9999;
}

.status-wrap.status-error {
    background:#7f1d1d;
    box-shadow:0 15px 40px rgba(127,29,29,0.6);
}

.status-wrap.status-error .status-text {
    color:#fecaca;
}