/* Основная палитра стихий */
body {
    background: linear-gradient(to bottom, #020024, #090979, #00d4ff);
    color: #ffffff;
}

/* Огонь */
.btn-red, .btn-light-red {
    background: linear-gradient(to right, #BF0813, #ED2329);
    box-shadow: 0 0 15px rgba(237, 35, 41, 0.6);
    border: none;
}

/* Вода */
.btn-blue {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    box-shadow: 0 0 15px rgba(33, 33, 144, 0.6);
    border: none;
}

/* Земля */
.btn-green {
    background: linear-gradient(to right, #134E5E, #4E9800);
    box-shadow: 0 0 15px rgba(78, 152, 0, 0.6);
    border: none;
}

/* Воздух */
.btn-white {
    background: linear-gradient(to right, #E0EAFC, #CFDEF3);
    color: #1C1C1C;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    border: none;
}

/* Анимация для элементов стихий */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.6s;
    z-index: -1;
}

.btn:hover:after {
    left: 100%;
}

/* Навигация */
.navbar {
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar a {
    position: relative;
}

.navbar a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #ED2329;
    transition: 0.4s ease all;
}

.navbar a:hover:after {
    width: 100%;
}

.navbar a:hover {
    opacity: 1;
    color: #ED2329;
}

/* Карточки казино (превращаем в карточки стихий) */
.casino-item {
    border-radius: 10px;
    background: rgba(28, 28, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.6s ease;
}

.casino-item:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Добавляем свечение для заголовков */
h1, h2, h3, h4 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

h1 {
    background: linear-gradient(to right, #FF4E50, #F9D423, #00B4DB, #7BB661);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Футер */
footer {
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.footer-age {
    background: rgba(21, 21, 21, 0.8);
    border-radius: 10px;
}

/* Модальное окно */
.modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal .age-circle {
    background: linear-gradient(to right, #BF0813, #ED2329);
}

.modal button {
    background: linear-gradient(to right, #FF4E50, #F9D423);
}

/* Эффекты на изображениях */
img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Добавляем эстетику элементов */
.info h2 {
    border-left: 4px solid #ED2329;
}

/* Создаем эффект для контейнеров */
.flex-cont > div {
    transition: transform 0.4s ease;
}

.flex-cont > div:hover {
    transform: translateY(-5px);
}

/* Основная палитра стихий и магический фон */
body {
    background: linear-gradient(135deg, #020024 0%, #090979 35%, #00d4ff 100%);
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3C/svg%3E") center/cover;
    z-index: -1;
    animation: floatBackground 120s linear infinite;
}

@keyframes floatBackground {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Частицы стихий */
.container {
    position: relative;
}

.container:before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 87, 51, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 50% 70%, rgba(78, 152, 0, 0.1) 0%, transparent 8%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 8%);
    filter: blur(5px);
    z-index: -1;
    animation: elementalPulse 15s ease-in-out infinite alternate;
}

@keyframes elementalPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Огонь - более яркий и живой эффект */
.btn-red, .btn-light-red {
    background: linear-gradient(45deg, #BF0813, #ED2329, #FF5722);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(237, 35, 41, 0.6);
    border: none;
    animation: fireGlow 3s ease infinite;
}

@keyframes fireGlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(237, 35, 41, 0.6);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(255, 87, 34, 0.8);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(237, 35, 41, 0.6);
    }
}

/* Вода - волнистый эффект */
.btn-blue {
    background: linear-gradient(-45deg, #1e3c72, #2a5298, #00d4ff);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(33, 33, 144, 0.6);
    border: none;
    animation: waterFlow 8s ease infinite;
}

@keyframes waterFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Земля - органический пульсирующий эффект */
.btn-green {
    background: linear-gradient(135deg, #134E5E, #4E9800, #8BC34A);
    background-size: 200% 200%;
    box-shadow: 0 0 15px rgba(78, 152, 0, 0.6);
    border: none;
    animation: earthPulse 5s ease infinite;
}

@keyframes earthPulse {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Воздух - легкий сияющий эффект */
.btn-white {
    background: linear-gradient(to right, #E0EAFC, #CFDEF3, #ffffff);
    background-size: 200% 200%;
    color: #1C1C1C;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    border: none;
    animation: airGlow 6s ease infinite;
}

@keyframes airGlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

/* Усовершенствованная анимация для элементов стихий */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.6s;
    z-index: -1;
    transform: skewX(-15deg);
}

.btn:hover {
    transform: translateY(-5px);
}

.btn:hover:after {
    left: 100%;
}

/* Мистическая навигация */
.navbar {
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar a {
    position: relative;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.navbar a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    right: 0;
    background: #ED2329;
    box-shadow: 0 0 8px #ED2329;
    transition: 0.4s ease all;
}

.navbar a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: #ED2329;
    box-shadow: 0 0 8px #ED2329;
    transition: 0.4s ease all;
}

.navbar a:hover:before {
    width: 50%;
    transition: 0.4s ease all;
}

.navbar a:hover:after {
    width: 50%;
    transition: 0.4s ease all;
}

.navbar a:hover {
    opacity: 1;
    color: #ED2329;
}

/* Элементальные карточки с продвинутыми эффектами */
.casino-item {
    border-radius: 10px;
    background: rgba(28, 28, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform: perspective(1000px) rotateY(0deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.casino-item:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        rgba(255, 0, 0, 0) 0%,
        rgba(255, 0, 0, 0.1) 20%,
        rgba(0, 255, 255, 0.1) 40%,
        rgba(0, 255, 0, 0.1) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        rgba(255, 0, 0, 0) 100%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.6s;
    z-index: 0;
}

.casino-item:hover:before {
    opacity: 1;
    animation: elementalSweep 3s linear infinite;
}

@keyframes elementalSweep {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

.casino-item:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 255, 255, 0.1);
}

/* Элегантный магический эффект для карточек */
.casino-wrapper {
    margin: 40px 0;
}

/* Магическое свечение для заголовков */
h1, h2, h3, h4 {
    position: relative;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

h1 {
    background: linear-gradient(45deg, #FF4E50, #F9D423, #00B4DB, #7BB661);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: titleGlow 8s ease infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 78, 80, 0.5);
    }
    25% {
        text-shadow: 0 0 10px rgba(249, 212, 35, 0.5);
    }
    50% {
        text-shadow: 0 0 10px rgba(0, 180, 219, 0.5);
    }
    75% {
        text-shadow: 0 0 10px rgba(123, 182, 97, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 78, 80, 0.5);
    }
}

/* Мистический футер */
footer {
    background: rgba(7, 7, 7, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        rgba(255, 78, 80, 0.5),
        rgba(249, 212, 35, 0.5),
        rgba(0, 180, 219, 0.5),
        rgba(123, 182, 97, 0.5));
    animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 0%;
    }
}

.footer-age {
    background: rgba(21, 21, 21, 0.8);
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Элегантное модальное окно */
.modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
    animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal .age-circle {
    background: linear-gradient(45deg, #BF0813, #ED2329);
    box-shadow: 0 0 15px rgba(237, 35, 41, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 15px rgba(237, 35, 41, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(237, 35, 41, 0.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(237, 35, 41, 0.6);
    }
}

.modal button {
    background: linear-gradient(45deg, #FF4E50, #F9D423);
    box-shadow: 0 0 15px rgba(255, 78, 80, 0.4);
    transition: all 0.3s ease;
}

.modal button:hover {
    box-shadow: 0 0 20px rgba(255, 78, 80, 0.6);
    transform: translateY(-3px);
}

/* Продвинутые эффекты для изображений */
img {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

img:hover {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1) contrast(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Специальная стилизация для информационных блоков */
.info h2 {
    border-left: 4px solid #ED2329;
    padding-left: 15px;
    position: relative;
}

.info h2:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #ED2329, transparent);
}

/* Анимации для контейнеров */
.flex-cont > div {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.flex-cont > div:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.flex-cont > div:hover {
    transform: translateY(-5px);
}

.flex-cont > div:hover:before {
    opacity: 1;
}

/* Медиа-запросы остаются без изменений, так как вы просили не дублировать размеры и отступы */