/* Общие стили модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  perspective: 1000px;
  overflow: hidden; /* ⛔ запрет прокрутки модалки */
}

/* Открытие модального окна */
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контейнер содержимого */
.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 10% auto;
  height: 70vh;
  width: 100%;
  max-width: 40rem;
  padding: 3rem;
  color: #fff;
  position: relative;
  
  /* Анимация появления */
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;

  /* Неоновая обводка */
  box-shadow: 
    0 0 12px rgba(0, 255, 255, 0.7),
    0 0 25px rgba(0, 255, 255, 0.5);
}

/* Когда модальное окно открывается */
.modal.show .modal-content {
  opacity: 1;
  transform: scale(1);
  box-shadow: 
    0 0 18px rgba(0, 255, 255, 0.9), 
    0 0 30px rgba(0, 255, 255, 0.6);
}

/* Кнопка закрытия */
.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #aaa;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ff5555;
}

/* Заголовки модального окна */
.modal-content h2 {
  font-family: 'CustomFont3', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

/* Контейнер с правилами */
.rules-content {
  font-family: 'CustomFont3', sans-serif; /* Обычный текст */
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  border-radius: 8px;
  margin-top: 1.2rem;
}

/* Заголовки разделов */
.rules-content h3 {
  font-family: 'CustomFont3', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.6rem;
}

/* Общий стиль списков */
.rules-content ul, .rules-content ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-content li {
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.5rem; /* Обычный размер шрифта */
}

/* Красные маркеры */
.rules-content li::before {
  content: "▪︎";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff5555;
  font-size: 1.3rem;
}

/* Курсивное выделение (для наказаний) */
.rules-content em {
  font-family: 'CustomFont3', sans-serif;
  font-style: italic;
  color: #ffdd00;
}

/* Навигация табов */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.7rem;
}

/* Кнопки табов */
.tab-button {
  font-family: 'CustomFont3', sans-serif;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
}

/* Hover-эффект */
.tab-button:hover {
  color: #ffdd00;
  transform: scale(1.05);
}

/* Активная вкладка */
.tab-button.active {
  color: #ffdd00;
  border-bottom: 2px solid #ffdd00;
}

/* Контент табов */
.tabs-content {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 0.7rem;
}

/* Анимация смены вкладок */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
