* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 1000px;
    height: 800px;
    border: 2px solid #8458d4;
    box-shadow: 0 0 20px #8458d4;
    overflow: hidden;
}

#gameCanvas {
    background-color: #000;
    width: 100%;
    height: 100%;
}

.registration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.registration h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #8458d4;
    text-shadow: 0 0 10px #8458d4;
    letter-spacing: 3px;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #8458d4;
    text-shadow: 0 0 5px #8458d4;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.timer {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.players {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
}

.player {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
}

.player.active {
    border-color: #8458d4;
    box-shadow: 0 0 10px #8458d4;
}

.color-box {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    border-radius: 3px;
}

.red {
    background-color: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.yellow {
    background-color: #ffff00;
    box-shadow: 0 0 10px #ffff00;
}

.purple {
    background-color: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

.blue {
    background-color: #00f;
    box-shadow: 0 0 10px #00f;
}

.green {
    background-color: #0f0;
    box-shadow: 0 0 10px #0f0;
}

.player-name {
    flex: 1;
    font-size: 1.2rem;
}

.status {
    font-size: 0.9rem;
    color: #999;
}

.status.joined {
    color: #0f0;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #8458d4;
    text-shadow: 0 0 10px #8458d4, 0 0 20px #8458d4;
}

#winner {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #8458d4;
}

#restartButton {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #8458d4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#restartButton:hover {
    background-color: #8458d4;
    box-shadow: 0 0 15px #8458d4;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 1.5s infinite;
}