.ws-panel [hidden] { display: none; }
.ws-collection { margin: 0 0 clamp(18px, 2.5vw, 30px); }
.ws-collection-heading {
  margin: 0 0 12px; color: #24483d; font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  line-height: 1.15; letter-spacing: -.035em;
}
.ws-choice-progress { color: #2c6551; font-size: .75rem; font-weight: 700; line-height: 1.3; }
.puzzle-choice[aria-pressed="true"] .ws-choice-progress { color: #e7f5cf; }
.ws-panel { background: #fffdf7; }
.ws-heading { margin-bottom: clamp(14px, 2.5vw, 24px); }
.ws-heading h2 { color: #193e35; margin: 0; font-size: clamp(1.75rem, 3.9vw, 2.8rem); line-height: 1.07; }
.ws-heading h2:focus { outline-offset: 4px; }
#ws-controls { margin: 6px 0 0; color: #476456; font-size: .95rem; line-height: 1.5; }
.ws-play-area { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(15rem, 1fr); gap: clamp(18px, 3.2vw, 40px); align-items: start; }
.ws-sheet {
  position: relative; width: 100%; max-width: 37rem; padding: clamp(7px, 1.12vw, 14px);
  background: #467568; border: 1px solid #315e52; border-radius: 15px;
  box-shadow: inset 0 2px 0 #81a998, inset 0 -3px 0 #345e52, 0 3px 0 #a6bbaa, 0 12px 16px -16px #164736;
}
.ws-grid-frame {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 6px;
  background: #fffaf0; box-shadow: 0 0 0 1px #335e50, 0 2px 3px #2a4c3e77;
}
.ws-board {
  position: relative; z-index: 1; display: grid; width: 100%; aspect-ratio: 1;
  grid-template-rows: repeat(var(--side), 1fr); user-select: none; -webkit-user-select: none;
  touch-action: pinch-zoom; cursor: crosshair; container-type: inline-size;
}
.ws-row { display: grid; grid-template-columns: repeat(var(--side), minmax(0, 1fr)); min-height: 0; }
.ws-row:nth-child(even) { background-color: #aa9a7c0d; }
.ws-cell {
  display: grid; place-items: center; min-width: 0; min-height: 0; padding: 0;
  font: 650 clamp(13px, calc(56cqw / var(--side)), 25px)/1 ui-monospace, Menlo, Consolas, monospace;
  color: #213d35; outline-offset: -3px; cursor: crosshair;
}
.ws-cell:focus-visible { outline: 2px solid #186454; border-radius: 6px; }
#paths { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ws-list-panel {
  padding: clamp(15px, 2.2vw, 26px); background: #f7f5df; border: 1px solid #d6d7b9; border-radius: 4px 14px 6px 12px;
  box-shadow: 1px 4px 0 -1px #f3efda, 1px 5px 0 -1px #c6c7b0, 0 12px 16px -15px #53694466;
}
.ws-list-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; }
.ws-list-heading h3 { margin: 0; color: #30483b; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.2; }
#found-count { color: #415c4b; font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 700; }
#ws-progress {
  display: block; width: 100%; height: 7px; margin: 12px 0 13px; appearance: none; -webkit-appearance: none;
  border: 0; border-radius: 5px; overflow: hidden; background: #dadcc0; color: #59856d; accent-color: #59856d;
}
#ws-progress::-webkit-progress-bar { background: #dadcc0; border-radius: 5px; }
#ws-progress::-webkit-progress-value { background: #59856d; border-radius: 5px; }
#ws-progress::-moz-progress-bar { background: #59856d; border-radius: 5px; }
.ws-words { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.2rem), 1fr)); gap: 0 .75rem; padding: 0; margin: 0; }
.ws-words li {
  display: flex; align-items: center; min-height: 29px; gap: .45rem; padding: 3px 0;
  color: #304537; border-bottom: 1px solid #c9cdb555; font: 650 .81rem/1.35 ui-monospace, Menlo, Consolas, monospace;
}
.ws-words li::before {
  content: ""; flex: 0 0 .63rem; height: .63rem; outline: 1px solid #84927c; outline-offset: -1px;
  border-radius: 2px; background: #fefcf0;
}
.ws-words .ws-found { color: #4b6453; text-decoration: line-through; }
.ws-words .ws-found::before {
  content: "✓"; text-decoration: none; line-height: .7rem; text-align: center; font-size: .65rem;
  color: #fff; background: #4c775e; outline-color: #4c775e;
}
.ws-panel .ws-feedback { font-weight: 650; margin: 14px 0 0; color: #245846; }
.ws-feedback:empty { display: none; }
.ws-actions { margin-top: 14px; }
.ws-actions button {
  min-height: 44px; padding: 10px 17px; border-radius: 12px; font-size: .93rem; font-weight: 750;
  box-shadow: 0 3px 0 #183e33; border: 1px solid #214d40;
}
.ws-actions .ws-replay { background: #f1f5e8; color: #234c3c; border-color: #b3c4af; box-shadow: 0 3px 0 #c2cfb9; }
.ws-actions button:active { transform: translateY(2px); box-shadow: none; }
.ws-keyboard { color: #536358; font-size: .84rem; line-height: 1.7; margin: 16px 0 0; }
.ws-keyboard kbd { font: 650 .82rem/1 ui-monospace, Menlo, Consolas, monospace; color: #385d49; }
.ws-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ws-skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; transform: translateY(-180%); background: #fffdf3; color: #173c35; border-radius: .5rem; padding: .75rem 1rem; }
.ws-skip:focus { transform: none; }
@media (max-width: 710px) {
  .ws-play-area { grid-template-columns: 1fr; gap: 16px; }
  .ws-sheet { justify-self: center; }
  .ws-list-panel { grid-row: 1; width: 100%; max-width: 37rem; justify-self: center; padding: 12px 14px; }
  .ws-words { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
  .ws-words li { min-height: 23px; font-size: .75rem; }
  #ws-progress { margin: 8px 0 7px; }
}
@media (max-width: 650px) {
  .word-search-page .puzzle-shell { padding-inline: 0; }
  .ws-panel { padding-inline: clamp(9px, 2.6vw, 16px); }
  .ws-collection-heading { padding-inline: 4px; }
  .ws-keyboard { margin-top: 12px; }
}
@media (max-width: 370px) {
  .ws-sheet { padding: 5px; border-radius: 11px; }
  .ws-words { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6px; }
}

.ws-eclipse-card { padding:16px clamp(13px,3vw,23px); border-radius:14px; margin:0 0 17px; background:#243c46; color:#fff6df; box-shadow:0 3px #162e36; }
.ws-eclipse-card h3 { margin:0 0 5px; font-size:1.2rem; }
.puzzle-choice[data-puzzle="eclipse-vault"] .choice-art { --portrait:url("../press-guardians.webp"); --spot:100% 100%; --zoom:300% 200%; }
.ws-eclipse-card p { margin:.4rem 0; line-height:1.5; }
.ws-eclipse-card a { color:#f7d695; text-decoration:underline; text-underline-offset:.18em; }
.ws-words.ws-riddle-list { grid-template-columns:1fr; }
.ws-riddle-list li { display:block; padding:1px; }
.ws-riddle-list li::before { display:none; }
.ws-riddle-list button { display:block; width:100%; text-align:left; padding:8px 10px; border:1px solid transparent; background:transparent; color:#2c473b; font:500 .86rem/1.35 system-ui,sans-serif; border-radius:6px; }
.ws-riddle-list button[aria-pressed=true] { background:#dbe7d5; border-color:#789d81; }
.ws-riddle-list button strong,.ws-riddle-list button small { display:block; }
.ws-riddle-list button small { color:#3b5342; overflow-wrap:anywhere; }
#ws-active-riddle { margin:0 0 8px; padding:6px 8px; border-radius:6px; background:#fff8df; color:#193d35; font-size:.88rem; line-height:1.35; }
.ws-seal { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:15px; }
.ws-seal label { font-size:.88rem; font-weight:700; }
.ws-seal input { width:10.5em; max-width:100%; min-height:44px; padding:8px 12px; color:#173f37; border:1px solid #96ac97; border-radius:9px; background:#fffdf3; text-transform:uppercase; letter-spacing:.1em; }
@media (max-width:710px) {
  .ws-play-area:has(.ws-riddle-list) .ws-list-panel { grid-row:auto; }
}
