/* Задайте свои стили для главных кнопок*/
/* Главные кнопки */
.mode-btn {
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    margin: 5px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mode-btn:hover {
    background: linear-gradient(45deg, #6d28d9, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.mode-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-btn .subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
    font-weight: normal;
}

/* Ввод */
.input-area {
    padding: 20px 0;
}

.circle-input {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.circle-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.circle-letter {
    position: absolute;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #374151, #4b5563);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.circle-letter:active {
    transform: scale(0.9);
    background: #4b5563;
}

/* Всплывающие сообщения */
.floating-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 1000;
    animation: fadeOut 2s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Результаты */
.result-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.result-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.result-message {
    opacity: 0.9;
    margin-bottom: 20px;
}

.result-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.result-stats div {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.result-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

/* Добавьте в components.css */
.current-input {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 50px;
    align-items: center;
}

.input-letter {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============ АНИМАЦИИ ДЛЯ БУКВ ============ */

/* Прыгающая буква при клике */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounceClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(20deg); opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes rainbow {
    0% { background: linear-gradient(45deg, #ff6b6b, #ffa726); }
    25% { background: linear-gradient(45deg, #4ecdc4, #45b7d1); }
    50% { background: linear-gradient(45deg, #96ceb4, #ffeaa7); }
    75% { background: linear-gradient(45deg, #dda0dd, #98d8c8); }
    100% { background: linear-gradient(45deg, #feca57, #ff9ff3); }
}

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

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(139, 92, 246, 0.6);
        transform: scale(1.05);
    }
}

@keyframes confetti {
    0% { 
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Классы анимаций */
.bounce-in {
    animation: bounceIn 0.5s ease-out;
}

.bounce-click {
    animation: bounceClick 0.3s ease;
}

.float-up {
    animation: floatUp 1s ease-out forwards;
}

.spin-letter {
    animation: spin 0.8s linear;
}

.wobble-letter {
    animation: wobble 0.5s ease;
}

.rainbow-letter {
    animation: rainbow 2s infinite;
}

.shake-letter {
    animation: shake 0.3s ease;
}

.pulse-glow {
    animation: pulseGlow 1s infinite;
}

/* Специальные стили для анимированных букв */
.circle-letter.animated {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    z-index: 10;
}

.circle-letter.happy {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
}

.circle-letter.party {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
}

/* Эффект для найденных слов */
.letter-cell.revealed {
    background: linear-gradient(45deg, #059669, #10b981);
    border-color: #059669;
    transform: scale(1.05);
    animation: bounceIn 0.5s ease-out;
}

.letter-cell.celebrate {
    animation: bounceClick 0.5s ease, pulseGlow 1s infinite;
}
/* Дополнительные стили для анимаций */
.current-input.shake-letter {
    animation: shake 0.3s ease;
}

.input-letter {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.input-letter.bounce-in {
    animation: bounceIn 0.3s ease-out;
}

.input-letter.bounce-click {
    animation: bounceClick 0.3s ease;
}

.input-letter.pulse-glow {
    animation: pulseGlow 1s infinite;
}

/* Эффект для поля ввода при ошибке */
.input-area.error .input-letter {
    animation: shake 0.5s ease;
    background: linear-gradient(45deg, #ef4444, #dc2626);
}

/* Эффект для поля ввода при успехе */
.input-area.success .input-letter {
    animation: bounceClick 0.5s ease;
    background: linear-gradient(45deg, #10b981, #059669);
}

.circle-center {
    animation: none !important;
}