/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
:root {
    --bg-color: #0f0f13;
    --text-main: #e0e0e0;
    --text-muted: #8b8b99;
    --accent-color: #00d2ff;
    --accent-hover: #00a8cc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   ИНТЕРАКТИВНЫЙ ФОН
   ========================================= */
.bg-advanced {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-color);
}

#mouse-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    filter: blur(50px);
}

.morph-shape {
    position: absolute;
    filter: blur(90px);
    opacity: 0.4;
    animation: morph 15s ease-in-out infinite, spin 20s linear infinite;
}

.shape-1 {
    width: 50vw;
    height: 50vw;
    background: linear-gradient(45deg, #7a00ff, #00d2ff);
    top: -10%;
    left: -10%;
    transform-origin: center center;
}

.shape-2 {
    width: 40vw;
    height: 40vw;
    background: linear-gradient(45deg, #ff007a, #7a00ff);
    bottom: -10%;
    right: -5%;
    animation-direction: reverse;
    transform-origin: 40% 40%;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    33% {
        border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    }

    66% {
        border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   ШАПКА (HEADER) И ПОДВАЛ (FOOTER)
   ========================================= */
.header {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(20, 20, 25, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.logo span {
    color: var(--accent-color);
}

.download-app-btn {
    background-color: var(--accent-color);
    color: #000;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.download-app-btn2 {

    width: 300px;
    background-color: var(--accent-color);
    color: #000;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.download-app-btn:hover {
    background-color: #fff;
    box-shadow: 0 0 15px var(--accent-color);
}

.download-app-btn2:hover {
    background-color: #fff;
    box-shadow: 0 0 15px var(--accent-color);
}

.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

/* =========================================
   ВИТРИНА ИГР (ПЛИТКИ)
   ========================================= */
main {
    padding: 60px 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #fff;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-muted);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Контейнер плитки */
.game-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Текст будет прижат к низу */
    justify-content: center;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    overflow: hidden;
    padding-bottom: 25px;
    /* Отступ текста от нижнего края */
    background-color: #1a1a20;
    /* Цвет на случай, если картинка не загрузится */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s, box-shadow 0.4s;
}

/* Слой с картинкой */
.game-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.5s ease;
    /* Плавный зум картинки */
}

/* Градиентное затемнение снизу, чтобы текст читался на светлых картинках */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

/* Текст (Название игры) */
.game-tile span {
    z-index: 2;
    position: relative;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
    letter-spacing: 0.5px;
}

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ МЫШИ --- */
.game-tile:hover {
    transform: translateY(-12px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.2);
}

.game-tile:hover .game-cover {
    transform: scale(1.1);
    /* Сама картинка увеличивается внутри рамки */
}

.opisanie {
    margin-top: 50px;
    font-size: 22px !important;
    color: #ffffff !important;
    background: #0000003d;
    border-radius: 15px;
    box-shadow: 1px 0px 41px -2px rgb(70 29 181 / 43%);
    -webkit-box-shadow: 1px 0px 41px -2px rgb(70 29 181 / 43%);
    -moz-box-shadow: 1px 0px 41px -2px rgb(70 29 181 / 43%);
}