/* ============================================================
   AncientFit Athlete Timer - Clean Organized CSS
   ============================================================ */

/* ============================================================
   SECTION 1: LAUNCH SECTION (Homepage)
   ============================================================ */

.athlete-timer-section {
    margin: 40px 0;
    padding: 20px;
}

.athlete-timer-container {
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.athlete-timer-container:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.timer-header {
    margin-bottom: 24px;
}

.timer-icon {
    position: relative;
    display: inline-block;
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 16px;
}

.timer-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
}

.timer-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 16px;
}

.fitness-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 16px auto 0;
}

/* Launch Button */
.timer-launcher {
    margin-top: 24px;
}

.launch-timer-btn {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border: none;
    border-radius: 60px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.launch-timer-btn i {
    flex-shrink: 0;
}

.launch-timer-btn span {
    white-space: nowrap;
}

.launch-timer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.launch-timer-btn:active {
    transform: translateY(0);
}

.timer-feature-hint {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.timer-feature-hint i {
    margin-right: 4px;
}

/* ============================================================
   SECTION 2: VERIFICATION MODAL
   ============================================================ */

.timer-verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.timer-verification-card {
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px 32px;
    width: 90%;
    max-width: 420px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.timer-verification-header {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 8px 0;
}

.timer-verification-icon {
    text-align: center;
    font-size: 56px;
    color: #ffd700;
    margin-bottom: 20px;
}

.timer-verification-card h3 {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timer-verification-card p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 28px;
}

.timer-verification-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.timer-verification-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.12);
}

.timer-verification-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.timer-verification-error {
    color: #ff6b6b;
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    display: none;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.timer-verification-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border: none;
    border-radius: 40px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.timer-verification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.timer-verification-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* ============================================================
   SECTION 3: TIMER MODAL
   ============================================================ */

.timer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;           /* ← ADD THIS - prevents body scroll */
}

.timer-modal {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;           /* ← ADD THIS - limits height */
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;           /* ← ADD THIS - enables scrolling */
    overflow-x: hidden;         /* ← ADD THIS - prevents horizontal scroll */
}

/* Optional: style the scrollbar */
.timer-modal::-webkit-scrollbar {
    width: 6px;
}

.timer-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.timer-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.timer-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}

/* Minimized State */
.timer-modal.minimized {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    width: 280px;
    height: 70px;
    border-radius: 40px;
    cursor: pointer;
}

.timer-modal.minimized .timer-main-content {
    display: none;
}

.timer-modal.minimized .timer-minimized-content {
    display: flex;
}

/* Maximized State */
.timer-modal.maximized {
    width: 95vw;
    height: 95vh;
    max-width: none;
    border-radius: 24px;
}

/* Timer Modal Header */
.timer-modal .timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.timer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-title i {
    font-size: 24px;
    color: #ffd700;
}

.timer-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.timer-controls {
    display: flex;
    gap: 12px;
}

.timer-control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.timer-control-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

/* Timer Main Content */
.timer-main-content {
    padding: 24px;
}

/* Athlete Profile */
.athlete-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.athlete-flag {
    font-size: 32px;
    flex-shrink: 0;
}

.athlete-info {
    flex: 1;
    min-width: 0;
}

.athlete-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    word-break: break-word;
}

.athlete-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    word-break: break-all;
}

.athlete-badge {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10px;
    color: #ffd700;
    flex-shrink: 0;
}

