/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Оптимизация для тач-устройств */
button, a, .gallery-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-blue: #1e3a5f;
    --accent-red: #8b0000;
    --accent-green: #006400;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a3a;
    --glow-red: rgba(255, 0, 0, 0.5);
    --glow-green: rgba(0, 255, 0, 0.5);
    --glow-blue: rgba(0, 100, 255, 0.3);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 390px;
    background-image:
        radial-gradient(ellipse at top, rgba(30, 58, 95, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    overscroll-behavior: none;
}

/* Шапка */
.header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 2px solid var(--accent-blue);
    padding: 20px 0;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 20px var(--glow-blue);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    width: 140px;
    height: auto;
    filter: brightness(1.2) hue-rotate(0deg);
    animation: logo-rainbow 5s linear infinite, pulse-glow 3s ease-in-out infinite;
}

@keyframes logo-rainbow {
    0% { filter: brightness(1.2) hue-rotate(0deg) drop-shadow(0 0 10px var(--glow-blue)); }
    25% { filter: brightness(1.3) hue-rotate(90deg) drop-shadow(0 0 15px #00ff00); }
    50% { filter: brightness(1.4) hue-rotate(180deg) drop-shadow(0 0 20px #ff00ff); }
    75% { filter: brightness(1.3) hue-rotate(270deg) drop-shadow(0 0 15px #ffff00); }
    100% { filter: brightness(1.2) hue-rotate(360deg) drop-shadow(0 0 10px var(--glow-blue)); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.header-text {
    flex: 1;
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 12px;
    background: linear-gradient(90deg, #1e3a5f, #00ffff, #1e90ff, #00ffff, #1e3a5f);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 4s linear infinite;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(30, 144, 255, 0.8));
}

@keyframes title-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    line-height: 1.5;
}

/* Главный контент */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.scan-title {
    text-align: center;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 40px;
    background: linear-gradient(180deg, #fff 0%, #ff0000 50%, #8b0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.6)) drop-shadow(0 0 50px rgba(255, 0, 0, 0.4));
    }
}

.scan-title::after {
    content: 'НАЙТИ ПРИЧИНУ ДЛЯ БАНА';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255,0,0,0.5) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(30px);
    z-index: -1;
    animation: title-pulse 2s ease-in-out infinite;
}

@keyframes title-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Настройки */
.settings-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Промо текст */
.promo-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.promo-link {
    color: #00ffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #00ffff, #00ff00, #00ffff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: link-shimmer 3s linear infinite;
    transition: all 0.3s ease;
    position: relative;
}

.promo-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #00ff00, #00ffff);
    background-size: 200% 100%;
    animation: link-shimmer 3s linear infinite;
}

@keyframes link-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.promo-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px #00ffff);
}

.promo-hint {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 8px;
    letter-spacing: 1px;
    font-style: italic;
}

/* Игровая зона */
.game-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 40px;
}

/* Причины НА изображении */
.reason-display-overlay {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.reason-display-overlay.active {
    opacity: 1;
    animation: reason-card-appear 0.3s ease-out forwards;
}

@keyframes reason-card-appear {
    0% {
        transform: translateX(-50%) translateY(50px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

.reason-card {
    background: rgba(10, 10, 15, 0.95);
    border: 5px solid;
    border-radius: 20px;
    padding: 30px 40px;
    backdrop-filter: blur(10px);
}

.reason-card.violation {
    border-color: #ff0000;
    background: rgba(139, 0, 0, 0.95);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8), inset 0 0 20px rgba(255, 0, 0, 0.3);
    animation: pulse-glow-red 0.3s ease-in-out;
}

.reason-card.ok {
    border-color: #00ff00;
    background: rgba(0, 100, 0, 0.95);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

@keyframes pulse-glow-red {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.5), inset 0 0 20px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 0, 0, 1), inset 0 0 40px rgba(255, 0, 0, 0.5);
    }
}

.reason-text-inline {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.3;
    text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
    margin-bottom: 12px;
    text-align: center;
}

.reason-status-inline {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
    text-align: center;
    opacity: 0.95;
    text-shadow: 0 0 15px currentColor;
}

/* Счетчик нарушений В УГЛУ изображения */
.violation-counter-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 30;
    background: rgba(10, 10, 15, 0.95);
    border: 5px solid #ff0000;
    border-radius: 18px;
    padding: 25px 40px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.violation-counter-overlay.active {
    opacity: 1;
    animation: counter-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes counter-bounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.counter-label {
    font-size: 1rem;
    color: #ff0000;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 15px #ff0000;
}

.counter-value {
    font-size: 5rem;
    font-weight: 900;
    color: #ff0000;
    text-shadow: 0 0 30px #ff0000, 0 0 60px #ff0000;
    line-height: 1;
    animation: counter-pulse 0.3s ease-out;
}

@keyframes counter-pulse {
    0% {
        transform: scale(0.7);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Зона сканирования */
.scan-zone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scan-zone {
    width: min(90vw, 70vh);
    height: min(90vw, 70vh);
    max-width: 800px;
    max-height: 800px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(18, 18, 26, 0.9) 100%);
    border: 5px dashed var(--border-color);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(30, 58, 95, 0.4);
}

.scan-zone::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-blue), transparent, var(--accent-blue));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.scan-zone.drag-over {
    border-color: var(--accent-blue);
    background: rgba(30, 58, 95, 0.3);
    box-shadow: 0 0 50px var(--glow-blue);
    transform: scale(1.02);
}

.scan-zone.drag-over::before {
    opacity: 0.5;
}

.scan-zone.has-image {
    border-style: solid;
    border-color: var(--accent-blue);
    box-shadow: 0 0 40px var(--glow-blue);
}

.scan-zone.has-image::before {
    opacity: 0.3;
}

.drop-hint {
    text-align: center;
    color: var(--text-secondary);
}

.drop-icon {
    font-size: 5rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(30, 58, 95, 0.5));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

.drop-hint p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.drop-hint-sub {
    font-size: 0.9rem !important;
    color: var(--text-secondary);
    opacity: 0.7;
}

.scanned-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.scanned-image.hidden {
    display: none;
}

/* Линия сканирования - УЛУЧШЕННАЯ */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, #00ff00, #00ff00, transparent);
    box-shadow:
        0 0 30px #00ff00,
        0 0 60px #00ff00,
        0 0 90px rgba(0, 255, 0, 0.5);
    top: 0;
    z-index: 10;
}

.scan-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.3), transparent);
    top: 0;
}

.scan-line::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 255, 0, 0.3), transparent);
    bottom: 0;
}

