/* Обновленные цветовые переменные с фиолетовой палитрой */
:root {
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --link-color: #b967ff;
    --link-hover-color: #e0b3ff;
    --box-shadow-color: #0a0a0a;
    --button-background: linear-gradient(135deg, #8a2be2 0%, #b967ff 100%);
    --button-border: #d8bfd8;
    --button-hover-filter: #6a0dad;
    --pulse-shadow-color: rgba(138, 43, 226, 0.6);
    --online-players-bg: linear-gradient(135deg, #8a2be2 0%, #b967ff 100%);
    --online-players-border: #d8bfd8;
    --footer-bg: #070707;
    --footer-text-color: #cccccc;
    --accent-glow: 0 0 25px rgba(138, 43, 226, 0.8);
    --text-glow: 0 0 15px rgba(255, 255, 255, 0.7);
    --card-shadow: 0 8px 32px rgba(138, 43, 226, 0.3);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Стили для body */
body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(185, 103, 255, 0.15) 0%, transparent 25%);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Screen reader-only element */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Контейнер с улучшенной адаптивностью */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Hero section с идеальным центрированием */
.hero {
    position: relative;
    width: 100%;
    background-image: url("/images/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    min-height: 400px;
    box-shadow: 
        0px -80px 200px 80px var(--box-shadow-color) inset,
        var(--accent-glow);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(138, 43, 226, 0.1) 0%,
        rgba(185, 103, 255, 0.05) 50%,
        rgba(138, 43, 226, 0.1) 100%
    );
    pointer-events: none;
}

/* Анимация пульсации для логотипа */
@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--pulse-shadow-color));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 35px var(--pulse-shadow-color));
    }
}

.hero img {
    animation: pulse-glow 3s ease-in-out infinite;
    max-width: min(600px, 80%);
    max-height: min(300px, 70%);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Секция с кнопкой онлайн игроков */
.online-players-section {
    margin: 3rem auto;
}

.online-players {
    text-align: center;
    padding: 2.5rem 2rem;
    width: 100%;
    border: 2px solid var(--online-players-border);
    border-radius: 20px;
    background: var(--online-players-bg);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    border: none;
    display: block;
}

.online-players::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.6s;
}

.online-players:hover::before {
    left: 100%;
}

.online-players:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--card-shadow),
        0 15px 40px rgba(138, 43, 226, 0.4);
}

.online-players:active {
    transform: translateY(0);
}

.online-players strong {
    font-weight: 900;
    text-shadow: var(--text-glow);
    color: #fff;
}

/* Секция с ссылками */
.vote-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 4rem auto;
}

@media (max-width: 768px) {
    .vote-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem auto;
    }
}

/* Стили для карточек-ссылок */
.vote-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    border-radius: 16px;
    border: 2px solid var(--button-border);
    background: var(--button-background);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    justify-content: center;
}

.vote-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--button-border);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vote-links a:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--card-shadow),
        0 15px 40px rgba(138, 43, 226, 0.5);
}

.vote-links a:hover::after {
    transform: scaleX(1);
}

/* Исправленные стили для иконок */
.vote-links a img {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: none;
}

.vote-links a:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Специфичные стили для каждой иконки */
.vote-links a .icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* Стиль для недоступной ссылки магазина */
.vote-links a.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6a5acd 0%, #836fff 100%);
}

.vote-links a.disabled:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.vote-links a.disabled:hover::after {
    transform: scaleX(0);
}

.vote-links a.disabled:hover img {
    transform: none;
}

/* Футер */
footer {
    text-align: center;
    padding: 2.5rem 0;
    font-size: 1rem;
    font-weight: 400;
    background: var(--footer-bg);
    border-radius: 20px 20px 0 0;
    margin-top: 6rem;
    color: var(--footer-text-color);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.footer-info {
    max-width: 800px;
    margin: 0 auto;
}

.footer-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

footer a {
    text-decoration: none;
    color: var(--link-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--link-hover-color);
    text-shadow: 0 0 10px rgba(185, 103, 255, 0.5);
}

/* Улучшенная адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hero {
        height: 50vh;
        min-height: 300px;
        box-shadow: 
            0px -40px 100px 40px var(--box-shadow-color) inset,
            var(--accent-glow);
    }

    .hero img {
        max-width: 85%;
        max-height: 60%;
        animation: pulse-glow 4s ease-in-out infinite;
    }

    .online-players-section {
        margin: 2rem auto;
    }

    .online-players {
        padding: 1.8rem 1.2rem;
        font-size: 1.1rem;
        margin: 0 auto;
        border-radius: 16px;
        min-height: auto;
    }

    .vote-links {
        margin: 2rem auto;
        gap: 1.2rem;
    }

    .vote-links a {
        padding: 1.5rem 1rem;
        font-size: 1.1rem;
        min-height: 110px;
        border-radius: 14px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
    }

    .vote-links a img {
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
    }

    footer {
        margin-top: 4rem;
        padding: 2rem 1rem;
        border-radius: 16px 16px 0 0;
    }

    .footer-info p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Дополнительные медиа-запросы для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }

    .hero {
        height: 40vh;
        min-height: 250px;
    }

    .hero img {
        max-width: 90%;
        max-height: 55%;
    }

    .online-players {
        padding: 1.5rem 1rem;
        font-size: 1rem;
        border-radius: 14px;
    }

    .vote-links {
        gap: 1rem;
    }

    .vote-links a {
        padding: 1.2rem 0.8rem;
        font-size: 1rem;
        min-height: 90px;
        border-radius: 12px;
        gap: 0.8rem;
    }

    .vote-links a img {
        width: 2rem;
        height: 2rem;
    }

    footer {
        margin-top: 3rem;
        padding: 1.5rem 0.8rem;
    }
}

/* Исправления для очень высоких экранов */
@media (min-height: 1000px) and (max-width: 768px) {
    .hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero img {
        max-height: 50%;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Улучшение производительности анимаций */
.hero img,
.vote-links a,
.online-players {
    will-change: transform;
}

@media (hover: none) {
    .vote-links a:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
    
    .vote-links a:hover::after {
        transform: scaleX(0);
    }
    
    .online-players:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
    
    .vote-links a:active,
    .online-players:active {
        transform: scale(0.98);
    }
}

.hero-center-fix {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.hero-center-fix img {
    display: inline-block;
    max-width: 80%;
    height: auto;
}
.player-count {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #6fa8ff 0%, #8be9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1.7em;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .player-count {
        font-size: 1.4em;
    }
}
.footer-contacts {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-contacts h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--link-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #8a2be2 0%, #b967ff 100%);
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
}

.contact-links p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--footer-text-color);
}

.footer-divider-main {
    width: 80%;
    height: 1px;
    background: rgba(138, 43, 226, 0.3);
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .footer-contacts h3 {
        font-size: 1.3rem;
    }
    
    .contact-links p {
        font-size: 0.9rem;
    }
    
    .footer-divider-main {
        width: 90%;
        margin: 1.5rem auto;
    }
}