.viewer-wrapper {
    width: 100%;
    height: 90vh;
    margin-bottom: 150px;
    position: relative;
    overflow: hidden;
}

#container3D {
    min-height: 800px;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f8a863, #ef556d);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 3rem;
}

#nitroBarContainer {
    position: absolute;
    top: 20px;            /* statt bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #00aaff;
    border-radius: 10px;
    overflow: hidden;
    z-index: 9999;
}


#nitroBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d0ff, #0088ff);
    transition: width 0.3s linear;
}

.hud {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    z-index: 50;
}

#gameOverScreen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.gameOverBox {
    background: #222;
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.gameOverBox button {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 18px;
}
