.helf-training-controls,
.helf-circuit-card,
.helf-gym-card {
  border: 1px solid rgba(22, 101, 52, 0.18);
  background: rgba(247, 254, 231, 0.86);
  box-shadow: 0 18px 48px rgba(20, 83, 45, 0.1);
}

.helf-training-controls {
  margin: 18px 0;
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
}

.helf-training-controls h2,
.helf-circuit-card h2,
.helf-gym-card h2 {
  margin: 3px 0 0;
}

.helf-difficulty-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(20, 83, 45, 0.08);
}

.helf-difficulty-button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #365314;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.helf-difficulty-button:hover:not(:disabled),
.helf-difficulty-button:focus-visible {
  background: rgba(132, 204, 22, 0.14);
}

.helf-difficulty-button.is-active {
  background: #166534;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 101, 52, 0.22);
}

.helf-difficulty-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.helf-difficulty-summary {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: #4d7c0f;
  font-size: 0.9rem;
}

.helf-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin: 18px 0;
}

.helf-circuit-card,
.helf-gym-card {
  border-radius: 26px;
  padding: 20px;
  overflow: hidden;
}

.helf-circuit-intro,
.helf-gym-intro {
  margin: 8px 0 14px;
  color: #4b5563;
  line-height: 1.55;
}

.helf-circuit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.helf-circuit-status {
  min-height: 42px;
  margin: 0 0 14px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(22, 101, 52, 0.08);
  color: #365314;
  font-size: 0.9rem;
  line-height: 1.45;
}

.helf-circuit-status.is-error {
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

.helf-circuit-steps {
  display: grid;
  gap: 10px;
}

.helf-circuit-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.helf-circuit-step.is-active {
  transform: translateY(-1px);
  border-color: rgba(22, 101, 52, 0.42);
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.1);
}

.helf-circuit-step.is-complete {
  background: rgba(220, 252, 231, 0.72);
}

.helf-circuit-step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-weight: 900;
}

.helf-circuit-step.is-active .helf-circuit-step-number {
  background: #166534;
  color: #fff;
}

.helf-circuit-step-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.helf-circuit-step-copy > span {
  color: #65a30d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.helf-circuit-step-copy strong {
  color: #14532d;
}

.helf-circuit-step-copy small {
  color: #6b7280;
}

.helf-circuit-step-action {
  min-width: 120px;
}

.helf-circuit-active #helfSpinButton {
  opacity: 0.55;
}

.helf-gym-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 260;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(22, 101, 52, 0.12);
  background: #ecfccb;
}

.helf-gym-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.helf-gym-sun { fill: #fde047; opacity: 0.86; }
.helf-gym-cloud { fill: rgba(255, 255, 255, 0.82); }
.helf-gym-ground { fill: #86efac; }
.helf-gym-path { fill: #d6d3d1; opacity: 0.72; }
.helf-gym-building > path { fill: #365314; }
.helf-gym-building { stroke: #166534; stroke-width: 3; stroke-linejoin: round; }
.helf-gym-door { fill: #14532d; }
.helf-gym-window { fill: #bae6fd; }
.helf-gym-mat rect { fill: #4ade80; }
.helf-gym-mat path,
.helf-gym-dumbbell,
.helf-gym-bench,
.helf-gym-rack,
.helf-gym-machine,
.helf-gym-trophy,
.helf-gym-flags {
  stroke: #14532d;
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.helf-gym-dumbbell rect,
.helf-gym-bench rect,
.helf-gym-rack rect { fill: #166534; stroke: none; }
.helf-gym-bench circle,
.helf-gym-rack circle { fill: #3f6212; stroke: #14532d; stroke-width: 3; }
.helf-gym-sign { fill: #166534; }
.helf-gym-sign + text,
.helf-gym-neon text {
  fill: #f7fee7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.helf-gym-trophy { fill: #fde047; stroke: #a16207; stroke-width: 3; }
.helf-gym-neon rect { fill: #14532d; stroke: #bef264; stroke-width: 3; }
.helf-gym-neon text { fill: #d9f99d; font-size: 12px; }
.helf-gym-yard-sign rect { fill: #f7fee7; stroke: #365314; stroke-width: 3; }
.helf-gym-yard-sign text { fill: #365314; font-size: 11px; font-weight: 900; letter-spacing: 0.05em; }

.helf-gym-meta {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.helf-gym-meta-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.helf-gym-meta-row strong { color: #14532d; }
.helf-gym-meta-row span { color: #4d7c0f; font-size: 0.86rem; }
.helf-gym-description { margin: 0; color: #6b7280; font-size: 0.9rem; line-height: 1.45; }

.helf-gym-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.1);
  overflow: hidden;
}

.helf-gym-progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #65a30d, #16a34a);
  transition: width 320ms ease;
}

.helf-gym-next {
  color: #4d7c0f;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .helf-training-controls,
  .helf-feature-grid {
    grid-template-columns: 1fr;
  }
  .helf-difficulty-toggle {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .helf-training-controls,
  .helf-circuit-card,
  .helf-gym-card {
    border-radius: 20px;
    padding: 16px;
  }
  .helf-difficulty-toggle {
    grid-template-columns: repeat(3, 1fr);
  }
  .helf-circuit-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .helf-circuit-step-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .helf-circuit-step,
  .helf-gym-progress-track > span {
    transition: none;
  }
}
