/* ========================================
   БАЗОВЫЕ СТИЛИ
======================================== */

.header_menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 40px 80px;
  gap: 16px;
}

.header_item {
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.header_item img {
  max-height: 90px;
  width: auto;
  display: block;
}

.profile-click {
  cursor: pointer;
}

.profile-click:hover {
  color: #FF860F;
}

.event-card,
.event-card *,
.event-card::before,
.event-card::after {
  box-sizing: border-box;
}

/* ========================================
   КАРТОЧКИ ИГОР (горизонтальный ряд)
======================================== */

.events {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  box-sizing: border-box;
}

#games-container {
  display: flex;
  gap: 24px;
  width: fit-content;      /* ширина по карточкам */
  max-width: calc(100% - 32px);
  margin-left: auto;       /* центрирование */
  margin-right: auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

#games-container > .game-wrapper {
  flex: 0 0 auto;
  width: 460px;            /* фиксированная ширина карточки */
  max-width: 85vw;
  scroll-snap-align: start;
}

#games-container::-webkit-scrollbar {
  height: 8px;
}

#games-container::-webkit-scrollbar-track {
  background: rgb(255 255 255 / 10%);
  border-radius: 4px;
}

#games-container::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 35%);
  border-radius: 4px;
}

.event-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 36px;
  color: #fff;
  background: #4d3946;
  box-shadow: 0 16px 40px rgb(0 0 0 / 35%);
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(70 35 60 / 12%) 0%,
    rgb(20 8 15 / 15%) 35%,
    rgb(20 8 15 / 55%) 65%,
    rgb(0 0 0 / 92%) 100%
  );
}

.event-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.event-card__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgb(0 0 0 / 50%);
}

.event-card__category {
  margin: 6px 0 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgb(0 0 0 / 70%);
}

.event-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.boardtext {
  padding: 4px 10px 5px;
  border: 1.5px solid rgb(255 255 255 / 85%);
  border-radius: 11px;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  background: rgb(15 10 15 / 24%);
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
}

.event-card__description {
  margin: 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.25;
  color: rgb(255 255 255 / 88%);
  text-shadow: 0 1px 2px rgb(0 0 0 / 60%);
}

.registration {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.playertext {
  font-size: 20px;
  color: white;
  padding: 16px 20px;
  background: rgb(255 255 255 / 24%);
  border: 1.5px solid rgb(255 255 255 / 85%);
  border-radius: 15px;
  white-space: nowrap;
}

.registration_btn {
  background-color: #FF860F;
  font-size: 20px;
  border-radius: 15px;
  padding: 16px 22px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.registration_btn:hover {
  filter: brightness(1.08);
}

.registration_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cursor_default {
  cursor: default;
}

/* ========================================
   ЛИЧНЫЙ КАБИНЕТ
======================================== */

.profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: #fff;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.profile-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-subtitle {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 16px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-btn {
  border: none;
  border-radius: 15px;
  padding: 14px 22px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.profile-btn--primary {
  background: #FF860F;
  color: #fff;
}

.profile-btn--primary:hover {
  filter: brightness(1.08);
}

.profile-btn--ghost {
  background: rgb(255 255 255 / 12%);
  color: #fff;
  border: 1.5px solid rgb(255 255 255 / 35%);
}

.profile-btn--ghost:hover {
  background: rgb(255 255 255 / 18%);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-section-card {
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.donate {
  display: flex;
  flex-direction: column;
}

.profile-section-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-game-card {
  background: rgb(0 0 0 / 25%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  padding: 16px 18px;
}

.profile-game-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.accent 

.profile-game-card p {
  margin: 4px 0;
  color: rgb(255 255 255 / 75%);
  font-size: 14px;
}

.profile-game-card .registration_btn {
  margin-top: 12px;
  font-size: 15px;
  padding: 10px 16px;
}

.profile-empty {
  margin: 0;
  color: rgb(255 255 255 / 55%);
  font-size: 15px;
}

/* ========================================
   МОДАЛКА (базово)
======================================== */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.auth-modal__window {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ========================================
   АДАПТИВНОСТЬ
======================================== */

/* Ноутбуки */
@media (max-width: 1366px) {
  .header_menu {
    padding: 28px 40px;
  }

  .header_item {
    font-size: 22px;
  }

  .header_item img {
    max-height: 70px;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  .header_menu {
    padding: 22px 28px;
    gap: 12px;
  }

  .header_item {
    font-size: 18px;
  }

  .header_item img {
    max-height: 56px;
  }

  #games-container > .game-wrapper {
    width: min(100%, 420px);
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .header_menu {
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .header_item {
    font-size: 15px;
  }

  .header_item img {
    max-height: 44px;
  }

.events {
  padding: 12px 0;
}

#games-container {
  gap: 14px;
  max-width: calc(100% - 16px);
  padding: 6px 8px 18px;
}

#games-container > .game-wrapper {
  width: 320px;
  max-width: 90vw;
}

  .event-card {
    aspect-ratio: auto;
    height: 420px;
    min-height: 420px;
    border-radius: 24px;
  }

  .event-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 18px;
    justify-content: flex-end;
  }

  .event-card__title {
    font-size: 26px;
  }

  .event-card__category {
    font-size: 14px;
  }

  .event-card__details {
    gap: 8px;
    margin: 12px 0;
  }

  .boardtext {
    font-size: 13px;
    padding: 4px 8px;
  }

  .event-card__description {
    font-size: 14px;
    line-height: 1.3;
  }

  .registration {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }

  .playertext {
    font-size: 16px;
    padding: 12px 14px;
    text-align: center;
  }

  .registration_btn {
    font-size: 16px;
    padding: 12px 14px;
    width: 100%;
  }

  .profile-page {
    padding: 24px 16px 60px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-btn {
    flex: 1;
    text-align: center;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .header_menu {
    padding: 10px 12px;
    gap: 8px 12px;
  }

  .header_item {
    font-size: 13px;
  }

  .header_item img {
    max-height: 38px;
  }

  #games-container > .game-wrapper {
    width: min(94vw, 320px);
  }

  .event-card {
    height: 380px;
    min-height: 380px;
    border-radius: 20px;
  }

  .event-card__content {
    padding: 14px;
  }

  .event-card__title {
    font-size: 22px;
  }

  .auth-modal__window {
    margin: 0;
    max-width: 100%;
  }
}

/* ========== ДОНАТ ========== */

.donate {
  padding: 60px 20px 80px;
  color: #fff;
}

.donate__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.donate__eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF860F;
  font-weight: 700;
}

.donate__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 700;
}

.donate__text {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
  color: rgb(255 255 255 / 82%);
  max-width: 620px;
}

.donate__text--accent {
  color: rgb(255 255 255 / 95%);
}

.donate__card {
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: fit-content;
  box-shadow: 0 16px 40px rgb(0 0 0 / 25%);
  backdrop-filter: blur(8px);
}

.donate__card-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.donate__card-subtitle {
  margin: 0 0 20px;
  color: rgb(255 255 255 / 65%);
  font-size: 15px;
}

.donate__button-wrap {
  display: flex;
  overflow: hidden;
  border-radius: 12px;
}

.donate__button-wrap iframe {
  max-width: 100%;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .donate {
    padding: 40px 16px 60px;
  }

  .donate__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .donate__text {
    font-size: 16px;
  }

  .donate__card {
    padding: 22px 18px;
  }
}