* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    min-height: 100vh;
    overflow: hidden;
    color: #1e293b;
}

/* ============================================
   MAIN GAME CONTAINER
============================================ */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   TOP BAR - Tagline + Social Links
============================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0));
}

.tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.tagline-text {
    color: #64748b;
}

.tagline-highlight {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: #64748b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #6366f1;
}

/* ============================================
   HINT BADGE - In bottom right panel
============================================ */
.hint-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    animation: hintPulse 2s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.hint-badge.hidden {
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

@keyframes hintPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5); }
}

/* ============================================
   BOTTOM LEFT - Letter Indicator
============================================ */
.bottom-left-panel {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 50;
}

.letter-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.drawing-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-letter {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BOTTOM RIGHT - Step Counter + Progress
============================================ */
.bottom-right-panel {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.step-counter {
    background: white;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.step-current {
    font-size: 1.2rem;
    color: #6366f1;
}

.step-divider {
    color: #cbd5e1;
}

.step-total {
    color: #94a3b8;
}

.letter-progress {
    display: flex;
    gap: 6px;
    background: white;
    padding: 8px 12px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.letter-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.letter-box.active {
    border-color: #6366f1;
    color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.letter-box.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: white;
}

/* ============================================
   PHOTO REVEAL
============================================ */
.photo-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.photo-reveal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    filter: blur(20px) grayscale(100%);
    transition: all 0.5s ease;
    border-radius: 20px;
}

/* ============================================
   CANVAS
============================================ */
#drawingCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* ============================================
   DOTS
============================================ */
.dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.dot {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9) 0%, transparent 40%),
        linear-gradient(145deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
    border: 3px solid #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #451a03;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(180, 83, 9, 0.4),
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 -3px 6px rgba(120, 53, 15, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
    flex-direction: column;
    gap: 1px;
}

/* Googly Eyes */
.googly-eyes {
    display: flex;
    gap: 10px;
    margin-bottom: 1px;
}

.eye {
    width: 14px;
    height: 14px;
    background: 
        radial-gradient(circle at 35% 30%, #ffffff 0%, #ffffff 50%, #e5e7eb 100%);
    border-radius: 50%;
    border: 2px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.15),
        0 1px 2px rgba(255,255,255,0.8);
}

.pupil {
    width: 7px;
    height: 7px;
    background: 
        radial-gradient(circle at 35% 35%, #64748b 0%, #1e293b 60%, #000 100%);
    border-radius: 50%;
    transition: transform 0.1s ease-out;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.3);
    position: relative;
}

.pupil::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 2px;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
}

.dot-number {
    font-size: 0.85rem;
    line-height: 1;
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.6),
        0 -1px 0 rgba(0,0,0,0.2);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.dot:hover .eye {
    transform: scale(1.2);
    border-color: #1f2937;
}

.dot:hover .pupil {
    width: 8px;
    height: 8px;
}

/* Scared dot animation */
.dot.scared {
    animation: tremble 0.2s ease-in-out infinite;
    background: 
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9) 0%, transparent 40%),
        linear-gradient(145deg, #fca5a5 0%, #f87171 50%, #dc2626 100%);
    border-color: #991b1b;
    box-shadow: 
        0 6px 20px rgba(220, 38, 38, 0.5),
        inset 0 -3px 6px rgba(127, 29, 29, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

.dot.scared .eye {
    width: 16px;
    height: 18px;
    border-width: 2.5px;
}

.dot.scared .pupil {
    width: 5px;
    height: 5px;
}

@keyframes tremble {
    0%, 100% { transform: translate(-50%, -50%) rotate(-4deg) scale(0.98); }
    50% { transform: translate(-50%, -50%) rotate(4deg) scale(1.02); }
}

.dot:hover {
    transform: translate(-50%, -50%) scale(1.18);
    background: 
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95) 0%, transparent 40%),
        linear-gradient(145deg, #fde047 0%, #facc15 50%, #eab308 100%);
    border-color: #a16207;
    box-shadow: 
        0 10px 30px rgba(180, 83, 9, 0.5),
        0 4px 8px rgba(0,0,0,0.25),
        inset 0 -3px 6px rgba(120, 53, 15, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.6);
}

.dot.next {
    background: 
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8) 0%, transparent 40%),
        linear-gradient(145deg, #a5b4fc 0%, #818cf8 40%, #6366f1 100%);
    border: 4px solid rgba(255,255,255,0.9);
    color: white;
    animation: glowPulse 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.4), 
        0 0 30px rgba(99, 102, 241, 0.6),
        0 10px 30px rgba(99, 102, 241, 0.5),
        inset 0 -3px 6px rgba(67, 56, 202, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
}

.dot.next .dot-number {
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.3),
        0 0 10px rgba(255,255,255,0.5);
}

