/* Цветовая палитра для "Проклятой рощи" */
:root {
    --dark-forest: #080c08; /* темно-зеленый, почти черный */
    --misty-gray: #1a1e1a; /* туманно-серый */
    --rotted-wood: #2a261c; /* гнилая древесина */
    --pale-moss: #4d5740; /* бледный мох */
    --dead-leaf: #5d4037; /* мертвый лист */
    --blood-red: #6b0504; /* кроваво-красный */
    --lichen-green: #7a8b76; /* лишайный зеленый */
    --bone-white: #d8cdb9; /* цвет кости */
    --fog-white: #b0bbb0; /* туманно-белый */
    --eerie-glow: #408080; /* жуткое свечение */
}

/* Базовые стили */
body {
    background: var(--dark-forest);
    color: var(--fog-white);
    font-family: "Montserrat", serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23222922' fill-opacity='0.4' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
}

/* Заголовки */
h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bone-white);
    text-shadow: 0 0 10px rgba(64, 128, 128, 0.4);
}

h1 {
    font-size: 96px;
    text-shadow: 0 0 15px var(--eerie-glow), 0 0 30px rgba(0, 0, 0, 0.7);
    background: linear-gradient(to bottom, var(--bone-white), var(--fog-white) 70%, var(--pale-moss));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 35px;
    color: var(--fog-white);
    text-shadow: 0 0 8px var(--eerie-glow);
}

/* Навигация */
.navbar {
    background: rgba(8, 12, 8, 0.95);
    border-bottom: 1px solid var(--pale-moss);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.navbar a {
    color: var(--fog-white);
    text-shadow: 0 0 5px var(--eerie-glow);
}

.navbar a:hover {
    color: var(--bone-white);
    text-shadow: 0 0 10px var(--eerie-glow), 0 0 20px var(--eerie-glow);
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: var(--fog-white);
    box-shadow: 0 0 5px var(--eerie-glow);
}

/* Секции и контейнеры */
.container {
    position: relative;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--dark-forest) 90%);
    pointer-events: none;
    z-index: -1;
}

