.grow-panel {
  position: relative;
  margin-top: 40px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, var(--accent-faint), transparent 42%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.grow-panel-heading h2 {
  margin: 5px 0 8px;
  color: #f8fafc;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.grow-panel-heading p:last-child,
.grow-panel form > label {
  color: #9ca3af;
}

.grow-panel form {
  margin-top: 22px;
}

.grow-panel form > label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.growth-stepper {
  display: grid;
  grid-template-columns: 52px minmax(120px, 1fr) 52px;
  gap: 10px;
}

.stepper-button,
.audio-toggle {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.stepper-button {
  min-height: 56px;
  border-radius: 16px;
  font-size: 1.55rem;
  line-height: 1;
}

.stepper-button:hover:not(:disabled),
.audio-toggle:hover:not(:disabled) {
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--accent-color);
  background: var(--accent-faint);
}

.stepper-button:active:not(:disabled) {
  transform: scale(0.96);
}

.stepper-button:focus-visible,
.audio-toggle:focus-visible,
.growth-input-shell:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.growth-input-shell {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
}

.growth-input-shell input {
  width: 100%;
  min-width: 0;
  padding: 13px 4px 13px 18px;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 800;
  appearance: textfield;
}

.growth-input-shell input::-webkit-inner-spin-button,
.growth-input-shell input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.growth-input-shell > span {
  padding-right: 18px;
  color: #6b7280;
  font-weight: 700;
}

.growth-quote {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.28);
}

.growth-quote strong {
  color: #f8fafc;
  font-size: 1.08rem;
}

.growth-quote small {
  grid-column: 1 / -1;
  min-height: 1.2em;
  color: #737b87;
}

.growth-quote small.is-unaffordable {
  color: #d8b78e;
}

.grow-submit {
  width: 100%;
  justify-content: center;
}

.current-length {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #8b949e;
}

.current-length strong {
  color: var(--accent-color);
  font-size: 1.25rem;
}

.current-length.is-growing strong {
  animation: length-pop 440ms ease-out;
}

.grow-status {
  min-height: 1.45em;
  margin: 14px 0 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.grow-status.is-success {
  color: var(--accent-color);
}

.grow-status.is-error {
  color: #d8b78e;
}

.hero-piekielnik {
  position: relative;
  align-self: stretch;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 45%, rgba(45, 212, 191, 0.085), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(139, 77, 45, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.piekielnik-figure-header {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #69717c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.audio-toggle {
  padding: 8px 11px;
  border-radius: 999px;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#piekielnik-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 600px;
}

.cap-highlight {
  fill: rgba(255, 223, 186, 0.16);
  filter: blur(0.6px);
}

.cap-texture {
  fill: rgba(45, 21, 12, 0.18);
}

.base-hair path {
  fill: none;
  stroke: #5e4936;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.82;
}

#piekielnik-shadow {
  transition: rx 500ms ease, opacity 500ms ease;
}

#piekielnik-svg.is-growing {
  animation: figure-glow 700ms ease-out;
}

@keyframes length-pop {
  45% {
    color: #efffcf;
    text-shadow: 0 0 22px var(--accent-color);
    transform: scale(1.13);
  }
}

@keyframes figure-glow {
  45% {
    filter: drop-shadow(0 0 24px var(--accent-soft));
  }
}

@media (max-width: 940px) {
  .hero-piekielnik {
    min-height: 520px;
  }

  #piekielnik-svg {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .grow-panel {
    padding: 20px;
  }

  .growth-stepper {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .stepper-button {
    min-height: 52px;
  }

  .hero-piekielnik {
    min-height: 460px;
    border-radius: 24px;
  }

  #piekielnik-svg {
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .current-length.is-growing strong,
  #piekielnik-svg.is-growing {
    animation: none;
  }

  .stepper-button,
  .audio-toggle {
    transition: none;
  }
}