body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(120deg, #181c24 0%, #232a34 100%);
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e3e6eb;
}

.main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: #232a34;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  padding: 40px 32px 32px 32px;
  width: 98vw;
  max-width: 520px;
  min-width: 280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  color: #e3e6eb;
}
@media (max-width: 600px) {
  .card {
    width: 98vw;
    max-width: 100vw;
    min-width: unset;
    padding: 8px 2px 6px 2px;
  }
}

.app-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: 1px;
}

.user-block {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3a4250 0%, #232a34 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(24,28,36,0.25);
}

.user-details {
  text-align: left;
}
.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.user-username {
  color: #66a6ff;
  font-size: 0.95rem;
}
.user-id {
  color: #b0b8c1;
  font-size: 0.9rem;
}

.balance-block {
  background: #1a1e25;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(24,28,36,0.15);
}
.balance {
  color: #1ecb8b;
  font-weight: 700;
}

.input-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.input-field {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #353b45;
  background: #181c24;
  color: #e3e6eb;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
.input-field:focus {
  border: 1.5px solid #66a6ff;
}
.submit-btn {
  background: linear-gradient(120deg, #232a34 0%, #3a4250 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover {
  background: linear-gradient(120deg, #3a4250 0%, #232a34 100%);
}
.status-msg {
  margin-top: 10px;
  color: #ff5e5e;
  font-weight: 500;
  font-size: 1rem;
}

#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #181c24 0%, #232a34 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader {
  border: 6px solid #353b45;
  border-top: 6px solid #66a6ff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  animation: spin 1s linear infinite;
  margin-bottom: 18px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader-text {
  color: #e3e6eb;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.deny-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  border: 2px solid #353b45;
}

.contacts-block {
  margin-top: 18px;
  background: #181c24;
  border-radius: 12px;
  padding: 14px 10px 10px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  font-size: 1rem;
}
.contact-link {
  color: #66a6ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-link:hover {
  color: #1ecb8b;
  text-decoration: underline;
}

body, html, .card, .main-container, .contacts-block, .deny-img, .app-title, .user-block, .user-details, .balance-block, .input-form, .status-msg {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.main-menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}
.main-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  border: 2px solid #353b45;
}
@media (max-width: 600px) {
  .main-avatar {
    width: 80px;
    height: 80px;
  }
}
.main-welcome {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
  text-align: center;
}
.main-menu-btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.main-btn {
  background: linear-gradient(120deg, #232a34 0%, #3a4250 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.main-btn:hover {
  background: linear-gradient(120deg, #3a4250 0%, #232a34 100%);
}

.main-btn-accent {
  background: #1ecb8b !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(30,203,139,0.13);
  border: none;
  font-weight: 800;
  letter-spacing: 0.7px;
  font-size: 1.18rem;
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.main-btn-accent:hover {
  background: #19b97a !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(30,203,139,0.18);
  transform: scale(1.04);
}

.main-btn-disabled {
  background: linear-gradient(120deg, #232a34 0%, #3a4250 100%) !important;
  color: #b0b8c1 !important;
  opacity: 0.65;
  cursor: not-allowed !important;
  box-shadow: none !important;
  border: none !important;
  font-weight: 700;
  pointer-events: none;
  transition: none;
}
.main-btn-disabled:hover, .main-btn-disabled:active {
  background: linear-gradient(120deg, #232a34 0%, #3a4250 100%) !important;
  color: #b0b8c1 !important;
  opacity: 0.65;
  box-shadow: none !important;
}

.coords-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  padding: 0 8px;
}
.coords-input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #353b45;
  background: #181c24;
  color: #e3e6eb;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
.coords-input:focus {
  border: 1.5px solid #66a6ff;
}
.coords-result {
  margin-top: 10px;
  color: #1ecb8b;
  font-size: 1.05rem;
  word-break: break-all;
  text-align: center;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.plain-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  word-break: break-all;
  transition: color 0.2s;
}
.plain-link:hover {
  color: #66a6ff;
  text-decoration: underline;
}
.copy-btn {
  background: linear-gradient(120deg, #232a34 0%, #3a4250 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  width: auto;
  min-width: 110px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  margin-left: 10px;
  outline: none;
}
.copy-btn:hover {
  background: linear-gradient(120deg, #3a4250 0%, #232a34 100%);
  color: #1ecb8b;
  box-shadow: 0 4px 16px rgba(30,203,139,0.13);
  transform: scale(1.06);
}

.morale-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.morale-cols {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}
.morale-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #232a34;
  border-radius: 12px;
  padding: 18px 16px 14px 16px;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(30,203,139,0.07);
}
.morale-col-title {
  font-weight: 700;
  color: #1ecb8b;
  margin-bottom: 10px;
  text-align: center;
  font-size: 1.08rem;
}
.morale-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}
.morale-input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #353b45;
  background: #181c24;
  color: #e3e6eb;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
  text-align: center;
  width: 60px;
  max-width: 100%;
  box-sizing: border-box;
}
.morale-input:focus {
  border: 1.5px solid #1ecb8b;
}
.morale-input.pop-input {
  width: 100%;
  font-size: 1.08rem;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 2px;
}
@media (max-width: 600px) {
  .morale-cols {
    gap: 8px;
    margin-bottom: 0;
    flex-direction: column;
    align-items: center;
  }
  .morale-col {
    padding: 6px 2px 4px 2px;
    gap: 2px;
    min-width: 0;
    width: 100%;
  }
  .morale-col-title {
    font-size: 0.98rem;
    margin-bottom: 4px;
  }
  .morale-row {
    gap: 4px;
    margin-bottom: 2px;
    flex-direction: row;
  }
  .morale-input {
    font-size: 0.95rem;
    padding: 5px 4px;
    height: 28px;
    width: 100%;
    min-width: 0;
  }
  .morale-input.pop-input {
    font-size: 1rem;
    margin-top: 4px;
    margin-bottom: 2px;
    height: 32px;
    width: 100%;
  }
  .morale-btns-row {
    gap: 4px;
    margin-top: 4px;
  }
  .main-btn, .main-btn-accent {
    font-size: 0.97rem !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 4px !important;
  }
  .morale-form #back-to-menu {
    margin-top: 10px !important;
  }
}

.morale-btns-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 600px) {
  .morale-btns-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}

.avatar-profile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 120px;
  width: 100%;
  margin-bottom: 8px;
}
.main-avatar {
  display: block;
  margin: 0 auto;
  z-index: 1;
}
.profile-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  margin-left: 0;
  background: linear-gradient(135deg, #232a34 0%, #1ecb8b 100%);
  border: 3px solid #1ecb8b;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, box-shadow 0.18s, transform 0.13s;
  box-shadow: 0 6px 32px 0 rgba(30,203,139,0.25), 0 2px 12px rgba(24,28,36,0.13);
  outline: none;
  z-index: 2;
}
.profile-btn svg {
  width: 70px;
  height: 70px;
}
.profile-btn:hover, .profile-btn:focus {
  background: linear-gradient(135deg, #1ecb8b 0%, #232a34 100%);
  border-color: #66a6ff;
  box-shadow: 0 12px 40px 0 rgba(102,166,255,0.25), 0 4px 16px rgba(30,203,139,0.18);
  transform: scale(1.08);
}
@media (max-width: 600px) {
  .avatar-profile-row {
    min-height: 80px;
  }
  .profile-btn {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    border-width: 2px;
  }
  .profile-btn svg {
    width: 40px;
    height: 40px;
  }
}

.profile-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,28,36,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 0.2s;
}
.profile-modal-content {
  background: #232a34;
  color: #e3e6eb;
  border-radius: 18px;
  padding: 28px 32px 18px 22px;
  max-width: 96vw;
  min-width: 220px;
  font-size: 1.13rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  position: relative;
  text-align: center;
  min-width: 260px;
}
.profile-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #66a6ff;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 2;
}
.profile-modal-close:hover {
  color: #ff5e5e;
}
@media (max-width: 600px) {
  .avatar-profile-row {
    gap: 6px;
    margin-bottom: 4px;
  }
  .profile-btn {
    width: 34px;
    height: 34px;
    margin-left: 8px;
  }
  .profile-modal-content {
    padding: 14px 6vw 10px 4vw;
    font-size: 1rem;
    min-width: 0;
    max-width: 99vw;
  }
  .profile-modal-close {
    font-size: 1.5rem;
    top: 6px;
    right: 8px;
  }
}

.civ-card {
  background: #232a34;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 10px 14px 8px 14px;
  margin-bottom: 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.civ-card-title {
  font-weight: 700;
  font-size: 1.08rem;
  color: #e3e6eb;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}
.civ-card-params {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 2px;
  font-size: 1.01rem;
  color: #b0b8c1;
  opacity: 0.93;
}
.civ-card-params span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  font-size: 1.01rem;
}
.civ-card svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
}
@media (max-width: 600px) {
  .civ-card {
    padding: 7px 6px 6px 8px;
    margin-bottom: 7px;
  }
  .civ-card-title {
    font-size: 0.98rem;
  }
  .civ-card-params {
    gap: 8px;
    font-size: 0.95rem;
  }
  .civ-card-params span {
    font-size: 0.95rem;
  }
}

.civ-list-btn {
  display: block;
  width: 100%;
  background: #232a34;
  color: #e3e6eb;
  border: none;
  border-radius: 10px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 10px 0 8px 0;
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  box-shadow: 0 1px 4px rgba(24,28,36,0.10);
  outline: none;
}
.civ-list-btn:hover, .civ-list-btn:focus {
  background: #1a1e25;
  color: #66a6ff;
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(30,203,139,0.10);
}
@media (max-width: 600px) {
  .civ-list-btn {
    font-size: 0.98rem;
    padding: 8px 0 7px 0;
    margin-bottom: 6px;
  }
}

.civ-card-params-text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 4px;
  font-size: 1.08rem;
  color: #b0b8c1;
  opacity: 0.93;
}
.civ-card-params-text > div {
  min-width: 60px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .civ-card-params-text {
    font-size: 0.97rem;
    gap: 8px 8px;
  }
  .civ-card-params-text > div {
    min-width: 44px;
    font-size: 0.97rem;
  }
}

