:root {
    /* Основные цвета */
    --color-background: #1a0f29; /* Глубокий фиолетовый цвет для фона - как ночное небо */
    --color-text: #e8e1d9; /* Состаренный пергамент */
    --color-heading: #c9a959; /* Золото старинных фолиантов */
    --color-link-hover: rgba(201, 169, 89, 0.8); /* Свечение при наведении */

    /* Акцентные цвета */
    --color-accent-1: #61385c; /* Мистический фиолетовый */
    --color-accent-2: #33223d; /* Темный фиолетовый для контраста */
    --color-accent-3: #8a5d7b; /* Светлый фиолетовый для акцентов */

    /* Фоновые цвета */
    --color-background-dark: #120a1e; /* Еще более темный фон */
    --color-background-darker: #0a0510; /* Самый темный фон */
    --color-background-light: rgba(201, 169, 89, 0.1); /* Золотистое свечение */
    --color-background-lighter: rgba(201, 169, 89, 0.15); /* Более яркое золотистое свечение */

    /* Цвета контролов */
    --color-control: #33223d; /* Темный фиолетовый для элементов управления */
    --color-control-border: #c9a959; /* Золотистая окантовка */

    /* Цвета кнопок */
    --color-button: #c9a959; /* Золотистые кнопки */
    --color-button-hover: #b38d35; /* Эффект при наведении */
    --color-button-gradient-start: #c9a959; /* Начало градиента - золото */
    --color-button-gradient-end: #8a5d7b; /* Конец градиента - фиолетовый */

    /* Модальное окно */
    --color-modal-background: #1a0f29; /* Фон модального окна в тон основному */
    --color-modal-text: #e8e1d9; /* Текст модального окна */
    --color-modal-circle: #61385c; /* Круг в модальном окне */
}

body {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a0f29"/><path d="M0 0L100 100M100 0L0 100" stroke="%23352747" stroke-width="0.5" stroke-opacity="0.2"/></svg>');
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

h1, h2, h3, h4 {
    font-family: "Cinzel", "Montserrat", serif;
    font-weight: bold;
    color: var(--color-heading);
    text-shadow: 0 0 5px rgba(201, 169, 89, 0.3);
    letter-spacing: 1px;
}

p {
    font-weight: 300;
    font-size: 16px;
}

h1 {
    position: relative;
    display: inline-block;
}

h1:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

a {
    color: var(--color-heading);
    transition: all 0.4s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-shadow: 0 0 8px rgba(201, 169, 89, 0.5);
}

.button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    color: var(--color-background-dark);
    font-family: "Cinzel", "Montserrat", serif;
    border: 1px solid var(--color-heading);
    box-shadow: 0 0 10px rgba(201, 169, 89, 0.3);
    transition: all 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.5);
    transform: translateY(-2px);
}

.main-button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.4);
    border: 1px solid rgba(201, 169, 89, 0.5);
    letter-spacing: 1px;
    font-family: "Cinzel", "Montserrat", serif;
    transition: all 0.3s ease;
}

.main-button:hover {
    box-shadow: 0 0 20px rgba(201, 169, 89, 0.7);
    transform: translateY(-3px) scale(1.03);
}

.navbar {
    background: linear-gradient(to bottom, var(--color-background-dark) 0%, transparent 100%);
}

.menu-items li {
    position: relative;
}

.menu-items li:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-heading);
    transition: width 0.3s ease;
}

.menu-items li:hover:after {
    width: 100%;
}

.logo {
    position: relative;
}

.logo:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

.header {
    background: linear-gradient(135deg, var(--color-background-dark) 0%, var(--color-accent-2) 50%, var(--color-background-dark) 100%);
    position: relative;
    overflow: hidden;
}

