body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    cursor: default;
    font-family: 'Arial', sans-serif;
    color: white;
}

canvas {
    display: block;
}

.cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

#status {
    position: fixed;
    top: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1001;
    font-size: 14px;
}

#participants {
    position: fixed;
    top: 10px;
    right: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1001;
    font-size: 14px;
}

#scoreboard {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1001;
    text-align: center;
    min-width: 150px;
}

#scoreboard .title {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

#scores-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#scores-list li {
    padding: 2px 0;
    font-weight: bold;
}

#timer {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 4px;
    z-index: 1001;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

#countdown-overlay,
#game-over {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: white;
    text-align: center;
}

#countdown-overlay.hidden,
#game-over.hidden {
    display: none;
}

#countdown-overlay h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

#countdown-overlay p {
    font-size: 16px;
    color: #ccc;
}

#share-url {
    width: 350px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #4CAF50;
    text-align: center;
}

#game-over #winner-text {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}

#restart-btn {
    padding: 12px 30px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
}

#restart-btn:hover {
    background: #45a049;
}

#controls-info {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 6px;
    z-index: 1001;
    font-size: 13px;
}

@media (max-width: 800px) {
    #controls-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    #share-url {
        width: 260px;
    }
}
