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

    body {
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
        color: #fff;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        overflow: hidden;
        position: relative;
    }

    /* Animated Background */
    .bg-animation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        overflow: hidden;
    }

    .bg-circle {
        position: absolute;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
        animation: float 6s ease-in-out infinite;
    }

    .bg-circle:nth-child(1) {
        width: 200px;
        height: 200px;
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .bg-circle:nth-child(2) {
        width: 150px;
        height: 150px;
        top: 70%;
        right: 10%;
        animation-delay: 2s;
    }

    .bg-circle:nth-child(3) {
        width: 100px;
        height: 100px;
        top: 40%;
        left: 80%;
        animation-delay: 4s;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px) scale(1); }
        50% { transform: translateY(-20px) scale(1.1); }
    }

    /* Preloader */
    .preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: opacity 0.5s ease-out;
    }

    .loader {
        width: 60px;
        height: 60px;
        border: 4px solid rgba(138, 43, 226, 0.3);
        border-top: 4px solid #8a2be2;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .loading-text {
        font-size: 1.2em;
        color: #8a2be2;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }

    /* Start Screen */
    .start-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 15, 35, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 900;
        transition: all 0.5s ease;
    }

    .start-title {
        font-size: 4em;
        background: linear-gradient(45deg, #8a2be2, #ff69b4, #00ffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 20px;
        text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
        animation: glow 2s ease-in-out infinite alternate;
    }

    .start-subtitle {
        font-size: 1.5em;
        margin-bottom: 40px;
        color: #ccc;
        text-align: center;
        max-width: 600px;
    }

    .btn-start {
        background: linear-gradient(45deg, #ff69b4, #8a2be2);
        border: none;
        color: white;
        padding: 15px 40px;
        font-size: 1.2em;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
    }

    .btn-start::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .btn-start:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    .btn-start:hover::before {
        left: 100%;
    }

    .difficulty-selector {
        margin: 20px 0;
        display: flex;
        gap: 15px;
    }

    .difficulty-btn {
        background: rgba(138, 43, 226, 0.2);
        border: 2px solid rgba(138, 43, 226, 0.5);
        color: #fff;
        padding: 10px 20px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .difficulty-btn.active {
        background: rgba(138, 43, 226, 0.6);
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
    }

    .difficulty-btn:hover {
        background: rgba(138, 43, 226, 0.4);
    }

    /* Game Container */
    .game-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.5s ease-in;
    }

    .game-container.loaded {
        opacity: 1;
    }

    h1 {
        font-size: 3em;
        background: linear-gradient(45deg, #8a2be2, #ff69b4, #00ffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 10px;
        text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
        animation: glow 2s ease-in-out infinite alternate;
    }

    @keyframes glow {
        from { filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.5)); }
        to { filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8)); }
    }

    .score-board {
        display: flex;
        justify-content: space-between;
        width: 800px;
        max-width: 100%;
        margin-bottom: 20px;
        font-size: 1.5em;
        font-weight: bold;
    }

    .score {
        padding: 10px 20px;
        background: rgba(138, 43, 226, 0.2);
        border: 2px solid rgba(138, 43, 226, 0.5);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    .score.winner {
        animation: scoreWin 0.5s ease-in-out;
    }

    @keyframes scoreWin {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.2); background: rgba(138, 43, 226, 0.4); }
    }

    #pong {
        display: block;
        background: rgba(0, 0, 0, 0.8);
        border: 3px solid;
        border-image: linear-gradient(45deg, #8a2be2, #ff69b4, #00ffff, #8a2be2) 1;
        border-radius: 15px;
        box-shadow: 
            0 0 30px rgba(138, 43, 226, 0.3),
            inset 0 0 30px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    #pong:hover {
        box-shadow: 
            0 0 50px rgba(138, 43, 226, 0.5),
            inset 0 0 30px rgba(0, 0, 0, 0.5);
    }

    .game-controls {
        margin-top: 20px;
        display: flex;
        gap: 15px;
    }

    .control-btn {
        background: rgba(138, 43, 226, 0.2);
        border: 2px solid rgba(138, 43, 226, 0.5);
        color: #fff;
        padding: 8px 15px;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .control-btn:hover {
        background: rgba(138, 43, 226, 0.4);
    }

    /* Game Over Modal */
    .game-over-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .game-over-modal.show {
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(255, 105, 180, 0.9));
        padding: 40px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        transform: scale(0.7);
        transition: transform 0.3s ease;
    }

    .game-over-modal.show .modal-content {
        transform: scale(1);
    }

    .modal-title {
        font-size: 2.5em;
        margin-bottom: 20px;
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .modal-subtitle {
        font-size: 1.3em;
        margin-bottom: 30px;
        color: #f0f0f0;
    }

    .play-again-btn {
        background: linear-gradient(45deg, #ff69b4, #8a2be2);
        border: none;
        color: white;
        padding: 15px 30px;
        font-size: 1.2em;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .play-again-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    /* Instructions */
    .instructions {
        margin-top: 20px;
        font-size: 1.1em;
        color: #ccc;
        text-align: center;
        max-width: 800px;
    }

    @media (max-width: 900px) {
        .start-title { font-size: 2.5em; }
        h1 { font-size: 2em; }
        .score-board { width: 90%; font-size: 1.2em; }
        #pong { width: 90%; height: auto; }
        .difficulty-selector { flex-direction: column; }
    }
