:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background: #f5f5f5;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.header {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.click-area {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: transform 0.2s;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#clickButton {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

#clickButton:hover {
    background: var(--secondary-color);
}

.result-container {
    display: none;
    background: rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border: 2px solid var(--primary-color);
}

.rank-badge {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.final-cps {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.retry-button {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.retry-button:hover {
    background: var(--primary-color);
}

@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}