        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #2c3e50, #1a1a2e);
            color: #fff;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            padding: 20px;
        }

        .container {
            width: 100%;
            max-width: 900px;
            padding: 20px;
            position: relative;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        h1 {
            font-size: 2.5rem;
            color: #f0f0f0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .timer-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .player-timer {
            background: linear-gradient(145deg, #34495e, #2c3e50);
            border-radius: 15px;
            padding: 70px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .player-timer.active {
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
            transform: scale(1.02);
        }

        .player-name {
            font-size: 1.5rem;
            margin-bottom: 15px;
            text-align: center;
            color: #ecf0f1;
        }

        .time-display {
            font-size: 4rem;
            font-weight: bold;
            font-variant-numeric: tabular-nums;
            color: #ecf0f1;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            margin: 10px 0;
        }

        .player-white {
            background: linear-gradient(145deg, #ecf0f1, #bdc3c7);
        }

        .player-white .player-name,
        .player-white .time-display {
            color: #2c3e50;
        }

        .player-black {
            background: linear-gradient(145deg, #2c3e50, #1a1a2e);
        }

        .controls-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 20px 0;
            gap: 15px;
        }

        .main-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            width: 100%;
        }

        .settings-control {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        button {
            padding: 12px 25px;
            font-size: 1rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            background: linear-gradient(145deg, #3498db, #2980b9);
            color: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }

        button:active {
            transform: translateY(0);
        }

        button:disabled {
            background: linear-gradient(145deg, #95a5a6, #7f8c8d);
            cursor: not-allowed;
            transform: none;
        }

        #startBtn {
            background: linear-gradient(145deg, #2ecc71, #27ae60);
        }

        #pauseBtn {
            background: linear-gradient(145deg, #e74c3c, #c0392b);
        }

        #resetBtn {
            background: linear-gradient(145deg, #e67e22, #d35400);
        }

        #settingsBtn {
            background: linear-gradient(145deg, #9b59b6, #8e44ad);
            padding: 12px 30px;
        }

        .settings-panel {
            background: linear-gradient(145deg, #34495e, #2c3e50);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            width: 90%;
            max-width: 400px;
        }

        .settings-panel.active {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            visibility: visible;
        }

        .settings-panel h2 {
            text-align: center;
            margin-bottom: 15px;
            color: #ecf0f1;
        }

        .time-inputs {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .input-group label {
            margin-bottom: 5px;
            color: #ecf0f1;
        }

        .input-group input {
            width: 80px;
            padding: 10px;
            border: none;
            border-radius: 8px;
            text-align: center;
            font-size: 1.1rem;
            background: #ecf0f1;
            box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .apply-settings {
            display: block;
            margin: 0 auto;
            background: linear-gradient(145deg, #2ecc71, #27ae60);
            width: 100%;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 99;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .low-time {
            color: #e74c3c !important;
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        /* Desktop layout - landscape */
        @media (min-width: 769px) {
            .timer-container {
                flex-direction: row;
                justify-content: space-between;
            }
            
            .controls-container {
                margin: 30px 0;
            }
        }

        /* Mobile layout - portrait */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .container {
                padding: 10px;
            }
            
            h1 {
                font-size: 2rem;
                text-align: center;
            }
            
            .header {
                flex-direction: column;
                gap: 10px;
                margin-bottom: 15px;
            }
            
            .timer-container {
                flex-direction: column;
            }
            
            .player-white {
                order: 1;
            }
            
            .player-black {
                order: 3;
            }
            
            .controls-container {
                order: 2;
                margin: 15px 0;
                flex-direction: column;
                gap: 10px;
            }
            
            .time-display {
                font-size: 3.5rem;
            }
            
            .main-controls {
                flex-wrap: wrap;
            }
            
            button {
                padding: 12px 20px;
                font-size: 0.9rem;
            }
            
            #settingsBtn {
                padding: 12px 25px;
            }

            .player-white {
                rotate: 180deg;
            }

            .header h1 {
                display: none;
            }

            .settings-control {
            display: flex;
            justify-content: center;
            }
        }