.civ-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.civ-edit-btn, .civ-delete-btn {
  background: none;
  border: none;
  color: #b0b8c1;
  font-size: 1.25rem;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.13s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.civ-edit-btn:hover, .civ-edit-btn:focus {
  background: #232a34;
  color: #66a6ff;
  transform: scale(1.13);
}
.civ-delete-btn:hover, .civ-delete-btn:focus {
  background: #232a34;
  color: #ff5e5e;
  transform: scale(1.13);
}
@media (max-width: 600px) {
  .civ-edit-btn, .civ-delete-btn {
    font-size: 1.05rem;
    padding: 2px 4px;
  }
  .civ-list-row {
    gap: 4px;
    margin-bottom: 4px;
  }
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.input-label {
  color: #b0b8c1;
  font-size: 1.01rem;
  font-weight: 600;
  min-width: 38px;
  text-align: left;
  opacity: 0.85;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .input-row {
    gap: 4px;
    margin-bottom: 6px;
  }
  .input-label {
    font-size: 0.97rem;
    min-width: 28px;
  }
}

.avatar-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}
.back-btn {
  position: absolute;
  top: 20px;
  left: 12px;
  background: #232a34;
  border: 3px solid #353b45;
  color: #66a6ff;
  font-size: 3.2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(24,28,36,0.18);
  transition: background 0.18s, color 0.18s, transform 0.13s, border 0.18s;
  z-index: 10;
  line-height: 1;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.back-btn:hover {
  background: #181c24;
  color: #1ecb8b;
  border-color: #1ecb8b;
  transform: scale(1.10);
}
@media (max-width: 600px) {
  .avatar-center {
    margin-bottom: 4px;
  }
  .back-btn {
    font-size: 2.2rem;
    width: 44px;
    height: 44px;
    top: 10px;
    left: 6px;
    border-width: 2px;
  }
}
.main-welcome-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0 10px;
  margin-bottom: 18px;
}
.info-btn {
  background: transparent;
  border: 2.5px solid #3a8cff;
  color: #3a8cff;
  font-size: 1.7rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 0 0 #3a8cff00;
  padding: 0;
  font-weight: 900;
  transition: border 0.18s, color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.13s;
  outline: none;
}
.info-btn:hover, .info-btn:focus {
  background: #3a8cff22;
  color: #fff;
  border-color: #1ecb8b;
  box-shadow: 0 0 12px 2px #1ecb8b88;
  transform: scale(1.11) rotate(-6deg);
}
.info-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  display: block;
}
.lang-switcher-bottom {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  margin-bottom: -8px;
}
.lang-btn {
  background: #232a34;
  color: #e3e6eb;
  border: 2px solid #353b45;
  border-radius: 22px;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 8px 18px 8px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24,28,36,0.10);
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
}
.lang-btn.active, .lang-btn:focus {
  background: linear-gradient(120deg, #1ecb8b 0%, #3a8cff 100%);
  color: #fff;
  border-color: #1ecb8b;
  box-shadow: 0 4px 18px rgba(30,203,139,0.13);
  transform: scale(1.07);
}
.lang-btn:hover:not(.active) {
  background: #181c24;
  color: #66a6ff;
  border-color: #66a6ff;
  transform: scale(1.04);
}
@media (max-width: 600px) {
  .lang-switcher-bottom {
    gap: 8px;
    margin-top: 18px;
    margin-bottom: -4px;
  }
  .lang-btn {
    font-size: 0.98rem;
    padding: 6px 10px 6px 8px;
    border-radius: 16px;
  }
}

.civ-card-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100vw;
  max-width: 520px;
  margin: 0 auto 14px auto;
  background: #232a34;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid #232a34;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  padding: 0;
}
.civ-card-list-title {
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
  font-weight: 900;
  font-size: 1.18rem;
  color: #111;
  background: #fff;
  border-radius: 14px;
  padding: 14px 0;
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
  user-select: none;
}
.civ-card-list-btn-toggle {
  margin-left: 12px;
  position: static;
  align-self: center;
}
.civ-card-list-btn-toggle svg {
  width: 16px; height: 16px;
  stroke: #b0b8c1;
  transition: transform 0.18s;
}
.civ-card-list.open .civ-card-list-btn-toggle svg {
  transform: rotate(180deg);
}
.civ-card-list:hover, .civ-card-list.open {
  background: #232a34;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  border: 1px solid #353b45;
  transform: none;
}
.civ-card-list:hover .civ-card-list-title, .civ-card-list.open .civ-card-list-title {
  background: #f2f2f2;
  color: #111;
}
.civ-card-list-details {
  display: none;
  background: #232a34;
  padding: 12px 18px 10px 18px;
  border-radius: 0 0 12px 12px;
  animation: fadeInCivDetails 0.22s;
}
.civ-card-list.open .civ-card-list-details {
  display: block;
  box-shadow: none;
}
.civ-card-list-params {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
  justify-content: flex-start;
}
.civ-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 1.01rem;
  background: none;
  border-radius: 0;
  padding: 0;
  color: #b0b8c1;
  box-shadow: none;
  min-width: 38px;
  transition: none;
}
.civ-stat.str, .civ-stat.int, .civ-stat.end, .civ-stat.tec, .civ-stat.def {
  color: #b0b8c1;
}
.civ-card-list-btns {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
}
.civ-edit-btn, .civ-delete-btn {
  background: none;
  border: 1px solid #353b45;
  color: #b0b8c1;
  font-size: 1.01rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.civ-edit-btn:hover, .civ-edit-btn:focus {
  background: #181c24;
  color: #fff;
}
.civ-delete-btn:hover, .civ-delete-btn:focus {
  background: #181c24;
  color: #ff5e5e;
}
@media (max-width: 600px) {
  .civ-card-list {
    border-radius: 8px;
    margin-bottom: 8px;
  }
  .civ-card-list-title {
    font-size: 0.97rem;
    padding: 10px 0 10px 10px;
  }
  .civ-card-list-btn-toggle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin-right: 4px;
    margin-left: 4px;
  }
  .civ-card-list-btn-toggle svg {
    width: 12px; height: 12px;
  }
  .civ-card-list-details {
    padding: 7px 6px 6px 10px;
    border-radius: 0 0 8px 8px;
  }
  .civ-card-list-params {
    gap: 4px 8px;
  }
  .civ-stat {
    font-size: 0.93rem;
    min-width: 28px;
  }
  .civ-card-list-btns {
    gap: 4px;
  }
  .civ-edit-btn, .civ-delete-btn {
    font-size: 0.93rem;
    padding: 2px 6px;
    border-radius: 4px;
  }
}

