/* Основная цветовая палитра: тёмно-красный, чёрный, оранжевый, пепельно-серый */

body {
    background: #0A0302;
    color: #E0CFC9;
    font-family: "Montserrat", serif;
    background-image: linear-gradient(to bottom, #0A0302 0%, #1E0705 100%);
}

.navbar {
    background: rgba(26, 7, 5, 0.9);
    border-bottom: 1px solid #BF0813;
}

.navbar a {
    color: #FF8E71;
    text-shadow: 0 0 5px #BF0813;
}

.navbar a:hover {
    color: #FF5A3D;
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: #FF5A3D;
}

h1, h2, h3, h4 {
    color: #FF5A3D;
    text-shadow: 0 0 10px #BF0813;
    letter-spacing: 2px;
}

h1 {
    color: #FF8E71;
    text-shadow: 0 0 15px #BF0813, 0 0 30px #FF5A3D;
}

.btn-red {
    background: #BF0813;
    box-shadow: 0 0 15px #BF0813;
    border: none;
}

.btn-white {
    background: #E0CFC9;
    color: #1A0705;
    box-shadow: 0 0 10px #E0CFC9;
    border: none;
}

.btn-blue {
    background: #2D2358;
    box-shadow: 0 0 10px #473B9E;
    border: none;
}

.btn-green {
    background: #4E4100;
    box-shadow: 0 0 10px #7A6800;
    border: none;
}

.btn-light-red {
    background: #ED2329;
    box-shadow: 0 0 15px #ED2329;
    border: none;
}

.casino-item {
    background: #1A0705;
    border: 1px solid #BF0813;
    box-shadow: 0 0 10px rgba(191, 8, 19, 0.3);
}

.casino-item h4 {
    color: #FF8E71;
}

.casino-item p {
    color: #A9918C;
}

footer {
    background: rgba(26, 7, 5, 0.7);
    border: 1px solid #FF5A3D;
    box-shadow: inset 0 0 20px rgba(255, 90, 61, 0.2);
}

.footer-age {
    background: #170503;
    border-top: 1px solid #BF0813;
}

.footer-links a {
    color: #FF8E71;
}

.footer-links a:hover {
    color: #FF5A3D;
    text-shadow: 0 0 5px #BF0813;
}

.modal {
    background: #170503;
    border: 2px solid #BF0813;
    color: #E0CFC9;
}

.modal .age-circle {
    background-color: #BF0813;
    box-shadow: 0 0 10px #ED2329;
}

.modal h2 {
    color: #FF8E71;
}

.modal button {
    background-color: #FF5A3D;
    color: #0A0302;
    box-shadow: 0 0 10px #BF0813;
}

.modal button:hover {
    background-color: #FF8E71;
}

/* Анимация "горящего" эффекта для заголовков */
@keyframes flamePulse {
    0% { text-shadow: 0 0 10px #BF0813, 0 0 20px #FF5A3D; }
    50% { text-shadow: 0 0 15px #ED2329, 0 0 30px #FF8E71; }
    100% { text-shadow: 0 0 10px #BF0813, 0 0 20px #FF5A3D; }
}

h1 {
    animation: flamePulse 3s infinite;
}

/* Эффект трещины для разделителей */
.container::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #BF0813, #FF5A3D, #BF0813, transparent);
    margin: 30px 0;
}

/* Фоновый эффект для создания атмосферы "горящего мира" */
.info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(191, 8, 19, 0.1), transparent 70%);
    z-index: -2;
}

/* Стилизация изображений для создания эффекта разрушенного мира */
img {
    filter: contrast(1.1) saturate(0.9) sepia(0.2);
}
/* Дополнительные эффекты для сайта "Обрушившийся мир" */

/* Эффект "плавающего пепла" на фоне */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(circle at 20% 20%, rgba(255, 90, 61, 0.08) 0%, transparent 25%),
            radial-gradient(circle at 80% 40%, rgba(191, 8, 19, 0.08) 0%, transparent 30%);
    z-index: -3;
    animation: backgroundShift 40s ease-in-out infinite alternate;
}

