:root {
    /* Основные цвета */
    --color-background: #0a1622; /* Глубокий космос, темно-синий */
    --color-text: #e7d7bc; /* Состаренный пергамент */
    --color-heading: #d9a53b; /* Древнее золото */
    --color-link-hover: rgba(231, 215, 188, 0.8);

    /* Акцентные цвета */
    --color-accent-1: #2a4661; /* Темный индиго */
    --color-accent-2: #1c2e40; /* Полуночный синий */
    --color-accent-3: #3c5873; /* Туманный сапфир */

    /* Фоновые цвета */
    --color-background-dark: #05101b; /* Бездна времени */
    --color-background-darker: #020a14; /* Тьма эпох */
    --color-background-light: rgba(42, 70, 97, 0.3); /* Прозрачный индиго */
    --color-background-lighter: rgba(42, 70, 97, 0.5); /* Более плотный индиго */

    /* Цвета контролов */
    --color-control: #0f1e2e; /* Темный антрацит */
    --color-control-border: #d9a53b; /* Древнее золото */

    /* Цвета кнопок */
    --color-button: #d9a53b; /* Древнее золото */
    --color-button-hover: #c28d2c; /* Приглушенное золото */
    --color-button-gradient-start: #e0b258; /* Яркое золото */
    --color-button-gradient-end: #996624; /* Темная бронза */

    /* Модальное окно */
    --color-modal-background: #0f1e2e; /* Темный антрацит */
    --color-modal-text: #e7d7bc; /* Состаренный пергамент */
    --color-modal-circle: #3c5873; /* Туманный сапфир */
}

/* Стилизация шрифтов и общих элементов */
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="%230a1622"/><circle cx="25" cy="25" r="1" fill="%23d9a53b" opacity="0.2"/><circle cx="75" cy="25" r="1" fill="%23d9a53b" opacity="0.2"/><circle cx="25" cy="75" r="1" fill="%23d9a53b" opacity="0.2"/><circle cx="75" cy="75" r="1" fill="%23d9a53b" opacity="0.2"/><circle cx="50" cy="50" r="1" fill="%23d9a53b" opacity="0.2"/></svg>');
    background-color: var(--color-background);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 1000 1000"><path d="M500,500 m-375,0 a375,375 0 1,0 750,0 a375,375 0 1,0 -750,0" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="8 15" fill="none" opacity="0.1"/><path d="M500,500 m-325,0 a325,325 0 1,0 650,0 a325,325 0 1,0 -650,0" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="5 10" fill="none" opacity="0.1"/><path d="M500,500 m-275,0 a275,275 0 1,0 550,0 a275,275 0 1,0 -550,0" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="3 5" fill="none" opacity="0.1"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.3;
    animation: slow-rotate 180s linear infinite;
}

@keyframes slow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1, h2, h3, h4 {
    text-shadow: 2px 2px 4px var(--color-background-darker), 0 0 10px rgba(217, 165, 59, 0.3);
    letter-spacing: 2px;
}

h1 {
    position: relative;
}

h1::after {
    content: "";
    display: block;
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-button-gradient-start), transparent);
    margin: 15px auto 0;
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% { opacity: 0.6; box-shadow: 0 0 5px rgba(217, 165, 59, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(217, 165, 59, 0.6); }
    100% { opacity: 0.6; box-shadow: 0 0 5px rgba(217, 165, 59, 0.3); }
}

h2::before, h2::after {
    content: "⌛";
    color: var(--color-heading);
    margin: 0 15px;
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(217, 165, 59, 0.5);
}

/* Стилизация навигации */
.navbar {
    background: linear-gradient(180deg, var(--color-background-dark) 80%, transparent);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(217, 165, 59, 0.1);
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
    opacity: 0.4;
}

.menu-items li {
    position: relative;
}

.menu-items li a {
    position: relative;
    z-index: 1;
}

.menu-items li a::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-heading);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    opacity: 0.7;
}

.menu-items li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-items li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-heading) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

.menu-items li a:hover::after {
    width: 130%;
    height: 130%;
    opacity: 0.1;
}

.logo {
    position: relative;
    overflow: visible;
}

.logo::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 140%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--color-heading) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    animation: pulse-subtle 3s infinite;
}

@keyframes pulse-subtle {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.1; }
}

/* Стилизация кнопок */
.button, .main-button {
    box-shadow: 0 0 15px rgba(217, 165, 59, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 165, 59, 0.3);
    transition: all 0.4s ease, transform 0.2s ease;
}

.button::before, .main-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
}

.button:hover, .main-button:hover {
    box-shadow: 0 0 25px rgba(217, 165, 59, 0.6);
    transform: translateY(-3px);
}

.button:hover::before, .main-button:hover::before {
    opacity: 1;
    transform: scale(1);
}

.button::after, .main-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.button:hover::after, .main-button:hover::after {
    opacity: 1;
}

.main-button {
    position: relative;
    z-index: 1;
}

.main-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.main-button:hover::before {
    transform: translateX(100%);
}

/* Стилизация хедера */
.header {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-background-dark) 100%);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"><circle cx="200" cy="200" r="150" stroke="%23d9a53b" stroke-width="1" fill="none" opacity="0.1"/><circle cx="200" cy="200" r="100" stroke="%23d9a53b" stroke-width="1" fill="none" opacity="0.1"/><path d="M200,50 L200,200 L270,150" stroke="%23d9a53b" stroke-width="1" fill="none" opacity="0.4"/><path d="M125,200 L200,200" stroke="%23d9a53b" stroke-width="1" fill="none" opacity="0.3"/><path d="M200,275 L200,200" stroke="%23d9a53b" stroke-width="1" fill="none" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    animation: clockwise-rotate 60s linear infinite;
}

