.cps-game-area {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    user-select: none;
}

.settings {
    margin-bottom: 20px;
}

.time-options {
    display: inline-flex;
    gap: 10px;
    margin-top: 10px;
}

.time-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s;
}

.time-btn.active,
.time-btn:hover {
    background: #2196f3;
    color: white;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.click-area-wrapper {
    height: 300px;
    width: 100%;
}

.click-btn {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
    background: #4caf50;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 0 #388e3c;
    transition: all 0.05s;
    outline: none;
}

.click-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #388e3c;
    background: #43a047;
}

.click-btn.disabled {
    background: #ddd;
    box-shadow: none;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Result Modal Overlay */
.result-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    z-index: 10;
}

.result-modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 80%;
    max-width: 400px;
    border: 1px solid #eee;
}

.final-score {
    margin: 20px 0;
}

.final-score p {
    font-size: 2rem;
    font-weight: bold;
    color: #2196f3;
    margin: 0;
}

.sub-text {
    font-size: 1rem !important;
    color: #666 !important;
    font-weight: normal !important;
    margin-top: 5px !important;
}

.rank-message {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ff9800;
}

.rank-chart {
    margin-top: 40px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.rank-chart h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.rank-chart ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-chart li {
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
}