/* Detail-page selection feedback and the completion card. */
.puzzle-board .letter-grid[role="group"] { touch-action: none; user-select: none; -webkit-user-select: none; }
.puzzle-board .letter.found { background: #dce8d5; }
.puzzle-board .letter.selected { background: #f5c518; }
.puzzle-board .word-found { background: #dce8d5; color: #2e5a45; text-decoration: line-through; border-radius: 3px; }
.puzzle-completion {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 24px auto 0;
  padding: 26px 22px 22px;
  border: 1px solid #2e5a45;
  border-radius: 12px;
  background: #fffdf8;
  color: #1d332b;
  font-family: 'Trebuchet MS', sans-serif;
  text-align: center;
}
.puzzle-completion h2 {
  margin: 0 auto 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.03em;
}
.completion-time { margin: 0 0 20px; color: #55705f; font-size: 14px; line-height: 1.5; }
.completion-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.completion-actions .button { flex: 1 1 160px; min-height: 48px; padding: 12px 14px; font-size: 14px; }
.completion-actions .primary { background: #2e5a45; }
.completion-actions .secondary { border-color: #2e5a45; color: #2e5a45; }
.completion-confetti { position: absolute; inset: 0 0 auto; overflow: hidden; pointer-events: none; z-index: 3; }
.completion-confetti-piece { position: absolute; top: 0; display: block; pointer-events: none; }
@media (max-width: 400px) {
  .puzzle-completion { padding: 22px 16px 18px; }
  .puzzle-completion h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .puzzle-completion { scroll-behavior: auto; }
  .completion-confetti { display: none; }
}
@media print {
  .puzzle-completion, .completion-confetti { display: none !important; }
  .puzzle-board .letter.found, .puzzle-board .letter.selected, .puzzle-board .word-found { background: transparent; }
}
