/* UI Components */

/* Mode Selector Active State */
.mode-active {
    color: white;
    border-bottom: 2px solid white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.mode-inactive {
    color: #666;
    border-bottom: 2px solid transparent;
}

.mode-inactive:hover {
    color: #aaa;
}

/* Keycap Style (Main App) */
.key-cap {
    background: linear-gradient(145deg, #1a1a1a, #111);
    border: 1px solid #333;
    border-bottom: 3px solid #222;
    border-radius: 6px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Big Timer Style */
.big-timer {
    position: absolute;
    top: -6rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: clamp(6rem, 20vw, 14rem);
    line-height: 1;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
}

/* New Record Animation */
.glow-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glowPulse 2s infinite;
}

/* Sudden Death Shake */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Skull Active Animation */
.skull-active {
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
    animation: skullPulse 2s infinite ease-in-out;
}

/* New Features CSS */
.zen-fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease;
}

.zen-transition {
    transition: opacity 0.5s ease;
}

/* Tutorial System */
#tutorial-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 999;
    display: none;
    pointer-events: auto;
}

#tutorial-overlay.active {
    display: block;
}

.tutorial-target {
    z-index: 1000 !important;
    position: relative !important;
    pointer-events: none !important;
    box-shadow: 0 0 0 2px #3b82f6, 0 0 15px rgba(59, 130, 246, 0.4) !important;
    border-radius: 8px !important;
    background: rgba(59, 130, 246, 0.1) !important;
    transition: all 0.3s ease;
}

/* Learning Mode Layout */
.learning-glass {
    background-color: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(16px);
}

.keyboard-grid {
    display: grid;
    gap: 4px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.key-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.v-key {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
    color: #666;
    transition: all 0.1s ease;
}

.v-key.active {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 0 15px currentColor;
    background: currentColor;
    z-index: 10;
}

/* Key Colors */
.vk-pink { color: #ec4899; }
.vk-purple { color: #8b5cf6; }
.vk-blue { color: #3b82f6; }
.vk-green { color: #10b981; }
.vk-yellow { color: #f59e0b; }