.header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23000" fill-opacity="0.1" width="100" height="100"/><g fill="%23c9a959" fill-opacity="0.05"><circle cx="10" cy="10" r="1"/><circle cx="30" cy="10" r="1"/><circle cx="50" cy="10" r="1"/><circle cx="70" cy="10" r="1"/><circle cx="90" cy="10" r="1"/><circle cx="10" cy="30" r="1"/><circle cx="30" cy="30" r="1"/><circle cx="50" cy="30" r="1"/><circle cx="70" cy="30" r="1"/><circle cx="90" cy="30" r="1"/><circle cx="10" cy="50" r="1"/><circle cx="30" cy="50" r="1"/><circle cx="50" cy="50" r="1"/><circle cx="70" cy="50" r="1"/><circle cx="90" cy="50" r="1"/><circle cx="10" cy="70" r="1"/><circle cx="30" cy="70" r="1"/><circle cx="50" cy="70" r="1"/><circle cx="70" cy="70" r="1"/><circle cx="90" cy="70" r="1"/><circle cx="10" cy="90" r="1"/><circle cx="30" cy="90" r="1"/><circle cx="50" cy="90" r="1"/><circle cx="70" cy="90" r="1"/><circle cx="90" cy="90" r="1"/></g></svg>');
    opacity: 0.4;
}

.header-cont {
    position: relative;
    z-index: 2;
}

.col-wrapper {
    position: relative;
}

.col-wrapper:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

.img-col img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(201, 169, 89, 0.2);
    transition: all 0.5s ease;
}

.img-col img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(201, 169, 89, 0.5);
}

.age {
    background: var(--color-accent-2);
    border-top: 1px solid rgba(201, 169, 89, 0.3);
    border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.age-cont {
    background: var(--color-accent-1);
    border: 1px solid var(--color-heading);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.experience-item {
    background: var(--color-background-light);
    border: 1px solid rgba(201, 169, 89, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 169, 89, 0.4);
}

.experience-item h4 {
    font-family: "Cinzel", "Montserrat", serif;
    letter-spacing: 1px;
}

.contact-wrapper {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent-3) 100%);
    border: 2px solid var(--color-heading);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.footer-logo {
    background: var(--color-background-dark);
    border-top: 1px solid rgba(201, 169, 89, 0.3);
}

.footer-wrapper {
    background: var(--color-background-dark);
    position: relative;
}

.footer-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

.slot-machine {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-background-dark) 100%);
    border: 2px solid rgba(201, 169, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cell {
    background: var(--color-background-light);
    border: 1px solid rgba(201, 169, 89, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.info {
    background: var(--color-background-light);
    border: 1px solid rgba(201, 169, 89, 0.2);
}

.decrease, .increase {
    background: var(--color-accent-2);
    border: 1px solid var(--color-heading);
    transition: all 0.3s ease;
}

.decrease:hover, .increase:hover {
    background: var(--color-accent-1);
    transform: scale(1.05);
}

.bet {
    background: var(--color-background-light);
    border: 1px solid rgba(201, 169, 89, 0.3);
}

.modal {
    background: var(--color-background-dark);
    border: 2px solid var(--color-heading);
    box-shadow: 0 0 30px rgba(201, 169, 89, 0.3);
}

.modal h2 {
    color: var(--color-heading);
}

.modal button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    border: 1px solid var(--color-heading);
}

/* Анимация для кнопки spin */
button.spin {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.4);
    border: 1px solid rgba(201, 169, 89, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button.spin:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

button.spin:hover:before {
    opacity: 1;
    transform: rotate(45deg) translateY(-100%);
}

button.spin:hover {
    box-shadow: 0 0 20px rgba(201, 169, 89, 0.7);
    transform: translateY(-2px);
}

/* Эффект мерцания для заголовков */
@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(201, 169, 89, 0.3); }
    50% { text-shadow: 0 0 15px rgba(201, 169, 89, 0.5); }
    100% { text-shadow: 0 0 5px rgba(201, 169, 89, 0.3); }
}

h1, h2 {
    animation: glow 3s infinite ease-in-out;
}

/* Дополнительные магические декоративные элементы */

/* Создание магических свитков для секций */
.enter, #contact, #faq, .terms, .experience {
    position: relative;
}

