/* Основные стили */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f9f9f9;
}

/* Шапка */
#topBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 2px solid #ccc;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.left-box {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 100px;
}

.center-box h1 {
  font-size: 20px;
  font-weight: bold;
  color: #c22767;
  border: 2px solid #c22767; /* Обводка названия */
  padding: 5px 10px;
  border-radius: 10px;
}

.right-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff; /* Белая заливка */
  padding: 10px 15px; /* Увеличенные отступы */
  border-radius: 12px; /* Закругление углов */
  border: 2px solid #000000; /* Чёрная рамка */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Лёгкая тень */
}

.avatar-img {
  width: 50px; /* Размер аватара */
  height: 50px;
  border-radius: 12px; /* Закругление для аватара */
  border: 2px solid #000000; /* Чёрная обводка аватара */
}

.score-info {
  font-size: 16px; /* Увеличенный размер текста */
  font-weight: bold; /* Жирный текст */
  line-height: 1.2;
  color: #000000;
}

/* Начальный экран */
.start-container {
  text-align: center;
  border: 2px solid #c22767; /* Обводка области выбора аватара */
  border-radius: 15px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  width: 400px;
}

.avatar-selection {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.avatar-option input[type="radio"] {
  display: none;
}

.avatar-option label img {
  width: 80px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.avatar-option input[type="radio"]:checked + label img {
  border-color: #c22767;
}

.nickname-field input {
  width: 80%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#startGameBtn {
  padding: 10px 20px;
  background: #c22767;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

#startGameBtn:hover {
  background: #a41d52;
}

/* Игровое поле */
#gameArea {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px);
  margin-top: 80px;
  background: #1a1a1a;
}

#gameAreaInner {
  width: 90%;
  height: 90%;
  border: 2px solid #ccc;
  border-radius: 15px;
  position: relative;
  background: #333333;
  max-width: 800px;
  max-height: 600px;
}

/* Цели */
.target {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 34px;
  font-weight: ;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
  #topBar {
    flex-wrap: wrap; /* Перенос элементов на следующую строку */
    padding: 10px;
    text-align: center;
  }

  .logo-img {
    width: 80px;
  }

  .center-box h1 {
    font-size: 18px;
    margin-top: 10px;
  }

  .right-box {
    justify-content: center;
    margin-top: 10px;
    width: 100%;
  }

  #gameAreaInner {
    width: 100%;
    height: calc(80vh - 80px);
  }
}