/* A word has the same ink wherever it appears, including after a visit. */
.word, .word:visited {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
.word[data-word="up"] { --ink: #005e65; }
.word[data-word="down"] { --ink: #84205a; }
.word[data-word="dream"] { --ink: #55438a; }
.word[data-word="again"] { --ink: #824523; }
.word:target, .word:focus-visible { outline: 2px dotted currentColor; outline-offset: .12em; }
.word-trail {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 1.25rem;
  padding: .15em .45em;
  background: #fffc;
}
.word-trail a { font-size: inherit; }

.fragments { max-width: 21em; }
.fragment { display: none; }
.fragment:first-child, .fragment:target { display: block; }
.fragments:has(.fragment:target) .fragment:first-child:not(:target) { display: none; }
@media (max-width: 600px) {
  .fragments .fragment { margin: 0; font-size: 2rem; }
  .fragment a { font-size: inherit; }
}