.enter:before, #contact:before, #faq:before, .terms:before, .experience:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30"><path d="M0,15 C0,5 10,0 50,0 C90,0 100,5 100,15 C100,25 90,30 50,30 C10,30 0,25 0,15 Z" fill="%23c9a959" fill-opacity="0.1" stroke="%23c9a959" stroke-width="0.5" stroke-opacity="0.3"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

/* Магические круги для секции опыта */
.experience-item {
    background: var(--color-background-light);
    border: 1px solid rgba(201, 169, 89, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.experience-item:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 89, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.experience-item:hover:before {
    opacity: 1;
}

.experience-item:after {
    content: "";
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2 C6.5,2 2,6.5 2,12 C2,17.5 6.5,22 12,22 C17.5,22 22,17.5 22,12 C22,6.5 17.5,2 12,2 Z M12,20 C7.6,20 4,16.4 4,12 C4,7.6 7.6,4 12,4 C16.4,4 20,7.6 20,12 C20,16.4 16.4,20 12,20 Z" fill="%23c9a959" fill-opacity="0.3"/><path d="M12,6 L11,11 L6,12 L11,13 L12,18 L13,13 L18,12 L13,11 Z" fill="%23c9a959" fill-opacity="0.5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: rotate(0deg);
    transition: all 0.5s ease;
}

.experience-item:hover:after {
    opacity: 0.7;
    transform: rotate(30deg);
}

.experience-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 169, 89, 0.4), 0 0 20px rgba(201, 169, 89, 0.2);
    border: 1px solid rgba(201, 169, 89, 0.4);
}

.experience-item h4 {
    font-family: "Cinzel", "Montserrat", serif;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.experience-item h4:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-heading);
    transition: width 0.5s ease;
}

.experience-item:hover h4:after {
    width: 80%;
}

/* Улучшенная контактная форма */
.contact-wrapper {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent-3) 100%);
    border: 2px solid rgba(201, 169, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 169, 89, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><g fill="%23c9a959" fill-opacity="0.03"><circle cx="10" cy="10" r="1"/><circle cx="30" cy="10" r="1"/><circle cx="50" cy="10" r="1"/><circle cx="70" cy="10" r="1"/><circle cx="90" cy="10" r="1"/><circle cx="10" cy="30" r="1"/><circle cx="30" cy="30" r="1"/><circle cx="50" cy="30" r="1"/><circle cx="70" cy="30" r="1"/><circle cx="90" cy="30" r="1"/><circle cx="10" cy="50" r="1"/><circle cx="30" cy="50" r="1"/><circle cx="50" cy="50" r="1"/><circle cx="70" cy="50" r="1"/><circle cx="90" cy="50" r="1"/><circle cx="10" cy="70" r="1"/><circle cx="30" cy="70" r="1"/><circle cx="50" cy="70" r="1"/><circle cx="70" cy="70" r="1"/><circle cx="90" cy="70" r="1"/><circle cx="10" cy="90" r="1"/><circle cx="30" cy="90" r="1"/><circle cx="50" cy="90" r="1"/><circle cx="70" cy="90" r="1"/><circle cx="90" cy="90" r="1"/></g></svg>');
    z-index: -1;
}

.contact-wrapper:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 89, 0.1) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -1;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.contact-wrapper a {
    position: relative;
    display: inline-block;
    padding: 3px 0;
}

.contact-wrapper a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-heading);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.contact-wrapper a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Эффект магической пыльцы для элементов при наведении */
h1:hover, h2:hover, h3:hover, h4:hover, .logo:hover {
    animation: magicDust 2s infinite alternate ease-in-out;
}

/* Улучшенный футер */
.footer-wrapper {
    background: linear-gradient(to bottom, var(--color-background-dark) 0%, var(--color-background-darker) 100%);
    position: relative;
    overflow: hidden;
}

.footer-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

