.hs-body--grenade-trainer .hs-main {
  background-color: #07080c;
}

.hs-body--grenade-trainer .hs-main .container {
  background-color: #07080c;
  /* шире дефолтных 1240px из style.css, остальная логика .container та же */
  width: min(1400px, calc(100% - 32px));
}

.hs-body--grenade-trainer .hs-main .hs-btn,
.hs-body--grenade-trainer .hs-main .hs-btn:visited {
  color: #fff;
}

.hs-body--grenade-trainer .hs-main .hs-btn:disabled,
.hs-body--grenade-trainer .hs-main .hs-btn[disabled] {
  color: rgba(255, 255, 255, 0.48);
}

.hs-body--grenade-trainer .hs-main button {
  color: #fff;
}

.hs-body--grenade-trainer .hs-main button:disabled,
.hs-body--grenade-trainer .hs-main button[disabled] {
  color: rgba(255, 255, 255, 0.48);
}

#grenade-start {
  scroll-margin-top: 96px;
}

.hs-grenade-empty-state {
  margin-top: 22px;
}

.hs-grenade-start-wrap {
  margin: 0;
  align-self: stretch;
}

.hs-grenade-start-wrap .hs-grenade-start-card {
  position: relative;
  height: 100%;
}

body.hs-grenade-modal-open {
  overflow: hidden;
}

.hs-grenade-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 22px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.hs-grenade-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.hs-grenade-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.52);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.hs-grenade-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
}

.hs-grenade-modal__panel.hs-card {
  margin: 0;
  padding: 26px 24px 22px;
  background: rgba(12, 16, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hs-grenade-modal__head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hs-grenade-modal__head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
}

.hs-grenade-modal__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
}

.hs-grenade-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hs-grenade-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hs-grenade-modal__alert {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.hs-grenade-modal__alert p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.hs-grenade-modal__actions-row {
  margin-top: 10px;
}

.hs-grenade-modal__hint {
  margin: 10px 0 0;
  font-size: 15px;
}

.hs-grenade-modal__fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.hs-grenade-modal__legend {
  padding: 0;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.72);
}

.hs-grenade-modal__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hs-grenade-modal__choices--stack {
  flex-direction: column;
  align-items: stretch;
}

.hs-grenade-modal__choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hs-grenade-modal__choice:hover {
  border-color: rgba(98, 54, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.hs-grenade-modal__choice input {
  accent-color: var(--primary, #6236ff);
}

.hs-grenade-modal__choice span {
  font-size: 14px;
  color: #eef2ff;
}

.hs-grenade-modal__form {
  margin: 0;
  padding-top: 4px;
}

.hs-grenade-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.hs-grenade-start-card > .hs-grenade-start-card__submit {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.hs-grenade-start-card > .hs-grenade-start-card__submit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.hs-grenade-start-card--disabled > .hs-grenade-start-card__submit {
  cursor: not-allowed;
}

.hs-grenade-start-card--disabled {
  opacity: 0.58;
}

.hs-grenade-start-card__hint {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.hs-grenade-start-card__hint--muted {
  color: var(--muted);
  opacity: 0.92;
}
