/* Основные стили */
body {
    background: #0A0A14;
    color: #B9B6CA;
    font-family: "Montserrat", serif;
}

h1, h2, h3, h4 {
    color: #E6E0FF;
    text-transform: uppercase;
    font-weight: 700;
}

h1 {
    color: #5f2463;
    text-shadow: 0 0 8px #9D34B3, 0 0 15px #2A0C3A;
}

h2 {
    color: #b088b9;
    text-shadow: 0 0 5px #6A3172;
}

/* Навигация */
.navbar {
    background: #0D0D1A;
    border-bottom: 1px solid #33264D;
}

.navbar a {
    color: #B89ECC;
}

.navbar a:hover {
    color: #D9C2F0;
    opacity: 0.9;
    text-shadow: 0 0 8px #9D34B3;
}

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

.navbar .menu-items {
    background: #0A0A14;
    border-right: 1px solid #33264D;
}

/* Контейнеры */
.container {
    max-width: 1578px;
    margin: auto;
}

.flex-cont {
    border-radius: 5px;
    background: rgba(16, 13, 28, 0.7);
}

.col, .col-2, .col-3 {
    border-left: 1px solid #33264D;
}

/* Казино-блоки (переиспользование для карточек существ) */
.casino-wrapper {
    background: linear-gradient(180deg, #120E24 0%, #1C0D25 100%);
    border-radius: 10px;
    border: 1px solid #3D2952;
    box-shadow: 0 0 15px rgba(93, 38, 131, 0.3);
}

.casino-item {
    background: #1A1326;
    border: 1px solid #43295F;
    transition: 0.4s ease all;
}

.casino-item:hover {
    background: #251A36;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(93, 38, 131, 0.4);
}

.casino-item h4 {
    color: #D6B7F9;
    font-size: 24px;
}

.casino-item p {
    color: #A28CC1;
    font-style: italic;
}

/* Кнопки */
.btn {
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(66, 21, 112, 0.5);
}

.btn-red {
    background: #721052;
    color: #FFD9F2;
}

.btn-white {
    background: #D4C5E9;
    color: #2A0C3A;
}

.btn-blue {
    background: #362299;
    color: #D9C2F0;
}

.btn-green {
    background: #3D5A53;
    color: #B8E0D2;
}

.btn-light-red {
    background: #9D1A66;
    color: #FFDCF9;
}

/* Футер */
footer {
    border: 1px solid #33264D;
    background: #0D0D1A;
}

.logo-info {
    border-bottom: 1px solid #33264D;
}

.footer-info {
    color: #A28CC1;
}

.footer-age {
    background: #151525;
}

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

.footer-links a:hover {
    color: #D9C2F0;
    text-shadow: 0 0 5px #9D34B3;
}

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

.modal {
    background: #1A1326;
    color: #D6B7F9;
    box-shadow: 0 4px 20px rgba(93, 38, 131, 0.5);
    border: 1px solid #43295F;
}

.modal .age-circle {
    background-color: #721052;
    color: #FFD9F2;
}

.modal h2 {
    color: #E6E0FF;
}

.modal button {
    background-color: #362299;
    color: #D9C2F0;
}

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

/* Основные стили */
body {
    background: #0A0A14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    color: #B9B6CA;
    font-family: "Montserrat", serif;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at 15% 50%, rgba(157, 52, 179, 0.08) 0%, rgba(10, 10, 20, 0) 50%),
    radial-gradient(circle at 85% 30%, rgba(54, 34, 153, 0.08) 0%, rgba(10, 10, 20, 0) 50%);
    z-index: -1;
}

h1, h2, h3, h4 {
    color: #E6E0FF;
    text-transform: uppercase;
    font-weight: 700;
}

h1 {
    color: #5f2463;
    text-shadow: 0 0 8px #9D34B3, 0 0 15px #2A0C3A;
    letter-spacing: 2px;
    position: relative;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #9D34B3, transparent);
}

h2 {
    color: #b088b9;
    text-shadow: 0 0 5px #6A3172;
    letter-spacing: 1px;
}

/* Навигация */
.navbar {
    background: rgba(13, 13, 26, 0.85);
    border-bottom: 1px solid #33264D;
    backdrop-filter: blur(10px);
}

.navbar a {
    color: #B89ECC;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #9D34B3, transparent);
    transition: width 0.4s ease;
}

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

.navbar a:hover {
    color: #D9C2F0;
    opacity: 0.9;
    text-shadow: 0 0 8px #9D34B3;
}

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

.navbar-container .hamburger-lines .line1,
.navbar-container .hamburger-lines .line3 {
    box-shadow: 0 0 5px rgba(157, 52, 179, 0.7);
}

.navbar .menu-items {
    background: rgba(10, 10, 20, 0.95);
    border-right: 1px solid #33264D;
    backdrop-filter: blur(15px);
}

/* Контейнеры */
.container {
    max-width: 1578px;
    margin: auto;
    position: relative;
}

