:root {
    /* Основные цвета */
    --color-background: #191919;
    --color-text: #E6D2B3;
    --color-heading: #FF6D00;
    --color-link-hover: rgba(255, 109, 0, 0.8);

    /* Акцентные цвета */
    --color-accent-1: #76322F;
    --color-accent-2: #2A1A1F;
    --color-accent-3: #493126;

    /* Фоновые цвета */
    --color-background-dark: #0F0F0F;
    --color-background-darker: #060606;
    --color-background-light: rgba(255, 109, 0, 0.15);
    --color-background-lighter: rgba(255, 109, 0, 0.25);

    /* Цвета контролов */
    --color-control: #2A1A1F;
    --color-control-border: #FF6D00;

    /* Цвета кнопок */
    --color-button: #FF6D00;
    --color-button-hover: #FF5100;
    --color-button-gradient-start: #FF6D00;
    --color-button-gradient-end: #A72100;

    /* Модальное окно */
    --color-modal-background: #2A1A1F;
    --color-modal-text: #E6D2B3;
    --color-modal-circle: #76322F;
}

body {
    background: url('https://via.placeholder.com/1920x1080') no-repeat fixed center;
    background-size: cover;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    opacity: 0.92;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    color: var(--color-heading);
    text-shadow: 0 0 10px rgba(255, 109, 0, 0.5);
    letter-spacing: 2px;
}

p {
    font-weight: 400;
    color: var(--color-text);
}

.navbar {
    background-color: var(--color-background-darker);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-accent-1);
}

.logo {
    position: relative;
}

.logo::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
}

.navbar a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--color-heading);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: var(--color-heading);
    opacity: 1;
}

.button {
    background: var(--color-button);
    color: var(--color-background-darker);
    font-weight: bold;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-button-hover);
    transition: all 0.4s ease;
    z-index: -1;
}

.button:hover::before {
    left: 0;
}

.main-button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.6);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 109, 0, 0.8);
}

.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: url('https://via.placeholder.com/1920x1080');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.header-cont {
    position: relative;
    z-index: 1;
}

.experience-item {
    background: var(--color-background-dark);
    border-left: 3px solid var(--color-accent-1);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-10px);
    background: var(--color-background-darker);
    border-left: 3px solid var(--color-heading);
}

.contact-wrapper {
    background: var(--color-accent-3);
    border: 2px solid var(--color-accent-1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/500x300');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.contact-wrapper * {
    position: relative;
    z-index: 1;
}

.slot-machine {
    background: var(--color-background-darker);
    border: 1px solid var(--color-accent-1);
    box-shadow: 0 0 20px rgba(255, 109, 0, 0.2);
}

.cell {
    background: var(--color-accent-2);
    border: 1px solid var(--color-accent-1);
    transition: all 0.3s ease;
}

button.spin {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    border: none;
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button.spin::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.3s ease;
    opacity: 0;
}

button.spin:hover::after {
    opacity: 1;
}

.decrease, .increase {
    background: var(--color-control);
    border: 1px solid var(--color-control-border);
    transition: all 0.3s ease;
}

.decrease:hover, .increase:hover {
    background: var(--color-accent-1);
}

.modal {
    background: var(--color-modal-background);
    border: 2px solid var(--color-accent-1);
    box-shadow: 0 0 30px rgba(255, 109, 0, 0.6);
}

.modal .age-circle {
    background-color: var(--color-modal-circle);
    border: 2px solid var(--color-heading);
}

.modal button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 10px rgba(255, 109, 0, 0.4);
    transition: all 0.3s ease;
}

.modal button:hover {
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.8);
}

.age-cont {
    background: var(--color-accent-3);
    border: 2px solid var(--color-accent-1);
    position: relative;
    overflow: hidden;
}

.age-cont::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/500x100');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.age-cont * {
    position: relative;
    z-index: 1;
}

.footer-age {
    background: var(--color-accent-3);
    border-top: 1px solid var(--color-accent-1);
}

.footer-logo {
    background: var(--color-background-darker);
    border-bottom: 1px solid var(--color-accent-1);
}

