/* ================================
   Click Speed - Layout
   ================================ */
.click-speed-main {
    min-height: calc(100vh - 80px);
    background: var(--light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
}

.click-speed-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.click-speed-header {
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(135deg, #EF476F 0%, #FF6B35 100%);
    color: white;
    text-align: center;
}

.click-speed-header .game-icon { font-size: 3rem; margin-bottom: 0.4rem; }
.click-speed-header .game-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 0.4rem; }
.click-speed-header .game-subtitle { font-size: 0.95rem; opacity: 0.9; }

.click-speed-body { padding: 1.75rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; }

/* ================================
   Count & Timer
   ================================ */
.cs-timer-box {
    background: var(--light);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #555;
}

.cs-timer-box span { color: var(--danger); font-size: 1.2rem; font-weight: 900; }

.cs-count {
    font-size: 5rem;
    font-weight: 900;
    color: var(--dark);
    text-align: center;
    line-height: 1;
    font-family: 'Righteous', cursive;
}

/* ================================
   Buttons
   ================================ */
.cs-start-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.cs-start-btn:hover:not(:disabled) { background: var(--primary); color: white; }
.cs-start-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.cs-tap-btn {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #EF476F 0%, #FF6B35 100%);
    border: none;
    border-radius: 16px;
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 6px 20px rgba(239,71,111,0.35);
    user-select: none;
    -webkit-user-select: none;
}

.cs-tap-btn:active:not(:disabled) { transform: scale(0.97); box-shadow: 0 2px 8px rgba(239,71,111,0.3); }
.cs-tap-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

/* ================================
   Result
   ================================ */
.cs-result {
    background: linear-gradient(135deg, #EF476F 0%, #FF6B35 100%);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    display: none;
    line-height: 1.7;
    animation: scaleIn 0.3s ease-out;
}

header .logo { text-decoration: none; color: white; }

.back-link {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding-top: 0.25rem;
    transition: color 0.2s;
}
.back-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ================================
   Responsive
   ================================ */
@media (max-width: 480px) {
    .click-speed-main { padding: 1.5rem 0.75rem 3rem; }
    .click-speed-body { padding: 1.25rem 1rem; }
    .cs-count { font-size: 4rem; }
    .cs-tap-btn { height: 120px; font-size: 1.4rem; }
}
