/* Word Search only. Static gradients and short, interaction-driven effects keep
   the board responsive on school devices; no background animation is used. */
.ws-screen {
  background: #0b1429;
  background-image: linear-gradient(145deg, #101c36 0%, #111d34 55%, #10263a 100%);
}
.ws-screen > div:first-child {
  background: #101e35;
  border-color: rgba(150, 190, 222, .18);
}
.ws-game {
  font-family: "Aptos", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  background: #101e35;
  border-color: rgba(145, 185, 218, .28);
  box-shadow: inset 0 1px 0 rgba(230, 248, 255, .09);
}
.ws-game > div:first-child {
  background: linear-gradient(165deg, #203752 0%, #192b45 100%);
  border-color: rgba(164, 201, 225, .18);
}
.ws-game > div:first-child > div:first-child,
.ws-game > div:first-child > div:last-child {
  border-color: rgba(164, 201, 225, .16);
}
.ws-game .ws-score { color: #fff6d8; font-size: 1rem; font-weight: 800; letter-spacing: .01em; }
.ws-game .ws-progress { color: #d1e1ee; font-weight: 700; }
.ws-game .ws-shape-label { color: #b6e7df; font-weight: 700; }
.ws-game > div:first-child > div:nth-child(2) > div:first-child { color: #c1d2df; }
.ws-game > div:first-child > div:nth-child(2) button:not(:disabled) {
  color: #f5faff;
  background: rgba(232, 247, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(201, 228, 244, .11);
}
.ws-game > div:first-child > div:nth-child(2) button:disabled { opacity: .8; }
.ws-game .ws-reveal {
  color: #fff4dc;
  background: #a43f6b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.ws-game > div:nth-child(2) {
  background: radial-gradient(ellipse at 50% 42%, #203d58 0%, #142a43 60%, #112338 100%);
}
.ws-game [data-word-search-cell] {
  color: #f7fcff;
  background: #2d4b67;
  border-radius: 22%;
  box-shadow: inset 0 1px 0 rgba(234, 251, 255, .17), inset 0 0 0 1px rgba(4, 20, 35, .22);
  font-weight: 800;
  line-height: 1;
  transition: background-color .12s ease, box-shadow .12s ease;
}
.ws-game [data-word-search-cell][class*="bg-violet-500"] {
  color: #fff;
  background: #7563dc;
  box-shadow: inset 0 0 0 2px #c7bbff, 0 0 6px rgba(164, 147, 255, .55);
}
.ws-game button:focus-visible { outline: 3px solid #ffe39b; outline-offset: 2px; }
.ws-game > .absolute.inset-0 { background: rgba(4, 10, 22, .88); backdrop-filter: none; }
.ws-game > .absolute.inset-0 > div { border-color: rgba(180, 216, 239, .35); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
@media (hover: hover) {
  .ws-game > div:first-child > div:nth-child(2) button:not(:disabled):hover { background: rgba(161, 221, 229, .2); }
  .ws-game [data-word-search-cell]:not([class*="bg-violet-500"]):hover { background: #416b89; }
}
@keyframes ws-star-enter { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.ws-game .ws-star-celebrate { animation: ws-star-enter .35s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .ws-game [data-word-search-cell] { transition: none; }
  .ws-game .ws-star-celebrate { animation: none; }
}
