* {
    margin: 0;
    padding: 0;
}

canvas {
    display: block;
}

body {
    overflow: hidden;
}

#score {
    position: fixed;
    top: 10px;
    left: 10px;
    color: white;
    font-family: sans-serif;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
}

#deathScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: sans-serif;
}

#deathScreen h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

#deathScreen p {
    font-size: 24px;
    margin-bottom: 20px;
}

#deathScreen button {
    padding: 12px 24px;
    font-size: 18px;
    background: #4cc9f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

#leaderboard {
    position: fixed;
    top: 10px;
    right: 10px;
    color: white;
    font-family: sans-serif;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 14px;
    border-radius: 6px;
    min-width: 150px;
}

#leaderboard h3 {
    font-size: 15px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
}

#leaderboard div {
    padding: 2px 0;
}

#leaderboard .you {
    color: #4cc9f0;
    font-weight: bold;
}

#dashStatus {
    position: fixed;
    top: 80px;
    left: 10px;
    color: white;
    font-family: sans-serif;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
}

#dangerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(255, 0, 0, 0);
    transition: box-shadow 0.15s ease-out;
    z-index: 10;
}

#highScore {
    position: fixed;
    top: 45px;
    left: 10px;
    color: #ffd700;
    font-family: sans-serif;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
}

#lobbyScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: sans-serif;
    z-index: 20;
}

.lobby-container {
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.lobby-container h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.lobby-container h2 {
    font-size: 20px;
    margin: 20px 0 10px;
}

.lobby-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 10px;
}

#skinGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.skin-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.skin-card.selected {
    border-color: #4cc9f0;
}

.skin-card.locked {
    opacity: 0.5;
}

.skin-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.skin-card p {
    font-size: 13px;
    margin: 2px 0;
}

#playBtn {
    padding: 14px 40px;
    font-size: 20px;
    background: #4cc9f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #0d0d1a;
    font-weight: bold;
}

#nicknameInput {
    display: block;
    margin: 0 auto 20px;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-align: center;
    width: 220px;
    outline: none;
}

#nicknameInput:focus {
    border-color: #4cc9f0;
}

#splitStatus {
    position: fixed;
    top: 115px;
    left: 10px;
    color: white;
    font-family: sans-serif;
    font-size: 14px;
    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    border-radius: 6px;
}