.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.canvas-wrapper {
    position: relative;
    border: 2px solid #000000; /* Added border */
    box-shadow: 5px 5px 0px #000000; /* Adjusted shadow */
    border-radius: 20px;
    overflow: hidden;
}

#draw-canvas {
    background-color: #ffffff; /* Adjusted background color */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px), /* Adjusted grid color */
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px); /* Adjusted grid color */
    background-size: 20px 20px;
    cursor: crosshair;
    display: block;
}

#real-time-score {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: opacity 0.3s;
}

#result {
    text-align: center;
    padding: 2rem;
    background: white;
    border: 2px solid #000000; /* Added border */
    border-radius: 20px;
    box-shadow: 5px 5px 0px #000000; /* Adjusted shadow */
    width: 100%;
    max-width: 500px;
}

#score {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

#feedback {
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
}

#worldwide-rating {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
}

#draw-again-btn, #share-btn, #clear-btn {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 3px 3px 0px #000000; /* Adjusted shadow */
}

#draw-again-btn:hover, #share-btn:hover, #clear-btn:hover {
    transform: translateY(-3px); /* Adjusted transform */
    box-shadow: 6px 6px 0px #000000; /* Adjusted shadow */
}

#leaderboard {
    text-align: center;
    margin-bottom: 0; /* Removed padding as per user request */
    font-size: 1.1rem;
}

#leaderboard h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
}

#leaderboard p {
    margin: 0;
    font-weight: 700;
    color: #ff6b6b;
}

.hidden {
    display: none !important;
}
