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

body {
    font-family: 'Arial', sans-serif;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #2d2d2d 30%, #4a4a4a 60%, #1a1a1a 100%);
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* ГЛАВНАЯ СТРАНИЦА */
.main-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #2d2d2d 30%, #4a4a4a 60%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Фоновые элементы */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 215, 0, 0.6);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: leafFloat 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.bg-leaf-1 { top: 10%; left: 10%; animation-delay: 0s; }
.bg-leaf-2 { top: 20%; right: 15%; animation-delay: 1s; }
.bg-leaf-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.bg-leaf-4 { bottom: 20%; right: 25%; animation-delay: 3s; }
.bg-leaf-5 { top: 60%; left: 5%; animation-delay: 4s; }
.bg-leaf-6 { top: 40%; right: 10%; animation-delay: 5s; }

@keyframes leafFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

/* Световые лучи */
.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ray {
    position: absolute;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    animation: rayMove 8s linear infinite;
}

.ray-1 {
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    animation-delay: 0s;
}

.ray-2 {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    animation-delay: 2s;
}

.ray-3 {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation-delay: 4s;
}

.ray-4 {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation-delay: 6s;
}

@keyframes rayMove {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Контейнер главной страницы */
.main-container {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Дракон */
.dragon-container {
    margin-bottom: 30px;
    position: relative;
}

.dragon-image {
    width: 120px;
    height: 120px;
    animation: dragonFloat 3s ease-in-out infinite;
    transform: translateY(-200vh) scale(0.5);
    opacity: 0;
}

.dragon-image.fly-in {
    animation: dragonFlyIn 2s ease-out forwards, dragonFloat 3s ease-in-out infinite 2s;
}

@keyframes dragonFlyIn {
    0% {
        transform: translateY(-200vh) scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-50px) scale(1.2) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.dragon-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9));
}

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

/* Заголовок главной страницы */
.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffd700 0%, #ffed4e 50%, #fff176 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

/* Подзаголовок */
.main-subtitle {
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Кнопки */
.buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.action-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 193, 7, 0.8) 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px 15px;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    font-family: inherit;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #fff176;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.btn-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .buttons-container {
        gap: 15px;
        max-width: 350px;
        padding: 15px;
    }
    
    .action-btn {
        width: 80px;
        height: 80px;
        padding: 15px 10px;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
    
    .btn-text {
        font-size: 0.7rem;
    }
}

/* Переключатель языков */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 1000;
}

.lang-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid #ffd700;
    color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.lang-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.lang-btn.active {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, #333, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        gap: 3px;
    }
    
    .lang-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}