.img-col img {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 109, 0, 0.4);
    transition: all 0.4s ease;
}

.img-col img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 109, 0, 0.7);
}

.background-accent {
    background: var(--color-accent-1);
    position: relative;
    overflow: hidden;
}

.background-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x300');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.background-accent * {
    position: relative;
    z-index: 1;
    color: var(--color-text);
}

.info {
    background: var(--color-background-light);
    border: 1px solid var(--color-accent-1);
}

.bet {
    background: var(--color-background-lighter);
    border: 1px solid var(--color-accent-1);
}

/* Добавление небольших огненных эффектов для элементов */
@keyframes flicker {
    0% { box-shadow: 0 0 5px rgba(255, 109, 0, 0.5); }
    25% { box-shadow: 0 0 10px rgba(255, 109, 0, 0.7); }
    50% { box-shadow: 0 0 15px rgba(255, 109, 0, 0.6); }
    75% { box-shadow: 0 0 10px rgba(255, 109, 0, 0.7); }
    100% { box-shadow: 0 0 5px rgba(255, 109, 0, 0.5); }
}

.experience-item:hover h4 {
    animation: flicker 2s infinite;
}

button.spin:hover {
    animation: flicker 2s infinite;
}

.logo img {
    background: var(--color-accent-1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.logo:hover img {
    animation: flicker 2s infinite;
}

/* Эффект плавления для фигур */
:root {
    /* Основные цвета */
    --color-background: #191919;
    --color-text: #E6D2B3;
    --color-heading: #FF6D00;
    --color-link-hover: rgba(255, 109, 0, 0.8);

    /* Акцентные цвета */
    --color-accent-1: #76322F;
    --color-accent-2: #2A1A1F;
    --color-accent-3: #493126;

    /* Фоновые цвета */
    --color-background-dark: #0F0F0F;
    --color-background-darker: #060606;
    --color-background-light: rgba(255, 109, 0, 0.15);
    --color-background-lighter: rgba(255, 109, 0, 0.25);

    /* Цвета контролов */
    --color-control: #2A1A1F;
    --color-control-border: #FF6D00;

    /* Цвета кнопок */
    --color-button: #FF6D00;
    --color-button-hover: #FF5100;
    --color-button-gradient-start: #FF6D00;
    --color-button-gradient-end: #A72100;

    /* Модальное окно */
    --color-modal-background: #2A1A1F;
    --color-modal-text: #E6D2B3;
    --color-modal-circle: #76322F;

    /* Новые анимационные переменные */
    --forge-flicker-duration: 3s;
    --forge-glow-intensity: 0.7;
    --forge-spark-size: 2px;
    --forge-heat-glow: rgba(255, 109, 0, 0.4);
}

/* Эффект огненной плазмы для фона */
body {
    background: var(--color-background);
    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='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23762b22' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E"),
        linear-gradient(135deg,
            var(--color-background) 0%,
            var(--color-background-dark) 100%);
    background-blend-mode: overlay;
    opacity: 0.3;
    z-index: -1;
}

/* Магически пылающие заголовки */
h1, h2, h3, h4 {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    color: var(--color-heading);
    position: relative;
    letter-spacing: 2px;
    background: linear-gradient(90deg,
                              #FFCB8E 0%,
                              var(--color-heading) 50%,
                              #FFAC41 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 3s linear infinite;
    text-shadow: 0 0 5px var(--forge-heat-glow),
                 0 0 10px rgba(255, 109, 0, 0.2);
}

/* Эффект мерцающего огня для заголовков */
h1::before, h2::before, h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at bottom,
        rgba(255, 109, 0, 0.2) 0%,
        rgba(255, 109, 0, 0) 60%
    );
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    transform: translateY(5px);
}

h1:hover::before, h2:hover::before, h3:hover::before {
    opacity: 1;
    animation: flame-flicker var(--forge-flicker-duration) ease-in-out infinite;
}

@keyframes flame-flicker {
    0%, 100% { opacity: 0.3; transform: translateY(5px) scaleX(0.95); }
    25% { opacity: 0.5; transform: translateY(3px) scaleX(1.05); }
    50% { opacity: 0.7; transform: translateY(4px) scaleX(1); }
    75% { opacity: 0.4; transform: translateY(2px) scaleX(0.9); }
}

p {
    font-weight: 400;
    color: var(--color-text);
}

/* Волшебное мерцание для навигации */
.navbar {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-accent-1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.navbar:hover {
    border-bottom-color: var(--color-heading);
    box-shadow: 0 5px 25px var(--forge-heat-glow);
}

.logo {
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 200%;
    background: linear-gradient(90deg,
                              transparent,
                              rgba(255, 109, 0, 0.2),
                              transparent);
    top: -50%;
    left: -150%;
    transform: rotate(35deg);
    transition: all 0.5s ease;
}

.logo:hover::after {
    left: 150%;
}

.navbar a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

.navbar a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg,
                              transparent,
                              var(--color-heading),
                              transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar a:hover {
    color: var(--color-heading);
    text-shadow: 0 0 5px var(--forge-heat-glow);
}

.navbar a:hover::before {
    transform: scaleX(1);
}

/* Эффект горящего меню при открытии мобильной навигации */
.navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line {
    background: var(--color-heading);
    box-shadow: 0 0 5px var(--forge-heat-glow);
}

.navbar .menu-items {
    background: rgba(25, 25, 25, 0.95);
    border-right: 1px solid var(--color-accent-1);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.7);
}

@media (max-width: 830px) {
    .navbar .menu-items li:hover {
        transform: translateX(5px);
    }
}

.button {
    background: var(--color-button);
    color: var(--color-background-darker);
    font-weight: bold;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-button-hover);
    transition: all 0.4s ease;
    z-index: -1;
}

