.practice-section {
  padding-block: clamp(34px, 6vw, 76px);
  scroll-margin-top: var(--header-height, 105px);
}

.practice-panel {
  padding: clamp(22px, 5vw, 58px);
  border: 1px solid #e6d9d1;
  border-radius: 30px;
  text-align: center;
  background: #f7ede8;
}

.practice-panel--ground {
  background: #edf0e9;
  border-color: #dce3d9;
}

.practice-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(31px, 5vw, 48px);
  line-height: 1.16;
}

.practice-panel p {
  max-width: 56ch;
  margin: 0 auto 16px;
}

.practice-visual {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 20px auto;
  overflow: hidden;
}

.practice-wave {
  transform: translateX(calc(-38% + 76% * var(--practice-progress, .5)));
}

.practice-trail {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 * (1 - var(--trail-drawn, 1)));
  opacity: var(--trail-opacity, 1);
}

.practice-panel .practice-cue {
  min-height: 3em;
  margin-bottom: 12px;
  color: #3f4941;
}

.practice-panel .practice-action {
  margin: 0;
  background: #964b55;
}

.practice-panel .practice-action[hidden] {
  display: none;
}

.practice-panel .practice-action:hover {
  background: #7b3943;
}

.practice-pebbles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 28px auto 0;
  align-items: start;
}

.practice-pebble summary {
  display: grid;
  place-content: center;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #d8c7bc;
  border-radius: 47% 53% 49% 51% / 57% 45% 55% 43%;
  background: #fffaf6;
  color: #563e41;
  cursor: pointer;
  list-style: none;
}

.practice-pebble:nth-child(2) summary {
  background: #e8eee6;
  border-radius: 54% 46% 58% 42% / 49% 54% 46% 51%;
}

.practice-pebble:nth-child(3) summary {
  background: #f0e0dc;
  border-radius: 45% 55% 47% 53% / 56% 42% 58% 44%;
}

.practice-pebble summary::-webkit-details-marker {
  display: none;
}

.practice-pebble summary:focus-visible {
  outline: 3px solid #92555a;
  outline-offset: 4px;
}

.practice-pebble[open] summary {
  border-color: #a16d73;
}

.practice-pebble p {
  margin: 12px auto 0;
  font-size: .9rem;
}

@media (max-width: 600px) {
  .practice-pebbles {
    grid-template-columns: minmax(0, 1fr);
    max-width: 300px;
  }

  .practice-pebble summary {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-wave {
    transform: none;
  }

  .practice-trail {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