.info-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,28,36,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  transition: opacity 0.2s;
}
.info-popup.visible {
  display: flex;
  opacity: 1;
  z-index: 20000;
}

.content-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 12px;
  word-break: break-word;
  text-align: left;
}
@media (max-width: 600px) {
  .content-container {
    max-width: 98vw;
    padding: 0 4vw;
  }
}

/* Добавляю стиль для подписи под селекторами в калькуляторе боя */
.battle-label-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 0.97em;
  color: #b0b8c1;
  margin-top: 2px;
  margin-bottom: 0;
  padding: 0 2px;
  letter-spacing: 0.01em;
  text-align: center;
  width: 100%;
  gap: 2px;
}

/* Для мобильных — чуть меньше шрифт и отступы */
@media (max-width: 600px) {
  .battle-label-row {
    font-size: 0.93em;
    margin-top: 1px;
    padding: 0 1px;
  }
}

/* Красивые кнопки для popup-меню цивилизаций */
.civ-edit-btn, .civ-card-list-btn-toggle {
  border-radius: 10px;
  background: linear-gradient(90deg, #66a6ff 0%, #3a8cff 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px #3a8cff33;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 1.08em;
  margin: 0 6px 0 0;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  cursor: pointer;
}
.civ-edit-btn:hover, .civ-card-list-btn-toggle:hover {
  background: linear-gradient(90deg, #3a8cff 0%, #66a6ff 100%);
  color: #232a34;
  box-shadow: 0 4px 18px #3a8cff55;
}
.civ-delete-btn {
  border-radius: 10px;
  background: #ff5e5e;
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px #ff5e5e33;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 1.08em;
  margin: 0 6px 0 0;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  cursor: pointer;
}
.civ-delete-btn:hover {
  background: #ff2323;
  color: #fff;
  box-shadow: 0 4px 18px #ff5e5e55;
} 

.battle-squad-btn {
  background: #ffe066 !important;
  color: #232a34 !important;
  box-shadow: 0 4px 18px rgba(255, 224, 102, 0.13);
}
.battle-squad-btn:hover, .battle-squad-btn:focus {
  background: #ffd43b !important;
  color: #232a34 !important;
  box-shadow: 0 8px 32px rgba(255, 212, 59, 0.18);
  transform: scale(1.04);
} 