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

body {
    overflow: hidden;
    background: #1a1a2e;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

#game-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

#ui {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;
}

#ui > div { pointer-events: auto; }

#room-info {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #e94560;
}

.code {
    font-size: 3em;
    color: #e94560;
    letter-spacing: 10px;
    font-weight: bold;
}

button {
    background: #e94560;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.2s;
}

button:hover { transform: scale(1.05); }

#players-list {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.player-card {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid transparent;
}

.player-card.ready { border-color: #0f0; }
.player-card.jumping {
    border-color: #e94560;
    animation: pulse 0.3s;
}

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

#game-ui {
    position: absolute;
    top: 20px; left: 20px; right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#scores {
    display: flex;
    gap: 20px;
}

.score-card {
    background: rgba(0,0,0,0.6);
    padding: 15px 25px;
    border-radius: 10px;
    border-left: 4px solid #e94560;
}

.score-card.dead { opacity: 0.5; filter: grayscale(1); }

#game-over-ui {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #e94560;
}

#game-over-ui h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #e94560;
}

#restart-btn {
    background: #0f0;
    color: #1a1a2e;
}