/* Анимация смещения фонового свечения */
@keyframes backgroundShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 10% 20%; }
    100% { background-position: 0% 0%; }
}

/* Эффект разломов на элементах */
.casino-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 49.7%, rgba(191, 8, 19, 0.5) 49.8%, rgba(191, 8, 19, 0.5) 50%, transparent 50.2%),
    linear-gradient(45deg, transparent 49.7%, rgba(191, 8, 19, 0.3) 49.8%, rgba(191, 8, 19, 0.3) 50%, transparent 50.2%);
    background-size: 100px 100px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Эффект искажения для заголовка */
h1 {
    position: relative;
    overflow: hidden;
}

h1::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    top: 0;
    color: #FF5A3D;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translateX(2px);
    animation: glitchEffect 3s infinite alternate;
}

h1::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 0;
    color: #BF0813;
    width: 100%;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translateX(-2px);
    animation: glitchEffect 2.7s infinite alternate-reverse;
}

@keyframes glitchEffect {
    0% { transform: translateX(-2px); }
    25% { transform: translateX(0px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0px); }
}

/* Эффект пульсации для кнопок */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(1);
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.2; }
    100% { opacity: 0; transform: scale(1.2); }
}

/* Эффект тлеющих углей для нижней части страницы */
footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background:
            radial-gradient(circle at 20% 90%, rgba(191, 8, 19, 0.07) 0%, transparent 30%),
            radial-gradient(circle at 50% 95%, rgba(255, 90, 61, 0.05) 0%, transparent 25%),
            radial-gradient(circle at 80% 93%, rgba(255, 142, 113, 0.07) 0%, transparent 30%);
    animation: emberGlow 4s infinite alternate;
    z-index: -1;
}

@keyframes emberGlow {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Эффект сверкающих частиц для .casino-item */
.casino-item {
    position: relative;
    overflow: hidden;
}

.casino-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 142, 113, 0.1), transparent);
    transform: skewX(-20deg);
    animation: sparkEffect 6s infinite;
}

@keyframes sparkEffect {
    0% { left: -150%; }
    30%, 100% { left: 150%; }
}

/* Эффект разбитого стекла для изображений */
img {
    position: relative;
}

img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(45deg, transparent 48%, rgba(255, 142, 113, 0.3) 49%, transparent 51%),
            linear-gradient(135deg, transparent 48%, rgba(255, 142, 113, 0.3) 49%, transparent 51%);
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Эффект дрожания для текста в состоянии hover */
.navbar a:hover, .footer-links a:hover {
    animation: textTremble 0.3s infinite;
}

@keyframes textTremble {
    0% { transform: translateX(0); }
    25% { transform: translateX(1px); }
    50% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

/* Эффект огненного градиента для модального окна */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
    rgba(255, 90, 61, 0.1) 0%,
    rgba(191, 8, 19, 0.1) 50%,
    rgba(26, 7, 5, 0.1) 100%);
    z-index: -1;
    animation: fireGradient 3s infinite alternate;
}

@keyframes fireGradient {
    0% { opacity: 0.7; background-position: 0% 0%; }
    100% { opacity: 1; background-position: 0% 100%; }
}

/* Эффект "трещины земли" для разделителей секций */
section::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
    transparent 0%,
    #BF0813 20%,
    transparent 30%,
    #BF0813 40%,
    transparent 50%,
    #BF0813 60%,
    transparent 70%,
    #BF0813 80%,
    transparent 100%);
    margin: 30px 0;
    transform: scaleX(0.97);
}

/* Эффект пламени для заголовков второго уровня при наведении */
h2:hover {
    animation: flameWave 1.5s infinite;
}

