.word-home-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.65rem 0 1.5rem;
}
.word-home-heading h1 {
  margin: 0.3rem 0 0.55rem;
}
.word-home-heading .date-label {
  margin: 0 0 0.15rem;
}
.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.35rem);
}
.workshop-option,
.workshop-demo {
  position: relative;
  min-width: 0;
  --workshop-tint: #e3f1e5;
  --workshop-ink: #256545;
}
[data-workshop='dictee'] {
  --workshop-tint: #ffebd2;
  --workshop-ink: #8a4c20;
}
[data-workshop='epellation'] {
  --workshop-tint: #e8edf9;
  --workshop-ink: #36557a;
}
.workshop-option {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow);
}
.workshop-option:focus-within,
.workshop-option:hover {
  border-color: #78a38a;
}
.workshop-entry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border-radius: inherit;
  text-align: left;
  overflow: hidden;
}
.scene-window {
  position: relative;
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  isolation: isolate;
  background: var(--workshop-tint);
}
.scene-window .scene-sheet {
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  width: 200%;
  height: 200%;
  max-width: none;
  transform: translate(0, 0);
}
.scene-sheet.scene-playing {
  animation: atelier-poses 3.6s step-end 1;
}
.scene-movie {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.scene-movie.scene-visible {
  opacity: 1;
}
@keyframes atelier-poses {
  0%,
  100% {
    transform: translate(0, 0);
  }
  24% {
    transform: translate(-50%, 0);
  }
  49% {
    transform: translate(0, -50%);
  }
  74% {
    transform: translate(-50%, -50%);
  }
}
.scene-replay {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 254, 248, 0.95);
  border: 1px solid rgba(54, 74, 61, 0.18);
  border-radius: 50%;
  color: #27503f;
  box-shadow: 0 2px 6px #253a2b26;
}
.scene-replay:hover {
  background: white;
}
.workshop-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1rem 1.2rem;
}
.workshop-icon,
.workshop-demo .badge-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  color: var(--workshop-ink);
  background: var(--workshop-tint);
}
.workshop-copy strong,
.workshop-copy small {
  display: block;
}
.workshop-copy strong {
  font-size: clamp(1.1rem, 1.65vw, 1.42rem);
  line-height: 1.22;
}
.workshop-copy small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.4;
}
.word-empty {
  margin-top: 1.5rem;
}
.word-empty a {
  text-decoration: underline;
}
.choosing-workshop {
  display: block;
}
.library-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 1.15rem;
}
.library-word {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  min-height: 48px;
  max-width: 100%;
  color: var(--green);
  border: 1px solid #aabfac;
  background: #f7faf3;
  border-radius: 13px;
  font-size: 1.16rem;
  font-weight: 600;
}
.library-word > span {
  overflow-wrap: anywhere;
}
.library-word .icon {
  flex: none;
}
.library-word:hover,
.library-word[aria-pressed='true'] {
  background: #e2f1de;
  border-color: #548760;
}
.library-selection {
  margin: 1rem 0;
}
.library-selection .word-display {
  margin: 0 0 0.15rem;
}
.library-word .syll.s0 {
  color: #215d8e;
}
.library-word .syll.s1 {
  color: #855020;
}
.word-library .lesson {
  margin-top: 1rem;
}
.calm .scene-sheet.scene-playing {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .scene-sheet.scene-playing {
    animation: none !important;
  }
}
.scene-sheet[data-pose='1'] {
  transform: translate(-50%, 0);
}
.scene-sheet[data-pose='2'] {
  transform: translate(0, -50%);
}
.scene-sheet[data-pose='3'] {
  transform: translate(-50%, -50%);
}
@media (max-width: 860px) {
  .workshop-copy {
    gap: 0.6rem;
    padding: 0.85rem;
  }
  .workshop-copy .workshop-icon {
    width: 1.95rem;
    height: 1.95rem;
  }
}
@media (max-width: 700px) {
  .word-home-heading {
    margin: 1.2rem 0 1rem;
    align-items: start;
  }
  .workshop-gallery {
    grid-template-columns: 1fr;
  }
  .workshop-entry {
    display: grid;
    grid-template-columns: minmax(7rem, 37%) 1fr;
    align-items: center;
  }
  .workshop-option .scene-window {
    width: 100%;
    align-self: center;
  }
  .workshop-copy {
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
  }
  .workshop-copy .workshop-icon {
    display: none;
  }
  .workshop-option .scene-replay {
    top: auto;
    right: auto;
    bottom: 0.18rem;
    left: 0.18rem;
  }
  .exercise-place.workshop-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0.6rem;
  }
  .workshop-demo .scene-window {
    flex: 0 0 min(32%, 8.5rem);
  }
  .workshop-demo .exercise-caption {
    flex: 1;
    padding: 0.65rem;
  }
  .workshop-demo .badge-icon {
    display: none;
  }
  .workshop-demo .scene-replay {
    position: static;
    flex: none;
  }
}
