body { 
    margin: 0; 
    overflow: hidden; 
    background: #0b0b0b; 
    font-family: 'Segoe UI', sans-serif; 
}

canvas { 
    display: block; 
}

#overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.95); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 10;
}

.menu-content {
    background: #2a2a2a; 
    padding: 50px; 
    border-radius: 30px; 
    border: 3px solid #edcf72;
    text-align: center; 
    color: white; 
    min-width: 400px;
}

#death-text { 
    color: #ff4444; 
    font-size: 60px; 
    display: none; 
    margin-bottom: 20px; 
    font-weight: bold; 
}

#nickname { 
    padding: 20px; 
    width: 90%; 
    border-radius: 12px; 
    border: none; 
    font-size: 32px; 
    margin-bottom: 30px; 
    text-align: center; 
    font-weight: bold;
    outline: none;
}

.high-score-display { 
    font-size: 48px; 
    color: #edcf72; 
    margin: 20px 0; 
    font-weight: bold;
    text-shadow: 0 0 15px rgba(237, 207, 114, 0.3);
}

button { 
    padding: 15px 60px; 
    background: #f2b179; 
    border: none; 
    border-radius: 12px; 
    color: #776e65; 
    font-weight: bold; 
    font-size: 28px; 
    cursor: pointer; 
    transition: transform 0.2s;
}

button:hover { 
    transform: scale(1.1); 
    background: #edcf72; 
}

#leaderboard { position: fixed; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 10px; border-radius: 5px; width: 180px; z-index: 50; }
.lb-item { display: flex; justify-content: space-between; font-size: 14px; margin: 3px 0; }
.lb-me { color: #edcf72; font-weight: bold; }

#boost-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    border: 2px solid #edcf72;
    border-radius: 10px;
    z-index: 5; 
    overflow: hidden;
}

#boost-bar {
    width: 100%;
    height: 100%;
    background: #edcf72;
}

#boost-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 11px;
    line-height: 20px;
    font-weight: bold;
    pointer-events: none;
}


.side-panel {
    position: absolute;
    width: 240px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px); 
    color: #eeeeee; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.left-panel { left: 60px; text-align: left; }
.right-panel { right: 60px; text-align: left; }


.side-panel b {
    color: #edcf72 !important; 
    font-size: 18px;
    text-transform: uppercase;
}

.side-panel h2 {
    color: #edcf72;
    margin: 0 0 15px 0;
    font-size: 22px;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(237, 207, 114, 0.4);
    padding-bottom: 8px;
}

.side-panel p {
    font-size: 16px;
    line-height: 1.5;
    margin: 15px 0;
}


.side-panel p, .instruction-item {
    font-size: 16px;
    line-height: 1.4;
    margin: 15px 0;
    color: #eee;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    font-size: 24px;
}

.text b {
    color: #edcf72;
    font-size: 17px;
}


@media (max-width: 1200px) {
    .left-panel { left: 20px; }
    .right-panel { right: 20px; }
}

@media (max-width: 1000px) {
    .side-panel { display: none; }
}

#music-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #edcf72;
    border-radius: 50px;
    padding: 8px 15px;
    gap: 12px;
}

#music-toggle-text {
    color: #edcf72;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    user-select: none;
}

#music-toggle-text:active {
    transform: scale(0.95);
    filter: brightness(1.2);
}

.volume-wrapper {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(237, 207, 114, 0.3);
    padding-left: 12px;
}

#volume-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; 
    width: 80px;
    height: 4px;
    background: rgba(237, 207, 114, 0.2);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #edcf72;
    border-radius: 50%;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #edcf72;
    border-radius: 50%;
    border: none;
}