.footer-wrapper:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="200" height="200" fill="none"/><g fill="%23c9a959" fill-opacity="0.02"><circle cx="20" cy="20" r="1"/><circle cx="60" cy="20" r="1"/><circle cx="100" cy="20" r="1"/><circle cx="140" cy="20" r="1"/><circle cx="180" cy="20" r="1"/><circle cx="20" cy="60" r="1"/><circle cx="60" cy="60" r="1"/><circle cx="100" cy="60" r="1"/><circle cx="140" cy="60" r="1"/><circle cx="180" cy="60" r="1"/><circle cx="20" cy="100" r="1"/><circle cx="60" cy="100" r="1"/><circle cx="100" cy="100" r="1"/><circle cx="140" cy="100" r="1"/><circle cx="180" cy="100" r="1"/><circle cx="20" cy="140" r="1"/><circle cx="60" cy="140" r="1"/><circle cx="100" cy="140" r="1"/><circle cx="140" cy="140" r="1"/><circle cx="180" cy="140" r="1"/><circle cx="20" cy="180" r="1"/><circle cx="60" cy="180" r="1"/><circle cx="100" cy="180" r="1"/><circle cx="140" cy="180" r="1"/><circle cx="180" cy="180" r="1"/></g></svg>');
    z-index: -1;
}

.footer-links-wrapper a {
    position: relative;
    display: inline-block;
    padding: 3px 0;
}

.footer-links-wrapper a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-heading);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.footer-links-wrapper a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-links-wrapper a:hover {
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(201, 169, 89, 0.5);
}

.footer-logo {
    background: var(--color-background-darker);
    border-top: 1px solid rgba(201, 169, 89, 0.2);
    position: relative;
}

.footer-logo:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 89, 0.1) 0%, transparent 70%);
}

.footer-logo-wrapper img {
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(201, 169, 89, 0.3));
}

.footer-logo-wrapper img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(201, 169, 89, 0.5));:root {
    /* Основные цвета */
    --color-background: #1a0f29; /* Глубокий фиолетовый цвет для фона - как ночное небо */
    --color-text: #e8e1d9; /* Состаренный пергамент */
    --color-heading: #c9a959; /* Золото старинных фолиантов */
    --color-link-hover: rgba(201, 169, 89, 0.8); /* Свечение при наведении */

    /* Акцентные цвета */
    --color-accent-1: #61385c; /* Мистический фиолетовый */
    --color-accent-2: #33223d; /* Темный фиолетовый для контраста */
    --color-accent-3: #8a5d7b; /* Светлый фиолетовый для акцентов */

    /* Фоновые цвета */
    --color-background-dark: #120a1e; /* Еще более темный фон */
    --color-background-darker: #0a0510; /* Самый темный фон */
    --color-background-light: rgba(201, 169, 89, 0.1); /* Золотистое свечение */
    --color-background-lighter: rgba(201, 169, 89, 0.15); /* Более яркое золотистое свечение */

    /* Цвета контролов */
    --color-control: #33223d; /* Темный фиолетовый для элементов управления */
    --color-control-border: #c9a959; /* Золотистая окантовка */

    /* Цвета кнопок */
    --color-button: #c9a959; /* Золотистые кнопки */
    --color-button-hover: #b38d35; /* Эффект при наведении */
    --color-button-gradient-start: #c9a959; /* Начало градиента - золото */
    --color-button-gradient-end: #8a5d7b; /* Конец градиента - фиолетовый */

    /* Модальное окно */
    --color-modal-background: #1a0f29; /* Фон модального окна в тон основному */
    --color-modal-text: #e8e1d9; /* Текст модального окна */
    --color-modal-circle: #61385c; /* Круг в модальном окне */
}