section {
    position: relative;
    border-top: 1px solid rgba(122, 139, 118, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.flex-cont {
    position: relative;
}

/* Казино-элементы (можно переиспользовать для карточек локаций) */
.casino-wrapper {
    gap: 20px;
}

.casino-item {
    background: var(--misty-gray);
    border: 1px solid var(--pale-moss);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(64, 128, 128, 0.1);
    position: relative;
    overflow: hidden;
}

.casino-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%23324632' fill-opacity='0.1'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v18H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

.casino-item h4 {
    color: var(--bone-white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.casino-item p {
    color: var(--fog-white);
    font-style: italic;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Кнопки */
.btn {
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(100%) rotate(30deg);
}

.btn-red {
    background: var(--blood-red);
    color: var(--fog-white);
}

.btn-white {
    background: var(--fog-white);
    color: var(--dark-forest);
}

.btn-blue {
    background: var(--eerie-glow);
    color: var(--dark-forest);
}

.btn-green {
    background: var(--lichen-green);
    color: var(--dark-forest);
}

.btn-light-red {
    background: var(--dead-leaf);
    color: var(--fog-white);
}

/* Футер */
footer {
    background: var(--misty-gray);
    border: 1px solid var(--pale-moss);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.footer-info, .footer-links a {
    color: var(--fog-white);
}

.footer-age {
    background: var(--rotted-wood);
    border-top: 1px solid rgba(122, 139, 118, 0.2);
}

/* Модальное окно */
.modal-overlay {
    background-color: rgba(8, 12, 8, 0.95);
}

.modal {
    background: var(--rotted-wood);
    color: var(--fog-white);
    box-shadow: 0 0 30px rgba(64, 128, 128, 0.3), 0 0 60px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--pale-moss);
}

.modal .age-circle {
    background-color: var(--blood-red);
    box-shadow: 0 0 15px rgba(107, 5, 4, 0.7);
}

.modal h2 {
    color: var(--bone-white);
}

.modal button {
    background-color: var(--pale-moss);
    color: var(--dark-forest);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal button:hover {
    background-color: var(--lichen-green);
}

/* Эффекты при наведении */
.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(64, 128, 128, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* Дополнительные атмосферные эффекты */
img {
    filter: brightness(0.9) contrast(1.1) saturate(0.8);
    transition: filter 0.4s ease;
}

img:hover {
    filter: brightness(1) contrast(1.15) saturate(0.9);
}

.info h2 {
    border-left: 3px solid var(--blood-red);
    padding-left: 15px !important;
}

/* Адаптивные стили сохраняем как есть */
@media screen and (max-width: 830px) {
    .casino-item {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    h1 {
        font-size: 60px;
    }
}

@media screen and (max-width: 540px) {
    h1 {
        font-size: 40px;
    }
}

/* Цветовая палитра для "Проклятой рощи" */
:root {
    --dark-forest: #080c08; /* темно-зеленый, почти черный */
    --misty-gray: #1a1e1a; /* туманно-серый */
    --rotted-wood: #2a261c; /* гнилая древесина */
    --pale-moss: #4d5740; /* бледный мох */
    --dead-leaf: #5d4037; /* мертвый лист */
    --blood-red: #6b0504; /* кроваво-красный */
    --lichen-green: #7a8b76; /* лишайный зеленый */
    --bone-white: #d8cdb9; /* цвет кости */
    --fog-white: #b0bbb0; /* туманно-белый */
    --eerie-glow: #408080; /* жуткое свечение */
    --swamp-green: #2c3b2c; /* болотно-зеленый */
    --mushroom-gray: #9a8f7d; /* цвет грибов */
    --twilight-purple: #392f41; /* сумеречно-пурпурный */
    --toxic-green: #39703f; /* токсично-зеленый */
}

/* Базовые стили */
body {
    background: var(--dark-forest);
    color: var(--fog-white);
    font-family: "Montserrat", serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23222922' fill-opacity='0.4' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
    position: relative;
    overflow-x: hidden;
}

/* Эффект тумана по краям экрана */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 15vh;
    background: linear-gradient(to bottom, rgba(8, 12, 8, 0.8), transparent);
    pointer-events: none;
    z-index: 9;
}

body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15vh;
    background: linear-gradient(to top, rgba(8, 12, 8, 0.8), transparent);
    pointer-events: none;
    z-index: 9;
}

/* Анимация пыльцы в воздухе */
@keyframes floatingParticles {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.container::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
            radial-gradient(circle at 20% 30%, var(--eerie-glow) 1px, transparent 1px),
            radial-gradient(circle at 50% 80%, var(--toxic-green) 1px, transparent 1px),
            radial-gradient(circle at 80% 10%, var(--mushroom-gray) 1px, transparent 1px);
    background-size: 300px 300px;
    opacity: 0.07;
    animation: floatingParticles 40s linear infinite;
    z-index: 5;
}

/* Заголовки */
h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bone-white);
    text-shadow: 0 0 10px rgba(64, 128, 128, 0.4);
    position: relative;
}

/* Эффект дрожащего текста для заголовков - чистый CSS */
@keyframes textFlicker {
    0% { opacity: 1; }
    2% { opacity: 0.8; }
    4% { opacity: 1; }
    19% { opacity: 1; }
    21% { opacity: 0.6; }
    23% { opacity: 1; }
    80% { opacity: 1; }
    83% { opacity: 0.8; }
    87% { opacity: 1; }
}

h1 {
    font-size: 96px;
    text-shadow: 0 0 15px var(--eerie-glow), 0 0 30px rgba(0, 0, 0, 0.7);
    background: linear-gradient(to bottom, var(--bone-white), var(--fog-white) 70%, var(--pale-moss));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textFlicker 10s infinite both;
    position: relative;
}

/* Эффект размытой тени для заголовков без использования JS */
h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bone-white), var(--fog-white) 70%, var(--pale-moss));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(5px);
    opacity: 0.5;
    z-index: -1;
}

h2 {
    font-size: 35px;
    color: var(--fog-white);
    text-shadow: 0 0 8px var(--eerie-glow);
    position: relative;
    overflow: hidden;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--eerie-glow), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s ease;
}

