 :root { 
            --accent-color: #581c87;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --butterfly-color: #8b5cf6;
            --timer-color: #6f42c1;
        }
        
         
        .page-header {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(126, 34, 206, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(126, 34, 206, 0.2);
            position: relative;
            overflow: hidden;  color: var(--text-color);
        } 
         
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        
      
        /* Game Container */
        .game-container {
            background: linear-gradient(135deg, rgba(126, 34, 206, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }
        
        .game-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--butterfly-color);
            margin-bottom: 1rem;
        }
        
        .click-area {
            background-color: white;
            border-radius: 10px;
            padding: 3rem 2rem;
            margin: 1.5rem auto;
            border: 3px dashed var(--butterfly-color);
            cursor: pointer;
            transition: all 0.3s ease;
            max-width: 600px;
            min-height: 250px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            user-select: none;
        }
        
        .click-area:hover {
            background-color: rgba(139, 92, 246, 0.05);
            border-color: var(--accent-color);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .click-area:active {
            transform: translateY(0);
            background-color: rgba(139, 92, 246, 0.15);
        }
        
        .click-area.clicking {
            background-color: rgba(139, 92, 246, 0.2);
            border-style: solid;
            border-color: var(--danger-color);
        }
        
        .click-instruction {
            font-size: 1.5rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }
        
        .click-count {
            font-size: 4rem;
            font-weight: 800;
            color: var(--butterfly-color);
            margin: 0.5rem 0;
            font-family: 'Courier New', monospace;
        }
        
        .timer-display {
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--timer-color);
            margin: 0.5rem 0;
            font-family: 'Courier New', monospace;
        }
        
        .cps-display {
            font-size: 2rem;
            font-weight: 600;
            color: var(--primary-color);
            margin: 0.5rem 0;
        }
        
        /* Control Buttons */
        .btn-butterfly {
            background-color: var(--butterfly-color);
            border-color: var(--butterfly-color);
            color: white;
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            transition: all 0.3s;
            margin: 0.5rem;
        }
        
        .btn-butterfly:hover {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .btn-butterfly:active {
            transform: translateY(0);
        }
        
        .btn-butterfly:disabled {
            background-color: #ccc;
            border-color: #ccc;
            cursor: not-allowed;
            transform: none;
        }
        
        .btn-outline-butterfly {
            background-color: white;
            border-color: var(--butterfly-color);
            color: var(--butterfly-color);
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            transition: all 0.3s;
            margin: 0.5rem;
        }
        
        .btn-outline-butterfly:hover {
            background-color: rgba(139, 92, 246, 0.1);
            transform: translateY(-2px);
        }
        
        /* Timer Options */
        .timer-options {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        
        .timer-btn {
            background-color: rgba(111, 66, 193, 0.1);
            border: 2px solid rgba(111, 66, 193, 0.3);
            border-radius: 6px;
            padding: 0.5rem 1.5rem;
            font-weight: 600;
            color: var(--timer-color);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .timer-btn:hover {
            background-color: rgba(111, 66, 193, 0.2);
            transform: translateY(-2px);
        }
        
        .timer-btn.active {
            background-color: var(--timer-color);
            border-color: var(--timer-color);
            color: white;
        }
        
        /* Results Section */
        .result-container {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border: 1px solid var(--border-color);
        }
        
        .result-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .stat-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.25rem;
            text-align: center;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--butterfly-color);
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            color: var(--text-muted);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* History Table */
        .history-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .history-table th, .history-table td {
            padding: 0.75rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        
        .history-table th {
            background-color: var(--light-gray);
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .history-table tr:nth-child(even) {
            background-color: rgba(126, 34, 206, 0.05);
        }
        
        /* Chart Container */
        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
            margin: 2rem 0;
        }
        
        /* Content Sections */
        .section-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        /* Butterfly-specific elements */
        .butterfly-tip-box {
            background-color: rgba(139, 92, 246, 0.05);
            border-left: 3px solid var(--butterfly-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        .butterfly-step {
            display: flex;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background-color: rgba(139, 92, 246, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(139, 92, 246, 0.1);
        }
        
        .butterfly-step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--butterfly-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin-right: 1rem;
            flex-shrink: 0;
        }
        
        .butterfly-step-content {
            flex-grow: 1;
        }
        
        /* Tips & Tricks */
        .tips-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .tip-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .tip-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: rgba(139, 92, 246, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--butterfly-color);
            font-size: 1.5rem;
        }
         
        /* Leaderboard */
        .leaderboard {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .leaderboard-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .leaderboard-item:last-child {
            border-bottom: none;
        }
        
        .leaderboard-rank {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .leaderboard-rank.top {
            background-color: gold;
            color: #333;
        }
        
        .leaderboard-name {
            flex-grow: 1;
            font-weight: 500;
        }
        
        .leaderboard-score {
            font-weight: 700;
            color: var(--butterfly-color);
            font-family: 'Courier New', monospace;
        }
        
        /* Progress Bar */
        .progress-container {
            width: 100%;
            background-color: #e9ecef;
            border-radius: 10px;
            margin: 1.5rem 0;
            overflow: hidden;
            height: 10px;
        }
        
        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--butterfly-color) 0%, var(--primary-color) 100%);
            border-radius: 10px;
            transition: width 0.3s ease;
        }
        
        /* Action buttons */
        .action-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.5rem 1rem;
            margin-left: 0.5rem;
            transition: all 0.3s;
            color: var(--text-color);
        }
        
        .action-btn:hover {
            background-color: var(--light-gray);
            color: var(--primary-color);
        }
        
        /* Animation for clicks */
        @keyframes clickPulse {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }
        
        .click-pulse {
            animation: clickPulse 0.1s ease;
        }
        
        /* Badge for high scores */
        .badge-cps {
            display: inline-block;
            padding: 0.25em 0.6em;
            font-size: 75%;
            font-weight: 700;
            line-height: 1;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: 10rem;
            background-color: var(--butterfly-color);
            color: white;
            margin-left: 0.5rem;
        }
        
        /* Result Modal */
        .result-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1100;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .result-modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        
        .result-modal {
            background-color: white;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }
        
        .result-modal-overlay.show .result-modal {
            transform: translateY(0);
        }
        
        .result-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .result-modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--butterfly-color);
            margin: 0;
        }
        
        .result-modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }
        
        .result-modal-close:hover {
            background-color: var(--light-gray);
            color: var(--text-color);
        }
        
        .result-modal-body {
            margin-bottom: 1.5rem;
        }
        
        .result-modal-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .result-modal-stat {
            text-align: center;
            padding: 1rem;
            border-radius: 8px;
            background-color: var(--light-gray);
        }
        
        .result-modal-stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--butterfly-color);
            margin-bottom: 0.25rem;
        }
        
        .result-modal-stat-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        .result-modal-message {
            text-align: center;
            padding: 1rem;
            border-radius: 8px;
            background-color: rgba(126, 34, 206, 0.1);
            margin-top: 1.5rem;
            font-size: 1.1rem;
        }
        
        .result-modal-highlight {
            color: var(--danger-color);
            font-weight: 700;
        }
        
        .result-modal-actions {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        /* Toast Container */
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1050;
        }
        
        /* Ad Container */
        .ad-container {
            margin-bottom: 1.5rem;
        }
        
        .ad-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }
        
        .ad-placeholder {
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            color: var(--text-muted);
            background-color: var(--light-gray);
        }
        
        /* Usage Steps */
        .usage-step {
            display: flex;
            margin-bottom: 1.5rem;
        }
        
        .step-number {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--butterfly-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin-right: 1rem;
            flex-shrink: 0;
        }
        
        .step-content {
            flex-grow: 1;
        }
        
        /* FAQ Section */
        .faq-section {
            margin-top: 1.5rem;
        }
        
        /* Footer */
        .footer {
            background-color: var(--light-gray); 
            margin-top: 3rem;
            padding: 2rem 0;
            border-top: 1px solid var(--border-color);
        }
        
        .social-icons {
            margin-top: 1rem;
        }
        
        .social-icon {
            display: inline-block;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(126, 34, 206, 0.1);
            color: var(--primary-color);
            text-align: center;
            line-height: 36px;
            margin-right: 0.5rem;
            transition: all 0.3s;
        }
        
        .social-icon:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-3px);
        }
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .tool-card {
                padding: 1.5rem;
            }
            
            .click-count {
                font-size: 3rem;
            }
            
            .timer-display {
                font-size: 2.5rem;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .tips-grid {
                grid-template-columns: 1fr;
            }
        }