* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            min-height: 100vh;
            width: 100%;
            background: linear-gradient(145deg, #1a2a3a 0%, #0f1a24 100%);
            font-family: system-ui, 'Segoe UI', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
        }

        .tap-zone {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1;
        }

        .counter-panel {
            text-align: center;
            background: rgba(10, 20, 28, 0.55);
            backdrop-filter: blur(8px);
            border-radius: 3.5rem;
            padding: 2rem 2.5rem;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
            min-width: 260px;
        }

        .counter-value {
            font-size: 6rem;
            font-weight: 800;
            background: linear-gradient(135deg, #FFF6E0, #FFE6B3);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
            line-height: 1.2;
            margin-bottom: 0.5rem;
        }

        .target-display {
            font-size: 1.2rem;
            color: #CDE9FF;
            background: rgba(0, 0, 0, 0.4);
            display: inline-block;
            padding: 0.3rem 1rem;
            border-radius: 60px;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .target-display:hover {
            transform: scale(1.05);
        }

        .increment-hint {
            font-size: 2rem;
            font-weight: 600;
            color: #CDE9FF;
            background: rgba(0, 0, 0, 0.4);
            display: inline-block;
            padding: 0.3rem 1.2rem;
            border-radius: 60px;
        }

        .tap-label {
            font-size: 0.85rem;
            margin-top: 0.75rem;
            color: #afcdff;
            opacity: 0.7;
        }

        .victory-badge {
            margin-top: 0.75rem;
            font-size: 0.9rem;
            color: #FFD700;
            font-weight: bold;
            display: none;
        }

        .victory-badge.show {
            display: block;
            animation: pulse 0.5s ease;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .top-controls {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 20;
        }

        .target-btn {
            background: rgba(20, 30, 40, 0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 215, 150, 0.5);
            border-radius: 60px;
            padding: 10px 20px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #FFE5B4;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }

        .refresh-btn {
            position: fixed;
            bottom: 24px;
            left: 24px;
            z-index: 20;
            background: rgba(20, 30, 40, 0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 215, 150, 0.5);
            border-radius: 60px;
            padding: 12px 24px;
            font-size: 1.1rem;
            font-weight: 600;
            color: #FFE5B4;
            cursor: pointer;
            font-family: inherit;
        }

        /* MODAL DIALOG STYLES - Browser API */
        dialog {
            border: none;
            border-radius: 2rem;
            background: rgba(20, 35, 50, 0.95);
            backdrop-filter: blur(20px);
            color: white;
            padding: 0;
            max-width: 90vw;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 215, 150, 0.3);
        }
        
        dialog::backdrop {
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }
        
        .modal-content {
            padding: 2rem;
            min-width: 280px;
        }
        
        .modal-content h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: #FFE5B4;
            text-align: center;
        }
        
        .modal-content input {
            width: 100%;
            padding: 1rem;
            font-size: 1.2rem;
            border: 2px solid rgba(255, 215, 150, 0.5);
            border-radius: 1rem;
            background: rgba(10, 20, 28, 0.8);
            color: white;
            font-family: monospace;
            text-align: center;
            margin-bottom: 1.5rem;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .modal-content input:focus {
            border-color: #FFD700;
        }
        
        .modal-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }
        
        .modal-buttons button {
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            border: none;
            border-radius: 2rem;
            cursor: pointer;
            font-weight: 600;
            transition: transform 0.1s;
        }
        
        .modal-buttons button:active {
            transform: scale(0.95);
        }
        
        .confirm-btn {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }
        
        .cancel-btn {
            background: rgba(100, 100, 100, 0.5);
            color: #FFE5B4;
        }
        
        @media (max-width: 550px) {
            .counter-value { font-size: 4.5rem; }
            .modal-content { padding: 1.5rem; min-width: 240px; }
        }