h2:hover::after {
    transform: scaleX(1);
}

/* Навигация */
.navbar {
    background: rgba(8, 12, 8, 0.95);
    border-bottom: 1px solid var(--pale-moss);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    position: relative;
    backdrop-filter: blur(5px);
}

/* Мерцающий эффект для навигации */
.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 60%, rgba(64, 128, 128, 0.1) 70%, transparent 80%);
    background-size: 200% 200%;
    animation: navGlow 10s ease infinite;
    pointer-events: none;
}

@keyframes navGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Стилизация ссылок в навигации как "сучья деревьев" */
.navbar a {
    color: var(--fog-white);
    text-shadow: 0 0 5px var(--eerie-glow);
    position: relative;
    padding: 5px 0;
}

.navbar a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background: var(--eerie-glow);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px 1px var(--eerie-glow);
}

.navbar a:hover::before {
    width: 100%;
}

.navbar a:hover {
    color: var(--bone-white);
    text-shadow: 0 0 10px var(--eerie-glow), 0 0 20px var(--eerie-glow);
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: var(--fog-white);
    box-shadow: 0 0 5px var(--eerie-glow);
}

/* Эффект "извивающихся ветвей" для линий гамбургер-меню */
@keyframes lineWiggle {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(0.92); }
    100% { transform: scaleX(1); }
}

.navbar-container .hamburger-lines .line1 {
    animation: lineWiggle 6s ease-in-out infinite;
}

.navbar-container .hamburger-lines .line2 {
    animation: lineWiggle 6s ease-in-out 2s infinite;
}

.navbar-container .hamburger-lines .line3 {
    animation: lineWiggle 6s ease-in-out 4s infinite;
}

/* Секции и контейнеры */
.container {
    position: relative;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--dark-forest) 90%);
    pointer-events: none;
    z-index: -1;
}

