.fps-value {
            font-size: 3rem;
            font-weight: 800;
            font-family: 'Courier New', monospace;
            transition: color 0.1s;
            line-height: 1.2;
        }
        .fps-good { color: #2ecc71; }
        .fps-medium { color: #f39c12; }
        .fps-poor { color: #e74c3c; }
        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 1.25rem 0.75rem;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            text-align: center;
            margin-bottom: 1.25rem;
            border: 1px solid #eef2f7;
        }
        .stat-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
        .stat-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #5a6e7c;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }
        .stat-number { font-size: 2rem; font-weight: 700; color: #1e2a36; line-height: 1.2; }
        .frame-graph-container {
            background: #f8fafc;
            border-radius: 16px;
            padding: 1.2rem;
            margin: 1.25rem 0;
            border: 1px solid #e2e8f0;
        }
        canvas#frameTimeCanvas {
            background: #ffffff;
            border-radius: 12px;
            width: 100%;
            height: auto;
            margin-top: 0.75rem;
        }
        .badge-status {
            font-size: 0.7rem;
            padding: 0.3rem 0.9rem;
            border-radius: 40px;
            font-weight: 500;
        }
        .benchmark-note {
            background: #f1f5f9;
            padding: 1rem;
            border-radius: 16px;
            font-size: 0.85rem;
            margin-top: 1rem;
            border-left: 3px solid #3b82f6;
        }
        .particle-count {
            font-weight: 600;
            background: #1e293b;
            color: white;
            padding: 0.2rem 0.8rem;
            border-radius: 40px;
            font-size: 0.85rem;
        }
        .canvas-wrapper {
            background: #111214;
            border-radius: 20px;
            padding: 0.5rem;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            position: relative;
            min-height: 260px;
        }
        .canvas-container {
            position: relative;
            width: 100%;
            height: auto;
        }
        .performance-canvas {
            width: 100%;
            height: auto;
            background: #111214;
            border-radius: 16px;
            display: block;
        }
        .control-bar {
            background: white;
            border-radius: 60px;
            padding: 0.5rem 1rem;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            margin-top: 1rem;
            flex-wrap: wrap;
        }
        .scene-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
            margin-bottom: 1rem;
        }
        .scene-btn {
            border-radius: 40px;
            padding: 0.4rem 1rem;
            font-size: 0.85rem;
            transition: all 0.2s;
        }
        .scene-btn.active {
            background-color: #0d6efd;
            color: white;
            border-color: #0d6efd;
        }
        .alert-light-custom {
            background-color: #fefce8;
            border: 1px solid #fde047;
            border-radius: 20px;
            padding: 0.75rem 1.25rem;
        }
        @media (max-width: 768px) {
            .stat-number { font-size: 1.6rem; }
            .fps-value { font-size: 2.5rem; }
            .control-bar { border-radius: 20px; justify-content: center; }
            .scene-buttons { justify-content: center; }
        }
        .legend-tip { font-size: 0.75rem; display: inline-flex; align-items: center; gap: 6px; }