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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Анимированные частицы фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 94, 247, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(94, 255, 220, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    z-index: -1;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.card {
    background: rgba(25, 25, 35, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 20, 147, 0.1) 50%, 
        transparent 70%);
    animation: shine 8s infinite linear;
    z-index: 0;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Рамка для фото */
.photo-frame {
    position: relative;
    width: 400px;
    height: 300px;
    margin: 0 auto 50px;
    background: #0a0a0f;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.6);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: sepia(0.2) contrast(1.1);
    position: relative;
    z-index: 2;
}

.frame-top, .frame-bottom, .frame-left, .frame-right {
    position: absolute;
    background: linear-gradient(45deg, #ff0080, #00ffff);
    z-index: 3;
}

.frame-top, .frame-bottom {
    height: 8px;
    left: 15px;
    right: 15px;
}

.frame-top { 
    top: 15px;
    background: linear-gradient(90deg, #ff0080, #00ffff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.frame-bottom { 
    bottom: 15px;
    background: linear-gradient(90deg, #00ffff, #ff0080);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.frame-left, .frame-right {
    width: 8px;
    top: 15px;
    bottom: 15px;
}

.frame-left { 
    left: 15px;
    background: linear-gradient(180deg, #ff0080, #00ffff);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.frame-right { 
    right: 15px;
    background: linear-gradient(180deg, #00ffff, #ff0080);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 4;
    color: #ff0080;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl { top: 0; left: 0; }
.tr { top: 0; right: 0; }
.bl { bottom: 0; left: 0; }
.br { bottom: 0; right: 0; }

/* Секция счётчика */
.counter-section {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.counter-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.counter-number {
    font-family: 'Caveat', cursive;
    font-size: 120px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff0080, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.3);
    animation: pulse 2s infinite;
    min-width: 200px;
}

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

.counter-display i {
    font-size: 60px;
    color: #ff0080;
    opacity: 0.7;
}

.warning-text {
    font-size: 22px;
    color: #ffcc00;
    margin-bottom: 40px;
    padding: 15px;
    background: rgba(255, 204, 0, 0.1);
    border-radius: 15px;
    border-left: 4px solid #ffcc00;
    border-right: 4px solid #ffcc00;
    font-weight: 700;
}

.warning-text i {
    margin: 0 15px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Кнопка */
.click-button {
    background: linear-gradient(45deg, #ff0080, #ff3399);
    color: white;
    border: none;
    padding: 25px 50px;
    font-size: 24px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 30px;
    transition: all 0.3s;
    box-shadow: 
        0 10px 20px rgba(255, 0, 128, 0.3),
        0 0 30px rgba(255, 0, 128, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.click-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.click-button:hover::before {
    left: 100%;
}

.click-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(255, 0, 128, 0.4),
        0 0 40px rgba(255, 0, 128, 0.3);
}

.click-button:active {
    transform: translateY(0);
    box-shadow: 
        0 5px 15px rgba(255, 0, 128, 0.3),
        0 0 20px rgba(255, 0, 128, 0.2);
}

.button-icon {
    font-size: 30px;
    animation: bounce 1s infinite;
}

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

/* Статистика */
.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: #a0a0ff;
}

.stat i {
    font-size: 24px;
    color: #00ffff;
}

/* Футер */
.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #888;
    font-size: 14px;
}

.github-link {
    margin-top: 10px;
}

.github-link a {
    color: #ff0080;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s;
}

.github-link a:hover {
    color: #00ffff;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
    
    .photo-frame {
        width: 100%;
        height: 250px;
    }
    
    .counter-number {
        font-size: 80px;
        min-width: 150px;
    }
    
    .warning-text {
        font-size: 18px;
    }
    
    .click-button {
        padding: 20px 30px;
        font-size: 18px;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
}
