.gamepad-card {
            background: white;
            border-radius: 16px;
            padding: 1.2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border: 1px solid rgba(0,0,0,0.08);
            transition: all 0.2s ease;
        }
        .gamepad-header {
            border-bottom: 2px solid var(--primary-color, #4682b4);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .controller-id {
            font-family: monospace;
            font-size: 0.85rem;
            color: #2c3e50;
            background: #f0f2f5;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            word-break: break-all;
        }
        .button-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 12px;
            margin: 20px 0;
        }
        .button-indicator {
            background: #f8f9fa;
            border-radius: 40px;
            padding: 8px 6px;
            text-align: center;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1px solid #dee2e6;
            transition: all 0.05s linear;
        }
        .button-indicator.active {
            background: #2ecc71;
            color: white;
            border-color: #27ae60;
            box-shadow: 0 0 6px rgba(46,204,113,0.5);
        }
        .button-value {
            font-size: 0.7rem;
            display: block;
            color: #6c757d;
        }
        .axis-container {
            background: #fef9e6;
            padding: 12px;
            border-radius: 16px;
            margin: 12px 0;
        }
        .axis-slider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            position: relative;
        }
        .axis-label {
            width: 60px;
            font-weight: 600;
            font-size: 0.85rem;
        }
        .axis-track {
            flex: 1;
            height: 8px;
            background: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        .axis-fill {
            height: 100%;
            width: 50%;
            background: #3498db;
            border-radius: 10px;
            transition: width 0.03s linear;
        }
        .deadzone-marker {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: rgba(0,0,0,0.3);
            pointer-events: none;
            transform: translateX(-50%);
        }
        .axis-value {
            width: 50px;
            text-align: right;
            font-family: monospace;
            font-size: 0.8rem;
        }
        .stick-canvas-container {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            justify-content: flex-start;
            margin: 1rem 0;
        }
        .stick-item {
            text-align: center;
            position: relative;
        }
        .stick-canvas {
            background: #1e2a36;
            border-radius: 50%;
            width: 110px;
            height: 110px;
            position: relative;
            box-shadow: inset 0 0 0 2px #2c3e50, 0 4px 10px rgba(0,0,0,0.1);
        }
        .stick-canvas canvas {
            width: 100% !important;
            height: 100% !important;
            border-radius: 50%;
            display: block;
        }
        .stick-title {
            text-align: center;
            margin-top: 8px;
            font-weight: 600;
            font-size: 0.85rem;
        }
        .deadzone-hint {
            font-size: 0.7rem;
            color: #6c757d;
            cursor: help;
            border-bottom: 1px dashed #ccc;
        }
        .vibration-btn-sm {
            background: #6c5ce7;
            border: none;
            font-size: 0.75rem;
            padding: 4px 12px;
            border-radius: 30px;
            transition: 0.1s;
        }
        .vibration-btn-sm:hover {
            background: #5a4bcf;
            transform: scale(0.98);
        }
        .status-badge {
            font-size: 0.8rem;
            padding: 4px 12px;
            border-radius: 30px;
        }
        .status-connected {
            background: #d4edda;
            color: #155724;
        }
        .gamepad-tip {
            background: #e7f3ff;
            border-left: 5px solid #3498db;
            padding: 1rem;
            border-radius: 12px;
            margin: 1rem 0;
        }
        .legend-dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 6px;
        }
        .faq-collapse .accordion-button {
            font-weight: 500;
        }
        .tool-header h1 {
            font-size: 2rem;
        }
        @media (max-width: 768px) {
            .button-grid {
                grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
                gap: 8px;
            }
            .stick-canvas-container {
                justify-content: center;
            }
        }
        .related-tool a.disabled-link {
            cursor: default;
            text-decoration: none;
            color: #6c757d;
        }