@keyframes clockwise-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"><circle cx="200" cy="200" r="180" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="5 15" fill="none" opacity="0.05"/><circle cx="200" cy="200" r="120" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="5 10" fill="none" opacity="0.05"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    animation: counter-clockwise-rotate 80s linear infinite;
}

@keyframes counter-clockwise-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.header-cont {
    position: relative;
    z-index: 2;
}

.header-cont h1 {
    position: relative;
    display: inline-block;
}

.header-cont h1::before,
.header-cont h1::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-heading);
    opacity: 0.7;
}

.header-cont h1::before {
    left: -60px;
}

.header-cont h1::after {
    right: -60px;
}

/* Стилизация секций */
.experience-item {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-background-dark) 100%);
    border: 1px solid rgba(217, 165, 59, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4), 0 0 15px rgba(217, 165, 59, 0.2);
}

.experience-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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"><circle cx="100" cy="100" r="80" stroke="%23d9a53b" stroke-width="0.5" fill="none" opacity="0.1"/><line x1="100" y1="20" x2="100" y2="35" stroke="%23d9a53b" stroke-width="0.5" opacity="0.2"/><line x1="100" y1="165" x2="100" y2="180" stroke="%23d9a53b" stroke-width="0.5" opacity="0.2"/><line x1="20" y1="100" x2="35" y2="100" stroke="%23d9a53b" stroke-width="0.5" opacity="0.2"/><line x1="165" y1="100" x2="180" y2="100" stroke="%23d9a53b" stroke-width="0.5" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.experience-item::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(217, 165, 59, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.5s, opacity 0.5s;
}

.experience-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.experience-item h4 {
    position: relative;
    display: inline-block;
}

.experience-item h4::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 30px;
    height: 2px;
    background: var(--color-heading);
    transform: translateX(-50%);
    opacity: 0.6;
}

.contact-wrapper {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-background-dark) 100%);
    border: 2px solid rgba(217, 165, 59, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px rgba(217, 165, 59, 0.1);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.contact-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(217, 165, 59, 0.2);
}

.contact-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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 x="50" y="50" width="200" height="200" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="5 10" fill="none" opacity="0.1"/><rect x="75" y="75" width="150" height="150" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="3 5" fill="none" opacity="0.1"/><line x1="50" y1="50" x2="75" y2="75" stroke="%23d9a53b" stroke-width="0.5" opacity="0.1"/><line x1="250" y1="50" x2="225" y2="75" stroke="%23d9a53b" stroke-width="0.5" opacity="0.1"/><line x1="50" y1="250" x2="75" y2="225" stroke="%23d9a53b" stroke-width="0.5" opacity="0.1"/><line x1="250" y1="250" x2="225" y2="225" stroke="%23d9a53b" stroke-width="0.5" opacity="0.1"/></svg>');
    background-position: center;
    opacity: 0.15;
}

/* Стилизация слот-машины */
.slot-machine {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-background-dark) 100%);
    border: 2px solid rgba(217, 165, 59, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(217, 165, 59, 0.2);
    position: relative;
    overflow: hidden;
}

.slot-machine::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><circle cx="250" cy="250" r="200" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="5 15" fill="none" opacity="0.05"/><circle cx="250" cy="250" r="150" stroke="%23d9a53b" stroke-width="0.5" stroke-dasharray="3 10" fill="none" opacity="0.05"/><path d="M250,50 L250,250 L350,200" stroke="%23d9a53b" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.cell {
    background: linear-gradient(135deg, rgba(5, 16, 27, 0.9) 0%, rgba(28, 46, 64, 0.9) 100%);
    border: 1px solid rgba(217, 165, 59, 0.3);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 0 5px rgba(217, 165, 59, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(217, 165, 59, 0.05), transparent);
    z-index: 1;
}

button.spin {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 15px rgba(217, 165, 59, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease, transform 0.2s ease;
    border: none;
}

button.spin:hover {
    box-shadow: 0 0 25px rgba(217, 165, 59, 0.7);
    transform: translateY(-3px) scale(1.02);
}

button.spin::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

button.spin:hover::before {
    transform: translateX(100%);
}

.info {
    background: rgba(42, 70, 97, 0.3);
    border: 1px solid rgba(217, 165, 59, 0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 165, 59, 0.5), transparent);
}

.info::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 165, 59, 0.5), transparent);
}

.decrease, .increase {
    background: var(--color-control);
    border: 1px solid var(--color-heading);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.decrease:hover, .increase:hover {
    background: var(--color-accent-2);
    box-shadow: 0 0 10px rgba(217, 165, 59, 0.4);
    transform: translateY(-2px);
}

.bet {
    background: rgba(42, 70, 97, 0.3);
    border: 1px solid rgba(217, 165, 59, 0.2);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

/* Стилизация модального окна */
.modal {
    background: linear-gradient(135deg, var(--color-modal-background) 0%, var(--color-background-dark) 100%);
    border: 2px solid var(--color-accent-1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.modal .age-circle {
    box-shadow: 0 0 15px rgba(134, 108, 137, 0.7);
    background: linear-gradient(135deg, var(--color-modal-circle) 0%, var(--color-accent-1) 100%);
}