@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #05060A;
    color: #F0F0F0;
    min-height: 100vh;
    position: relative;
}

/* Анимированный фон с сеткой */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 107, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Парящие частицы */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container, .game-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* Стеклянные карточки */
.glass-card {
    background: rgba(15, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
}

/* Заголовки */
h1 {
    font-size: 3em;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #FF6B35, #FF3366, #00F0FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: skew(0deg, 0deg); opacity: 1; }
    95% { transform: skew(0deg, 0deg); opacity: 1; }
    96% { transform: skew(2deg, 1deg); opacity: 0.9; text-shadow: -2px 0 #FF3366, 2px 0 #00F0FF; }
    97% { transform: skew(-2deg, -1deg); opacity: 0.95; }
    98% { transform: skew(0deg, 0deg); opacity: 1; }
}

h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #FF6B35;
    margin: 30px 0 20px 0;
    border-left: 4px solid #FF6B35;
    padding-left: 15px;
}

h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #00F0FF;
    margin: 20px 0 15px 0;
}

/* Статистика (3 карточки) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #FF6B35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.stat-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B35, #FF3366);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Сетка действий */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.action-btn {
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3), transparent);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #FF6B35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.action-btn i {
    font-size: 48px;
    color: #FF6B35;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.action-btn:hover i {
    color: #00F0FF;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: scale(1.1);
}

.action-btn span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Формы */
input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    background: rgba(10, 15, 25, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    color: #F0F0F0;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    background: rgba(10, 15, 25, 1);
}

/* Кнопки */
button, .btn {
    width: 100%;
    padding: 14px 24px;
    margin: 10px 0;
    background: linear-gradient(135deg, #FF6B35, #FF3366);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button::before, .btn::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: left 0.5s ease;
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Сообщения */
.message {
    background: rgba(10, 15, 25, 0.9);
    border-left: 4px solid #FF6B35;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 12px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ссылки */
.links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.links a {
    color: #00F0FF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.links a:hover {
    color: #FF6B35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Описание игры */
.description {
    background: rgba(10, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.description p {
    line-height: 1.8;
    margin: 15px 0;
    color: #CCC;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: #FF6B35;
    width: 30px;
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container, .game-container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 20px;
    }
    
    .action-btn i {
        font-size: 36px;
    }
}

/* Анимация загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-top-color: #FF6B35;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Скелетон для загрузки */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}