* { box-sizing: border-box; margin:0; padding:0; }

body { 
    font-family: "Segoe UI", Arial, sans-serif; 
    background: linear-gradient(#0a0a1a, #0f0f30); 
    color:#fff; 
    text-align:center; 
    overflow-x:hidden; 
    position:relative; 
    height:100%; 
}

canvas { 
    position:fixed; 
    top:0; left:0; 
    width:100%; height:100%; 
    z-index:-1; 
}

header {
    padding: 80px 20px;
    overflow: hidden;
}

/* Гирлянда */
.garland {
    font-size:2rem;
    margin-bottom:15px;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0% { opacity:0.6; }
    50% { opacity:1; }
    100% { opacity:0.6; }
}

/* Анимация появления */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Аватарка с рамкой и пульсом */
.avatar {
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #ff4444; /* красная рамка */
    margin-bottom:20px;
    animation: fadeIn 1.5s ease forwards, pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,68,68,0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255,68,68,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,68,68,0);
    }
}

/* Разделительная черта */
.header-divider {
    width: 80px;
    height: 3px;
    background: #ff4444;
    margin: 25px auto;
    border: none;
    border-radius: 2px;
    animation: fadeIn 1.5s ease forwards;
}

header h1 { 
    font-size:3rem; 
    margin-bottom:10px; 
    color:#ff4444; 
    text-shadow: 0 0 10px #ffbbbb; 
    animation: fadeIn 1.5s ease forwards;
}

header p { 
    font-size:1.2rem; 
    opacity:0.9; 
    max-width:700px; 
    margin:auto; 
    animation: fadeIn 1.5s ease forwards;
}

.btn {
    display:inline-block;
    margin-top:30px;
    padding:15px 35px;
    background:#fff;
    color:#ff4444;
    text-decoration:none;
    border-radius:12px;
    font-weight:bold;
    font-size:1.1rem;
    transition:0.25s;
    animation: fadeIn 2s ease forwards, btnPulse 2s infinite ease-in-out;
}

.btn:hover { scale: 1.07; }

section { padding:70px 20px; max-width:900px; margin:auto; }
section h2 { font-size:2.2rem; margin-bottom:20px; color:#44ff44; text-shadow: 0 0 10px #bbffbb; animation: fadeIn 2s ease forwards; }
section p { font-size:1.1rem; opacity:0.9; line-height:1.6; animation: fadeIn 2s ease forwards; }
ul { list-style:none; padding:0; margin-top:20px; }
ul li { margin:12px 0; font-size:1.05rem; opacity:0.85; animation: fadeIn 2s ease forwards; }

footer { padding:25px; background:#0b0b12; opacity:0.6; font-size:0.9rem; animation: fadeIn 2s ease forwards; }

@media (max-width:600px){
    header { padding:60px 15px; }
    .avatar { width:110px; height:110px; }
    header h1 { font-size:2.2rem; }
    header p { font-size:1rem; }
    .btn { padding:13px 28px; font-size:1rem; }
    section { padding:50px 15px; }
    section h2 { font-size:1.8rem; }
}

/* === ATTENTION ANIMATION FOR JOIN BUTTON === */
@keyframes btnPulse {
    0%   { transform: translateY(0); }
    25%  { transform: translateY(-6px); }
    50%  { transform: translateY(0); }
    75%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* ПК — наведение мыши */
@media (hover: hover) {
    .btn:hover {
        box-shadow:
            0 0 12px rgba(255, 60, 60, 0.8),
            0 0 25px rgba(255, 60, 60, 0.6);
        background: #fff;
        color: #ff3333;
    }
}

/* Телефон — нажатие пальцем */
@media (hover: none) {
    .btn:active {
        box-shadow:
            0 0 15px rgba(255, 40, 40, 0.9),
            0 0 35px rgba(255, 40, 40, 0.7);
        background: #ffecec;
        color: #ff0000;
        transform: scale(0.97);
    }
}
.top-right-icon {
    position: absolute;       /* фиксируем относительно окна */
    top: 10px;                /* отступ сверху */
    right: 10px;              /* отступ справа */
    width: 30px;              /* маленькая ширина */
    height: auto;             /* сохраняем пропорции */
    z-index: 1000;            /* чтобы была поверх других элементов */
}
/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9999;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0f0f18;
    padding: 30px;
    border-radius: 18px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 60, 60, 0.35);
}

.modal-content h2 {
    color: #ff4444;
    margin-bottom: 15px;
}

.modal-content p {
    opacity: 0.9;
    line-height: 1.6;
}

.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
/* === CREDITS / CONTRIBUTORS (NEON + GLASS) === */

.credits-toggle {
    cursor: pointer;
    font-size: 0.9rem;
    color: #33ff66;
    margin-top: 10px;
    font-weight: bold;
    text-shadow:
        0 0 6px rgba(50, 255, 120, 0.8),
        0 0 14px rgba(50, 255, 120, 0.6);
    transition: 0.25s;
    animation: neonFlicker 4s infinite;
}

.credits-toggle:hover {
    letter-spacing: 0.5px;
}

/* Контейнер с участниками */
.footer-creators {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
        max-height 0.6s ease,
        opacity 0.4s ease;

    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.6;

    color: #66ff99;
    text-shadow:
        0 0 6px rgba(80, 255, 160, 0.7),
        0 0 16px rgba(80, 255, 160, 0.5);
}

/* Glass-эффект при открытии */
.footer-creators.show {
    max-height: 500px;
    opacity: 1;

    background: rgba(15, 35, 25, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 14px 18px;
    border-radius: 14px;

    border: 1px solid rgba(80, 255, 160, 0.35);
    box-shadow:
        0 0 18px rgba(80, 255, 160, 0.35),
        inset 0 0 12px rgba(80, 255, 160, 0.15);

    animation: neonFlicker 6s infinite;
}

.footer-creators p {
    margin: 8px 0;
}

/* === NEON FLICKER (если ещё нет) === */
@keyframes neonFlicker {
    0%   { opacity: 1; }
    5%   { opacity: 0.85; }
    10%  { opacity: 1; }
    15%  { opacity: 0.7; }
    20%  { opacity: 1; }
    100% { opacity: 1; }
}