@keyframes flameWave {
    0% { text-shadow: 0 0 10px #BF0813, 0 0 20px #FF5A3D; }
    25% { text-shadow: 0 0 15px #BF0813, 0 0 25px #FF5A3D, 0 0 35px #FF8E71; }
    50% { text-shadow: 0 0 10px #BF0813, 0 0 15px #FF5A3D; }
    75% { text-shadow: 0 0 15px #BF0813, 0 0 25px #FF5A3D, 0 0 35px #FF8E71; }
    100% { text-shadow: 0 0 10px #BF0813, 0 0 20px #FF5A3D; }
}

/* Фоновая текстура "пепла" */
.container {
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23BF0813' fill-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.05;
    z-index: -1;
}

/* Эффект "горящих краев" для кнопок */
.btn:hover {
    box-shadow: 0 0 20px #FF5A3D, 0 0 40px rgba(191, 8, 19, 0.5);
    transition: box-shadow 0.3s ease;
}

/* Создание эффекта размытия для фона меню при открытии */
.navbar-container input[type="checkbox"]:checked ~ .menu-items {
    backdrop-filter: blur(4px);
}

/* Дополнительные продвинутые эффекты для сайта "Обрушившийся мир" */

/* Эффект "Огненного неба" для верхней части страницы */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background:
            radial-gradient(ellipse at 30% 5%, rgba(255, 90, 61, 0.15) 0%, transparent 70%),
            radial-gradient(ellipse at 60% 0%, rgba(191, 8, 19, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse at 90% 10%, rgba(255, 142, 113, 0.1) 0%, transparent 65%);
    z-index: -2;
    pointer-events: none;
    animation: skyFire 10s infinite alternate;
}

@keyframes skyFire {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Эффект "дрожащей земли" для всей страницы при прокрутке */
html {
    overflow-x: hidden;
}

html:not(:hover) {
    animation: earthShake 0.2s ease-in-out;
}

@keyframes earthShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-0.5px); }
    80% { transform: translateX(0.5px); }
}

/* Эффект "лавовых вен" для границ элементов */
.casino-item, footer, .footer-age {
    position: relative;
}

.casino-item::before, footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    background: linear-gradient(90deg, #BF0813, #FF5A3D, #FF8E71, #BF0813);
    background-size: 300% 100%;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    animation: lavaBorder 8s infinite;
    transition: opacity 0.3s ease;
}

.casino-item:hover::before, footer:hover::before, .footer-age:hover::before {
    opacity: 1;
}

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

/* Эффект "пепельных частиц" на фоне */
@keyframes floatingAsh {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.container::after {
    content: '';
    position: fixed;
    bottom: -10vh;
    left: 0;
    width: 100%;
    height: 10vh;
    background: none;
    z-index: 10;
    pointer-events: none;
}

/* Добавляем множество частиц с помощью псевдоэлементов для разных элементов */
.col::after, .col-2::after, .col-3::after, .casino::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FF5A3D;
    border-radius: 50%;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: floatingAsh 15s infinite linear;
}

.col::after { left: 20%; bottom: 0; animation-delay: 0s; }
.col-2::after { left: 40%; bottom: 0; animation-delay: 3s; }
.col-3::after { left: 60%; bottom: 0; animation-delay: 6s; }
.casino::after { left: 80%; bottom: 0; animation-delay: 9s; }

/* Эффект "огненного свечения" для активных элементов */
.btn:active, .navbar a:active {
    transform: scale(0.98);
    box-shadow: 0 0 30px #FF5A3D, 0 0 50px rgba(191, 8, 19, 0.7);
}

/* Эффект "тлеющего фона" для ховера элементов */
.casino-item:hover {
    background: linear-gradient(135deg, #1A0705 0%, #2E0A08 100%);
}

/* Эффект "пульсации жара" вокруг кнопок */
.btn {
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 142, 113, 0.3) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
    animation: heatPulse 2s infinite;
}

@keyframes heatPulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

/* Эффект "летящих искр" для элементов при ховере */
@keyframes sparkFly {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
}

.btn:hover::after, .casino-item:hover h4::after {
    --x: calc(random(100) * 1px);
    --y: calc(random(100) * -1px);
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FF8E71;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 3px #FF5A3D;
    animation: sparkFly 1s forwards;
}

.footer-age::after{
    display: none;
}

/* Эффект "магмы" для фона модальных окон */
.modal {
    position: relative;
    overflow: hidden;
}

.modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 30% 30%, rgba(255, 90, 61, 0.1) 0%, transparent 30%),
            radial-gradient(circle at 70% 60%, rgba(191, 8, 19, 0.1) 0%, transparent 30%),
            radial-gradient(circle at 50% 80%, rgba(255, 142, 113, 0.1) 0%, transparent 30%);
    z-index: -1;
    animation: magmaShift 6s infinite alternate;
}

@keyframes magmaShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 10% 30%; }
}

