* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    cursor: none;
    height: 100vh;
}

.game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.racket {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border-radius: 30px 30px 10px 10px;
    border: 3px solid #654321;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.2);
}

.racket::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 50px;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.1) 47%, rgba(255,255,255,0.1) 53%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(255,255,255,0.1) 47%, rgba(255,255,255,0.1) 53%, transparent 55%),
        #FF6B6B;
    border-radius: 25px;
    border: 2px solid #FF4757;
}

.racket::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 20px;
    background: linear-gradient(180deg, #8B4513, #654321);
    border-radius: 6px;
}

.ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #fff, #f0f0f0, #ddd);
    border-radius: 50%;
    border: 1px solid #ccc;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        inset -2px -2px 4px rgba(0,0,0,0.1);
    z-index: 5;
    transition: box-shadow 0.1s ease;
}

.ball.hit {
    box-shadow: 
        0 0 15px rgba(255,255,255,0.8),
        0 2px 4px rgba(0,0,0,0.2),
        inset -2px -2px 4px rgba(0,0,0,0.1);
}

.score {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 20;
}

.instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    text-align: center;
    z-index: 20;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.game-over h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #FF6B6B;
}

.game-over p {
    font-size: 24px;
    margin-bottom: 30px;
}

.game-over button {
    background: linear-gradient(45deg, #FF6B6B, #FF4757);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.game-over button:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .racket {
        width: 50px;
        height: 70px;
    }
    
    .ball {
        width: 18px;
        height: 18px;
    }
    
    .instructions {
        bottom: 40px;
        font-size: 14px;
    }
}