section {
    position: relative;
    border-top: 1px solid rgba(122, 139, 118, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.flex-cont {
    position: relative;
}

/* Казино-элементы (можно переиспользовать для карточек локаций) */
.casino-wrapper {
    gap: 20px;
    perspective: 1000px;
}

/* Эффект "призрачное свечение" для карточек */
@keyframes hauntedGlow {
    0% { box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(64, 128, 128, 0.1); }
    50% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(64, 128, 128, 0.2); }
    100% { box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(64, 128, 128, 0.1); }
}

.casino-item {
    background: var(--misty-gray);
    border: 1px solid var(--pale-moss);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(64, 128, 128, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
    transform-style: preserve-3d;
    animation: hauntedGlow 5s infinite alternate;
}

.casino-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%23324632' fill-opacity='0.1'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v18H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

/* Эффект корней */
.casino-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
    transparent 0%,
    var(--eerie-glow) 15%,
    transparent 30%,
    transparent 50%,
    var(--blood-red) 65%,
    transparent 80%,
    var(--toxic-green) 90%,
    transparent 100%
    );
    opacity: 0.3;
    transform: scaleX(0.8);
    transform-origin: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.casino-item:hover::after {
    transform: scaleX(1);
    opacity: 0.6;
}

/* Эффект "потусторонних глаз" */
.casino-item img {
    position: relative;
    filter: grayscale(20%) sepia(20%) brightness(0.9);
    transition: all 0.5s ease;
}

.casino-item:hover img {
    filter: grayscale(0%) sepia(10%) brightness(1);
}

.casino-item h4 {
    color: var(--bone-white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    position: relative;
    transition: transform 0.3s ease;
}

.casino-item p {
    color: var(--fog-white);
    font-style: italic;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Эффект "дымка" для текста внутри карточки */
.casino-item p::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background: radial-gradient(ellipse at center, rgba(57, 112, 63, 0.1), transparent 70%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.casino-item:hover p::before {
    opacity: 1;
}

/* Кнопки */
.btn {
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
}

/* Эффект "трещины" на кнопках */
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

/* Эффект "потустороннее свечение" */
.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%) rotate(30deg);
}

/* Эффект пульсации для кнопок */
@keyframes buttonPulse {
    0% { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 5px rgba(64, 128, 128, 0.3); }
    100% { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
}

.btn:hover {
    animation: buttonPulse 2s infinite;
    transform: translateY(-2px);
}

.btn-red {
    background: var(--blood-red);
    color: var(--fog-white);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.btn-white {
    background: var(--fog-white);
    color: var(--dark-forest);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-blue {
    background: var(--eerie-glow);
    color: var(--dark-forest);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.btn-green {
    background: var(--lichen-green);
    color: var(--dark-forest);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.btn-light-red {
    background: var(--dead-leaf);
    color: var(--fog-white);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

/* Футер */
footer {
    background: var(--misty-gray);
    border: 1px solid var(--pale-moss);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Эффект "корни деревьев" в нижней части футера */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background:
            linear-gradient(90deg,
            transparent 5%,
            var(--eerie-glow) 15%,
            transparent 25%,
            transparent 35%,
            var(--blood-red) 45%,
            transparent 55%,
            var(--pale-moss) 65%,
            transparent 75%,
            var(--toxic-green) 85%,
            transparent 95%
            );
    opacity: 0.4;
}

/* Туманный эффект для футера */
footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top,
    rgba(26, 30, 26, 0.8),
    transparent
    );
    pointer-events: none;
    z-index: 1;
}

.footer-info, .footer-links a {
    color: var(--fog-white);
    position: relative;
    z-index: 2;
}

.footer-links a {
    position: relative;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--bone-white);
    text-shadow: 0 0 5px var(--eerie-glow);
}

/* Эффект "дымящийся след" для ссылок в футере */
.footer-links a::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--eerie-glow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    opacity: 0.7;
}

.footer-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-age {
    background: var(--rotted-wood);
    border-top: 1px solid rgba(122, 139, 118, 0.2);
    position: relative;
    z-index: 2;
}

/* Эффект "мерцающего дыма" */
@keyframes smokePulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

.footer-age::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 15% 50%, var(--eerie-glow) 0%, transparent 50%),
            radial-gradient(circle at 85% 30%, var(--toxic-green) 0%, transparent 40%);
    opacity: 0.1;
    z-index: -1;
    animation: smokePulse 8s infinite;
}

/* Модальное окно */
.modal-overlay {
    background-color: rgba(8, 12, 8, 0.95);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Эффект появления модального окна */
@keyframes modalAppear {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal {
    background: var(--rotted-wood);
    color: var(--fog-white);
    box-shadow: 0 0 30px rgba(64, 128, 128, 0.3), 0 0 60px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--pale-moss);
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Эффект "потустороннего свечения" вокруг модалки */
.modal::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(ellipse at center, var(--eerie-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    animation: glowPulse 4s infinite;
}

@keyframes glowPulse {
    0% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.1; transform: scale(0.8); }
}

/* Пульсирующий круг с возрастом */
@keyframes ageCirclePulse {
    0% { box-shadow: 0 0 15px rgba(107, 5, 4, 0.7); }
    50% { box-shadow: 0 0 25px rgba(107, 5, 4, 0.9), 0 0 10px var(--blood-red); }
    100% { box-shadow: 0 0 15px rgba(107, 5, 4, 0.7); }
}

.modal .age-circle {
    background-color: var(--blood-red);
    animation: ageCirclePulse 3s infinite;
    position: relative;
    z-index: 1;
}

.modal h2 {
    color: var(--bone-white);
    position: relative;
    z-index: 1;
}

/* Стилизованная кнопка модального окна */
.modal button {
    background-color: var(--pale-moss);
    color: var(--dark-forest);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.modal button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal button:hover {
    background-color: var(--lichen-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.modal button:hover::after {
    left: 100%;
}

/* Эффекты при наведении */
.casino-item:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(64, 128, 128, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* Дополнительные атмосферные эффекты */
img {
    filter: brightness(0.9) contrast(1.1) saturate(0.8);
    transition: all 0.4s ease;
}

img:hover {
    filter: brightness(1) contrast(1.15) saturate(0.9);
}

/* Стилизация информационных блоков */
.info {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 30, 26, 0.7), rgba(8, 12, 8, 0.8));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    backdrop-filter: blur(2px);
}

.info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23324632' fill-opacity='0.05'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 20.83l2.83-2.83 1.41 1.41L1.41 22.24H0v-1.41zM0 3.07l2.83-2.83 1.41 1.41L1.41 4.48H0V3.07zm20.75 18.9L22.17 23 20 20.83l-2.17 2.17-.59-.59L15.07 20l2.17-2.17-1.41-1.41L13.66 18l-1.41-1.41 1.41-1.41-2.17-2.17L9.07 16l1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41L9.07 24l2.17 2.17 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 2.17 2.17 2.17-2.17 2.17 2.17 2.17-2.17-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41L30.93 24l-2.17-2.17-1.41 1.41-1.41-1.41zM2.83 5.49L1.41 6.9l1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41L4 30.58l2.17 2.17 2.17-2.17 2.17 2.17 2.17-2.17-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41L13 14.14l-2.17-2.17-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41-1.41 1.41-1.41-1.41L1.41 13l1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41-1.41 1.41 1.41 1.41L0 35.51v1.41l2.83-2.83 1.41 1.41L1.41 38.34H0v-1.41z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: -1;
}

.info h2 {
    border-left: 3px solid var(--blood-red);
    padding-left: 15px !important;
    margin-top: 0;
    position: relative;
}

/* Эффект "потустороннего шепота" для заголовков в info */
.info h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, var(--eerie-glow), transparent);
    transition: width 0.4s ease;
}

.info:hover h2::after {
    width: 70%;
}

/* Стилизация текста в запросе */
.request {
    position: relative;
    padding: 20px;
    border-radius: 5px;
    background: linear-gradient(to right, rgba(57, 112, 63, 0.05), rgba(26, 30, 26, 0.1), rgba(57, 112, 63, 0.05));
    margin: 20px 0;
}

/* Мистический эффект подчеркивания */
.request p {
    position: relative;
}

.request p::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--eerie-glow), transparent);
    opacity: 0.3;
}