/* Эффект "растрескивающегося стекла" для контейнеров при клике */
.container:active::before {
    animation: crackGlass 0.5s forwards;
}

@keyframes crackGlass {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.01); opacity: 0.08; }
    100% { transform: scale(1); opacity: 0.05; }
}

/* Эффект "кровавого шрифта" для заголовков */
h2, h3, h4 {
    background: linear-gradient(to bottom, #FF8E71 0%, #FF5A3D 50%, #BF0813 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

h2::before, h3::before, h4::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #FF8E71 0%, #FF5A3D 50%, #BF0813 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.5;
    filter: blur(3px);
    z-index: -1;
}

/* Эффект "горящей линии" для меню навигации */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #BF0813, #FF5A3D);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
    box-shadow: 0 0 5px #FF5A3D;
}

/* Эффект "рассыпающегося текста" для кнопок при наведении */
.btn span {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn:hover span:nth-child(odd) {
    transform: translateY(-2px);
    color: #FF8E71;
}

.btn:hover span:nth-child(even) {
    transform: translateY(2px);
    color: #FF5A3D;
}

/* Эффект "дымового шлейфа" для футера */
.footer-info, .footer-links {
    position: relative;
}

.footer-info::before, .footer-links::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, rgba(26, 7, 5, 0.5), transparent);
    filter: blur(5px);
    transform-origin: bottom;
    animation: smokeRise 5s infinite alternate;
}

@keyframes smokeRise {
    0% { transform: scaleY(1); opacity: 0.5; }
    100% { transform: scaleY(1.5); opacity: 0.3; }
}

/* Эффект "вспышки огня" при загрузке страницы */
body {
    animation: pageLoadFire 2s ease-out;
}

@keyframes pageLoadFire {
    0% { background-color: #BF0813; }
    10% { background-color: #1E0705; }
    20% { background-color: #3A0E09; }
    30% { background-color: #1E0705; }
    100% { background-color: #0A0302; }
}

/* Эффект "огненной тени" для текста */
.casino-item p {
    text-shadow: 0 0 1px rgba(255, 142, 113, 0.3);
}

/* Эффект "окружающего жара" для активных элементов */
.casino-item:hover img {
    filter: contrast(1.2) saturate(1.1) sepia(0.3) brightness(1.05);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Эффект "выгорания" для изображений на ховер */
img:hover {
    animation: burnEffect 3s forwards;
}

@keyframes burnEffect {
    0% { filter: contrast(1.1) saturate(0.9) sepia(0.2); }
    20% { filter: contrast(1.2) saturate(1.1) sepia(0.4) brightness(1.1); }
    100% { filter: contrast(1.1) saturate(0.9) sepia(0.2); }
}

/* Эффект "затмения реальности" при открытии модальных окон */
.modal-overlay {
    animation: realityFade 0.5s forwards;
}

@keyframes realityFade {
    0% { background-color: rgba(0, 0, 0, 0); }
    100% { background-color: rgba(0, 0, 0, 0.9); }
}

/* Создания эффекта красных теней для края экрана */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
    box-shadow: inset 0 0 100px rgba(191, 8, 19, 0.3);
}

/* Эффект "дымки заката" для всего сайта */
html::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at bottom right, rgba(255, 90, 61, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 998;
}