.dot.next .eye {
    border-color: rgba(255,255,255,0.9);
    background: 
        radial-gradient(circle at 35% 30%, #ffffff 0%, #e0e7ff 100%);
    width: 15px;
    height: 15px;
    box-shadow: 
        inset 0 2px 4px rgba(99, 102, 241, 0.2),
        0 2px 4px rgba(255,255,255,0.8);
}

.dot.next .pupil {
    background: 
        radial-gradient(circle at 35% 35%, #6366f1 0%, #3730a3 60%, #1e1b4b 100%);
    width: 8px;
    height: 8px;
}

.dot.completed {
    background: 
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8) 0%, transparent 40%),
        linear-gradient(145deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    border: 3px solid rgba(255,255,255,0.9);
    color: white;
    cursor: default;
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.5),
        inset 0 -3px 6px rgba(5, 150, 105, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

.dot.completed .dot-number {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dot.completed .googly-eyes {
    display: none;
}

.dot.completed .dot-number::after {
    content: ' ✓';
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 4px rgba(99, 102, 241, 0.4), 
            0 0 20px rgba(99, 102, 241, 0.5),
            0 8px 25px rgba(99, 102, 241, 0.4);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 
            0 0 0 8px rgba(99, 102, 241, 0.3), 
            0 0 40px rgba(99, 102, 241, 0.7),
            0 15px 40px rgba(99, 102, 241, 0.5);
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); }
    25% { transform: translate(-50%, -50%) translateX(-8px); }
    75% { transform: translate(-50%, -50%) translateX(8px); }
}

/* ============================================
   INFO POPUP - Shows story for each dot
   Positioned at very bottom, below all dots (dots max y is 75%)
============================================ */
.info-popup {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
    padding: 18px 26px;
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 0 0 2px rgba(245, 158, 11, 0.3),
        0 10px 40px rgba(245, 158, 11, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 520px;
    backdrop-filter: blur(10px);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 
            0 0 0 2px rgba(245, 158, 11, 0.3),
            0 10px 40px rgba(245, 158, 11, 0.2),
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255,255,255,0.9);
    }
    50% {
        box-shadow: 
            0 0 0 3px rgba(251, 191, 36, 0.5),
            0 0 30px rgba(245, 158, 11, 0.4),
            0 15px 50px rgba(245, 158, 11, 0.3),
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255,255,255,0.9);
    }
}

.info-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706, #f59e0b, #fbbf24);
    background-size: 300% 300%;
    animation: borderGlow 4s ease infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.info-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.popup-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0% { transform: scale(0) rotate(-20deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    70% { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.3px;
}

.popup-text {
    font-size: 0.95rem;
    color: #334155;
    max-width: 380px;
    line-height: 1.6;
    font-weight: 500;
}

/* ============================================
   COMPLETION SCREEN
============================================ */
.completion-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.completion-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.completion-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

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

.photo-frame {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.25);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.completion-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.completion-subtitle {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 5px;
}

.completion-subtitle strong {
    color: #6366f1;
}

.completion-role {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
}

.completion-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.completion-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    color: #475569;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.link-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.link-btn:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.3);
}

.link-btn.linkedin:hover {
    background: #0077b5;
}

.link-btn.twitter:hover {
    background: #000;
}

.link-btn.email:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.completion-tagline {
    font-size: 1rem;
    color: #64748b;
    font-style: italic;
    margin: 15px 0 25px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.1));
    border-radius: 12px;
    border-left: 3px solid #f59e0b;
}

.replay-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    margin-top: 10px;
}

.replay-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .topbar {
        padding: 15px 20px;
    }
    
    .tagline {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .hint-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .bottom-left-panel {
        left: 15px;
        bottom: 15px;
    }
    
    .bottom-right-panel {
        right: 15px;
        bottom: 15px;
    }
    
    .letter-indicator {
        padding: 10px 16px;
    }
    
    .current-letter {
        font-size: 1.8rem;
    }
    
    .letter-box {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .dot {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }
    
    .dot.next {
        width: 48px;
        height: 48px;
    }
    
    .info-popup {
        bottom: 20px;
        padding: 12px 16px;
        max-width: 92vw;
        gap: 10px;
    }
    
    .popup-icon {
        font-size: 1.8rem;
    }
    
    .popup-text {
        max-width: 220px;
        font-size: 0.8rem;
    }
    
    .popup-title {
        font-size: 1rem;
    }
    
    .completion-stats {
        gap: 25px;
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    .completion-links {
        flex-direction: column;
        align-items: center;
    }
    
    .link-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tagline-text {
        display: none;
    }
    
    .social-links {
        gap: 6px;
    }
    
    .letter-progress {
        display: none;
    }
    
    .hint-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
/* ============================================
   WITTY TOOLTIP - Shows on wrong dot click
============================================ */
.witty-tooltip {
    position: fixed;
    transform: translateX(-50%) translateY(-100%);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 9999;
    animation: tooltipBounce 0.4s ease-out;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.witty-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #dc2626;
}

.witty-tooltip.fade-out {
    animation: tooltipFadeOut 0.5s ease-out forwards;
}

@keyframes tooltipBounce {
    0% { transform: translateX(-50%) translateY(-80%) scale(0.5); opacity: 0; }
    60% { transform: translateX(-50%) translateY(-110%) scale(1.1); }
    100% { transform: translateX(-50%) translateY(-100%) scale(1); opacity: 1; }
}

@keyframes tooltipFadeOut {
    0% { transform: translateX(-50%) translateY(-100%) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-130%) scale(0.8); opacity: 0; }
}

/* ============================================
   LETTER CELEBRATION - Shows when letter complete
============================================ */
.letter-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    padding: 20px 40px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 9999;
    animation: celebrationPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.5);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.letter-celebration.fade-out {
    animation: celebrationFadeOut 0.6s ease-out forwards;
}

@keyframes celebrationPop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: translate(-50%, -50%) scale(1.2) rotate(3deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

@keyframes celebrationFadeOut {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ============================================
   SPEED COMMENT - On completion screen
============================================ */
.speed-section {
    margin-top: 15px;
    text-align: center;
}

#completionTime {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

#speedComment {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}