.button:hover::before {
    left: 0;
}

.main-button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.6);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 109, 0, 0.8);
}

.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: url('https://via.placeholder.com/1920x1080');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.header-cont {
    position: relative;
    z-index: 1;
}

.experience-item {
    background: var(--color-background-dark);
    border-left: 3px solid var(--color-accent-1);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-10px);
    background: var(--color-background-darker);
    border-left: 3px solid var(--color-heading);
}

.contact-wrapper {
    background: var(--color-accent-3);
    border: 2px solid var(--color-accent-1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/500x300');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.contact-wrapper * {
    position: relative;
    z-index: 1;
}

.slot-machine {
    background: var(--color-background-darker);
    border: 1px solid var(--color-accent-1);
    box-shadow: 0 0 20px rgba(255, 109, 0, 0.2);
}

.cell {
    background: var(--color-accent-2);
    border: 1px solid var(--color-accent-1);
    transition: all 0.3s ease;
}

button.spin {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    border: none;
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Кузнечный эффект для кнопок */
.main-button, button.spin {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-button::before, button.spin::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 109, 0, 0.8),
        rgba(255, 36, 0, 0.8),
        rgba(255, 213, 0, 0.8));
    background-size: 200% 100%;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.5s ease;
    animation: molten-metal 5s infinite linear;
}

.main-button:hover::before, button.spin:hover::before {
    filter: brightness(1.2);
    animation: molten-metal 2s infinite linear;
}

/* Дымящийся эффект для фона */
.header, .footer-wrapper {
    position: relative;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%,
                               rgba(255, 109, 0, 0.05) 0%,
                               rgba(0, 0, 0, 0) 60%),
                radial-gradient(circle at 70% 60%,
                               rgba(255, 109, 0, 0.05) 0%,
                               rgba(0, 0, 0, 0) 60%);
    opacity: 0.8;
    animation: forge-smoke 20s infinite alternate ease-in-out;
}

@keyframes forge-smoke {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Магический эффект для изображений */
.img-col img {
    position: relative;
}

.img-col img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
                              rgba(255, 109, 0, 0.3) 0%,
                              rgba(255, 109, 0, 0) 70%);
    mix-blend-mode: overlay;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.img-col:hover img::before {
    opacity: 1;
}

