body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 500px;
    height: 800px;
    background-color: #2b2b2b;
    border: 10px solid #3d3d3d;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.dark-box {
    background-color: rgba(18, 18, 18, 0.8);
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

.hud-item-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.cup-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cup-icon {
    width: 25px;
    height: 35px;
    background-color: #f0f0f0;
    border-radius: 0 0 5px 5px;
}

canvas {
    background-color: #121212;
    display: block;
}

#finish-zone {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #3d4a52;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #f0f0f0;
    border-top: 5px solid #2b3a42;
    z-index: 5;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#overlay.hidden {
    display: none;
}

#overlay-content {
    text-align: center;
    background-color: #262626;
    padding: 40px;
    border-radius: 10px;
    border: 2px solid #555;
}

#overlay h1 {
    color: #FF9800;
}

#overlay button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

#leaderboard-panel {
    position: absolute;
    bottom: 70px;
    right: 10px;
    width: 200px;
    z-index: 10;
}

#leaderboard-panel h3 {
    margin-top: 0;
    text-align: center;
    color: #FFD700;
}

#leaderboard-list {
    margin: 0;
    padding-left: 20px;
    font-size: 16px;
    color: #b0b0b0;
}
