/* Ретро-гламурная палитра с нейтральными карточками */
:root {
    --retro-bg: #1a1a1a;
    --retro-text: #ffd700;
    --retro-accent: #8b0000;
    --retro-button: #32cd32;
    --retro-secondary: #4b0082;
    --retro-border: #ffd700;
    --retro-card-bg: rgba(26, 26, 26, 0.9);
    --retro-hover: rgba(255, 215, 0, 0.1);
}

/* Основные стили body */
body {
    background-color: var(--retro-bg) !important;
    color: var(--retro-text) !important;
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.6 !important;
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--retro-text) !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Основной контейнер */
#page-container {
    background: linear-gradient(
        135deg,
        var(--retro-bg) 0%,
        #2a2a2a 100%
    ) !important;
}

/* Хедер */
#main-header {
    background-color: rgba(26, 26, 26, 0.95) !important;
    border-bottom: 2px solid var(--retro-border) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
}

/* Навигация */
#top-menu a {
    color: var(--retro-text) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

#top-menu a:hover {
    color: var(--retro-accent) !important;
    text-shadow: 0 0 10px var(--retro-accent) !important;
}

/* Карточки игр - нейтральный стиль с рамками */
.et_pb_with_border {
    background: var(--retro-card-bg) !important;
    border: 2px solid var(--retro-border) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.et_pb_with_border:hover {
    border-color: var(--retro-accent) !important;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4) !important;
    transform: translateY(-5px) !important;
    background: rgba(26, 26, 26, 0.95) !important;
}

/* Изображения в карточках */
.et_pb_with_border img {
    border-radius: 8px !important;
    border: 1px solid var(--retro-border) !important;
    transition: all 0.3s ease !important;
}

.et_pb_with_border:hover img {
    border-color: var(--retro-accent) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
}

/* Заголовки карточек */
.et_pb_with_border h2 {
    color: var(--retro-text) !important;
    font-size: 1.4em !important;
    margin-top: 15px !important;
    text-align: center !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.et_pb_with_border h2 a {
    color: var(--retro-text) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.et_pb_with_border h2 a:hover {
    color: var(--retro-accent) !important;
    text-shadow: 0 0 8px var(--retro-accent) !important;
}

/* Кнопки */
.et_pb_button {
    background: linear-gradient(45deg, var(--retro-button), #228b22) !important;
    color: var(--retro-bg) !important;
    border: 2px solid var(--retro-button) !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3) !important;
}

.et_pb_button:hover {
    background: linear-gradient(45deg, var(--retro-accent), #a52a2a) !important;
    border-color: var(--retro-accent) !important;
    color: var(--retro-text) !important;
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Текст */
p,
.et_pb_text_inner {
    color: var(--retro-text) !important;
    line-height: 1.7 !important;
}

/* Списки */
ul li {
    color: var(--retro-text) !important;
}

ul li strong {
    color: var(--retro-accent) !important;
}

/* Таблицы */
table {
    background: var(--retro-card-bg) !important;
    border: 2px solid var(--retro-border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

table th {
    background: var(--retro-accent) !important;
    color: var(--retro-text) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

table td {
    background: var(--retro-card-bg) !important;
    color: var(--retro-text) !important;
    border: 1px solid var(--retro-border) !important;
}

table tr:hover {
    background: var(--retro-hover) !important;
}

/* Футер */
#main-footer {
    background: linear-gradient(
        135deg,
        var(--retro-bg) 0%,
        var(--retro-secondary) 100%
    ) !important;
    border-top: 3px solid var(--retro-border) !important;
    color: var(--retro-text) !important;
}

#main-footer a {
    color: var(--retro-text) !important;
    transition: all 0.3s ease !important;
}

#main-footer a:hover {
    color: var(--retro-accent) !important;
    text-shadow: 0 0 5px var(--retro-accent) !important;
}

/* Popup окна (18+ и cookies) */
.age-gate {
    background: var(--retro-card-bg) !important;
    border: 3px solid var(--retro-border) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px) !important;
}

.age-gate__headline {
    color: var(--retro-text) !important;
    font-size: 2em !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

.age-gate__challenge {
    color: var(--retro-text) !important;
    font-size: 1.2em !important;
    margin: 20px 0 !important;
}

.age-gate__submit {
    background: linear-gradient(45deg, var(--retro-button), #228b22) !important;
    border: 2px solid var(--retro-button) !important;
    border-radius: 8px !important;
    padding: 15px 30px !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4) !important;
}

.age-gate__submit:hover {
    background: linear-gradient(45deg, var(--retro-accent), #a52a2a) !important;
    border-color: var(--retro-accent) !important;
    color: var(--retro-text) !important;
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* Фон popup */
.age-gate__background {
    background: rgba(26, 26, 26, 0.9) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .et_pb_with_border {
        margin: 10px 5px !important;
        padding: 15px !important;
    }

    .et_pb_with_border h2 {
        font-size: 1.2em !important;
    }

    .age-gate__headline {
        font-size: 1.5em !important;
    }
}

/* Анимации загрузки */
.age-gate__loader svg circle {
    fill: var(--retro-text) !important;
}

/* Дополнительные эффекты */
.et_pb_section {
    position: relative !important;
}

.et_pb_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Улучшенная типографика */
.et_pb_text_inner {
    font-size: 16px !important;
    line-height: 1.8 !important;
    text-align: justify !important;
}

/* Секции с фоном */
.et_pb_with_background {
    background: linear-gradient(
        135deg,
        var(--retro-card-bg) 0%,
        rgba(75, 0, 130, 0.3) 100%
    ) !important;
    border: 1px solid var(--retro-border) !important;
    border-radius: 10px !important;
    margin: 20px 0 !important;
    padding: 30px !important;
}