/* Эффект раскаленного железа для заголовков */
h1::after, h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    margin: 10px auto;
    background: linear-gradient(90deg,
                              transparent,
                              var(--color-heading),
                              transparent);
    animation: glow-pulse 3s infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; width: 50px; }
    50% { opacity: 1; width: 100px; }
}

/* Эффект для кнопок навигации */
.menu-items li {
    position: relative;
}

.menu-items li::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: var(--color-heading);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.menu-items li:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Эффект свечения для игровых элементов */
.slot-machine {
    position: relative;
}

.slot-machine::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 15px;
    background: linear-gradient(45deg,
                              var(--color-accent-1),
                              transparent,
                              var(--color-accent-1),
                              transparent);
    background-size: 400% 400%;
    animation: molten-metal 10s ease infinite;
    z-index: -1;
    opacity: 0.2;
    filter: blur(15px);
}

/* Эффект магических рун для границ */
.contact-wrapper, .age-cont {
    position: relative;
}

.contact-wrapper::before, .age-cont::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
                              transparent,
                              var(--color-heading),
                              transparent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.4;
    animation: rune-glow 6s infinite linear;
}

@keyframes rune-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.decrease, .increase {
    background: var(--color-control);
    border: 1px solid var(--color-control-border);
    transition: all 0.3s ease;
}

.decrease:hover, .increase:hover {
    background: var(--color-accent-1);
}

.modal {
    background: var(--color-modal-background);
    border: 2px solid var(--color-accent-1);
    box-shadow: 0 0 30px rgba(255, 109, 0, 0.6);
}

.modal .age-circle {
    background-color: var(--color-modal-circle);
    border: 2px solid var(--color-heading);
}

.modal button {
    background: linear-gradient(to right, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 0 10px rgba(255, 109, 0, 0.4);
    transition: all 0.3s ease;
}

.modal button:hover {
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.8);
}

.age-cont {
    background: var(--color-accent-3);
    border: 2px solid var(--color-accent-1);
    position: relative;
    overflow: hidden;
}

.age-cont::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/500x100');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.age-cont * {
    position: relative;
    z-index: 1;
}

.footer-age {
    background: var(--color-accent-3);
    border-top: 1px solid var(--color-accent-1);
}

.footer-logo {
    background: var(--color-background-darker);
    border-bottom: 1px solid var(--color-accent-1);
}

.img-col img {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 109, 0, 0.4);
    transition: all 0.4s ease;
}

.img-col img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 109, 0, 0.7);
}

.background-accent {
    background: var(--color-accent-1);
    position: relative;
    overflow: hidden;
}

.background-accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x300');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.background-accent * {
    position: relative;
    z-index: 1;
    color: var(--color-text);
}

.info {
    background: var(--color-background-light);
    border: 1px solid var(--color-accent-1);
}

.bet {
    background: var(--color-background-lighter);
    border: 1px solid var(--color-accent-1);
}

/* Добавление небольших огненных эффектов для элементов */
/* Базовые анимации */
@keyframes flicker {
    0% { box-shadow: 0 0 5px rgba(255, 109, 0, 0.5); }
    25% { box-shadow: 0 0 10px rgba(255, 109, 0, 0.7); }
    50% { box-shadow: 0 0 15px rgba(255, 109, 0, 0.6); }
    75% { box-shadow: 0 0 10px rgba(255, 109, 0, 0.7); }
    100% { box-shadow: 0 0 5px rgba(255, 109, 0, 0.5); }
}

@keyframes glow-text {
    0% { text-shadow: 0 0 5px rgba(255, 109, 0, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 109, 0, 0.8), 0 0 30px rgba(255, 109, 0, 0.4); }
    100% { text-shadow: 0 0 5px rgba(255, 109, 0, 0.5); }
}