/* Улучшенный фон страницы с эффектом магического пергамента */
body {
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a0f29"/><path d="M0 0L100 100M100 0L0 100" stroke="%23352747" stroke-width="0.5" stroke-opacity="0.2"/></svg>'),
        radial-gradient(circle at 50% 50%, rgba(97, 56, 92, 0.1) 0%, rgba(26, 15, 41, 0.5) 100%);
    background-color: var(--color-background);
    position: relative;
    color: var(--color-text);
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.03"/></svg>');
    z-index: 1;
}

h1, h2, h3, h4 {
    font-family: "Cinzel", "Montserrat", serif;
    font-weight: bold;
    color: var(--color-heading);
    text-shadow: 0 0 5px rgba(201, 169, 89, 0.3);
    letter-spacing: 1px;
}

p {
    font-weight: 300;
    font-size: 16px;
}

h1 {
    position: relative;
    display: inline-block;
}

h1:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

a {
    color: var(--color-heading);
    transition: all 0.4s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-shadow: 0 0 8px rgba(201, 169, 89, 0.5);
}

.button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    color: var(--color-background-dark);
    font-family: "Cinzel", "Montserrat", serif;
    border: 1px solid var(--color-heading);
    box-shadow: 0 0 10px rgba(201, 169, 89, 0.3);
    transition: all 0.3s ease;
}

.button:hover {
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.5);
    transform: translateY(-2px);
}

.main-button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.4);
    border: 1px solid rgba(201, 169, 89, 0.5);
    letter-spacing: 1px;
    font-family: "Cinzel", "Montserrat", serif;
    transition: all 0.3s ease;
}

.main-button:hover {
    box-shadow: 0 0 20px rgba(201, 169, 89, 0.7);
    transform: translateY(-3px) scale(1.03);
}

