/* Основная цветовая палитра для японской мифологии
 * Темно-красный: #8C1515 - традиционный цвет храмов и тории
 * Кремово-бежевый: #F2E6D0 - цвет рисовой бумаги
 * Древесно-коричневый: #5E3A23 - традиционные деревянные конструкции
 * Черный: #1A0E0A - теневые элементы
 * Золотистый: #C9A66B - акценты и декоративные элементы
 */

body {
    background: #1A0E0A;
    color: #F2E6D0;
    font-family: "Arimo", system-ui;
}

/* Заголовки в стиле японской каллиграфии */
h1, h2, h3, h4 {
    font-family: "Cinzel", serif;
    font-weight: 700;
    color: #C9A66B;
}

/* Навигация */
.navbar {
    background: rgba(26, 14, 10, 0.95);
}

.navbar a {
    color: #F2E6D0;
}

.navbar a:hover {
    color: #C9A66B;
}

.line {
    background: #C9A66B;
}

.navbar .menu-items {
    background: #1A0E0A;
}

/* Кнопки */
.catalog-btn {
    background: #8C1515;
    color: #F2E6D0;
    border: 1px solid #C9A66B;
}

.catalog-btn:hover {
    background: #5E3A23;
    opacity: 1;
}

/* Поля формы */
.feedback-field {
    background-color: #1A0E0A;
    color: #F2E6D0;
    border: 1px solid #5E3A23;
}

.feedback-btn {
    background: #8C1515;
    color: #F2E6D0;
    border: 1px solid #C9A66B;
}

.feedback-btn:hover {
    background: #5E3A23;
    opacity: 1;
}

/* Футер */
footer {
    background: #1A0E0A;
    border-top: 1px solid #5E3A23;
}

footer a {
    color: #F2E6D0;
}

footer a:hover {
    color: #C9A66B;
}

.copyright {
    color: #C9A66B;
}

/* Карточки категорий */
.category-card {
    background: #1A0E0A;
    border: 1px solid #5E3A23;
    box-shadow: 0 4px 6px rgba(140, 21, 21, 0.3);
}

/* Декоративные элементы для таймлайна */
.timeline-item {
    background: rgba(26, 14, 10, 0.7);
    border-left: 3px solid #8C1515;
}

/* Статистика */
.stats-grid {
    border-top: 1px solid #5E3A23;
    border-bottom: 1px solid #5E3A23;
}

/* Стилизация для сетки игр */
.games-container {
    background: rgba(26, 14, 10, 0.5);
}

/* Карточка большой игры */
.game-card.large::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, #1A0E0A, transparent);
}

/* Медиа для адаптивности */
@media screen and (max-width: 830px) {
    .navbar .menu-items {
        background: #1A0E0A;
        border-right: 1px solid #5E3A23;
    }
}

/* Основная цветовая палитра для японской мифологии
 * Темно-красный: #8C1515 - традиционный цвет храмов и тории
 * Кремово-бежевый: #F2E6D0 - цвет рисовой бумаги
 * Древесно-коричневый: #5E3A23 - традиционные деревянные конструкции
 * Черный: #1A0E0A - теневые элементы
 * Золотистый: #C9A66B - акценты и декоративные элементы
 * Нефритовый: #7BA05B - цвет для природных элементов
 */

/* Глобальные эффекты и декоративные элементы */
* {
    transition: 0.5s ease all;
}

body {
    background: #1A0E0A url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath 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' fill='%235E3A23' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: #F2E6D0;
    font-family: "Arimo", system-ui;
    position: relative;
}

/* Заголовки в стиле японской каллиграфии */
h1, h2, h3, h4 {
    font-family: "Cinzel", serif;
    font-weight: 700;
    color: #C9A66B;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

h1::after, h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A66B, transparent);
}

/* Навигация */
.navbar {
    background: rgba(26, 14, 10, 0.95);
    border-bottom: 1px solid rgba(201, 166, 107, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar a {
    color: #F2E6D0;
    position: relative;
    overflow: hidden;
}

.navbar a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background: #C9A66B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar a:hover {
    color: #C9A66B;
}

.navbar a:hover:before {
    width: 100%;
}

.line {
    background: #C9A66B;
}

.navbar .menu-items {
    background: #1A0E0A;
    background-image: linear-gradient(to right, rgba(140, 21, 21, 0.1), transparent);
}

/* Кнопки */
.catalog-btn {
    background: #8C1515;
    color: #F2E6D0;
    border: 1px solid #C9A66B;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.catalog-btn:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(201, 166, 107, 0.2);
    transform: translateX(-100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.catalog-btn:hover {
    background: #8C1515;
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.catalog-btn:hover:before {
    transform: translateX(0);
}

/* Поля формы */
.feedback-field {
    background-color: rgba(26, 14, 10, 0.7);
    color: #F2E6D0;
    border: 1px solid #5E3A23;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.feedback-field:focus {
    border-color: #C9A66B;
    box-shadow: 0 0 8px rgba(201, 166, 107, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.feedback-btn {
    background: linear-gradient(135deg, #8C1515, #5E3A23);
    color: #F2E6D0;
    border: 1px solid #C9A66B;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feedback-btn:hover {
    background: linear-gradient(135deg, #8C1515, #5E3A23);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.feedback-btn:before {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, rgba(201, 166, 107, 0.1), rgba(201, 166, 107, 0.3), rgba(201, 166, 107, 0.1));
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: 0.7s;
    z-index: -1;
}

.feedback-btn:hover:before {
    left: 100%;
}

/* Футер */
footer {
    background: #1A0E0A;
    border-top: 1px solid #5E3A23;
}

footer a {
    color: #F2E6D0;
}

footer a:hover {
    color: #C9A66B;
}

.copyright {
    color: #C9A66B;
}

/* Карточки категорий */
.category-card {
    background: linear-gradient(145deg, #1A0E0A 0%, #2a1915 100%);
    border: 1px solid #5E3A23;
    box-shadow: 0 4px 15px rgba(140, 21, 21, 0.3);
    position: relative;
    overflow: hidden;
}

.category-card:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 166, 107, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(140, 21, 21, 0.4);
}

.category-card:hover:before {
    opacity: 1;
}

/* Декоративные элементы для таймлайна */
.timeline-item {
    background: rgba(26, 14, 10, 0.7);
    border-left: 3px solid #8C1515;
}

/* Статистика */
.stats-grid {
    border-top: 1px solid #5E3A23;
    border-bottom: 1px solid #5E3A23;
}

/* Стилизация для сетки игр */
.games-container {
    background: rgba(26, 14, 10, 0.5);
}

/* Карточка большой игры */
.game-card.large::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, #1A0E0A, transparent);
}

/* Добавляем эффекты для .header */
.header {
    position: relative;
    overflow: hidden;
}

.header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A66B' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center center;
    opacity: 0.1;
    z-index: -1;
}

/* Эффекты для timeline-item */
.timeline-item {
    position: relative;
    overflow: hidden;
}

.timeline-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(140, 21, 21, 0.1) 0%, transparent 100%);
    z-index: -1;
}

/* Эффекты для game-card */
.game-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Глобальные эффекты на ссылки */
a {
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 8px rgba(201, 166, 107, 0.6);
}

/* Медиа для адаптивности */
@media screen and (max-width: 830px) {
    .navbar .menu-items {
        background: #1A0E0A;
        border-right: 1px solid #5E3A23;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A66B' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
}