:root {
  --ink-40: #f0f0f0; /* Светлый цвет текста */
  --border: #444444; /* Темная граница */
  --header-top: #3a4b67; /* Темный заголовок верх */
  --header-bottom: #2c3954; /* Темный заголовок низ */
  --body-top: #3a3a3a; /* Темное тело верх */
  --body-bottom: #2c2c2c; /* Темное тело низ */
  --hover-bg: #4a5a73; /* Фон при наведении */
}

/* === Общие стили === */
html, body {
  margin: 0;
  padding: 20px;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
  background: #1e1e1e; /* Очень темный фон страницы */
  color: var(--ink-40);
  user-select: none;
  caret-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ссылка назад */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 12px;
  text-decoration: none;
  color: #8ab4f8; /* Яркий, легко читаемый цвет ссылки */
}

/* Контейнер карточек */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Прячем радиокнопку */
.warper-input {
  display: none;
}

/* === Карточка === */
.warper-card {
  display: flex;
  flex-direction: column;
  width: 200px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--body-top), var(--body-bottom));
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5); /* Более заметная тень */
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.warper-card:hover {
  background: #404040; /* Фон при наведении немного светлее */
}

/* Заголовок */
.card-header {
  background: linear-gradient(to bottom, var(--header-top), var(--header-bottom));
  padding: 4px 8px;
  font-weight: bold;
  color: #ffffff; /* Белый цвет заголовка */
  font-size: 12px;
  border-bottom: 1px solid #555555; /* Темная граница */
  text-align: center;
}

/* Тело */
.card-body {
  background: linear-gradient(to bottom, #424242, var(--body-top)); /* Темный градиент тела */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #555555;
}

/* Спрайт */
.sprite {
  width: 37px;
  height: 95px;
  background-image: var(--sprite-sit);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  margin-bottom: 6px;
  z-index: 1;
}

/* Стоячий спрайт */
.warper-input:checked,
.warper-card:hover .sprite {
  background-image: var(--sprite-stand);
  width: 32px;
}

/* Аккаунт */
.account {
  font-size: 11px;
  margin-bottom: 6px;
  padding: 2px 4px;
  background: #252525; /* Темный фон аккаунта */
  border: 1px solid #444444;
  border-radius: 2px;
}

/* Карты */
.card-footer {
  background: linear-gradient(to bottom, var(--body-top), #252525); /* Темный градиент футера */
  border-top: 1px solid #444444;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.card-footer .map {
  font-size: 11px;
  padding: 2px 4px;
  background: #333333; /* Темный фон карты */
  border: 1px solid #555555;
  border-radius: 2px;
  text-align: center;
  cursor: default;
  position: relative;
}

.card-footer .map:hover {
  background: var(--hover-bg);
}
