/**
 * Email Security Sweeper - Styles
 * Мультяшный игровой стиль
 */

/* ==================== БАЗОВЫЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== ЭКРАНЫ ==================== */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Специфичные display для разных экранов */
#start-screen.active {
    display: flex;
}

#gameover-screen.active {
    display: flex;
}

#highscores-screen.active {
    display: flex;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ==================== НАЧАЛЬНЫЙ ЭКРАН ==================== */
#start-screen {
    align-items: center;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.logo .emoji {
    font-size: 80px;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    color: #fff;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    letter-spacing: 2px;
}

.tagline {
    font-size: 20px;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==================== ПРАВИЛА ==================== */
.rules-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 4px solid #ffd700;
}

.rules-box h2 {
    font-family: 'Fredoka One', cursive;
    color: #ff6b6b;
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

.rules-content {
    margin-bottom: 20px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #4ecdc4;
}

.rule-item.warning {
    border-left-color: #ff6b6b;
    background: #fff5f5;
}

.rule-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.rule-text strong {
    color: #2c3e50;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.rule-text p {
    color: #7f8c8d;
    font-size: 15px;
}

/* ==================== УПРАВЛЕНИЕ ==================== */
.controls-info {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 20px;
    border: 3px solid #4caf50;
}

.controls-info h3 {
    text-align: center;
    color: #2e7d32;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 15px;
    font-size: 22px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.control-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 30px;
    border-radius: 12px;
    border: 3px solid #333;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 10px;
}

.control-btn:hover {
    transform: scale(1.1);
}

.open-demo {
    background: #4caf50;
}

.delete-demo {
    background: #ff6b6b;
}

.spam-demo {
    background: #ffa500;
}

.control-item span {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.control-item small {
    font-size: 12px;
    color: #7f8c8d;
}

/* ==================== КНОПКИ ==================== */
.start-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 18px 40px;
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    border: 4px solid #000;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 0 #000;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #000;
}

.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #000;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #000;
}

.btn-emoji {
    font-size: 24px;
}

/* ==================== ИГРОВОЙ ЭКРАН ==================== */
#game-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    margin: 20px auto;
    max-width: 1200px;
}

.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    color: white;
}

.header-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 12px;
    border-radius: 12px;
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.stat-value {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
}

.timer-value {
    color: #ffd700;
}

.lives-container {
    display: flex;
    gap: 5px;
}

.life {
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

.life.lost {
    filter: grayscale(100%);
    opacity: 0.3;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.header-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 10px;
    transition: width 0.3s;
    width: 0%;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #f44336, #ff5722);
    animation: progressPulse 0.5s infinite;
}

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

.progress-text {
    font-weight: bold;
    white-space: nowrap;
}

/* ==================== КОНТЕНТ ИГРЫ ==================== */
.game-content {
    padding: 20px;
}

.inbox-container {
    max-width: 900px;
    margin: 0 auto;
}

.inbox-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.inbox-header h2 {
    font-family: 'Fredoka One', cursive;
    color: #667eea;
    font-size: 24px;
}

.inbox-stats {
    display: flex;
    gap: 10px;
}

.stat-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.stat-badge.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #f44336;
}

/* ==================== СПИСОК ПИСЕМ ==================== */
.emails-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
}

.email-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
    border-left: 5px solid #4caf50;
    transition: transform 0.2s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.email-card:hover {
    transform: translateX(5px);
}

.email-card.phishing {
    border-left-color: #f44336;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.email-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.email-from {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.email-from.email-domain {
    color: #666;
    font-size: 14px;
}

.email-time {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

.email-subject {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 8px;
    font-weight: bold;
}

.email-preview {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.email-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    border: 3px solid #000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #000;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #000;
}

.action-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #000;
}

.btn-open {
    background: #4caf50;
    color: white;
}

.btn-delete {
    background: #ff6b6b;
    color: white;
}

.btn-spam {
    background: #ffa500;
    color: white;
}

/* ==================== МОДАЛЬНОЕ ОКНО ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    max-width: 700px;
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: modalSlide 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    transform: rotate(90deg);
    transition: transform 0.3s;
}

.modal-body {
    padding: 25px;
}

.email-meta {
    margin-bottom: 20px;
}

.meta-item {
    margin-bottom: 10px;
}

.meta-label {
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

.meta-value {
    color: #333;
}

.email-content {
    line-height: 1.6;
    color: #444;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* ==================== ВИРУСНАЯ АНИМАЦИЯ ==================== */
.virus-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.95);
    z-index: 2000;
    animation: shake 0.5s;
}

.virus-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.virus-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 20px;
}

.virus-emoji {
    font-size: 80px;
    display: inline-block;
    margin: 10px;
    animation: virusSpin 1s infinite;
}

.virus-emoji:nth-child(2) {
    animation-delay: 0.3s;
}

.virus-emoji:nth-child(3) {
    animation-delay: 0.6s;
}

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

.virus-text {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    margin: 20px 0;
    text-shadow: 3px 3px 0 #000;
    animation: pulse 0.5s infinite;
}

