@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
body {
  font-family: "Montserrat", Arial, sans-serif;
  background: url("images/background.png") no-repeat center center fixed;
  background-size: cover;
  color: white;
  margin: 0;
}

h1 {
  text-align: center;
  font-size: 32px;
  margin: 20px 0;
}

/* ===================== */
/* 🔥 TOP PAGE */
/* ===================== */

#list {
  list-style: none;
  padding: 0;
  max-width: 500px;
  margin: auto;
}

/* карточка участника */
.card {
  display: flex;
  align-items: center;
  gap: 12px; /* new */ 
  margin: 10px 0;
  padding: 12px;
  border-radius: 14px;
  cursor: grab;
  transition: 0.2s;
}
.section-title {
  width: 100%;
  display: block;
  background: none !important;
  transform: none !important;
  cursor: default !important;
}

/* растягиваем текст */
.text {
  flex: 1;
}

.card:hover {
  transform: scale(1.02);
}

.flag {
  width: 50px;
  height: 50px;
  margin-right: 12px;
  border-radius: 6px;
}

.text {
  text-align: left;
}

/* ===================== */
/* 🔥 MENU PAGE */
/* ===================== */

/* 🔥 КРУЖОК С БАЛЛАМИ */
.points {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 14px;

  background: #2b5aa0;
}

/* топ-3 */
.points.gold {
  background: gold;
  color: black;
}

.points.silver {
  background: silver;
  color: black;
}

.points.bronze {
  background: #cd7f32;
}

#seasons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.season-card {
  position: relative;
  height: 130px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a3a6b, #0b1a2a);
  display: flex;
  /* Разворачиваем: теперь первый элемент в HTML будет справа, второй — слева */
  flex-direction: row-reverse; 
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.2s;
  gap: 20px; /* Создаем фиксированный зазор между флагом и текстом */
}

.season-card:hover {
  transform: scale(1.03);
}

.season-flag {
  /* position: static уже позволяет флагу стоять в общем потоке слева */
  position: static;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

.season-text {
  /* Выравнивание текста по левому краю обычно лучше смотрится, когда флаг слева */
  text-align: left; 
  flex-grow: 1;
}

.season-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.season-city {
  font-size: 14px;
  color: #aaa;
  margin-top: 5px;
}
.controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

/* Поле ввода ника */
#userName {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 15px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
  width: 250px;
  text-align: center;
}

#userName:focus {
  border-color: #2b5aa0;
  background: rgba(255, 255, 255, 0.15);
}

/* Группа кнопок */
.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Базовая кнопка */
.btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.btn:active { transform: scale(0.95); }

.btn-save {
  background: #2b5aa0;
  color: white;
}

.btn-download {
  background: #ffffff;
  color: #1a3a6b;
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
