:root {
    /* Фирменная палитра VRPark.kz */
    --primary-neon: #6e44ff;
    /* Неоновый фиолетовый */
    --secondary-neon: #ff00ff;
    /* Неоновый розовый */
    --accent-neon: #00ffff;
    /* Неоновый бирюзовый */
    --bg-dark: #04040a;
    /* Глубокий черный фон */
    --card-bg: rgba(10, 10, 26, 0.8);
    --text-light: #e0e0f0;
}

body {
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    background-image: radial-gradient(circle, #0a0a1a 1px, transparent 1px);
    background-size: 20px 20px;
}

h1,
h2,
h3 {
    font-family: 'Russo One', sans-serif;
    margin: 0;
}

/* ================= HEADER ================= */
.header {
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-neon);
    box-shadow: 0 0 20px rgba(110, 68, 255, 0.3);
}

.back-btn {
    color: var(--accent-neon);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: 1px solid var(--accent-neon);
    padding: 8px 15px;
    border-radius: 5px;
}

.back-btn:hover {
    background: var(--accent-neon);
    color: #000;
    box-shadow: 0 0 15px var(--accent-neon);
}

.header h1 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--secondary-neon);
    text-align: center;
    flex-grow: 1;
}

.header-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* ================= CONTROLS (SEARCH & SELECTS) ================= */
.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.search-box {
    width: 100%;
}

.styled-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--primary-neon);
    color: #fff;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    box-shadow: 0 0 10px rgba(110, 68, 255, 0.2) inset;
}

.styled-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.styled-input:focus {
    border-color: var(--accent-neon);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.filters-row {
    display: flex;
    gap: 15px;
}

.styled-select {
    flex: 1;
    background-color: rgba(10, 10, 26, 0.8);
    border: 2px solid var(--primary-neon);
    color: var(--text-light);
    padding: 12px 20px;
    font-size: 1.05rem;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300ffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 14px auto;
}

.styled-select:focus,
.styled-select:hover {
    border-color: var(--accent-neon);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.styled-select option {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 10px;
}

/* ================= FILTERS (СОЛО/ВМЕСТЕ) ================= */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-neon);
    color: var(--text-light);
    padding: 10px 25px;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    border-color: var(--accent-neon);
    color: var(--accent-neon);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    border: 2px solid transparent;
}

/* ================= CARDS GRID (НЕОНОВАЯ, РОВНАЯ, С 3D-ЭФФЕКТОМ) ================= */
.game-grid {
    display: grid;
    /* Умная сетка подстраивается под экран, карточки не сжимаются меньше 300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
    /* Растягивает карточки в ряду, чтобы не было наездов */
}

.game-card {
    background: var(--card-bg);
    border: 1px solid rgba(110, 68, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
    height: 100%;
    /* Важно для ровной сетки */
    transform-style: preserve-3d;
}

/* ВАУ-ЭФФЕКТ 3D (Только для ПК, чтобы на смартфонах не лагало) */
@media (min-width: 901px) {
    .game-card {
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .game-card:hover {
        /* Эффект вылета и небольшого 3D поворота */
        transform: translateY(-10px) scale(1.03) perspective(1000px) rotateX(4deg) rotateY(-2deg);
        box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.4);
        border-color: var(--accent-neon);
        z-index: 10;
    }
}

.game-img-wrap {
    width: 100%;
    aspect-ratio: 460 / 215;
    /* Строгие пропорции как в задании */
    overflow: hidden;
    position: relative;
    background: #000;
    flex-shrink: 0;
}

.game-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-img-wrap img {
    transform: scale(1.08);
}

.game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background: rgba(110, 68, 255, 0.2);
    color: var(--accent-neon);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* --- Неоновые Бейджи --- */
.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.badge-hit {
    background: var(--secondary-neon);
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.badge-new {
    background: var(--accent-neon);
    color: #000;
    box-shadow: 0 0 10px var(--accent-neon);
}

.badge-scary {
    background: #000;
    color: #ff3333;
    border: 1px solid #ff3333;
    box-shadow: 0 0 10px #ff3333;
}

.badge-kids {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 10px #ffcc00;
}

.badge-coop {
    background: var(--primary-neon);
    color: #fff;
}

.badge-fun {
    background: #ff6600;
    color: #fff;
}

/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #0a0a15, #151525);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 15px;
    border: 2px solid var(--secondary-neon);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.modal-title {
    font-size: 2rem;
    color: var(--secondary-neon);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-neon);
}

.modal-body {
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    padding: 20px;
    gap: 25px;
}

.modal-left {
    flex: 1;
    min-width: 0;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.screenshots-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-neon) #000;
}

.screenshots-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background: var(--primary-neon);
    border-radius: 4px;
}

.screenshots-container img {
    height: 250px;
    border-radius: 8px;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.desc-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-top: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
}

.features-list li:last-child {
    border-bottom: none;
}

.feat-title {
    color: var(--accent-neon);
    font-weight: bold;
}

.feat-val {
    color: #fff;
    font-weight: 600;
}

.book-btn-modal {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    color: #fff;
    text-decoration: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(110, 68, 255, 0.5);
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.book-btn-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--secondary-neon);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .modal-body {
        flex-direction: column;
    }

    .screenshots-container img {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .back-btn {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .container {
        padding: 1rem;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .screenshots-container img {
        height: 180px;
    }
}