/* Next piece: a Tetris-style preview box at the end of each story */
.next-piece { margin-top: 2.5rem; }
.next-piece__box {
  display: flex; gap: 1.25rem; align-items: center;
  max-width: var(--read);
  padding: 1.1rem 1.25rem;
  color: #eceef0; background: var(--ink);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(31, 35, 40, 0.15);
}
.next-piece__preview {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 0.9rem);
  grid-auto-rows: 0.9rem;
  gap: 2px;
  padding: 0.5rem;
  background: #2b3036;
  border-radius: 0.3rem;
}
.next-piece__preview:empty { display: none; }
.next-cell { border-radius: 2px; }
.next-cell.is-I { background: var(--accent); }
.next-cell.is-O { background: #d9a03f; }
.next-cell.is-T { background: #3f6e8f; }
.next-cell.is-S { background: #5e8a5a; }
.next-cell.is-L { background: #b8644a; }
.next-cell.is-J { background: #7a5c96; }

.next-piece__body { font-family: var(--sans); }
.next-piece__label {
  margin: 0 0 0.15rem;
  font-family: var(--mono); font-size: 0.8rem; color: #e0a39c;
}
.next-piece__title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.next-piece__title a { color: #ffffff; text-decoration: none; }
.next-piece__title a:hover { text-decoration: underline; }
.next-piece__hook {
  margin: 0.25rem 0 0;
  font-family: var(--serif); font-size: 1rem; color: rgba(236, 238, 240, 0.75);
}
.next-piece__more { margin: 0.5rem 0 0; font-size: 0.85rem; }
.next-piece__more a { color: #e0a39c; }
.next-piece__more a:hover { color: #ffffff; }
.next-piece a:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

@media (max-width: 40rem) {
  .next-piece__box { align-items: flex-start; }
}