.scan-line.hidden {
    display: none;
}

.scan-line.active {
    animation: scan-move var(--scan-duration, 7s) linear infinite;
}

@keyframes scan-move {
    0% { top: 0; }
    50% { top: calc(100% - 5px); }
    100% { top: 0; }
}

/* Оверлей сканирования */
.scan-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.scan-overlay.hidden {
    display: none;
}

.scan-text {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: #00ff00;
    text-shadow:
        0 0 30px #00ff00,
        0 0 60px #00ff00,
        0 0 90px rgba(0, 255, 0, 0.5);
    animation: text-flicker 0.3s ease-in-out infinite;
    margin-bottom: 15px;
}

.scan-subtext {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #00ff00;
    opacity: 0.85;
    margin-bottom: 25px;
    animation: text-flicker 0.4s ease-in-out infinite;
}

@keyframes text-flicker {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 30px #00ff00,
            0 0 60px #00ff00;
    }
    50% {
        opacity: 0.7;
        text-shadow:
            0 0 20px #00ff00,
            0 0 40px #00ff00;
    }
}

.scan-progress {
    width: 80%;
    height: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.scan-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00, #00ff00, #00cc00, #00ff00);
    background-size: 200% 100%;
    box-shadow:
        0 0 20px #00ff00,
        0 0 40px rgba(0, 255, 0, 0.5),
        inset 0 0 20px rgba(0, 255, 0, 0.5);
    transition: width 0.1s linear;
    animation: progress-shimmer 1s linear infinite;
    position: relative;
}

.scan-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 10px 10px 0 0;
}

