/* Anagrammen: the description on top, the answer's boxes, the shaken letters as large tiles. */
.an { max-width: 640px; margin: 0 auto; text-align: center; }
.an-loading { font-size: 18px; color: #4b5563; padding: 30px 0; }
.an-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 14px; }
.an-count { margin: 0; font-weight: 700; font-size: 17px; color: #2f5d45; }
.an-dots { display: flex; gap: 6px; }
.an-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #cfe2d6; }
.an-dot.is-now { border-color: #2f5d45; }
.an-dot.is-found { background: #2f5d45; border-color: #2f5d45; }
.an-dot.is-shown { background: #e7e2d6; border-color: #c9c1b0; }
.an-hint { margin: 0 0 6px; font: 400 23px/1.35 Georgia, 'Times New Roman', serif; color: #1a1a1a; }
.an-label { display: table; margin: 0 auto 6px; padding: 3px 10px; border-radius: 999px; background: #eef4f0;
  font: 700 13px/1.3 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #2f5d45; }
.an-length { margin: 0 0 14px; font-size: 17px; color: #4b5563; }
.an-slots { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 50px)); justify-content: center; gap: 6px; margin: 0 0 18px; }
.an-slot { height: 54px; padding: 0; border: 0; border-bottom: 4px solid #2f5d45; border-radius: 6px 6px 0 0; background: #fbf9f4;
  font: 700 26px/1 Inter, system-ui, sans-serif; color: #1f2937; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.an-slot:disabled { cursor: default; color: #1f2937; }
.an-slot.is-filled { background: #eef4f0; }
.an-slot.is-found { background: #2f5d45; color: #fff; border-bottom-color: #1f4030; }
.an-slot.is-shown { background: #f1efea; color: #6b6255; border-bottom-color: #c9c1b0; }
.an-slot:focus-visible, .an-tile:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.an-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.an-tile { width: 56px; height: 56px; padding: 0; border: 1.5px solid #d9c9a3; border-radius: 10px; background: #fdf6e3; box-shadow: 0 3px 0 #d9c9a3;
  font: 700 27px/1 Georgia, 'Times New Roman', serif; color: #3b2f1c; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.an-tile.is-double { letter-spacing: -.04em; }
.an-tile:disabled { background: #f4f1ea; border-style: dashed; box-shadow: none; cursor: default; }
.an-tile:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #d9c9a3; }
.an-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.an-result { margin: 0 0 14px; font-size: 20px; }
@media (max-width: 760px) {
  .an-hint { font-size: 21px; }
  .an-slots { gap: 4px; }
  .an-slot { height: 48px; font-size: 22px; }
  .an-pool { gap: 8px; }
  .an-tile { width: 52px; height: 52px; font-size: 25px; }
  .an-tools .sp-button { padding: 0 14px; }
}

/* Larger text: bigger description, boxes and tiles. */
.sp--large .an-hint { font-size: 26px; }
.sp--large .an-length { font-size: 19px; }
.sp--large .an-slots { grid-template-columns: repeat(var(--n), minmax(0, 58px)); }
.sp--large .an-slot { height: 62px; font-size: 30px; }
.sp--large .an-tile { width: 64px; height: 64px; font-size: 31px; }
@media (max-width: 760px) {
  .sp--large .an-hint { font-size: 23px; }
  .sp--large .an-slot { height: 54px; font-size: 26px; }
  .sp--large .an-tile { width: 58px; height: 58px; font-size: 28px; }
}

/* More contrast: firm edges and black letters. */
.sp--contrast .an-tile { background: #fff; border-color: #1f2937; box-shadow: 0 3px 0 #1f2937; color: #000; }
.sp--contrast .an-tile:disabled { border-color: #9ca3af; box-shadow: none; }
.sp--contrast .an-slot { background: #fff; border-bottom-color: #000; color: #000; }
.sp--contrast .an-slot.is-found { background: #14532d; color: #fff; }
.sp--contrast .an-length, .sp--contrast .an-count { color: #111; }
.sp--contrast .an-dot { border-color: #1f2937; }