/* Time Cap Presets */
.time-cap-presets {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.preset-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

/* Timer Display */
.timer-display {
    text-align: center;
    margin-bottom: 24px;
}

.timer-digits {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.timer-digits.warning {
    color: #ffb347;
    text-shadow: 0 0 20px rgba(255, 179, 71, 0.5);
    animation: pulse 1s infinite;
}

.timer-digits.critical {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    animation: pulse 0.5s infinite;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.toggle-switch {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
}

.toggle-option {
    padding: 10px 24px;
    border-radius: 36px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
}

.toggle-option.active {
    background: rgba(255, 215, 0, 0.25);
    color: #ffd700;
}

/* Heart Rate Display */
.heart-rate-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 60px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.heart-rate-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.heart-rate-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
}

.heart-rate-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.heart-rate-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.heart-rate-status.connected {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

/* Weather Widget */
.weather-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-icon {
    font-size: 28px;
    color: #ffd700;
}

.weather-temp {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.weather-condition {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.timezone-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Timer Actions */
.timer-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timer-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timer-btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2e;
}

.timer-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.timer-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.timer-btn-danger {
    background: rgba(255, 68, 68, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.timer-btn-danger:hover {
    background: rgba(255, 68, 68, 0.3);
}

/* Garmin Sync Button */
.garmin-sync-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0, 100, 255, 0.15);
    border: 1px solid rgba(0, 100, 255, 0.3);
    border-radius: 40px;
    color: #4d9eff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.garmin-sync-btn:hover {
    background: rgba(0, 100, 255, 0.25);
}

/* Minimized Content */
.timer-minimized-content {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    height: 100%;
}

.minimized-time {
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.minimized-heart {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ff6b6b;
}

/* Polar Sync Button */
.polar-sync-btn {
    background: linear-gradient(135deg, #ff4d4d, #e63946);
    border: none;
    border-radius: 40px;
    padding: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.polar-sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.3);
}

.polar-sync-btn:active {
    transform: translateY(0);
}

/* ============================================================
   CRYPTOGRAPHIC COACH PANEL
   ============================================================ */

.crypto-coach-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.crypto-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.crypto-hash {
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 12px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.crypto-current {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-bottom: 12px;
}

.crypto-exercise-name {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
}

.crypto-exercise-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.crypto-form-cue {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.crypto-timer {
    text-align: center;
    font-size: 36px;
    font-family: monospace;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 12px;
}

.crypto-hidden {
    text-align: center;
    padding: 24px;
}

.crypto-hidden i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    display: block;
}

.crypto-hidden span {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
}

.crypto-progress {
    margin-top: 12px;
}

.crypto-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.crypto-progress-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 8px;
}

/* ============================================================
   SECTION 4: ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   SECTION 5: RESPONSIVE DESIGN
   ============================================================ */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .athlete-timer-section {
        margin: 30px 0;
        padding: 16px;
    }
    
    .athlete-timer-container {
        padding: 24px 20px;
    }
    
    .timer-header h3 {
        font-size: 24px;
    }
    
    .launch-timer-btn {
        padding: 12px 24px;
        font-size: 16px;
        gap: 10px;
    }
    
    .timer-feature-hint {
        gap: 16px;
        font-size: 11px;
    }
    
    .timer-digits {
        font-size: 56px;
        letter-spacing: 6px;
    }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
    .athlete-timer-section {
        margin: 20px 0;
        padding: 12px;
    }
    
    .athlete-timer-container {
        padding: 20px 16px;
    }
    
    .timer-icon {
        font-size: 40px;
    }
    
    .timer-header h3 {
        font-size: 20px;
    }
    
    .timer-subtitle {
        font-size: 12px;
    }
    
    .launch-timer-btn {
        padding: 10px 20px;
        font-size: 14px;
        gap: 8px;
        white-space: normal;
    }
    
    .launch-timer-btn span {
        white-space: normal;
    }
    
    .timer-feature-hint {
        flex-direction: column;
        gap: 8px;
        font-size: 10px;
    }
    
    .timer-modal {
        width: 95%;
    }
    
    .timer-digits {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .preset-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .toggle-option {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .heart-rate-value {
        font-size: 22px;
    }
    
    .timer-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .athlete-profile {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .athlete-info {
        text-align: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .athlete-timer-section {
        margin: 16px 0;
        padding: 8px;
    }
    
    .athlete-timer-container {
        padding: 16px 12px;
    }
    
    .timer-icon {
        font-size: 36px;
    }
    
    .timer-header h3 {
        font-size: 18px;
    }
    
    .timer-subtitle {
        font-size: 11px;
    }
    
    .launch-timer-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .timer-feature-hint {
        font-size: 9px;
        gap: 6px;
    }
    
    .timer-digits {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .fitness-divider {
        width: 40px;
        margin: 12px auto 0;
    }
}

/* Ultra Small (max-width: 380px) */
@media (max-width: 380px) {
    .timer-digits {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .preset-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .toggle-option {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .timer-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}
/* ============================================================
   ADDITIONS TO athlete-timer.css
   Append these blocks at the bottom of your existing file.
   ============================================================ */


/* ============================================================
   TIME CAP TABS (Presets / Custom switcher)
   ============================================================ */

.time-cap-section {
    margin-bottom: 28px;
}

.time-cap-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.time-cap-tab {
    padding: 8px 24px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.time-cap-tab.active {
    background: rgba(255, 215, 0, 0.18);
    border-color: #ffd700;
    color: #ffd700;
}

/* Make presets wrap more on small screens */
.time-cap-presets {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}


/* ============================================================
   SCROLL PICKER (Custom time cap)
   ============================================================ */

.time-cap-custom {
    padding: 8px 0;
}

.scroll-picker-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 12px 20px;
    position: relative;
    /* Selection highlight bar */
    overflow: hidden;
}

/* Center selection highlight */
.scroll-picker-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    height: 44px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.scroll-picker-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 80px;
}

.scroll-picker-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 215, 0, 0.6);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.scroll-picker-sep {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 4px;
    line-height: 44px;
    /* Align with the center row */
    margin-top: 22px;
}

.scroll-picker-drum {
    height: 132px; /* 3 items visible (44px each) */
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    z-index: 2;
    /* Fade top and bottom items */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.4) 20%,
        black 40%,
        black 60%,
        rgba(0,0,0,0.4) 80%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.4) 20%,
        black 40%,
        black 60%,
        rgba(0,0,0,0.4) 80%,
        transparent 100%
    );
}

.scroll-picker-drum::-webkit-scrollbar {
    display: none;
}

/* Padding so first and last items can center */
.scroll-picker-drum::before,
.scroll-picker-drum::after {
    content: '';
    display: block;
    height: 44px;
}

.scroll-picker-item {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    scroll-snap-align: center;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.scroll-picker-item.selected,
.scroll-picker-item:hover {
    color: rgba(255, 255, 255, 0.95);
}

.scroll-picker-item.selected {
    color: #ffd700;
}


/* ============================================================
   COUNTDOWN OVERLAY (10-second preparation)
   ============================================================ */

.timer-display {
    position: relative;
}

.timer-countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 20, 0.92);
    border-radius: 16px;
    z-index: 5;
}

.countdown-number {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 80px;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
    animation: countdownPop 0.9s ease;
}

.countdown-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

@keyframes countdownPop {
    0%   { transform: scale(1.4); opacity: 0.5; }
    20%  { transform: scale(1.0); opacity: 1;   }
    85%  { transform: scale(1.0); opacity: 1;   }
    100% { transform: scale(0.8); opacity: 0.3; }
}


/* ============================================================
   RESPONSIVE OVERRIDES for new components
   ============================================================ */

@media (max-width: 640px) {
    .scroll-picker-drum {
        height: 132px;
    }

    .scroll-picker-item {
        font-size: 18px;
    }

    .countdown-number {
        font-size: 64px;
    }

    .time-cap-tab {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .scroll-picker-item {
        font-size: 16px;
    }

    .countdown-number {
        font-size: 52px;
    }

    .scroll-picker-wrapper {
        padding: 10px 12px;
    }
}

@media (max-width: 380px) {
    .scroll-picker-item {
        font-size: 14px;
    }

    .countdown-number {
        font-size: 42px;
    }
}