/* Улучшенное меню навигации */
.navbar {
    background: linear-gradient(to bottom, var(--color-background-darker) 0%, transparent 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.menu-items li {
    position: relative;
    transition: all 0.4s ease;
}

.menu-items li:before {
    content: "⊰";
    position: absolute;
    left: -20px;
    color: var(--color-heading);
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateX(10px);
}

.menu-items li:after {
    content: "⊱";
    position: absolute;
    right: -20px;
    color: var(--color-heading);
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateX(-10px);
}

.menu-items li:hover:before {
    opacity: 1;
    transform: translateX(0);
}

.menu-items li:hover:after {
    opacity: 1;
    transform: translateX(0);
}

.navbar a {
    position: relative;
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.4s ease;
    padding: 2px 0;
}

.navbar a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.navbar a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar a:hover {
    color: var(--color-heading);
    text-shadow: 0 0 8px rgba(201, 169, 89, 0.5);
    opacity: 1;
}

/* Стилизация лого */
.logo {
    position: relative;
    transition: all 0.5s ease;
}

.logo img {
    transition: all 0.5s ease;
    border-radius: 10px;
    border: 1px solid transparent;
}

.logo:hover img {
    transform: scale(1.05);
    border: 1px solid rgba(201, 169, 89, 0.3);
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.3);
}

.logo:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
    transform: scaleX(0.5);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.logo:hover:after {
    transform: scaleX(1);
    opacity: 1;
}

/* Улучшенный хедер с магическими эффектами */
.header {
    background: linear-gradient(135deg, var(--color-background-dark) 0%, var(--color-accent-2) 50%, var(--color-background-dark) 100%);
    position: relative;
    overflow: hidden;
}

.header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><rect fill="%23000" fill-opacity="0.05" width="300" height="300"/><g fill="%23c9a959" fill-opacity="0.03"><circle cx="30" cy="30" r="1"/><circle cx="60" cy="30" r="1"/><circle cx="90" cy="30" r="1"/><circle cx="120" cy="30" r="1"/><circle cx="150" cy="30" r="1"/><circle cx="180" cy="30" r="1"/><circle cx="210" cy="30" r="1"/><circle cx="240" cy="30" r="1"/><circle cx="270" cy="30" r="1"/><circle cx="30" cy="60" r="1"/><circle cx="60" cy="60" r="1"/><circle cx="90" cy="60" r="1"/><circle cx="120" cy="60" r="1"/><circle cx="150" cy="60" r="1"/><circle cx="180" cy="60" r="1"/><circle cx="210" cy="60" r="1"/><circle cx="240" cy="60" r="1"/><circle cx="270" cy="60" r="1"/><circle cx="30" cy="90" r="1"/><circle cx="60" cy="90" r="1"/><circle cx="90" cy="90" r="1"/><circle cx="120" cy="90" r="1"/><circle cx="150" cy="90" r="1"/><circle cx="180" cy="90" r="1"/><circle cx="210" cy="90" r="1"/><circle cx="240" cy="90" r="1"/><circle cx="270" cy="90" r="1"/><circle cx="30" cy="120" r="1"/><circle cx="60" cy="120" r="1"/><circle cx="90" cy="120" r="1"/><circle cx="120" cy="120" r="1"/><circle cx="150" cy="120" r="1"/><circle cx="180" cy="120" r="1"/><circle cx="210" cy="120" r="1"/><circle cx="240" cy="120" r="1"/><circle cx="270" cy="120" r="1"/><circle cx="30" cy="150" r="1"/><circle cx="60" cy="150" r="1"/><circle cx="90" cy="150" r="1"/><circle cx="120" cy="150" r="1"/><circle cx="150" cy="150" r="1"/><circle cx="180" cy="150" r="1"/><circle cx="210" cy="150" r="1"/><circle cx="240" cy="150" r="1"/><circle cx="270" cy="150" r="1"/><circle cx="30" cy="180" r="1"/><circle cx="60" cy="180" r="1"/><circle cx="90" cy="180" r="1"/><circle cx="120" cy="180" r="1"/><circle cx="150" cy="180" r="1"/><circle cx="180" cy="180" r="1"/><circle cx="210" cy="180" r="1"/><circle cx="240" cy="180" r="1"/><circle cx="270" cy="180" r="1"/><circle cx="30" cy="210" r="1"/><circle cx="60" cy="210" r="1"/><circle cx="90" cy="210" r="1"/><circle cx="120" cy="210" r="1"/><circle cx="150" cy="210" r="1"/><circle cx="180" cy="210" r="1"/><circle cx="210" cy="210" r="1"/><circle cx="240" cy="210" r="1"/><circle cx="270" cy="210" r="1"/><circle cx="30" cy="240" r="1"/><circle cx="60" cy="240" r="1"/><circle cx="90" cy="240" r="1"/><circle cx="120" cy="240" r="1"/><circle cx="150" cy="240" r="1"/><circle cx="180" cy="240" r="1"/><circle cx="210" cy="240" r="1"/><circle cx="240" cy="240" r="1"/><circle cx="270" cy="240" r="1"/><circle cx="30" cy="270" r="1"/><circle cx="60" cy="270" r="1"/><circle cx="90" cy="270" r="1"/><circle cx="120" cy="270" r="1"/><circle cx="150" cy="270" r="1"/><circle cx="180" cy="270" r="1"/><circle cx="210" cy="270" r="1"/><circle cx="240" cy="270" r="1"/><circle cx="270" cy="270" r="1"/></g></svg>');
    opacity: 0.4;
}

.header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 89, 0.2) 0%, rgba(26, 15, 41, 0) 70%);
    animation: pulseGlow 8s infinite alternate ease-in-out;
    mix-blend-mode: overlay;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.header-cont {
    position: relative;
    z-index: 2;
}

.header-cont:before, .header-cont:after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M25,0 L32,17 L50,20 L38,33 L40,50 L25,42 L10,50 L12,33 L0,20 L18,17 Z" stroke="%23c9a959" stroke-width="0.5" fill="none" stroke-opacity="0.3"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.header-cont:before {
    top: -30px;
    left: -30px;
    transform: rotate(-15deg);
    animation: levitate 6s infinite ease-in-out;
}

.header-cont:after {
    bottom: -30px;
    right: -30px;
    transform: rotate(15deg);
    animation: levitate 6s infinite ease-in-out 1s;
}

