:root {
    --primary-color: #4FC3F7;
    --yellow: yellow;
    --red: white;
    --text-color: white;
    --bg-transparent: rgba(33, 150, 243, 0.4);
    --float-animation-duration: 3s;
    --twinkle-animation-duration: 3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mouse-memoirs-regular {
  font-family: "Mouse Memoirs", sans-serif;
  font-weight: 400;
  font-style: normal;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Ranchers', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Фон и звёзды */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/Back4.jpg') no-repeat center center/cover;
    z-index: -2;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--twinkle-animation-duration) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Полноэкранный заголовок */
.header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Анимация логотипа */
.logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 20px auto;
    display: block;
    animation: float var(--float-animation-duration) ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Кнопка прокрутки вниз */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--yellow);
    text-decoration: none;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down-btn:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Основные стили */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px 15px;
    margin: 0 auto;
}

h1 {
    color: var(--yellow);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    font-size: clamp(2.5rem, 8vw, 7rem);
    margin: 0 0 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.9rem);
    margin-bottom: 30px;
    color: var(--yellow);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Компоненты */
.info-block {
     background: var(--bg-transparent);
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 700px;
    border-left: 3px solid var(--primary-color);
    font-size: 35px;
    color: var(--yellow);
}

.info-block h2 {
    font-size: 45px;
    color: var(--red);
    text-align:     center  ;
}

.info-block img {
    margin-bottom: 30px;
}

.center-img {
display: flex;
flex-direction:column;
align-items:    center  ;
}

.play-button {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: var(--yellow);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: clamp(2.8rem, 4vw, 2rem);
    transition: transform 0.3s ease;
    margin: 20px 0;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ===== Галерея скриншотов ===== */
.screenshots-container {
    width: 100%;
    margin: 30px 0;
    overflow: hidden;
}

.screenshots {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.screenshot {
    scroll-snap-align: center;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    width: auto;
    max-width: 90vw;
}

/* ===== Футер ===== */
.footer {
    text-align: center;
    padding: 30px 0 20px;
    font-size: 1.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-link img:hover {
    transform: scale(1.1);
}

/* Адаптация для десктопов */
@media (min-width: 768px) {
    .header {
        min-height: auto;
        padding: 50px 0;
    }
    
    .container {
        padding-top: 20px;
    }
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .header {
        padding-bottom: 80px;
    }
    
    .container {
        padding-top: 0;
    }
    
    .screenshots {
        padding-bottom: 15px;
    }
}