.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(54, 34, 153, 0.1) 0%, rgba(10, 10, 20, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.flex-cont {
    border-radius: 5px;
    background: rgba(16, 13, 28, 0.7);
    backdrop-filter: blur(5px);
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
}

.flex-cont::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(135deg, rgba(157, 52, 179, 0.03) 0%, rgba(10, 10, 20, 0) 50%),
            linear-gradient(45deg, rgba(54, 34, 153, 0.03) 0%, rgba(10, 10, 20, 0) 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.flex-cont:hover::before {
    opacity: 1;
}

.col, .col-2, .col-3 {
    border-left: 1px solid #33264D;
    position: relative;
    transition: all 0.3s ease;
}

.col:hover, .col-2:hover, .col-3:hover {
    background: rgba(26, 19, 38, 0.3);
}

.col img, .col-2 img, .col-3 img {
    transition: all 0.4s ease;
    filter: saturate(0.8) contrast(1.1) brightness(0.9);
}

.col:hover img, .col-2:hover img, .col-3:hover img {
    filter: saturate(1.1) contrast(1.2) brightness(1);
    transform: scale(1.02);
}

/* Казино-блоки (переиспользование для карточек существ) */
.casino-wrapper {
    background: linear-gradient(180deg, #120E24 0%, #1C0D25 100%);
    border-radius: 10px;
    border: 1px solid #3D2952;
    box-shadow: 0 0 15px rgba(93, 38, 131, 0.3);
    position: relative;
    overflow: hidden;
}

.casino-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 52, 179, 0.08) 0%, rgba(10, 10, 20, 0) 70%);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.casino-wrapper:hover::before {
    opacity: 1;
    animation: pulse 5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.05); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.05; }
}

.casino-item {
    background: #1A1326;
    border: 1px solid #43295F;
    transition: 0.4s ease all;
    position: relative;
    overflow: hidden;
}

.casino-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 52, 179, 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.7s ease all;
}

.casino-item:hover::after {
    left: 100%;
}

.casino-item:hover {
    background: #251A36;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(93, 38, 131, 0.4);
}

.casino-item h4 {
    color: #D6B7F9;
    font-size: 24px;
    position: relative;
    display: inline-block;
}

.casino-item h4::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9D34B3, transparent);
}

.casino-item p {
    color: #A28CC1;
    font-style: italic;
}

/* Кнопки */
.btn {
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(66, 21, 112, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0.2;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(66, 21, 112, 0.7);
}

.btn-red {
    background: #721052;
    color: #FFD9F2;
}

.btn-red::before {
    background: #9D1A66;
}

.btn-white {
    background: #D4C5E9;
    color: #2A0C3A;
}

.btn-white::before {
    background: #E6E0FF;
}

.btn-blue {
    background: #362299;
    color: #D9C2F0;
}

.btn-blue::before {
    background: #4D33C1;
}

.btn-green {
    background: #3D5A53;
    color: #B8E0D2;
}

.btn-green::before {
    background: #4F7269;
}

.btn-light-red {
    background: #9D1A66;
    color: #FFDCF9;
}

.btn-light-red::before {
    background: #BD2479;
}

/* Футер */
footer {
    border: 1px solid #33264D;
    background: #0D0D1A;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(157, 52, 179, 0.5), transparent);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.logo-info {
    border-bottom: 1px solid #33264D;
    position: relative;
}

.logo-info img {
    filter: drop-shadow(0 0 5px rgba(157, 52, 179, 0.3));
    transition: all 0.4s ease;
}

.logo-info img:hover {
    filter: drop-shadow(0 0 8px rgba(157, 52, 179, 0.6));
    transform: scale(1.05);
}

.footer-info {
    color: #A28CC1;
}

.footer-age {
    background: #151525;
    position: relative;
    overflow: hidden;
}

.footer-age::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(54, 34, 153, 0.05) 0%, rgba(10, 10, 20, 0) 70%);
    opacity: 0.5;
}

.footer-links a {
    color: #B89ECC;
    position: relative;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #9D34B3;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-links a:hover {
    color: #D9C2F0;
    text-shadow: 0 0 5px #9D34B3;
}

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

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

.modal {
    background: #1A1326;
    color: #D6B7F9;
    box-shadow: 0 4px 20px rgba(93, 38, 131, 0.5), 0 0 40px rgba(54, 34, 153, 0.3);
    border: 1px solid #43295F;
    position: relative;
    animation: modalAppear 0.5s ease;
    overflow: hidden;
}

@keyframes modalAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 52, 179, 0.05) 0%, rgba(10, 10, 20, 0) 70%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal .age-circle {
    background-color: #721052;
    color: #FFD9F2;
    box-shadow: 0 0 15px rgba(157, 52, 179, 0.5);
    position: relative;
    overflow: hidden;
}

.modal .age-circle::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: radial-gradient(circle at 30% 30%, rgba(157, 52, 179, 0.4) 0%, rgba(10, 10, 20, 0) 60%);
    animation: pulseLight 3s ease infinite alternate;
}

@keyframes pulseLight {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

.modal h2 {
    color: #E6E0FF;
    position: relative;
}

.modal h2::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 30%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9D34B3, transparent);
}

.modal button {
    background-color: #362299;
    color: #D9C2F0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.modal button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(157, 52, 179, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.7s ease all;
    z-index: -1;
}

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

.modal button:hover {
    background-color: #4D33C1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(54, 34, 153, 0.4);
}