/* Улучшаем стилизацию контейнеров */
.col-wrapper {
    position: relative;
    background: linear-gradient(to bottom, rgba(26, 15, 41, 0.7) 0%, rgba(51, 34, 61, 0.5) 100%);
    border-radius: 15px;
    padding: 40px 20px;
    border: 1px solid rgba(201, 169, 89, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.col-wrapper:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M25,2 L75,2 L98,25 L98,75 L75,98 L25,98 L2,75 L2,25 Z" stroke="%23c9a959" stroke-width="0.5" fill="none" stroke-opacity="0.1"/></svg>');
    background-size: 300px 300px;
    opacity: 0.1;
    z-index: -1;
    animation: inkSpread 15s infinite alternate ease-in-out;
}

.col-wrapper:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

/* Улучшенное оформление изображений */
.img-col img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 89, 0.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    filter: saturate(0.9) brightness(0.95);
}

.img-col {
    position: relative;
    z-index: 1;
}

.img-col:before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(201, 169, 89, 0.2);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.img-col:hover:before {
    opacity: 1;
    transform: scale(1.05);
}

.img-col img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 169, 89, 0.5), 0 0 20px rgba(201, 169, 89, 0.3);
    filter: saturate(1.1) brightness(1.05);
}

.img-col:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" fill="%23c9a959" fill-opacity="0.3"/><circle cx="12" cy="12" r="3" fill="%23c9a959" fill-opacity="0.5"/></svg>');
    bottom: -15px;
    right: -15px;
    opacity: 0;
    transform: rotate(0deg);
    transition: all 0.6s ease;
    z-index: 2;
}

.img-col:hover:after {
    opacity: 0.6;
    transform: rotate(30deg);
}

.age {
    background: var(--color-accent-2);
    border-top: 1px solid rgba(201, 169, 89, 0.3);
    border-bottom: 1px solid rgba(201, 169, 89, 0.3);
}

.age-cont {
    background: var(--color-accent-1);
    border: 1px solid var(--color-heading);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.experience-item {
    background: var(--color-background-light);
    border: 1px solid rgba(201, 169, 89, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 169, 89, 0.4);
}

.experience-item h4 {
    font-family: "Cinzel", "Montserrat", serif;
    letter-spacing: 1px;
}

.contact-wrapper {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent-3) 100%);
    border: 2px solid var(--color-heading);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.footer-logo {
    background: var(--color-background-dark);
    border-top: 1px solid rgba(201, 169, 89, 0.3);
}

.footer-wrapper {
    background: var(--color-background-dark);
    position: relative;
}

.footer-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

.slot-machine {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-background-dark) 100%);
    border: 2px solid rgba(201, 169, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Стилизация ячеек слот-машины */
.cell {
    background: var(--color-background-light);
    border: 1px solid rgba(201, 169, 89, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cell:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 89, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cell:hover:before {
    opacity: 1;
}

/* Эффект магической рамки для ячеек слот-машины */
.grid {
    position: relative;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--color-background-dark), var(--color-background-dark)) padding-box,
        linear-gradient(135deg, var(--color-heading) 0%, transparent 30%, transparent 70%, var(--color-heading) 100%) border-box;
    animation: borderGlow 4s infinite alternate ease-in-out;
}

@keyframes borderGlow {
    0% { box-shadow: 0 0 10px rgba(201, 169, 89, 0.2); }
    100% { box-shadow: 0 0 20px rgba(201, 169, 89, 0.5); }
}

/* Стилизация информационных блоков */
.info {
    background: linear-gradient(135deg, rgba(51, 34, 61, 0.5) 0%, rgba(26, 15, 41, 0.5) 100%);
    border: 1px solid rgba(201, 169, 89, 0.2);
    position: relative;
    overflow: hidden;
}

.info:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="%23c9a959" fill-opacity="0.2"/></svg>');
    opacity: 0.2;
    z-index: -1;
    animation: inkSpread 15s infinite alternate ease-in-out;
}