@keyframes progress-shimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Кнопка сканирования - ЭПИЧНАЯ */
.scan-btn {
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 50%, #ff0000 100%);
    background-size: 200% 200%;
    border: 4px solid #ff0000;
    color: white;
    padding: 25px 70px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 6px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow:
        0 0 40px rgba(255, 0, 0, 0.7),
        0 10px 30px rgba(139, 0, 0, 0.9),
        inset 0 0 25px rgba(255, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: btn-pulse 2s ease-in-out infinite;
}

.scan-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: btn-shine 3s linear infinite;
}

@keyframes btn-pulse {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(255, 0, 0, 0.6),
            0 8px 25px rgba(139, 0, 0, 0.8),
            inset 0 0 20px rgba(255, 0, 0, 0.3);
        background-position: 0% 50%;
    }
    50% {
        box-shadow:
            0 0 50px rgba(255, 0, 0, 0.8),
            0 8px 35px rgba(139, 0, 0, 1),
            inset 0 0 30px rgba(255, 0, 0, 0.5);
        background-position: 100% 50%;
    }
}

@keyframes btn-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.scan-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 60px rgba(255, 0, 0, 0.9),
        0 12px 40px rgba(139, 0, 0, 1),
        inset 0 0 40px rgba(255, 0, 0, 0.5);
}

.scan-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.5),
        0 5px 15px rgba(139, 0, 0, 0.7),
        inset 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Активное состояние для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:active {
        transform: scale(0.92);
        opacity: 0.8;
    }

    .scan-btn:active {
        transform: scale(0.95);
    }

    .promo-link:active {
        transform: scale(0.97);
    }
}

.scan-btn.hidden {
    display: none;
}

/* Вердикт */
.verdict-container {
    text-align: center;
    margin: 40px 0;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.verdict-container.hidden {
    display: none;
}

.verdict-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 30px;
    animation: verdict-appear 0.5s ease-out;
}

@keyframes verdict-appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.stamp-wrapper {
    perspective: 1000px;
}

.stamp {
    display: inline-block;
    padding: 20px 40px;
    border: 5px solid;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 5px;
    transform: rotate(-5deg);
    animation: stamp-slam 0.3s ease-out;
    position: relative;
}

.stamp::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid;
    border-radius: 15px;
    opacity: 0.5;
}

@keyframes stamp-slam {
    0% {
        transform: rotate(-5deg) scale(3);
        opacity: 0;
    }
    70% {
        transform: rotate(-5deg) scale(0.95);
    }
    100% {
        transform: rotate(-5deg) scale(1);
        opacity: 1;
    }
}

/* Цвета вердиктов */
.verdict-container.block {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.3) 0%, var(--bg-secondary) 100%);
    border-color: #8b0000;
}

.verdict-container.block .stamp {
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.verdict-container.restrict {
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.3) 0%, var(--bg-secondary) 100%);
    border-color: #ffa500;
}

.verdict-container.restrict .stamp {
    border-color: #ffa500;
    color: #ffa500;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.5);
}

.verdict-container.slow {
    background: linear-gradient(180deg, rgba(255, 255, 0, 0.2) 0%, var(--bg-secondary) 100%);
    border-color: #ffff00;
}

