/* Word Search board (React island) — matches the app's dark theme */

.game-app .ws-work { overflow-y: auto; color: var(--text); }
.game-app .ws-wrap { display: flex; flex-direction: column; gap: 1rem; }
.game-app .ws-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.game-app .ws-title { font-size: 1.4rem; margin: 0; color: var(--text); }
.game-app .ws-progress { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.game-app .ws-main { display: flex; flex-direction: column; gap: 1.25rem; }
.game-app .ws-grid {
  display: grid; gap: 3px; touch-action: none; user-select: none;
  max-width: 540px; width: 100%; margin: 0 auto;
}
.game-app .ws-cell {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--text); border-radius: 6px; font-weight: 600;
  font-size: clamp(.7rem, 2.4vw, 1.05rem); cursor: pointer; text-transform: uppercase;
  transition: background .12s, transform .12s;
}
.game-app .ws-cell.blank { background: transparent; pointer-events: none; cursor: default; }
.game-app .ws-cell.sel { background: var(--accent); color: #0b0e12; }
.game-app .ws-cell.found { color: #fff; }
.game-app .ws-cell.hit { animation: ws-pop .4s; }
.game-app .ws-cell.miss { animation: ws-shake .4s; background: rgba(239,68,68,.4); }
@keyframes ws-pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ws-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.game-app .ws-clues {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem .9rem;
}
.game-app .ws-clue {
  display: flex; gap: .4rem; align-items: baseline; padding: .4rem .6rem;
  border-radius: 6px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); font-size: .92rem;
}
.game-app .ws-clue.solved { background: color-mix(in srgb, var(--clr) 22%, var(--panel)); border-color: var(--clr); }
.game-app .ws-clue.solved .ws-text { text-decoration: line-through; color: var(--muted); }
.game-app .ws-clue.solved .ws-num { color: var(--clr); font-weight: 700; }
.game-app .ws-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.game-app .ws-text { flex: 1; }
.game-app .ws-ans { font-weight: 700; color: var(--clr); text-transform: uppercase; letter-spacing: .03em; }