.virus-subtext {
    font-size: 24px;
    opacity: 0.9;
}

.virus-indicators {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    animation: fadeInUp 0.5s ease;
}

.virus-indicators h4 {
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.virus-indicators ul {
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

.virus-indicators li {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.virus-close-btn {
    margin-top: 30px;
    padding: 15px 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    background: white;
    color: #d32f2f;
    border: 4px solid #000;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 6px 0 #000;
    transition: all 0.2s;
    animation: pulse 2s infinite;
}

.virus-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #000;
    background: #ffeb3b;
}

.virus-close-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #000;
}

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

/* ==================== GAME OVER ==================== */
.gameover-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.gameover-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

#gameover-title {
    font-family: 'Fredoka One', cursive;
    font-size: 42px;
    color: #f44336;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #000;
}

.gameover-message {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.final-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.final-icon {
    font-size: 40px;
}

.final-content {
    text-align: left;
}

.final-label {
    display: block;
    font-size: 14px;
    color: #666;
}

.final-value {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    color: #667eea;
}

.save-score-form {
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.save-score-form h3 {
    font-family: 'Fredoka One', cursive;
    color: #667eea;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 3px solid #ddd;
    border-radius: 10px;
    font-family: 'Comic Neue', cursive;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.save-score-form .btn-primary {
    margin-bottom: 10px;
}

/* ==================== ТАБЛИЦА РЕКОРДОВ ==================== */
.highscores-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 700px;
}

.highscores-content h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 42px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0 #000;
}

.highscores-list {
    margin-bottom: 30px;
}

.highscore-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #ffd700;
}

.highscore-item:nth-child(1) {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 3px solid #000;
}

.highscore-item:nth-child(2) {
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
    border-left-color: #c0c0c0;
}

.highscore-item:nth-child(3) {
    background: linear-gradient(135deg, #cd7f32 0%, #e5a55d 100%);
    border-left-color: #cd7f32;
}

.highscore-rank {
    font-family: 'Fredoka One', cursive;
    font-size: 32px;
    width: 50px;
    text-align: center;
}

.highscore-name {
    flex: 1;
    font-weight: bold;
    font-size: 18px;
}

.highscore-scores {
    display: flex;
    gap: 20px;
    text-align: right;
}

.highscore-score {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    color: #667eea;
}

.highscore-date {
    font-size: 12px;
    color: #999;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #999;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 32px;
    }

    .logo .emoji {
        font-size: 60px;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .header-stats {
        grid-template-columns: 1fr;
    }

    .final-stats {
        grid-template-columns: 1fr;
    }

    .email-actions {
        flex-direction: column;
    }

    .inbox-header {
        flex-direction: column;
        text-align: center;
    }

    .inbox-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        margin: 20px;
    }

    .gameover-content {
        padding: 20px;
    }

    .highscores-content {
        padding: 20px;
    }
}

/* ==================== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ==================== */

/* Эффект конфетти при правильном ответе */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffd700;
    animation: confettiFall 3s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Эффект тряски при ошибке */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Эффект вспышки при правильном ответе */
.flash-green {
    animation: flashGreen 0.5s;
}

@keyframes flashGreen {
    0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 30px #4caf50; border-color: #4caf50; }
}

/* Эффект вспышки при ошибке */
.flash-red {
    animation: flashRed 0.5s;
}

@keyframes flashRed {
    0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 30px #f44336; border-color: #f44336; }
}

/* Плавающая анимация для кнопок */
.btn-primary,
.btn-secondary {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.btn-primary:hover,
.btn-secondary:hover {
    animation: none;
}

/* Свечение для карточек писем */
.email-card {
    transition: all 0.3s;
}

.email-card:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transform: translateX(5px) scale(1.02);
}

/* Эффект печатания для текста */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #667eea;
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #667eea }
}

/* Радужный градиент для особых достижений */
.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease infinite;
}

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

/* Эффект появления частиц */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: particleExplode 1s ease-out forwards;
    pointer-events: none;
}

@keyframes particleExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Пульсирующий эффект для срочных писем */
.urgent {
    animation: urgentPulse 1s infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
}

/* Эффект увеличения для высоких очков */
.score-popup {
    position: fixed;
    font-family: 'Fredoka One', cursive;
    font-size: 36px;
    color: #ffd700;
    text-shadow: 2px 2px 0 #000;
    animation: scorePopup 1s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes scorePopup {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* Эффект загрузки */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Эффект переворота карточки */
.flip {
    animation: flipCard 0.6s;
}

@keyframes flipCard {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0); }
}

/* Неоновое свечение */
.neon {
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff00de,
        0 0 30px #ff00de,
        0 0 40px #ff00de;
}

/* 3D эффект для кнопок */
.btn-3d {
    transform-style: preserve-3d;
    transition: all 0.3s;
}

.btn-3d:hover {
    transform: rotateX(10deg) rotateY(-10deg) scale(1.05);
}

/* Волнистая анимация */
.wave {
    animation: wave 2s ease-in-out infinite;
}

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

/* Глитч-эффект для фишинга */
.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Плавное появление элементов */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

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