/* Анимация для элементов - CSS-only версия */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--section-index, 0) * 0.2s);
}

/* Эффект "мрачного тумана" в фоне - чистый CSS */
@keyframes fogMovement {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

#choose {
    position: relative;
}

#choose::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            linear-gradient(135deg, transparent 0%, rgba(57, 112, 63, 0.05) 50%, transparent 100%),
            linear-gradient(45deg, transparent 0%, rgba(107, 5, 4, 0.03) 50%, transparent 100%);
    background-size: 200% 200%;
    animation: fogMovement 20s ease infinite;
    pointer-events: none;
    z-index: -1;
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 12px;
    background-color: var(--dark-forest);
}

::-webkit-scrollbar-thumb {
    background-color: var(--pale-moss);
    border-radius: 6px;
    border: 3px solid var(--dark-forest);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--lichen-green);
}

::-webkit-scrollbar-track {
    background-color: var(--dark-forest);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Стилизация выделения текста */
::selection {
    background: var(--twilight-purple);
    color: var(--bone-white);
    text-shadow: 0 0 5px var(--eerie-glow);
}

/* Адаптивные стили с атмосферными элементами */
@media screen and (max-width: 830px) {
    .casino-item {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    h1 {
        font-size: 60px;
    }

    /* Уменьшаем интенсивность эффектов для мобильных устройств */
    body::before, body::after {
        height: 8vh;
    }

    .navbar::before {
        opacity: 0.5;
    }
}

@media screen and (max-width: 540px) {
    h1 {
        font-size: 40px;
    }

    .casino-item {
        animation: none;
    }

    /* Скрываем некоторые эффекты для повышения производительности */
    .container::after {
        display: none;
    }
}