.choice-bullet::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}
.choice[data-selected]:disabled,
.choice:enabled:active {
  opacity: 1;
  background-color: var(--blush);
}
.choice[data-selected] .choice-bullet,
.choice:enabled:active .choice-bullet {
  border-color: var(--primary);
}
.choice[data-selected] .choice-bullet::after,
.choice:enabled:active .choice-bullet::after {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --reader-ease: cubic-bezier(.22, 1, .36, 1); }

  .chapter[data-age-enter] .page-date strong {
    animation: story-arrives 220ms var(--reader-ease) backwards;
  }
  .chapter[data-enter] #scene-heading,
  .chapter[data-enter] .scene-text,
  .chapter[data-enter] .birth-income,
  .chapter[data-enter] .ending-years,
  .chapter[data-enter] .archived-place,
  .chapter[data-enter] .tributes {
    animation: story-arrives 320ms var(--reader-ease) backwards;
  }
  .chapter[data-enter] :is(.scene-text, .ending-years, .archived-place) {
    animation-delay: 40ms;
  }
  .chapter[data-enter] :is(.birth-income, .tributes) {
    animation-delay: 80ms;
  }
  /* Keep each tap target still while its text arrives. */
  .chapter[data-enter] .choice-copy {
    animation: story-arrives 280ms var(--reader-ease) 60ms backwards;
  }
  .chapter[data-enter] .choice:nth-child(2) .choice-copy { animation-delay: 90ms; }
  .chapter[data-enter] .choice:nth-child(n + 3) .choice-copy { animation-delay: 120ms; }

  .choice { transition: background-color 140ms var(--reader-ease); }
  .choice-bullet { transition: border-color 140ms var(--reader-ease); }
  .choice-bullet::after {
    transform: scale(.5);
    transition: transform 140ms var(--reader-ease), opacity 120ms var(--reader-ease);
  }
  .choice[data-selected] .choice-bullet::after,
  .choice:enabled:active .choice-bullet::after { transform: scale(1); }

  dialog[open] { animation: sheet-opens 200ms var(--reader-ease) backwards; }
  dialog[open]::backdrop { animation: backdrop-appears 160ms ease-out backwards; }
  @media (max-width: 760px), (max-height: 500px) and (max-width: 960px) and (pointer: coarse) {
    dialog { --sheet-offset: 12px; }
  }
  @keyframes story-arrives {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes sheet-opens {
    from { opacity: 0; transform: translateY(var(--sheet-offset, 6px)); }
    to { opacity: 1; transform: none; }
  }
  @keyframes backdrop-appears { from { opacity: 0; } to { opacity: 1; } }
}
