        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #1a1a2e;
            color: white;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            flex-direction: column;
            width: 100%;
        }

        header {
            width: 100%;
            margin-bottom: 20px;
            text-align: center;
        }

        h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #003d66, #00d4ff, #ff6b6b, #ffaa80);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 30px rgba(255, 107, 107, 0.3);
            font-family: 'Impact', 'Arial Black', sans-serif;
            font-weight: 900;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .subtitle {
            font-size: 1.1rem;
            color: #00d4ff;
            font-style: italic;
            margin-bottom: 20px;
        }

        .intro-text {
            text-align: center;
            margin-bottom: 25px;
            font-size: 0.95rem;
            color: #ffffff;
            line-height: 1.4;
            max-width: 800px;
            font-style: italic;
        }

        .main-layout {
            display: grid;
            grid-template-columns: 320px 1fr;
            gap: 20px;
            align-items: start;
            width: 100%;
        }

        .controls-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .simulation-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }

        .simulation-area {
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(0, 212, 255, 0.3);
            border-radius: 20px;
            height: 200px;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            width: 100%;
            max-width: 800px;
        }

        #simulationCanvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 5;
        }

        .detector-layer {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 50%;
            pointer-events: none;
            transition: all 0.3s ease;
        }

        .detector-layer.active {
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

        .detector-layer:nth-child(3) { width: 60px; height: 60px; }
        .detector-layer:nth-child(4) { width: 100px; height: 100px; }
        .detector-layer:nth-child(5) { width: 140px; height: 140px; }
        .detector-layer:nth-child(6) { width: 180px; height: 180px; }

        .particle {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            box-shadow: 0 0 20px currentColor;
            transition: opacity 0.1s ease;
        }

        .proton1 {
            background: #ff6b6b;
            color: #ff6b6b;
            left: 50px;
        }

        .proton2 {
            background: #00d4ff;
            color: #00d4ff;
            right: 50px;
        }

        .collision-point {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
        }

        .controls {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .control-panel {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .control-panel h3 {
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        .energy-slider {
            width: 100%;
            height: 8px;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.2);
            outline: none;
            margin: 8px 0;
            cursor: pointer;
        }

        .energy-slider::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #00d4ff;
            cursor: pointer;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }

        .energy-display {
            font-size: 0.85rem;
            font-weight: bold;
        }

        .start-button {
            background: linear-gradient(135deg, #001a33, #003d66, #0099cc, #00d4ff);
            border: none;
            padding: 12px 18px;
            border-radius: 16px;
            color: white;
            font-size: 0.9rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .start-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }

        .reset-button {
            background: linear-gradient(135deg, #4d1a1a, #802020, #ff6b6b, #ffaa80);
            border: none;
            padding: 12px 16px;
            border-radius: 16px;
            color: white;
            font-size: 0.9rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .results {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            min-height: 120px;
            width: 100%;
        }

        .results h3 {
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        .discovery-log {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            padding: 20px;
            margin-top: 10px;
            width: 100%;
        }

        .discovery-stats {
            font-size: 0.8rem;
            color: #ffffff;
            font-weight: bold;
        }

        .clear-log-button {
            background: rgba(255, 107, 107, 0.2);
            border: 1px solid rgba(255, 107, 107, 0.4);
            color: white;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .clear-log-button:hover {
            background: rgba(255, 107, 107, 0.5);
            transform: scale(1.1);
        }

        .discovery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
            gap: 10px;
            margin-top: 15px;
        }

        .discovery-item {
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            filter: grayscale(1) opacity(0.3);
        }

        .discovery-item.unlocked {
            filter: none;
            opacity: 1;
            background: rgba(0, 212, 255, 0.1);
            border-color: rgba(0, 212, 255, 0.5);
        }

        .discovery-item .tooltip {
            position: absolute;
            bottom: 110%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.95);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.7rem;
            white-space: nowrap;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            border: 1px solid #00d4ff;
            z-index: 100;
        }

        .discovery-item:hover .tooltip {
            opacity: 1;
        }

        .generated-particles {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .generated-particle {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            color: #ffffff;
            font-weight: bold;
        }

        .particle-info {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.95);
            color: white;
            padding: 15px;
            border-radius: 10px;
            font-size: 0.8rem;
            white-space: normal;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            border: 1px solid #00d4ff;
            width: 280px;
            max-width: calc(100vw - 40px);
            margin-bottom: 8px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }

        .generated-particle:hover .particle-info {
            opacity: 1;
        }

        .collision-animation {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            background: radial-gradient(circle, white 0%, #00d4ff 30%, #ff6b6b 60%, transparent 80%);
            animation: explosion 1s ease-out forwards;
            pointer-events: none;
        }

        @keyframes explosion {
            0% { width: 0; height: 0; opacity: 1; }
            100% { width: var(--explosion-size); height: var(--explosion-size); opacity: 0; }
        }

        .detector-display {
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid #00d4ff;
            border-radius: 8px;
            padding: 10px;
            font-size: 0.8rem;
            text-align: center;
        }

        .detector-status {
            color: #00d4ff;
            font-style: italic;
        }

        .energy-scale-toggle {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
        }

        .toggle-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 5px;
        }

        .toggle-switch {
            position: relative;
            width: 50px;
            height: 25px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .toggle-switch.active {
            background: #00d4ff;
        }

        .toggle-slider {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 21px;
            height: 21px;
            background: white;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .toggle-switch.active .toggle-slider {
            transform: translateX(25px);
        }

        .scale-info {
            font-size: 0.75rem;
            color: #00d4ff;
        }

        @media (max-width: 768px) {
            body { padding: 10px; }
            
            .main-layout {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            h1 { font-size: 1.8rem; }
            
            .simulation-area { height: 180px; }

            .generated-particle:hover .particle-info {
                position: fixed;
                bottom: 10px;
                left: 10px;
                right: 10px;
                top: auto;
                transform: none;
                width: auto;
                max-width: none;
                margin: 0;
                opacity: 1;
                pointer-events: auto;
                box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.8);
            }

            .particle-info::after { display: none; }
            
            .start-button, .reset-button {
                padding: 15px 10px;
            }
        }

        @media (max-width: 480px) {
            .discovery-grid {
                grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
            }
            .toggle-label { font-size: 0.7rem; }
        }