@keyframes molten-metal {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes forge-spark {
    0%, 100% { opacity: 0; transform: scale(0.2); }
    10%, 90% { opacity: 0; }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes hammer-strike {
    0% { transform: translateY(0) scale(1); }
    10% { transform: translateY(-2px) scale(1.02); }
    20% { transform: translateY(0) scale(1); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Применение анимаций к элементам */
h1, h2 {
    animation: glow-text 3s infinite ease-in-out;
}

.experience-item:hover h4 {
    animation: glow-text 2s infinite;
}

button.spin {
    animation: flicker 4s infinite;
}

button.spin:hover {
    animation: flicker 1.5s infinite;
}

.logo img {
    background: var(--color-accent-1);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.logo:hover img {
    animation: flicker 2s infinite, float 3s infinite ease-in-out;
}

/* Волшебные частицы для контейнеров */
.experience-wrapper, .enter-wrapper, .contact-wrapper {
    position: relative;
}

.experience-wrapper::after, .enter-wrapper::after, .contact-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0) 8%),
        radial-gradient(circle at 30% 60%, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0) 8%),
        radial-gradient(circle at 50% 40%, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0) 8%),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0) 8%),
        radial-gradient(circle at 90% 30%, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0) 8%);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.experience-wrapper:hover::after, .enter-wrapper:hover::after, .contact-wrapper:hover::after {
    opacity: 0.7;
}

/* Эффект кузнечного молота для заголовков при клике */
h2, h3 {
    position: relative;
    cursor: default;
}

h2:active, h3:active {
    animation: hammer-impact 0.5s ease;
}

@keyframes hammer-impact {
    0% { transform: scale(1); }
    30% { transform: scale(0.95); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Эффект закаленной стали для границ */
.experience-item, .modal, .slot-machine {
    border: 1px solid rgba(255, 109, 0, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.experience-item::before, .modal::before, .slot-machine::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
                             rgba(255, 109, 0, 0.1) 0%,
                             rgba(0, 0, 0, 0) 50%,
                             rgba(255, 109, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.95);
    z-index: -1;
}

.experience-item:hover::before, .modal:hover::before, .slot-machine:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Пульсирующее свечение для кнопок */
.button, .main-button, button.spin, .decrease, .increase {
    position: relative;
}

.button::after, .main-button::after, button.spin::after, .decrease::after, .increase::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50px;
    background: radial-gradient(circle at center,
                              var(--color-heading) 0%,
                              rgba(255, 109, 0, 0) 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button:hover::after, .main-button:hover::after, button.spin:hover::after, .decrease:hover::after, .increase:hover::after {
    opacity: 0.5;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 0.3; }
}

/* Эффект магической энергии для текста */
p {
    position: relative;
    z-index: 1;
}

.col:hover p, .contact-wrapper:hover p {
    background: linear-gradient(90deg,
                              var(--color-text),
                              #FFE8C3,
                              var(--color-text));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Магические искры при взаимодействии */
@keyframes magic-spark {
    0% { transform: translate(0, 0) scale(0); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; }
}

/* Эффект раскаленного металла для секций */
.background-accent {
    background: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-3), var(--color-accent-1));
    background-size: 200% 200%;
    animation: molten-metal 10s ease infinite;
}

/* Эффект ударов молота для навигации */
.navbar a:hover {
    animation: hammer-strike 0.5s ease;
}

/* Эффект пылающих краев для карточек */
.experience-item, .contact-wrapper {
    position: relative;
}

.experience-item::after, .contact-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 0 rgba(255, 109, 0, 0);
    opacity: 0;
    transition: all 0.5s ease;
}

.experience-item:hover::after, .contact-wrapper:hover::after {
    box-shadow: 0 0 0 2px rgba(255, 109, 0, 0.7);
    opacity: 1;
}

/* Эффект печи для основных секций */
.header::after, .footer-wrapper::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-heading), transparent);
    opacity: 0.7;
}

/* Эффект перелива металла для игровых ячеек */
.cell {
    position: relative;
    overflow: hidden;
}

.cell::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 109, 0, 0.1), transparent);
    transform: rotate(30deg);
    animation: molten-metal 8s linear infinite;
    opacity: 0.3;
}