
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Orbitron', 'Arial', sans-serif;
        }

        body {
            background: #0a0a1a;
            color: #e0e0ff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 20% 20%, rgba(100, 30, 255, 0.1), transparent 25%),
                radial-gradient(circle at 80% 80%, rgba(255, 30, 150, 0.1), transparent 25%),
                linear-gradient(to bottom, #050518, #07072d);
        }

        .header {
            text-align: center;
            margin-bottom: 20px;
            position: relative;
            width: 100%;
            padding: 10px;
            z-index: 10;
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #ff00c1, #00eaff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 25px rgba(224, 0, 255, 0.4);
            letter-spacing: 2px;
            position: relative;
            animation: title-glow 2s infinite alternate;
        }

        h1::after {
            content: "PHYSICS SIMULATION";
            position: absolute;
            bottom: -22px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1rem;
            letter-spacing: 3px;
            color: #00eaff;
            opacity: 0.7;
        }

        @keyframes title-glow {
            0% { text-shadow: 0 0 20px rgba(255, 0, 193, 0.5); }
            100% { text-shadow: 0 0 35px rgba(0, 234, 255, 0.7); }
        }

        .simulation-container {
            position: relative;
            width: 100%;
            max-width: 880px;
            height: 500px;
            margin-bottom: 25px;
            box-shadow: 0 0 35px rgba(0, 234, 255, 0.35);
            border-radius: 12px;
            overflow: hidden;
            background: rgba(8, 8, 25, 0.85);
            border: 1px solid rgba(0, 234, 255, 0.4);
        }

        canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        #grid-canvas {
            z-index: 1;
        }

        #main-canvas {
            z-index: 2;
        }

        #stats {
            position: absolute;
            bottom: 15px;
            left: 15px;
            font-size: 0.9rem;
            color: #a0a0ff;
            z-index: 3;
            background: rgba(10, 10, 30, 0.75);
            padding: 8px 15px;
            border-radius: 8px;
            border: 1px solid rgba(0, 234, 255, 0.4);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
            font-family: monospace;
        }

        .control-panel {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            padding: 20px;
            background: rgba(15, 15, 40, 0.85);
            border-radius: 16px;
            box-shadow: 0 0 25px rgba(0, 234, 255, 0.25);
            margin-bottom: 25px;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(0, 234, 255, 0.4);
            width: 100%;
            max-width: 880px;
        }

        .params-container, .controls-container {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
            width: 100%;
        }

        .control-group {
            display: flex;
            flex-direction: column;
            min-width: 160px;
            flex: 1;
        }

        .control-title {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: #00eaff;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        label {
            font-size: 0.9rem;
            margin-bottom: 8px;
            color: #a0a0ff;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        label span.value-display {
            color: #00eaff;
            font-weight: bold;
            min-width: 40px;
            text-align: right;
            font-family: monospace;
        }

        .btn-container {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            width: 100%;
        }

        button {
            background: linear-gradient(45deg, #ff00c1, #7000ff);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 40px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
            outline: none;
            box-shadow: 0 5px 18px rgba(150, 0, 255, 0.5);
            letter-spacing: 1px;
            text-transform: uppercase;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
            min-width: 160px;
            flex: 1;
        }

        button::before {
            content: "";
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #ff00c1, #00eaff, #7000ff, #ff00c1);
            background-size: 400%;
            z-index: -1;
            border-radius: 40px;
            opacity: 0.8;
            animation: glowing 3s linear infinite;
        }

        @keyframes glowing {
            0% { background-position: 0 0; }
            100% { background-position: 400% 0; }
        }

        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(255, 0, 193, 0.7);
        }

        button:active {
            transform: translateY(1px);
            box-shadow: 0 3px 12px rgba(150, 0, 255, 0.4);
        }

        input[type="range"] {
            width: 100%;
            height: 8px;
            border-radius: 6px;
            background: linear-gradient(90deg, #7700ff, #00eaff);
            outline: none;
            appearance: none;
            box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
        }

        input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #ff00c1;
            cursor: pointer;
            box-shadow: 0 0 10px rgba(255, 0, 193, 0.9);
            border: 2px solid #ffffff;
            transition: all 0.2s;
        }

        input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 0 14px rgba(255, 0, 193, 1);
        }

        .footer {
            margin-top: auto;
            padding: 20px;
            text-align: center;
            color: #8080cc;
            font-size: 0.95rem;
            width: 100%;
            border-top: 1px solid rgba(0, 234, 255, 0.15);
            background: rgba(5, 5, 20, 0.6);
            backdrop-filter: blur(8px);
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 10;
        }

        .copyright {
            font-size: 1rem;
            letter-spacing: 1px;
        }

        .version {
            font-size: 0.9rem;
            color: #00eaff;
            letter-spacing: 1px;
        }

        .instructions {
            color: #a0a0ff;
            font-size: 0.85rem;
            margin-top: 5px;
            opacity: 0.8;
            text-align: center;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2.2rem;
            }
            
            h1::after {
                font-size: 0.8rem;
                bottom: -18px;
            }
            
            .simulation-container {
                height: 400px;
            }
            
            .control-group {
                min-width: 140px;
            }
            
            button {
                padding: 10px 18px;
                font-size: 0.85rem;
                min-width: 140px;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 1.8rem;
            }
            
            h1::after {
                font-size: 0.7rem;
                bottom: -15px;
            }
            
            .simulation-container {
                height: 350px;
            }
            
            .control-group {
                min-width: 100%;
            }
            
            .btn-container {
                flex-direction: column;
                align-items: center;
            }
            
            button {
                width: 100%;
                max-width: 280px;
            }
        }
