/* --- Глобальные настройки и переменные --- */
:root {
    --accent-color: orange; /* Можно поменять на ваш основной цвет, например #00aaff */
    --dark-bg: #121212;
    --light-text: #e0e0e0;
    --dark-text: #333;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Секции --- */
section {
    padding: 60px 0;
}

/* --- Главный экран (Hero) --- */
.hero-section {
    text-align: center;
    padding: 80px 0;
    background: radial-gradient(circle, #2a2a2a, var(--dark-bg));
}

.game-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    color: white;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0 0 20px 0;
    font-weight: bold;
}

.description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: var(--dark-text);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Секция особенностей (Features) --- */
.features-section .container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.feature-item {
    flex-basis: 30%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- Секция с картинкой --- */
.visual-section {
    text-align: center;
    background-color: #1a1a1a;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.screenshot {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

/* --- Финальный призыв к действию --- */
.final-cta-section {
    text-align: center;
}

/* --- Футер (Footer) --- */
footer {
    padding: 40px 0;
    text-align: center;
    background-color: #1a1a1a;
    font-size: 0.9rem;
    color: #888;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-links {
    position: absolute;
    top: 10px;
    right: 40px;
}

/* --- Адаптивность для мобильных устройств --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .subtitle { font-size: 1.2rem; }

    .features-section .container {
        flex-direction: column;
    }
}
.gameplay-video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}
.logo-container {
    position: relative; /* Позволяет позиционировать кнопку относительно контейнера */
    margin-bottom: 20px;
}

/* Кнопка Play/Pause над логотипом */
.logo-play-pause {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Центрируем кнопку */
    z-index: 5; /* Кнопка должна быть над SVG */
    transition: opacity 0.3s ease-in-out;
}

/* Логика иконок (такая же, как у главной кнопки паузы) */
.logo-play-pause .play-icon { display: none; }
.logo-play-pause .pause-icon { display: flex; }
.logo-play-pause.paused .play-icon { display: block; }
.logo-play-pause.paused .pause-icon { display: none; }

/* Блок с информацией об авторе музыки */
.music-credit {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: #ccc;
}
.music-credit p {
    margin: 5px 0;
    line-height: 1.4;
}
.music-credit a {
    color: var(--accent-color);
    text-decoration: none;
}
.music-credit a:hover {
    text-decoration: underline;
}

/* Стили для текстовой части логотипа */
.logo-text {
    /* Цвет заливки будет браться из текущей темы */
    fill: var(--accent-color);
}

.logo-wave {
    fill: none;
    stroke: var(--accent-color);
    stroke-miterlimit: 10;
    stroke-width: 18px;
    transform-origin: 318px 305px;
    --logo-scale: 1;
}

.logo-wave.animation-active {
    animation: rocking 5s ease-in-out infinite;
}

.pause-icon {
    width: 14px; /* Ширина двух полосок вместе */
    height: 16px;
    display: flex;
    justify-content: space-between; /* Расстояние между полосками */
}
.pause-icon::before, .pause-icon::after {
    content: '';
    display: block;
    width: 4px; /* Ширина одной полоски */
    height: 16px;
    background-color: white;
}

.play-icon {
    /* CSS-треугольник */
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 16px solid white;
    margin-left: 5px; /* Небольшой сдвиг для центровки */
}

.icon-button { width: 35px; height: 35px; background-color: rgba(255, 255, 255, 0.1); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; margin-left: 10px; }
.icon-button:hover { background-color: rgba(255, 255, 255, 0.2); }

.icon-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: rgba(100, 100, 100, 0.2);
}

@keyframes pressAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2); /* Увеличиваем в середине анимации */
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rocking {
    0% {
        transform: scale(var(--logo-scale, 1)) rotate(0deg);
    }
    50% {
        transform: scale(var(--logo-scale, 1)) rotate(20deg);
    }
    100% {
        transform: scale(var(--logo-scale, 1)) rotate(0deg);
    }
}