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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#matrix-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    cursor: crosshair;
    touch-action: none;
}

.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border: 2px solid #0f0;
    border-radius: 8px;
    color: #0f0;
    max-width: 300px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.controls h2 {
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 10px #0f0;
}

.controls p {
    margin-bottom: 15px;
    font-size: 12px;
    text-align: center;
    opacity: 0.8;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

button {
    flex: 1;
    padding: 8px 12px;
    background: #000;
    color: #0f0;
    border: 1px solid #0f0;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    transition: all 0.3s;
}

button:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 10px #0f0;
}

button.active {
    background: #0f0;
    color: #000;
}

@media (max-width: 768px) {
    .controls {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 12px;
    }
    
    .controls h2 {
        font-size: 16px;
    }
    
    .controls p {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .button-group {
        gap: 5px;
        margin-bottom: 8px;
    }
    
    button {
        font-size: 9px;
        padding: 6px 8px;
        min-width: 50px;
    }
}
