/* Глобальные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #333333 50%, #1a1a1a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Частицы фон */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Главный контейнер */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 50;
    position: relative;
}

/* Заголовок героя */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    animation: slideInFromTop 1.5s ease-out;
}

.epic-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

.title-part {
    display: block;
    background: linear-gradient(45deg, #00ff00, #4CAF50, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.birthday-date {
    display: block;
    font-size: 0.6em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-top: 10px;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 2s ease-out 0.5s both;
}

/* Выбор режима */
.mode-selection {
    animation: fadeInUp 2s ease-out 1s both;
}

.mode-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.mode-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 3px solid #00ff00;
    width: 350px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.mode-card:hover::before {
    animation: shine 0.5s ease-in-out;
}

.mode-card:hover {
    border-color: #00ff00;
    box-shadow: 0 20px 40px rgba(76,175,80,0.5);
}

.offline-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(76,175,80,0.2));
}

.online-card:hover {
    background: linear-gradient(135deg, rgba(76,175,80,0.2), rgba(0,255,0,0.2));
}

.card-content h3 {
    font-size: 2rem;
    margin: 20px 0 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.card-content p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.dress-code, .minecraft-theme {
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 1.1rem;
}

.dress-code {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.minecraft-theme {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: #fff;
}

button.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    height: auto;
    margin-top: auto;
    background: #00ff00;
    color: #000;
    border: 2px solid #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,255,0,0.3);
    cursor: pointer;
    padding: 16px 24px;
    position: relative;
    z-index: 1000;
}

button.cta-button:hover {
    background: #fff;
    color: #00ff00;
    box-shadow: 0 6px 20px rgba(0,255,0,0.5);
    border-color: #00ff00;
}

@media (max-width: 768px) {
    button.cta-button {
        font-size: 1rem;
        padding: 12px 20px;
        min-height: 52px;
    }
}

.card-image {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mode-card:hover .card-image img {
    transform: scale(1.1);
}

/* Плавающие элементы */
.epic-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-emoji:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-emoji:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-emoji:nth-child(4) {
    top: 40%;
    right: 10%;
    animation-delay: 4.5s;
}

/* Анимации */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 20px rgba(0,255,0,0.5), 0 0 30px rgba(76,175,80,0.5), 0 0 40px rgba(0,255,0,0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(0,255,0,0.8), 0 0 40px rgba(76,175,80,0.8), 0 0 50px rgba(0,255,0,0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

@keyframes shine {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .mode-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mode-card {
        padding: 20px;
    }
    
    .floating-emoji {
        font-size: 1.5rem;
    }
    
    .cta-button {
        font-size: 1rem !important;
        padding: 12px 20px !important;
    }
}

/* Правильная структура flex-раскладки */

/* Эффект конфетти */
.confetti-burst {
    animation: confettiBurst 0.5s ease-out;
}

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