.info-wrapper span {
    display: block;
    font-weight: bold;
    padding-top: 10px;
    position: relative;
}

.info-wrapper span:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-heading);
    transition: width 0.4s ease;
}

.info-wrapper:hover span:after {
    width: 50%;
}

/* Улучшенные кнопки слот-машины */
.decrease, .increase {
    background: var(--color-accent-2);
    border: 1px solid var(--color-heading);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.decrease:before, .increase:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(201, 169, 89, 0.2), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.decrease:hover:before, .increase:hover:before {
    transform: translateX(0);
}

.decrease:hover, .increase:hover {
    background: var(--color-accent-1);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(201, 169, 89, 0.4);
}

/* Улучшенное поле ставки */
.bet {
    background: linear-gradient(to right, rgba(51, 34, 61, 0.5), rgba(26, 15, 41, 0.5));
    border: 1px solid rgba(201, 169, 89, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.bet:focus {
    border: 1px solid var(--color-heading);
    box-shadow: 0 0 10px rgba(201, 169, 89, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.2);
    outline: none;
}

.modal {
    background: var(--color-background-dark);
    border: 2px solid var(--color-heading);
    box-shadow: 0 0 30px rgba(201, 169, 89, 0.3);
}

.modal h2 {
    color: var(--color-heading);
}

.modal button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    border: 1px solid var(--color-heading);
}

/* Анимация для кнопки spin */
button.spin {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.4);
    border: 1px solid rgba(201, 169, 89, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button.spin:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

button.spin:hover:before {
    opacity: 1;
    transform: rotate(45deg) translateY(-100%);
}

button.spin:hover {
    box-shadow: 0 0 20px rgba(201, 169, 89, 0.7);
    transform: translateY(-2px);
}

/* Магические эффекты и анимации */

/* Эффект мерцания для заголовков */
@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(201, 169, 89, 0.3); }
    50% { text-shadow: 0 0 15px rgba(201, 169, 89, 0.5), 0 0 20px rgba(201, 169, 89, 0.2); }
    100% { text-shadow: 0 0 5px rgba(201, 169, 89, 0.3); }
}

/* Эффект появления магических частиц */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.3); }
    50% { opacity: 1; transform: translateY(-10px) scale(1); }
}

/* Эффект перелистывания страниц книги */
@keyframes pageFlip {
    0% { transform: rotateY(0deg); opacity: 0.7; }
    50% { transform: rotateY(15deg); opacity: 1; }
    100% { transform: rotateY(0deg); opacity: 0.7; }
}

/* Эффект чернил, растекающихся по пергаменту */
@keyframes inkSpread {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Эффект магической пыльцы/свечения вокруг элементов */
@keyframes magicDust {
    0% { box-shadow: 0 0 5px rgba(201, 169, 89, 0.3); }
    25% { box-shadow: 0 0 15px rgba(138, 93, 123, 0.5); }
    50% { box-shadow: 0 0 20px rgba(201, 169, 89, 0.7); }
    75% { box-shadow: 0 0 15px rgba(138, 93, 123, 0.5); }
    100% { box-shadow: 0 0 5px rgba(201, 169, 89, 0.3); }
}

/* Эффект левитации элементов */
@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

h1, h2 {
    animation: glow 4s infinite ease-in-out;
    position: relative;
}

/* Добавление магических частиц к заголовкам */
h1:before, h2:before {
    content: "✦";
    position: absolute;
    font-size: 0.5em;
    color: var(--color-heading);
    opacity: 0;
    top: 0;
    left: -15px;
    animation: sparkle 3s infinite ease-in-out;
}

h1:after, h2:after {
    content: "✦";
    position: absolute;
    font-size: 0.5em;
    color: var(--color-heading);
    opacity: 0;
    top: 0;
    right: -15px;
    animation: sparkle 3s infinite ease-in-out 0.5s;
}