* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.current-level {
    text-align: center;
    margin-bottom: 40px;
}

.current-level h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #888;
}

.blinds {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.blind-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blind-info .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.blind-info .value {
    font-size: 48px;
    font-weight: 700;
    color: #4CAF50;
}

.timer-display {
    margin-bottom: 40px;
}

.timer {
    font-size: 96px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -4px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    width: 100%;
    transition: width 1s linear;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #333;
    color: white;
}

.btn-secondary:hover {
    background-color: #444;
}

.game-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.next-level, .stack-info {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.next-level h3, .stack-info h3 {
    font-size: 16px;
    color: #888;
    margin-bottom: 12px;
}

.next-blinds {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 18px;
}

.avg-stack {
    font-size: 24px;
    font-weight: 600;
    color: #4CAF50;
}

.bb-ratio {
    font-size: 16px;
    color: #888;
    margin-left: 8px;
}

.game-inputs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    justify-content: center;
}

.player-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.player-btn:hover {
    background-color: #45a049;
}

.player-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: white;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #888;
}

.settings-section select {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.settings-section label {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.settings-section input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.blind-inputs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 150px;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #888;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 600px) {
    .timer {
        font-size: 72px;
    }
    
    .blind-info .value {
        font-size: 36px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}