.interest { --hobby-art-size: 196px; --hobby-art-height: 245px; }
.interest-dance, .interest-wood, .interest-father { --hobby-art-size: 245px; }
.interest > img { width: var(--hobby-art-size); max-width: 70%; height: var(--hobby-art-height); }
.interest-wood > img { transform: scale(.72); transform-origin: 50% 100%; }
.hobby-motion-control { margin: 8px auto 12px; color: var(--muted); font-size: 13px; }
.hobby-motion-control[hidden] { display: none; }
.hobby-motion-control p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.hobby-motion-control button { padding: 5px 10px; border: 1px solid var(--muted); border-radius: 4px; background: transparent; color: var(--cream); font: inherit; }
.hobby-motion-control button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.hobby-motion[hidden] { display: none; }
.interest.has-hobby-motion > img { display: none; }
.hobby-motion {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--hobby-art-size);
  max-width: 70%;
  height: var(--hobby-art-height);
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hobby-motion__scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow-x: clip;
  overflow-y: visible;
  pointer-events: none;
  isolation: isolate;
}
.hobby-motion__group, .hobby-motion__part {
  position: absolute;
  inset: 0;
}
.hobby-motion__group { perspective: 900px; }
.hobby-motion__part img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  user-select: none;
}
.hobby-motion__replay {
  position: absolute;
  right: 5px;
  bottom: 8px;
  display: flex;
  align-items: center;
  padding: 3px;
  opacity: .4;
  transition: opacity 150ms ease;
  pointer-events: none;
}
.hobby-motion__replay svg { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hobby-motion.is-playing .hobby-motion__replay { opacity: 0; }
.hobby-motion:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .hobby-motion:hover .hobby-motion__replay, .hobby-motion:focus-visible .hobby-motion__replay { opacity: .8; }
  .hobby-motion.is-playing .hobby-motion__replay { opacity: 0; }
}
@media (max-width: 900px) {
  .interest { --hobby-art-size: 154px; --hobby-art-height: 203px; }
  .interest-dance, .interest-wood { --hobby-art-size: 196px; }
}
@media (max-width: 700px) {
  .interest { --hobby-art-size: min(45.5vw, 189px); --hobby-art-height: 189px; }
  .interest-dance, .interest-wood { --hobby-art-size: min(60.2vw, 224px); --hobby-art-height: 224px; }
}
@media (prefers-reduced-motion: reduce) {
  .interest.has-hobby-motion:not(.hobby-motion-opt-in) > img { display: block; }
  .interest:not(.hobby-motion-opt-in) .hobby-motion { display: none; }
}