.verdict-container.slow .stamp {
    border-color: #ffff00;
    color: #ffff00;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

.verdict-container.forgive {
    background: linear-gradient(180deg, rgba(0, 128, 0, 0.3) 0%, var(--bg-secondary) 100%);
    border-color: #00ff00;
}

.verdict-container.forgive .stamp {
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.verdict-container.pencil {
    background: linear-gradient(180deg, rgba(128, 128, 128, 0.3) 0%, var(--bg-secondary) 100%);
    border-color: #888;
}

.verdict-container.pencil .stamp {
    border-color: #888;
    color: #888;
    box-shadow: 0 0 30px rgba(128, 128, 128, 0.5);
}

/* Галерея */
.gallery-section {
    margin-top: 50px;
}

.gallery-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ff0000, #ffa500, #ffff00, #00ff00, #00ffff, #ff00ff, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    letter-spacing: 4px;
    animation: rainbow-flow 3s linear infinite;
}

@keyframes rainbow-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.gallery::-webkit-scrollbar {
    width: 8px;
}

.gallery::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(26, 26, 37, 0.9) 0%, rgba(18, 18, 26, 0.9) 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(30, 58, 95, 0.3);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(30, 58, 95, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.1) rotate(2deg);
    border-color: var(--accent-blue);
    box-shadow:
        0 10px 30px var(--glow-blue),
        0 0 20px rgba(30, 58, 95, 0.6);
    z-index: 10;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:active {
    cursor: grabbing;
    transform: scale(0.95) rotate(-2deg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.gallery-item .item-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px 5px 5px;
    font-size: 0.65rem;
    text-align: center;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Баннер */
.banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* Верхний баннер - удален */

.banner-gif {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

/* Адаптивный баннер */
@media (max-width: 767px) {
    body {
        padding-top: 20px;
        padding-bottom: 110px;
    }
    .banner-container {
        padding: 10px 15px;
    }
    .banner-gif {
        max-height: 90px;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }

    .reasons-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 600px;
    }

    .reason-item {
        flex: 0 0 calc(50% - 10px);
    }

    .left-reasons {
        order: 2;
    }

    .scan-zone-wrapper {
        order: 1;
    }

    .right-reasons {
        order: 3;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .logo {
        width: 100px;
    }

    .scan-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .scan-zone {
        width: min(85vw, 65vh);
        height: min(85vw, 65vh);
    }

    .scan-btn {
        padding: 20px 50px;
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .fullscreen-verdict-stamp .stamp {
        font-size: 3.5rem;
        padding: 40px 70px;
        border-width: 10px;
    }

    .reset-btn-fullscreen-verdict {
        padding: 20px 50px;
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .verdict-title {
        font-size: 1.8rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .settings-panel {
        gap: 10px;
    }

    .promo-text {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
    }

    .promo-link {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .promo-hint {
        font-size: 0.9rem;
        margin-top: 6px;
    }

    .verdict-stamp-overlay .stamp {
        font-size: 1.5rem;
        padding: 20px 35px;
        border-width: 6px;
    }

    .reset-btn-verdict {
        padding: 12px 30px;
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .reason-text-inline {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .reason-status-inline {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .reason-card {
        padding: 20px 30px;
        border-width: 4px;
    }

    .violation-counter-overlay {
        top: 15px;
        right: 15px;
        padding: 18px 30px;
    }

    .counter-value {
        font-size: 3.5rem;
    }

    .counter-label {
        font-size: 0.85rem;
    }

    .click-hint {
        font-size: 1rem;
        bottom: 40px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    /* HEADER - оптимизация для мобильных */
    .header {
        padding: 15px 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0 15px;
    }

    .main-title {
        font-size: 2rem;
        letter-spacing: 3px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        line-height: 1.4;
        padding: 0 10px;
    }

    .logo {
        width: 90px;
    }

    /* MAIN CONTENT */
    .main-content {
        padding: 20px 10px;
    }

    .scan-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
        margin-bottom: 25px;
        line-height: 1.2;
    }

    /* ПРОМО ТЕКСТ - лучшая читаемость */
    .settings-panel {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .promo-text {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        line-height: 1.6;
    }

    .promo-link {
        font-size: 1.4rem;
        letter-spacing: 1px;
        display: inline-block;
        margin: 5px 0;
    }

    .promo-hint {
        font-size: 0.85rem;
        margin-top: 8px;
        display: block;
    }

    /* ЗОНА СКАНИРОВАНИЯ - удобнее для пальцев */
    .scan-zone {
        width: 95vw;
        height: 95vw;
        max-width: 450px;
        max-height: 450px;
        border-width: 4px;
    }

    .drop-icon {
        font-size: 3rem;
    }

    .drop-hint p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .drop-hint-sub {
        font-size: 0.8rem !important;
    }

    /* КНОПКА СКАНИРОВАНИЯ - минимум 44px для удобства */
    .scan-btn {
        padding: 18px 50px;
        min-height: 60px;
        font-size: 1.4rem;
        letter-spacing: 2px;
        border-width: 4px;
        margin-top: 20px;
    }

    /* ПРИЧИНЫ - крупнее и читабельнее */
    .reason-display-overlay {
        bottom: 80px;
        width: 94%;
        left: 50%;
        transform: translateX(-50%);
    }

    .reason-card {
        padding: 20px 25px;
        border-width: 4px;
    }

    .reason-text-inline {
        font-size: 1.4rem;
        letter-spacing: 1px;
        line-height: 1.3;
    }

    .reason-status-inline {
        font-size: 1.1rem;
        letter-spacing: 1px;
        margin-top: 5px;
    }

    /* СЧЕТЧИК - компактнее но читаемо */
    .violation-counter-overlay {
        top: 8px;
        right: 8px;
        padding: 10px 15px;
        border-width: 3px;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .counter-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* ШТАМП - размер под экран */
    .fullscreen-verdict-stamp .stamp {
        font-size: 2.2rem;
        padding: 25px 40px;
        border-width: 6px;
    }

    .fullscreen-verdict-stamp .stamp::before {
        inset: -12px;
        border-width: 3px;
    }

    /* ПОДСКАЗКА КЛИКА */
    .click-hint {
        font-size: 0.9rem;
        bottom: 25px;
        letter-spacing: 1px;
        padding: 0 20px;
        text-align: center;
    }

    /* ГАЛЕРЕЯ - крупнее элементы */
    .gallery-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 12px;
        padding: 15px;
        max-height: 350px;
    }

    .gallery-item .item-name {
        font-size: 0.7rem;
        padding: 15px 3px 3px;
    }

    /* СКАНИРОВАНИЕ - крупнее */
    .scan-text {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }

    .scan-subtext {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .scan-progress {
        width: 85%;
        height: 12px;
    }

    /* БАННЕР СНИЗУ - больше */
    .banner-container {
        padding: 12px 10px;
    }

    .banner-gif {
        max-height: 100px;
        width: 100%;
    }

    body {
        padding-bottom: 130px;
    }

    .fullscreen-stamp-overlay .stamp {
        transform: rotate(-5deg) scale(1);
    }
}

/* ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ на мобильных */
@media (max-width: 767px) and (orientation: landscape) {
    body {
        padding-top: 10px;
        padding-bottom: 60px;
    }

    .header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: row;
        gap: 15px;
    }

    .logo {
        width: 60px;
    }

    .main-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .main-content {
        padding: 15px 10px;
    }

    .scan-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .settings-panel {
        margin-bottom: 20px;
    }

    .promo-text {
        font-size: 0.95rem;
    }

    .promo-link {
        font-size: 1.2rem;
    }

    .promo-hint {
        font-size: 0.75rem;
    }

    .scan-zone {
        width: min(50vh, 90vw);
        height: min(50vh, 90vw);
        max-width: 350px;
        max-height: 350px;
    }

    .scan-btn {
        padding: 12px 35px;
        min-height: 50px;
        font-size: 1.1rem;
    }

    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .gallery {
        max-height: 200px;
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .gallery-item .item-name {
        font-size: 0.6rem;
    }

    .reason-text-inline {
        font-size: 1.2rem;
    }

    .reason-status-inline {
        font-size: 0.95rem;
    }

    .counter-value {
        font-size: 2rem;
    }

    .counter-label {
        font-size: 0.6rem;
    }

    .fullscreen-verdict-stamp .stamp {
        font-size: 2rem;
        padding: 20px 35px;
    }

    .click-hint {
        font-size: 0.8rem;
        bottom: 20px;
    }

    .banner-container {
        padding: 5px 8px;
    }

    .banner {
        max-height: 40px;
    }
        font-size: 1.3rem;
        padding: 20px 30px;
        border-width: 5px;
    }

    .reset-btn-fullscreen {
        padding: 12px 25px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .reason-text {
        font-size: 1.2rem;
        padding: 20px 25px;
        letter-spacing: 1px;
        min-height: 100px;
        border-width: 3px;
        line-height: 1.3;
    }

    .reason-status {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .reason-display {
        width: 95%;
    }

    .violation-counter {
        top: 90px;
        right: 10px;
        padding: 10px 15px;
    }

    .counter-value {
        font-size: 2.5rem;
    }

    .counter-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}

/* ПОЛНОЭКРАННЫЙ вердикт - НЕ ограничен фото! */
.fullscreen-verdict-stamp {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999 !important;
    animation: overlay-appear 0.5s ease-out;
    backdrop-filter: blur(15px);
    gap: 50px;
    pointer-events: all;
    cursor: pointer;
    /* Safe area для устройств с вырезами */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

@keyframes overlay-appear {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

/* Изображение на фоне (размытое) */
.verdict-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(20px);
    z-index: -1;
}

.fullscreen-verdict-stamp .stamp {
    transform: rotate(-5deg) scale(1);
    border-width: 15px;
    font-size: 6rem;
    padding: 60px 120px;
    position: relative;
    z-index: 999999 !important;
}

.fullscreen-verdict-stamp .stamp::before {
    border-color: inherit;
    border-width: 6px;
    inset: -25px;
}

.fullscreen-verdict-stamp.hidden {
    display: none;
}

/* Подсказка для клика */
.click-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: hint-pulse 1.5s ease-in-out infinite;
    z-index: 999999 !important;
}

@keyframes hint-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Кнопка сброса на полноэкранном штампе */
.reset-btn-fullscreen-verdict {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a0a0f 100%);
    border: 5px solid var(--accent-blue);
    color: white;
    padding: 25px 80px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 0 50px var(--glow-blue), 0 0 100px rgba(30, 58, 95, 0.6);
    animation: btn-pulse-blue 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes btn-pulse-blue {
    0%, 100% {
        box-shadow: 0 0 40px var(--glow-blue), 0 0 80px rgba(30, 58, 95, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px var(--glow-blue), 0 0 120px rgba(30, 58, 95, 0.8);
        transform: scale(1.05);
    }
}

.reset-btn-fullscreen-verdict:hover {
    background: linear-gradient(135deg, #2a4a7f 0%, #1a1a25 100%);
    transform: scale(1.1);
    box-shadow: 0 0 80px var(--glow-blue);
}

.reset-btn-fullscreen-verdict:active {
    transform: scale(0.95);
}

/* Утилиты */
.hidden {
    display: none !important;
}

/* Эффект глитча для заголовка */
@keyframes glitch {
    0%, 100% {
        text-shadow:
            2px 0 #ff0000,
            -2px 0 #00ffff;
    }
    25% {
        text-shadow:
            -2px 0 #ff0000,
            2px 0 #00ffff;
    }
    50% {
        text-shadow:
            2px 2px #ff0000,
            -2px -2px #00ffff;
    }
    75% {
        text-shadow:
            -2px 2px #ff0000,
            2px -2px #00ffff;
    }
}

.glitch {
    animation: glitch 0.3s ease-in-out;
}

/* Частицы */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: particle-fly 1s ease-out forwards;
}

@keyframes particle-fly {
    0% {
        transform: scale(1) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(-150px) rotate(360deg);
        opacity: 0;
    }
}

/* Взрывные частицы */
.particle-burst {
    position: absolute;
    border-radius: 50%;
    animation: particle-burst 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Ударная волна */
.shockwave {
    position: absolute;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    animation: shockwave-expand 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes shockwave-expand {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    100% {
        width: 800px;
        height: 800px;
        opacity: 0;
    }
}

/* Мини-вспышка */
.mini-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    animation: mini-flash-anim 0.2s ease-out forwards;
}

@keyframes mini-flash-anim {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}

/* Мини-тряска */
@keyframes shake-mini {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-0.5deg); }
    75% { transform: translateX(3px) rotate(0.5deg); }
}

/* Эффект глитча для изображения */
.glitch-flash {
    animation: image-glitch-flash 0.1s ease-in-out;
}

@keyframes image-glitch-flash {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
        transform: translate(0);
    }
    25% {
        filter: hue-rotate(90deg) brightness(1.5);
        transform: translate(-3px, 2px);
    }
    50% {
        filter: hue-rotate(180deg) brightness(0.8);
        transform: translate(3px, -2px);
    }
    75% {
        filter: hue-rotate(270deg) brightness(1.3);
        transform: translate(-2px, -2px);
    }
}

/* Тряска зоны сканирования */
.shake-zone {
    animation: shake-zone-anim 0.2s ease-out;
}

@keyframes shake-zone-anim {
    0%, 100% {
        transform: translate(0);
    }
    10% {
        transform: translate(-4px, 2px) rotate(-0.5deg);
    }
    30% {
        transform: translate(4px, -2px) rotate(0.5deg);
    }
    50% {
        transform: translate(-3px, 3px) rotate(-0.3deg);
    }
    70% {
        transform: translate(3px, -1px) rotate(0.3deg);
    }
    90% {
        transform: translate(-1px, 1px);
    }
}

/* Замедление времени */
@keyframes slowmo {
    0% {
        filter: blur(0px) brightness(1);
    }
    50% {
        filter: blur(5px) brightness(0.7);
    }
    100% {
        filter: blur(0px) brightness(1);
    }
}

/* Вспышка экрана */
.screen-flash {
    position: fixed;
    inset: 0;
    background: white;
    pointer-events: none;
    z-index: 9998;
    animation: flash 0.3s ease-out forwards;
}

@keyframes flash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* ЭПИЧНАЯ анимация штампа */
@keyframes stamp-slam-epic {
    0% {
        transform: rotate(-180deg) scale(10) translateY(-500px);
        opacity: 0;
        filter: blur(20px);
    }
    40% {
        transform: rotate(-10deg) scale(0.8) translateY(20px);
        opacity: 1;
        filter: blur(0px);
    }
    60% {
        transform: rotate(-3deg) scale(1.2) translateY(-10px);
    }
    80% {
        transform: rotate(-7deg) scale(0.95) translateY(5px);
    }
    100% {
        transform: rotate(-5deg) scale(1.5);
        opacity: 1;
        filter: blur(0px);
    }
}

.stamp.slam {
    animation: stamp-slam-epic 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               stamp-glow-pulse 1.5s ease-in-out 0.8s infinite;
}

@keyframes stamp-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 50px currentColor) drop-shadow(0 0 80px currentColor);
    }
}

/* Эффект чернил штампа - УЛУЧШЕННЫЙ */
.stamp::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    z-index: -1;
    animation: ink-spread 0.5s 0.2s ease-out forwards;
}

@keyframes ink-spread {
    0% {
        opacity: 0.8;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Дополнительные частицы при ударе штампа */
.stamp.slam::before {
    content: '';
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0;
    animation: impact-wave 0.6s ease-out;
}

@keyframes impact-wave {
    0% {
        opacity: 0.5;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* Пульсация вердикта */
.verdict-container.active {
    animation: verdict-pulse 2s ease-in-out infinite;
}

@keyframes verdict-pulse {
    0%, 100% {
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        box-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
    }
}

/* Сканирующие лучи */
.scan-rays {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 255, 0, 0.05) 50%, transparent 100%);
    animation: rays-rotate 4s linear infinite;
    pointer-events: none;
}

@keyframes rays-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Глитч эффект для изображения при сканировании */
.scanned-image.scanning {
    animation: image-glitch 0.2s ease-in-out infinite;
}

@keyframes image-glitch {
    0%, 100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: translateX(2px);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: translateX(-1px);
        filter: hue-rotate(270deg);
    }
}

/* Матричный эффект для фона */
.matrix-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ctext x='10' y='20' fill='%2300ff00' font-family='monospace' font-size='10'%3E01001%3C/text%3E%3Ctext x='60' y='40' fill='%2300ff00' font-family='monospace' font-size='10'%3E10110%3C/text%3E%3Ctext x='20' y='60' fill='%2300ff00' font-family='monospace' font-size='10'%3E11001%3C/text%3E%3Ctext x='70' y='80' fill='%2300ff00' font-family='monospace' font-size='10'%3E01110%3C/text%3E%3C/svg%3E");
    animation: matrix-scroll 20s linear infinite;
}

@keyframes matrix-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

/* Светящаяся рамка для зоны сканирования при активном сканировании */
.scan-zone.scanning {
    animation: zone-glow 1s ease-in-out infinite;
}

@keyframes zone-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.5), inset 0 0 40px rgba(0, 255, 0, 0.2);
    }
}

/* Эффект нойза */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Кнопка сброса */
.reset-btn {
    background: linear-gradient(180deg, #333 0%, #111 100%);
    border: 1px solid #444;
    color: #888;
    padding: 10px 30px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.reset-btn:hover {
    background: linear-gradient(180deg, #444 0%, #222 100%);
    color: white;
    border-color: #666;
}

/* Индикатор загрузки */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}
