.wordhunt-board{--wh-surface:var(--panel,#fff);--wh-ink:var(--ink,#152033);--wh-accent:var(--accent,#5265a2);--wh-line:color-mix(in srgb,var(--wh-accent) 30%,transparent);max-width:480px;color:var(--wh-ink);font:600 1rem/1.35 system-ui,sans-serif;user-select:none}.wordhunt-board:focus-visible{outline:3px solid var(--wh-accent);outline-offset:4px}.wordhunt-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.wordhunt-status{min-height:24px;margin:0 0 10px;text-align:center;color:var(--muted,var(--wh-ink));font-weight:750}.wordhunt-stage{position:relative;min-width:0}.wordhunt-grid{--wh-columns:4;position:relative;display:grid;grid-template-columns:repeat(var(--wh-columns),minmax(44px,1fr));gap:9px;touch-action:none}.wordhunt-tile,.wordhunt-rack-tile,.wordhunt-block{min-width:44px;min-height:56px;border:1px solid var(--wh-line);border-radius:15px;background:linear-gradient(145deg,var(--wh-surface),color-mix(in srgb,var(--wh-surface) 82%,var(--wh-accent)));box-shadow:0 5px 14px color-mix(in srgb,var(--wh-ink) 11%,transparent);color:var(--wh-ink);font:800 clamp(1.1rem,5vw,1.55rem)/1 system-ui,sans-serif;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease}.wordhunt-tile:active,.wordhunt-rack-tile:active,.wordhunt-block:active{transform:scale(.97)}.wordhunt-tile:focus-visible,.wordhunt-rack-tile:focus-visible,.wordhunt-block:focus-visible,.wordhunt-controls button:focus-visible,.wordhunt-keyboard button:focus-visible{outline:3px solid var(--wh-accent);outline-offset:2px}.wordhunt-lines{position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:visible;pointer-events:none}.wordhunt-lines polyline{fill:none;stroke:var(--wh-accent);stroke-width:8;stroke-linecap:round;stroke-linejoin:round}.wordhunt-grid.is-acknowledged::after,.wordhunt-bites-grid.is-acknowledged::after{content:"";position:absolute;inset:-4px;border:3px solid #16834b;border-radius:20px;pointer-events:none;animation:wordhunt-ack .55s ease-out}.wordhunt-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.wordhunt-controls button,.wordhunt-keyboard button{min-height:44px;border:1px solid var(--wh-line);border-radius:11px;background:var(--wh-surface);color:var(--wh-ink);padding:8px 13px;font:750 .92rem/1 system-ui,sans-serif;cursor:pointer}.wordhunt-controls button{flex:1}.wordhunt-controls .is-primary,.wordhunt-keyboard .is-primary{background:var(--wh-accent);border-color:var(--wh-accent);color:var(--panel,#fff)}.wordhunt-board button:disabled{opacity:.45;cursor:not-allowed}.wordhunt-found{margin-top:16px;padding-top:14px;border-top:1px solid var(--wh-line)}.wordhunt-score{margin:0 0 9px;color:var(--muted,var(--wh-ink))}.wordhunt-score strong{color:var(--wh-ink);font-size:1.3rem;font-variant-numeric:tabular-nums}.wordhunt-words{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none}.wordhunt-words li{padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--wh-accent) 12%,var(--wh-surface));font-size:.82rem;overflow-wrap:anywhere}.wordhunt-words small{color:var(--muted,var(--wh-ink))}.wordhunt-words .is-empty{color:var(--muted,var(--wh-ink));background:transparent}.wordhunt-rack{display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:8px}.wordhunt-rack-tile{min-height:62px}.wordhunt-bites-grid{position:relative;display:grid;grid-template-columns:repeat(var(--wh-cols),1fr);grid-template-rows:repeat(var(--wh-rows),1fr);gap:3px;aspect-ratio:1;border-radius:16px;background:color-mix(in srgb,var(--wh-accent) 18%,var(--wh-surface));padding:4px;touch-action:none}.wordhunt-bite-cell{min-width:0;border:0;border-radius:5px;background:var(--wh-surface);color:var(--wh-ink);font:800 clamp(.68rem,3.2vw,1rem)/1 system-ui,sans-serif}.wordhunt-bite-cell.is-traced{outline:3px solid var(--wh-accent);outline-offset:-2px}.wordhunt-block{z-index:2;min-height:0;width:100%;height:100%;border-radius:8px;background:var(--wh-accent);color:var(--panel,#fff);font-size:clamp(.68rem,3vw,1rem);letter-spacing:.04em;overflow:hidden}.wordhunt-ghost{margin:8px 0;color:var(--muted,var(--wh-ink));font-size:.85rem}.wordhunt-trace-help{margin-top:10px;color:var(--muted,var(--wh-ink));font-size:.88rem}.wordhunt-trace-help summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.wordhunt-five-grid{position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding-right:48px}.wordhunt-five-cell{display:grid;place-items:center;aspect-ratio:1;border:2px solid color-mix(in srgb,var(--wh-ink) 20%,transparent);border-radius:8px;background:var(--wh-surface);font:800 clamp(1rem,5vw,1.45rem)/1 system-ui,sans-serif}.wordhunt-five-cell.is-correct{background:#198754;border-color:#198754;color:#fff}.wordhunt-five-cell.is-present{background:#b7791f;border-color:#b7791f;color:#fff}.wordhunt-five-cell.is-absent{background:#697386;border-color:#697386;color:#fff}.wordhunt-guess-author{align-self:center;margin-left:7px;color:var(--muted,var(--wh-ink));font-size:.7rem;overflow-wrap:anywhere}.wordhunt-five-input{min-height:44px;margin:12px 0;padding:11px;border-radius:10px;background:color-mix(in srgb,var(--wh-accent) 10%,var(--wh-surface));text-align:center;letter-spacing:.13em}.wordhunt-keyboard{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}.wordhunt-keyboard button{min-width:0;padding:7px 2px;font-size:.76rem}.wordhunt-keyboard button:nth-last-child(2),.wordhunt-keyboard button:last-child{grid-column:span 2;font-size:.72rem}.wordhunt-answer{margin:12px 0 0;padding:10px;border-radius:10px;background:color-mix(in srgb,#16834b 13%,var(--wh-surface));font-weight:800}@keyframes wordhunt-ack{from{opacity:1;transform:scale(.98)}to{opacity:0;transform:scale(1.03)}}@media(min-width:600px){.wordhunt-tile{min-height:72px}.wordhunt-rack-tile{min-height:70px}}@media(prefers-reduced-motion:reduce){.wordhunt-tile,.wordhunt-rack-tile,.wordhunt-block{transition:none}.wordhunt-grid.is-acknowledged::after,.wordhunt-bites-grid.is-acknowledged::after{animation:none;opacity:0}}
/* Board containers override the Sudoku grid they replace. */
#board.wordhunt-board { display:block;width:100%;height:auto;aspect-ratio:auto;grid-template-columns:none;max-width:480px;padding:0;border:0;background:transparent;box-shadow:none;border-radius:0; }
.wordhunt-board button:disabled { opacity:.5;cursor:not-allowed; }
.wordhunt-rack { grid-template-columns:repeat(6,minmax(0,1fr));gap:6px; }
.wordhunt-rack-tile { min-width:0; }
.wordhunt-controls .is-primary,.wordhunt-keyboard .is-primary,.wordhunt-block { color:var(--accent-ink,#fff); }
.wordhunt-bites-grid { overflow:hidden; }
.wordhunt-bite-cell { pointer-events:none; }
.wordhunt-block { touch-action:none;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;min-width:0;min-height:0;position:relative;padding:0; }
.wordhunt-block.is-vertical { grid-auto-flow:row;grid-auto-rows:1fr;grid-auto-columns:auto; }
.wordhunt-block span { display:grid;place-items:center;width:100%;height:100%; }
.wordhunt-block.is-drag-source { opacity:.35; }
.wordhunt-ghost-block { pointer-events:none;opacity:.75;outline:2px solid var(--ink);z-index:5; }
.wordhunt-five-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) minmax(36px,56px);gap:6px;padding-right:0; }
.wordhunt-guess-author { grid-column:6;font-size:.7rem;line-height:1.3;align-self:center; }
.wordhunt-five-cell.is-present { background:#946014;border-color:#946014; }
.wordhunt-lines .wordhunt-direction { fill:var(--wh-accent);stroke:var(--panel);stroke-width:1; }
@media(max-width:380px){.wordhunt-rack{gap:4px}.wordhunt-rack-tile{min-height:54px}.wordhunt-keyboard{gap:3px}}
.wordhunt-keyboard { display:flex;flex-direction:column;gap:6px;margin-top:16px; }
.wordhunt-keyboard-row { display:flex;justify-content:center;gap:4px; }
.wordhunt-keyboard-row button { flex:1;max-width:42px;min-width:0;min-height:46px;padding:6px 0;font-size:.8rem; }
.wordhunt-keyboard-row button.is-wide { flex:1.7;max-width:64px;font-size:.65rem; }
.wordhunt-keyboard-row button.is-correct { background:#198754;color:white; }
.wordhunt-keyboard-row button.is-present { background:#946014;color:white; }
.wordhunt-keyboard-row button.is-absent { background:#697386;color:white; }
.wordhunt-clue-legend { font-size:.72rem;line-height:1.7;color:var(--muted);text-align:center;margin-top:12px; }
.wordhunt-five-grid { max-width:360px;margin-inline:auto; }
.wordhunt-five-cell { min-width:0;max-height:54px;font-size:1.35rem; }
.wordhunt-status { font-size:.85rem;line-height:1.5; }
.wordhunt-five-typing{min-height:1.4em;margin:8px 0 0;padding:7px 10px;border:1px solid var(--wh-line);border-radius:10px;color:var(--muted,var(--wh-ink));background:color-mix(in srgb,var(--wh-accent) 7%,var(--wh-surface));font-size:.84rem;font-weight:750;text-align:center}
.wordhunt-five-typing.is-own{color:var(--wh-ink);border-color:color-mix(in srgb,var(--wh-accent) 60%,var(--wh-line));background:color-mix(in srgb,var(--wh-accent) 14%,var(--wh-surface))}
.wordhunt-five-actions{margin-top:10px}.wordhunt-five-actions button{min-width:44px}
.wordhunt-five-cell:has(+ .wordhunt-guess-author){border-bottom-color:var(--wh-line)}

.wordhunt-board .wordhunt-block { font-size:clamp(1rem,5vw,1.5rem);font-weight:800; }

.wordhunt-tile { position:relative; }
.wordhunt-letter { position:relative;z-index:3;pointer-events:none; }
.game-view.privacy .wordhunt-board { filter:blur(14px);pointer-events:none; }

/* Anagrams keeps the in-progress word distinct from both the rack and scored history. */
.wordhunt-anagram-draft{margin-bottom:12px}.wordhunt-draft-label,.wordhunt-rack-label,.wordhunt-found-heading{margin:0 0 6px;font-size:.82rem;font-weight:800;letter-spacing:.03em;color:var(--muted,var(--wh-ink))}.wordhunt-draft-tray{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:56px;padding:6px;border:1px solid var(--wh-line);border-radius:14px;background:color-mix(in srgb,var(--wh-accent) 8%,var(--wh-surface))}.wordhunt-draft-tile{flex:0 0 44px;min-width:44px;min-height:44px;border:1px solid var(--wh-line);border-radius:10px;background:var(--wh-surface);color:var(--wh-ink);font:800 1.15rem/1 system-ui,sans-serif;cursor:pointer}.wordhunt-draft-tile:focus-visible{outline:3px solid var(--wh-accent);outline-offset:2px}.wordhunt-draft-placeholder{margin:0;color:var(--muted,var(--wh-ink));font-size:.9rem}.wordhunt-anagram-feedback{min-height:1.35em;margin:6px 0 0;font-size:.88rem;font-weight:750;color:var(--muted,var(--wh-ink))}.wordhunt-rack-label{margin-top:0}.wordhunt-found-heading{color:var(--wh-ink);font-size:1rem}.wordhunt-found .wordhunt-found-heading+.wordhunt-score{margin-top:0}

.wordhunt-anagram-feedback.is-success{color:#116949}html[data-theme="dark"] .wordhunt-anagram-feedback.is-success{color:#9de1ba}

/* Anagrams moves real tiles between broad targets; no reserved return slots. */
.wordhunt-anagram-bank{min-height:94px;padding:6px 0;border:2px solid transparent;border-radius:14px}
.wordhunt-anagram-draft{padding:6px 0;border:2px solid transparent;border-radius:14px}
.wordhunt-anagram-tile{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.wordhunt-anagram-tile.is-drag-source{opacity:.25}
.wordhunt-anagram-draft.is-drop-target,.wordhunt-anagram-bank.is-drop-target{border-color:var(--wh-accent);background:color-mix(in srgb,var(--wh-accent) 9%,transparent)}
.wordhunt-anagram-ghost{position:fixed;left:0;top:0;z-index:2000;display:grid;place-items:center;width:48px;height:56px;border:2px solid var(--wh-accent);border-radius:12px;background:var(--field,var(--wh-surface));color:var(--wh-ink);box-shadow:0 8px 24px #0003;pointer-events:none;font:800 1.3rem/1 system-ui,sans-serif}
.wordhunt-anagram-help,.wordhunt-bank-placeholder{color:var(--muted,var(--wh-ink));font-size:.78rem;line-height:1.45}
.wordhunt-anagram-help{margin:10px 0 0}.wordhunt-bank-placeholder{grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-height:54px;margin:0;border:1px dashed var(--wh-line);border-radius:12px}

/* A readable confirmation remains after selection clears; its space is reserved. */
.wordhunt-board{--wh-success-ink:#12633e;--wh-success-line:#31875c;--wh-success-surface:color-mix(in srgb,#16834b 11%,var(--wh-surface))}
html[data-theme="dark"] .wordhunt-board{--wh-success-ink:#a3ecc0;--wh-success-line:#65bb89;--wh-success-surface:color-mix(in srgb,#16834b 18%,var(--wh-surface))}
.wordhunt-live.wordhunt-confirmation{position:static;width:auto;height:auto;clip:auto;overflow:visible;box-sizing:border-box;min-height:32px;margin:0 0 4px;padding:4px 8px;border:1px solid transparent;border-radius:12px;font-size:.9rem;line-height:1.45;text-align:center;overflow-wrap:anywhere}
.wordhunt-anagram-feedback{box-sizing:border-box;min-height:48px;margin:8px 0 0;padding:10px 12px;border:1px solid transparent;border-radius:12px;line-height:1.45;overflow-wrap:anywhere}
.wordhunt-confirmation.is-success,.wordhunt-anagram-feedback.is-success,html[data-theme="dark"] .wordhunt-anagram-feedback.is-success{color:var(--wh-success-ink);background:var(--wh-success-surface);border-color:var(--wh-success-line);font-weight:800;box-shadow:0 0 0 3px color-mix(in srgb,var(--wh-success-line) 12%,transparent);animation:wordhunt-correct .45s ease-out}
@keyframes wordhunt-correct{from{box-shadow:0 0 0 7px color-mix(in srgb,var(--wh-success-line) 25%,transparent)}to{box-shadow:0 0 0 3px color-mix(in srgb,var(--wh-success-line) 12%,transparent)}}
@media(prefers-reduced-motion:reduce){.wordhunt-confirmation.is-success,.wordhunt-anagram-feedback.is-success{animation:none}}

/* Active Anagrams should spend vertical space on letters, not an empty message. */
.wordhunt-status-accessible{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wordhunt-anagram-draft{margin-bottom:6px;padding:2px 0}
.wordhunt-anagram-bank{min-height:0;padding:2px 0}
.wordhunt-anagram-feedback{min-height:0;margin:4px 0 0;padding:0;border:0;background:transparent;box-shadow:none}
.wordhunt-anagram-feedback:empty{display:none}
.wordhunt-anagram-feedback.is-success{padding:6px 8px;border:1px solid var(--wh-success-line)}
.wordhunt-anagram-help{margin:5px 0 0}
.wordhunt-found{margin-top:10px;padding-top:8px}
.wordhunt-rack{gap:5px}
.wordhunt-rack-tile{min-height:54px}
@media(max-width:380px){.wordhunt-rack-tile{min-height:48px}.wordhunt-draft-tray{min-height:48px;padding:4px}}

/* Stable touch geometry and clear routes between letter centers. */
.wordhunt-grid.is-tracing .wordhunt-tile:active{transform:none}
.wordhunt-lines polyline{stroke-width:5}
.wordhunt-lines .wordhunt-trace-outline{stroke:var(--bg,#fff);stroke-width:9;opacity:.85}
.wordhunt-lines .wordhunt-trace-tail{stroke:var(--wh-accent);stroke-width:3;opacity:.7}
/* Keep both Anagrams rows equally easy to hit, including the empty row. */
.wordhunt-stage:has(>.wordhunt-anagram-draft){display:grid;gap:8px}
.wordhunt-anagram-draft,.wordhunt-anagram-bank{margin:0;padding:6px;border:2px solid transparent;border-radius:16px}
.wordhunt-draft-tray{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;min-height:68px;padding:6px}
.wordhunt-draft-placeholder{grid-column:1/-1;display:grid;place-items:center;min-height:52px;text-align:center;font-size:.82rem}
.wordhunt-anagram-tile{min-width:0;min-height:56px;padding:0;font-size:1.25rem}
.wordhunt-anagram-bank .wordhunt-rack{gap:6px;min-height:56px}
.wordhunt-anagram-ghost{border-color:var(--accent,#5265a2);color:var(--ink,#152033);background:color-mix(in srgb,var(--accent,#5265a2) 9%,var(--bg,#fff));box-shadow:0 10px 26px #0004}
@media(max-width:380px){.wordhunt-draft-tray,.wordhunt-anagram-bank .wordhunt-rack{gap:4px}.wordhunt-anagram-tile{min-height:52px;font-size:1.1rem}}

/* A correct-word reply must not move the rack under the next finger. */
.wordhunt-anagram-feedback{min-height:36px;margin:4px 0 0;padding:6px 8px;border:1px solid transparent;line-height:1.35}
.wordhunt-anagram-feedback:empty{display:block;visibility:hidden}

.wordhunt-draft-tray{min-height:70px}
.wordhunt-grid.is-acknowledged::after,.wordhunt-bites-grid.is-acknowledged::after{animation-fill-mode:forwards}

/* A released path briefly confirms the server result; no extra Cancel action. */
.wordhunt-board{--wh-trace-red:#b45661;--wh-trace-green:#3c8061;--wh-trace-yellow:#94752f;--wh-feedback-strength:22%;--wh-accepted-strength:42%;--wh-error-ink:#91414c;--wh-duplicate-ink:#71561d}
html[data-theme="dark"] .wordhunt-board{--wh-trace-red:#d58f96;--wh-trace-green:#85bea0;--wh-trace-yellow:#cbb174;--wh-feedback-strength:18%;--wh-accepted-strength:32%;--wh-error-ink:#e0a3aa;--wh-duplicate-ink:#d8c393}
.wordhunt-grid{--wh-trace:var(--wh-trace-red)}
.wordhunt-grid[data-trace-state="accepted"]{--wh-trace:var(--wh-trace-green)}
.wordhunt-grid[data-trace-state="duplicate"]{--wh-trace:var(--wh-trace-yellow)}
.wordhunt-lines .wordhunt-trace-line,.wordhunt-lines .wordhunt-trace-tail{stroke:var(--wh-trace)}
.wordhunt-lines .wordhunt-direction{fill:var(--wh-trace)}
.wordhunt-confirmation.is-duplicate{color:var(--wh-duplicate-ink);border-color:var(--wh-trace-yellow);background:color-mix(in srgb,var(--wh-trace-yellow) 10%,var(--wh-surface));font-weight:750}
.wordhunt-confirmation.is-error{color:var(--wh-error-ink);border-color:var(--wh-trace-red);background:color-mix(in srgb,var(--wh-trace-red) 8%,var(--wh-surface))}

/* A single gentle result pulse touches only the letters in the released word.
   The base tile and its hit area never move, so another swipe can start at once. */
.wordhunt-grid .wordhunt-tile::before{content:"";position:absolute;inset:0;border:1px solid color-mix(in srgb,var(--wh-tile-tone,var(--wh-accent)) 65%,transparent);border-radius:inherit;background:color-mix(in srgb,var(--wh-tile-tone,var(--wh-accent)) var(--wh-feedback-strength),transparent);opacity:0;pointer-events:none}
.wordhunt-tile[data-word-feedback="drawing"],.wordhunt-tile[data-word-feedback="pending"]{--wh-tile-tone:var(--wh-accent)}
.wordhunt-tile[data-word-feedback="drawing"]::before,.wordhunt-tile[data-word-feedback="pending"]::before{opacity:.35}
.wordhunt-tile[data-word-feedback="accepted"]{--wh-tile-tone:var(--wh-trace-green);--wh-feedback-strength:var(--wh-accepted-strength)}
.wordhunt-tile[data-word-feedback="invalid"]{--wh-tile-tone:var(--wh-trace-red)}
.wordhunt-tile[data-word-feedback="duplicate"]{--wh-tile-tone:var(--wh-trace-yellow)}
.wordhunt-tile[data-word-feedback="accepted"]::before,.wordhunt-tile[data-word-feedback="invalid"]::before,.wordhunt-tile[data-word-feedback="duplicate"]::before{animation:wordhunt-tile-result 720ms ease-out var(--wh-feedback-delay,0ms) both}
.wordhunt-grid:is([data-trace-state="accepted"],[data-trace-state="invalid"],[data-trace-state="duplicate"]) .wordhunt-lines{animation:wordhunt-route-result 720ms ease-out var(--wh-feedback-delay,0ms) both}
.wordhunt-tile[data-word-feedback="accepted"]::before{border-color:var(--wh-trace-green);animation:wordhunt-tile-accepted var(--wh-feedback-duration,1150ms) ease-out var(--wh-feedback-delay,0ms) both}
.wordhunt-grid[data-trace-state="accepted"] .wordhunt-lines{filter:drop-shadow(0 0 5px color-mix(in srgb,var(--wh-trace-green) 40%,transparent));animation:wordhunt-route-accepted var(--wh-feedback-duration,1150ms) ease-out var(--wh-feedback-delay,0ms) both}
@keyframes wordhunt-tile-accepted{0%{opacity:.6;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--wh-trace-green) 50%,transparent),0 0 4px color-mix(in srgb,var(--wh-trace-green) 16%,transparent)}8%,68%{opacity:1;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--wh-trace-green) 65%,transparent),0 0 14px color-mix(in srgb,var(--wh-trace-green) 32%,transparent)}100%{opacity:0;box-shadow:inset 0 0 0 1px transparent,0 0 4px transparent}}
@keyframes wordhunt-route-accepted{0%,68%{opacity:1}100%{opacity:0}}
@keyframes wordhunt-tile-result{0%{opacity:.2}18%,50%{opacity:1}100%{opacity:0}}
@keyframes wordhunt-route-result{0%,55%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.wordhunt-tile[data-word-feedback="accepted"]::before,.wordhunt-tile[data-word-feedback="invalid"]::before,.wordhunt-tile[data-word-feedback="duplicate"]::before{animation:none;opacity:.7}.wordhunt-grid[data-trace-state] .wordhunt-lines{animation:none;opacity:1;filter:none}.wordhunt-tile[data-word-feedback="accepted"]::before{opacity:1;box-shadow:inset 0 0 0 1px var(--wh-trace-green)}}

.wordhunt-board:has(.wordhunt-grid) .wordhunt-confirmation.is-success{animation:none;box-shadow:none}

/* Finished rounds use the board as a compact, readable scorecard. */
#board.wordhunt-board.wordhunt-results{--wh-result-surface:var(--panel,var(--wh-surface));--wh-result-subtle:var(--field,var(--wh-surface));--wh-result-line:var(--line,var(--wh-line));--wh-result-muted:var(--muted,var(--wh-ink));box-sizing:border-box;width:100%;max-width:680px;margin-inline:auto;padding:16px;border:1px solid var(--wh-result-line);border-radius:20px;background:var(--wh-result-surface);box-shadow:var(--soft-shadow,0 8px 24px color-mix(in srgb,var(--wh-ink) 10%,transparent));font-variant-numeric:tabular-nums;user-select:auto}
.wordhunt-results>*{min-width:0}.wh-result-head{display:grid;gap:4px;margin:0 0 14px}.wh-result-kicker{margin:0;color:var(--wh-result-muted);font-size:.69rem;font-weight:850;letter-spacing:.12em;line-height:1.2}.wh-result-head h2{margin:0;color:var(--wh-ink);font-size:clamp(1.3rem,5vw,1.7rem);line-height:1.12;letter-spacing:-.025em}.wh-result-head p{margin:0;color:var(--wh-result-muted);font-size:.88rem;line-height:1.45}
.wh-result-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:14px;border:1px solid var(--wh-result-line);border-radius:16px;background:var(--wh-result-subtle)}.wh-result-score{display:grid;gap:2px;min-width:0}.wh-result-score strong{overflow-wrap:anywhere;color:var(--wh-ink);font-size:clamp(2rem,11vw,3rem);font-weight:850;line-height:.95;letter-spacing:-.055em}.wh-result-score small,.wh-result-place{color:var(--wh-result-muted);font-size:.77rem;font-weight:750;line-height:1.35}.wh-result-place{max-width:9rem;text-align:right;overflow-wrap:anywhere}
.wh-result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 16px}.wh-result-metrics>section{display:grid;align-content:start;gap:2px;min-width:0;padding:10px 8px;border:1px solid var(--wh-result-line);border-radius:13px;background:var(--wh-result-surface);text-align:center}.wh-result-metrics small{min-width:0;overflow-wrap:anywhere;color:var(--wh-result-muted);font-size:.65rem;font-weight:750;line-height:1.25}.wh-result-metrics strong{min-width:0;overflow-wrap:anywhere;color:var(--wh-ink);font-size:clamp(.92rem,4vw,1.12rem);line-height:1.1}.wh-result-metrics strong+small{font-size:.68rem;font-weight:650}
.wh-result-standings{margin:0 0 14px}.wh-result-standings h3{margin:0 0 7px;font-size:.9rem;line-height:1.3}.wh-results-list,.wh-result-words,.wh-result-score-lines{margin:0;padding:0;list-style:none}.wh-results-list{display:grid;gap:7px}.wh-results-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px;border:1px solid var(--wh-result-line);border-radius:14px;background:var(--wh-result-surface)}.wh-results-row.is-you{border-color:color-mix(in srgb,var(--wh-accent) 50%,var(--wh-result-line));background:color-mix(in srgb,var(--wh-accent) 10%,var(--wh-result-surface))}.wh-result-row-rank{min-width:2.1ch;color:var(--wh-result-muted);font-size:.8rem;font-weight:850;text-align:center}.wh-result-row-person,.wh-result-row-score{display:grid;min-width:0}.wh-result-row-person strong,.wh-result-row-score strong{overflow-wrap:anywhere;color:var(--wh-ink);font-size:.9rem;line-height:1.2}.wh-result-row-person small,.wh-result-row-score small{overflow-wrap:anywhere;color:var(--wh-result-muted);font-size:.7rem;line-height:1.35}.wh-result-row-score{justify-items:end;text-align:right}.wh-result-row-score button{min-width:44px;min-height:44px;margin-top:4px;padding:6px 9px;border:1px solid var(--wh-result-line);border-radius:10px;background:var(--wh-result-subtle);color:var(--wh-ink);font:800 .72rem/1.15 system-ui,sans-serif;cursor:pointer}.wh-result-row-score button:active{opacity:.75}.wh-result-row-score button:focus-visible,.wh-result-actions button:focus-visible,.wh-result-breakdown summary:focus-visible,.wh-result-review summary:focus-visible{outline:3px solid var(--wh-accent);outline-offset:2px}.wh-result-words{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;padding-top:2px}.wh-result-words li{max-width:100%;padding:4px 7px;border-radius:8px;background:color-mix(in srgb,var(--wh-accent) 10%,var(--wh-result-subtle));color:var(--wh-ink);font-size:.72rem;line-height:1.2;overflow-wrap:anywhere}
.wh-result-breakdown,.wh-result-review{margin:10px 0 0;border-top:1px solid var(--wh-result-line)}.wh-result-breakdown summary,.wh-result-review summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;cursor:pointer;color:var(--wh-ink);font-size:.82rem;font-weight:800;list-style:none}.wh-result-breakdown summary::-webkit-details-marker,.wh-result-review summary::-webkit-details-marker{display:none}.wh-result-breakdown summary::after,.wh-result-review summary::after{content:"";width:7px;height:7px;flex:0 0 7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease}.wh-result-breakdown[open] summary::after,.wh-result-review[open] summary::after{transform:rotate(225deg)}.wh-result-score-lines{display:grid;gap:5px;padding:0 0 10px}.wh-result-score-lines li,.wh-result-total{display:flex;justify-content:space-between;gap:12px;color:var(--wh-result-muted);font-size:.78rem;line-height:1.35}.wh-result-score-lines li span:last-child,.wh-result-total strong{color:var(--wh-ink);font-weight:800;text-align:right}.wh-result-total{margin-top:4px;padding-top:8px;border-top:1px solid var(--wh-result-line);color:var(--wh-ink);font-size:.86rem;font-weight:800}.wh-result-review-board{margin:0 0 10px;padding:8px;border:1px solid var(--wh-result-line);border-radius:14px;background:var(--wh-result-subtle);overflow:hidden}.wh-result-review-grid{--wh-review-columns:4;display:grid;grid-template-columns:repeat(var(--wh-review-columns),minmax(0,1fr));gap:5px;width:100%;min-width:0}.wh-result-review-cell{display:grid;place-items:center;min-width:0;aspect-ratio:1;border:1px solid var(--wh-result-line);border-radius:8px;background:var(--wh-result-surface);color:var(--wh-ink);font:850 clamp(.72rem,3.7vw,1.1rem)/1 system-ui,sans-serif}.wh-result-review-grid[style*="--wh-review-columns: 8"],.wh-result-review-grid[style*="--wh-review-columns:8"]{gap:3px}.wh-result-review-grid[style*="--wh-review-columns: 8"] .wh-result-review-cell,.wh-result-review-grid[style*="--wh-review-columns:8"] .wh-result-review-cell{border-radius:5px;font-size:clamp(.62rem,3vw,.92rem)}.wh-result-review-cell.is-correct{border-color:var(--wh-trace-green,var(--wh-accent));background:color-mix(in srgb,var(--wh-trace-green,var(--wh-accent)) 78%,var(--wh-result-surface));color:var(--panel,#fff)}.wh-result-review-cell.is-present{border-color:var(--wh-trace-yellow,var(--wh-accent));background:color-mix(in srgb,var(--wh-trace-yellow,var(--wh-accent)) 78%,var(--wh-result-surface));color:var(--panel,#fff)}.wh-result-review-cell.is-absent{border-color:var(--wh-result-muted);background:color-mix(in srgb,var(--wh-result-muted) 74%,var(--wh-result-surface));color:var(--panel,#fff)}
.wh-result-actions{display:grid;gap:7px;margin-top:14px}.wh-result-actions button{min-height:44px;border:1px solid var(--wh-result-line);border-radius:12px;background:var(--wh-result-subtle);color:var(--wh-ink);font:800 .9rem/1.1 system-ui,sans-serif;cursor:pointer}.wh-result-actions .wh-result-next,.wh-result-actions .primary{border-color:var(--wh-accent);background:var(--wh-accent);color:var(--accent-ink,#fff)}.wh-result-actions .wh-result-other,.wh-result-actions .secondary{background:var(--wh-result-surface)}.wh-result-actions button:active{opacity:.82}.wh-result-actions p{margin:0;color:var(--wh-result-muted);font-size:.78rem;line-height:1.4;text-align:center}
@media(min-width:560px){#board.wordhunt-board.wordhunt-results{padding:20px}.wh-result-metrics{gap:9px}.wh-results-row{grid-template-columns:32px minmax(0,1fr) minmax(120px,auto);padding:11px 12px}.wh-result-review-board{overflow:visible}.wh-result-review-grid{min-width:0;max-width:420px;margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.wh-result-breakdown summary::after,.wh-result-review summary::after{transition:none}}

/* Practice owns a separate palette; bridge it before result tokens resolve. */
.practice-table .wordhunt-results{--wh-surface:var(--practice-card);--wh-ink:var(--practice-ink);--whInk:var(--practice-ink);--wh-accent:var(--practice-accent);--wh-line:var(--practice-line);--panel:var(--practice-card);--ink:var(--practice-ink);--accent:var(--practice-accent);--line:var(--practice-line);--field:var(--practice-soft);--muted:var(--practice-muted)}

.wh-result-words[hidden]{display:none!important}
.wh-result-review-cell.is-correct{background:#216d54;border-color:#216d54;color:#fff}
.wh-result-review-cell.is-present{background:#806018;border-color:#806018;color:#fff}
.wh-result-review-cell.is-absent{background:#556170;border-color:#556170;color:#fff}

.wordhunt-results{scroll-margin-top:84px}

/* Post-round learning is separate from the players’ free submitted-word lists. */
.wh-member-review{display:grid;gap:12px;padding:16px;border:1px solid var(--wh-line);border-radius:16px;background:var(--wh-result-subtle);min-width:0;font-size:16px}.wh-member-review h3,.wh-member-review p{margin:0}.wh-member-note,.wh-member-count,.wh-member-status{color:var(--wh-result-muted);font-size:.875rem;line-height:1.5}.wh-member-summary{font-weight:750;line-height:1.45}.wh-member-badge{justify-self:start;padding:4px 9px;border-radius:999px;color:var(--wh-ink);background:color-mix(in srgb,var(--wh-accent) 14%,transparent);font-size:.75rem;font-weight:750}.wh-member-review button{min-height:44px;border:1px solid var(--wh-line);border-radius:12px;background:var(--wh-result-surface);color:var(--wh-ink);font:inherit;font-size:.875rem;font-weight:750;padding:9px 12px;cursor:pointer;touch-action:manipulation}.wh-member-review button:active{opacity:.8}.wh-member-review button:disabled{opacity:.65;cursor:wait}.wh-member-review button:focus-visible,.wh-member-review a:focus-visible,.wh-member-all-words summary:focus-visible{outline:3px solid var(--wh-accent);outline-offset:3px}.wh-member-focus{display:grid;gap:7px}.wh-member-focus>p{font-size:.875rem;font-weight:750}.wh-member-chips{display:flex;flex-wrap:wrap;gap:8px}.wh-member-chip{border-radius:999px!important}.wh-member-answer-label{color:var(--wh-result-muted);font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.wh-member-answer{justify-self:start;min-width:132px;background:var(--wh-accent)!important;border-color:var(--wh-accent)!important;color:var(--accent-ink,#fff)!important;font-size:1.1rem!important;letter-spacing:.06em}.wh-word-meaning{display:grid;gap:8px;padding:12px;border:1px solid var(--wh-line);border-radius:12px;background:var(--wh-result-surface);font-size:1rem;line-height:1.55;overflow-wrap:anywhere}.wh-word-meaning h4{margin:0;font-size:1rem;letter-spacing:.04em}.wh-word-meaning p{margin:0}.wh-word-meaning a{color:var(--wh-accent)}.wh-word-meaning small{color:var(--wh-result-muted)}.wh-member-all-words{border-top:1px solid var(--wh-line)}.wh-member-all-words summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;font-size:.875rem;font-weight:800;list-style:none}.wh-member-all-words summary::-webkit-details-marker{display:none}.wh-member-all-words summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease}.wh-member-all-words[open] summary::after{transform:rotate(225deg)}.wh-member-words{list-style:none;padding:0 0 10px;margin:0;display:grid;gap:8px}.wh-member-words>li{padding:10px;border:1px solid var(--wh-line);border-radius:12px;min-width:0;background:var(--wh-result-surface)}.wh-member-word-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px}.wh-member-word-head strong{overflow-wrap:anywhere}.wh-member-word-head>span{font-size:.75rem;color:var(--wh-result-muted)}@media(max-width:360px){.wh-member-word-head{grid-template-columns:minmax(0,1fr) auto}.wh-member-word-head>span{grid-column:1;grid-row:2}.wh-member-word-head>button{grid-column:2;grid-row:1/3}}@media(prefers-reduced-motion:reduce){.wh-member-all-words summary::after{transition:none}}

.wordhunt-keyboard[hidden],.wordhunt-clue-legend[hidden]{display:none!important}

/* Word Bites only: calm, tactile board without changing its placement geometry. */
.wordhunt-bites-board{
  --wb-surface:var(--panel,#fbfaf6);
  --wb-ink:var(--ink,#24303b);
  --wb-muted:var(--muted,#5e6973);
  --wb-line:var(--line,#d8d3c8);
  --wb-cell:#fffdf8;
  --wb-cell-empty:#f4f1e9;
  --wb-slate:#344552;
  --wb-slate-deep:#273640;
  --wb-bright:#fffdf7;
  --wb-green:#277453;
  --wb-red:#a9444f;
  --wb-amber:#9a6c20;
  color:var(--wb-ink);
}
html[data-theme="dark"] .wordhunt-bites-board{
  --wb-surface:var(--panel,#202b33);
  --wb-ink:var(--ink,#f5f1e8);
  --wb-muted:var(--muted,#c1c8ca);
  --wb-line:var(--line,#53606a);
  --wb-cell:#2b3943;
  --wb-cell-empty:#25323b;
  --wb-slate:#405664;
  --wb-slate-deep:#304550;
  --wb-bright:#fffdf6;
  --wb-green:#6bc897;
  --wb-red:#ef9199;
  --wb-amber:#e2bc68;
}
.wordhunt-bites-board .wordhunt-bites-grid{
  box-sizing:border-box;
  gap:2px;
  padding:4px;
  border:1px solid var(--wb-line);
  border-radius:16px;
  background:var(--wb-cell-empty);
  box-shadow:0 8px 18px color-mix(in srgb,var(--wb-ink) 10%,transparent);
  isolation:isolate;
}
.wordhunt-bites-board .wordhunt-bite-cell{
  border:1px solid color-mix(in srgb,var(--wb-line) 72%,transparent);
  border-radius:5px;
  background:var(--wb-cell);
  color:var(--wb-ink);
}
.wordhunt-bites-board .wordhunt-block{
  border:1px solid color-mix(in srgb,var(--wb-slate-deep) 78%,var(--wb-bright));
  border-radius:8px;
  background:linear-gradient(145deg,var(--wb-slate),var(--wb-slate-deep));
  box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 7px 13px color-mix(in srgb,#101820 22%,transparent);
  color:var(--wb-bright);
  text-shadow:0 1px 0 color-mix(in srgb,#000 30%,transparent);
  transition:box-shadow .16s ease,border-color .16s ease,filter .16s ease;
}
.wordhunt-bites-board .wordhunt-block:active{transform:none;filter:brightness(.96)}
.wordhunt-bites-board .wordhunt-block:hover{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 9px 16px color-mix(in srgb,#101820 26%,transparent)}
.wordhunt-bites-board .wordhunt-block:focus-visible{outline:3px solid var(--wh-accent,var(--accent,#5265a2));outline-offset:2px}
.wordhunt-bites-board .wordhunt-block.is-drag-source{opacity:.28;filter:saturate(.75)}
.wordhunt-bites-board .wordhunt-ghost-block{opacity:.88;outline:2px solid var(--wb-bright);box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 10px 18px color-mix(in srgb,#101820 32%,transparent)}

/* Saving is communicated without fading a board that remains ready for its next move. */
.wordhunt-bites-board.is-bites-saving,.wordhunt-bites-board.is-bites-saving .wordhunt-bites-grid{opacity:1}
.wordhunt-bites-board.is-bites-saving .wordhunt-block{cursor:wait}

/* Each server result is local to the moved block: no board-wide dim or reflow. */
.wordhunt-bites-board .wordhunt-block[data-bites-feedback="accepted"]{border-color:var(--wb-green);animation:wordhunt-bites-accepted 1s ease-out both}
.wordhunt-bites-board .wordhunt-block[data-bites-feedback="invalid"]{border-color:var(--wb-red);animation:wordhunt-bites-invalid .72s ease-out both}
.wordhunt-bites-board .wordhunt-block[data-bites-feedback="duplicate"]{border-color:var(--wb-amber);animation:wordhunt-bites-duplicate .72s ease-out both}
@keyframes wordhunt-bites-accepted{0%,100%{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 7px 13px color-mix(in srgb,#101820 22%,transparent)}35%{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 0 0 4px color-mix(in srgb,var(--wb-green) 25%,transparent),0 9px 18px color-mix(in srgb,var(--wb-green) 26%,transparent)}}
@keyframes wordhunt-bites-invalid{0%,100%{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 7px 13px color-mix(in srgb,#101820 22%,transparent)}35%{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 0 0 4px color-mix(in srgb,var(--wb-red) 23%,transparent),0 8px 15px color-mix(in srgb,var(--wb-red) 22%,transparent)}}
@keyframes wordhunt-bites-duplicate{0%,100%{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 7px 13px color-mix(in srgb,#101820 22%,transparent)}35%{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 0 0 4px color-mix(in srgb,var(--wb-amber) 25%,transparent),0 8px 15px color-mix(in srgb,var(--wb-amber) 22%,transparent)}}

.wordhunt-bites-board .wordhunt-live.wordhunt-confirmation{
  min-height:36px;
  margin:0 0 6px;
  padding:7px 8px;
  border-color:transparent;
  background:transparent;
  box-shadow:none;
  color:var(--wb-muted);
  font-size:.84rem;
  font-weight:700;
  line-height:1.3;
}
.wordhunt-bites-board .wordhunt-live.wordhunt-confirmation:is(.is-success,.is-error,.is-duplicate){color:var(--wb-muted);background:transparent;border-color:transparent;box-shadow:none;animation:none}
.wordhunt-bites-board .wordhunt-status-accessible{color:var(--wb-muted)}
.wordhunt-bites-board .wordhunt-trace-help{margin-top:10px;color:var(--wb-muted);font-size:.82rem;line-height:1.45}
.wordhunt-bites-board .wordhunt-trace-help summary{min-height:44px;padding:0 2px;color:var(--wb-ink);font-size:.86rem;font-weight:800}
.wordhunt-bites-board .wordhunt-trace-help p{margin:0 2px 8px}

/* Optional found-words disclosure: one compact summary, then a quiet word/points list. */
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found{margin-top:10px;padding-top:0;border-top:0}
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 2px;color:var(--wb-ink);font-size:.86rem;font-weight:800;cursor:pointer;list-style:none}
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found>summary::-webkit-details-marker{display:none}
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found>summary::after{content:"";width:7px;height:7px;flex:0 0 7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease}
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found[open]>summary::after{transform:rotate(225deg)}
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found .wordhunt-words{display:grid;gap:4px;margin:0;padding:0 0 6px;list-style:none}
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found .wordhunt-words li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 8px;border:1px solid color-mix(in srgb,var(--wb-line) 72%,transparent);border-radius:8px;background:var(--wb-cell);color:var(--wb-ink);font-size:.8rem}
.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found .wordhunt-words small{flex:0 0 auto;color:var(--wb-muted);font-weight:700}

@media(prefers-reduced-motion:reduce){
  .wordhunt-bites-board .wordhunt-block,.wordhunt-bites-board details.wordhunt-bites-found.wordhunt-found>summary::after{transition:none}
  .wordhunt-bites-board .wordhunt-block[data-bites-feedback]{animation:none}
  .wordhunt-bites-board .wordhunt-block[data-bites-feedback="accepted"]{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 0 0 3px color-mix(in srgb,var(--wb-green) 35%,transparent)}
  .wordhunt-bites-board .wordhunt-block[data-bites-feedback="invalid"]{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 0 0 3px color-mix(in srgb,var(--wb-red) 35%,transparent)}
  .wordhunt-bites-board .wordhunt-block[data-bites-feedback="duplicate"]{box-shadow:0 3px 0 color-mix(in srgb,var(--wb-slate-deep) 78%,transparent),0 0 0 3px color-mix(in srgb,var(--wb-amber) 35%,transparent)}
}

/* Letter faces stay legible in both themes; only the earned word changes color. */
.wordhunt-bites-board{--wb-tile:#fffaf0;--wb-tile-ink:#243b35;--wb-tile-edge:#aec3b9;--wb-tile-base:#a4b9ae;--wb-cell:#edf3ef;--wb-cell-empty:#dce8e2}
html[data-theme="dark"] .wordhunt-bites-board{--wb-tile:#2b434e;--wb-tile-ink:#f1f6f1;--wb-tile-edge:#536e77;--wb-tile-base:#122b34;--wb-cell:#172c36;--wb-cell-empty:#10232c}
.wordhunt-bites-board .wordhunt-block{border-color:var(--wb-tile-edge);background:var(--wb-tile);color:var(--wb-tile-ink);box-shadow:0 2px 0 var(--wb-tile-base),0 4px 8px #0001;text-shadow:none;font-size:clamp(1rem,4.3vw,1.4rem);transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.wordhunt-bites-board .wordhunt-block:hover{box-shadow:0 2px 0 var(--wb-tile-base),0 5px 9px #0002}
.wordhunt-bites-board .wordhunt-block[data-bites-feedback="accepted"]{background:color-mix(in srgb,var(--wb-green) 20%,var(--wb-tile));border-color:var(--wb-green)}
.wordhunt-bites-board .wordhunt-block[data-bites-feedback="invalid"]{background:color-mix(in srgb,var(--wb-red) 15%,var(--wb-tile));border-color:var(--wb-red)}
.wordhunt-bites-board .wordhunt-block[data-bites-feedback="duplicate"]{background:color-mix(in srgb,var(--wb-amber) 17%,var(--wb-tile));border-color:var(--wb-amber)}
.wordhunt-bites-board .wordhunt-live.wordhunt-confirmation.is-success{color:var(--wh-success-ink)}
.wordhunt-bites-board .wordhunt-live.wordhunt-confirmation.is-error{color:var(--wh-error-ink)}
.wordhunt-bites-board .wordhunt-live.wordhunt-confirmation.is-duplicate{color:var(--wh-duplicate-ink)}
.wordhunt-bites-board .wordhunt-bites-found summary>span{margin-left:auto;padding:3px 8px;border-radius:99px;background:color-mix(in srgb,var(--wh-accent) 12%,transparent);font-size:.75rem}
@media(prefers-reduced-motion:reduce){.wordhunt-bites-board .wordhunt-block{transition:none}}
/* Spatial boards retain all eight columns on narrow phones. */
.wordhunt-bites-board .wordhunt-bites-grid{grid-template-columns:repeat(var(--wh-cols),minmax(0,1fr));grid-template-rows:repeat(var(--wh-rows),minmax(0,1fr))}
.wordhunt-bites-board .wordhunt-block{min-width:0}
/* A short landscape viewport must not shrink an eight-column board to 100px. */
.game-view.live-play.wordhunt-game .wordhunt-bites-board .wordhunt-bites-grid{max-width:min(100%,max(280px,calc(100dvh - 260px)),480px);margin-inline:auto}

/* Five Letters: centered board and clues that work without color recognition. */
.wordhunt-five-board { --five-green:#167347;--five-amber:#8c5a10;--five-gray:#556174; }
.wordhunt-five-board .wordhunt-five-grid { grid-template-columns:repeat(5,minmax(0,1fr));width:min(100%,294px);gap:6px;padding:0;margin:0 auto; }
.wordhunt-five-board .wordhunt-five-cell { position:relative;width:100%;max-height:none;font-size:1.45rem;border-radius:10px; }
.wordhunt-five-mark { position:absolute;right:3px;bottom:2px;display:grid;place-items:center;width:11px;height:11px;pointer-events:none; }
.wordhunt-five-mark svg { display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.wordhunt-five-board .wordhunt-five-cell.is-correct,.wordhunt-five-board .wordhunt-keyboard-row button.is-correct { background:var(--five-green);border-color:var(--five-green);color:#fff; }
.wordhunt-five-board .wordhunt-five-cell.is-present,.wordhunt-five-board .wordhunt-keyboard-row button.is-present { background:var(--five-amber);border-color:var(--five-amber);color:#fff; }
.wordhunt-five-board .wordhunt-five-cell.is-absent,.wordhunt-five-board .wordhunt-keyboard-row button.is-absent { background:var(--five-gray);border-color:var(--five-gray);color:#fff; }
.wordhunt-five-board .wordhunt-keyboard-row button { position:relative; }
.wordhunt-five-board .wordhunt-keyboard-row .wordhunt-five-mark { width:8px;height:8px;right:2px;bottom:3px; }
.wordhunt-five-author-summary { text-align:center;margin:7px 0 0;color:var(--muted,var(--wh-ink));font-size:.72rem;line-height:1.35; }
.wordhunt-five-board .wordhunt-clue-legend { display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px;font-size:.68rem;line-height:1.4; }
.wordhunt-clue-chip { display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:4px 7px;border-radius:8px;font-weight:750;background:var(--wh-surface);border:1px solid var(--wh-line); }
.wordhunt-clue-chip .wordhunt-five-mark { position:static;width:15px;height:15px;border-radius:4px;color:#fff;padding:2px;box-sizing:border-box; }
.wordhunt-clue-chip.is-correct .wordhunt-five-mark { background:var(--five-green); }
.wordhunt-clue-chip.is-present .wordhunt-five-mark { background:var(--five-amber); }
.wordhunt-clue-chip.is-absent .wordhunt-five-mark { background:var(--five-gray); }
.wordhunt-five-clue-help { flex-basis:100%;font-size:.75rem;text-align:center; }
.wordhunt-five-clue-help summary { display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;cursor:pointer;list-style:none; }
.wordhunt-five-clue-help summary::-webkit-details-marker { display:none; }
.wordhunt-five-clue-help summary::after { content:'⌄';font-size:1rem; }
.wordhunt-five-clue-help[open] summary::after { transform:rotate(180deg); }
.wordhunt-five-clue-help p { max-width:360px;margin:0 auto 8px;line-height:1.5;text-align:left; }
.wh-result-review-cell { position:relative; }
.wh-result-review-cell .wordhunt-five-mark { width:9px;height:9px; }
.wh-result-review-cell.is-correct { background:#167347;color:#fff; }
.wh-result-review-cell.is-present { background:#8c5a10;color:#fff; }
.wh-result-review-cell.is-absent { background:#556174;color:#fff; }
.wordhunt-five-board .wordhunt-five-typing { box-sizing:border-box;min-height:20px;height:20px;line-height:20px;margin:5px 0 0;padding:0;border:0;background:none;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.wordhunt-five-board .wordhunt-five-typing.is-idle { visibility:hidden; }

.wh-result-review-cell.is-block{background:var(--ink);color:transparent}.wh-word-example{font-style:italic}

.word-puzzle-progress{margin:4px 0 8px;font-weight:650;font-size:.9rem;color:var(--accent-strong)}


/* Six reserved rack slots keep touch targets still while letters move upstairs. */
.wordhunt-anagram-bank .wordhunt-rack{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.wordhunt-rack-slot{display:grid;min-width:0;min-height:54px;border:1px solid transparent;border-radius:11px;box-sizing:border-box}
.wordhunt-rack-slot.is-vacant{border:1px dashed var(--wh-line);background:color-mix(in srgb,var(--wh-accent) 4%,transparent)}
.wordhunt-rack-slot>.wordhunt-rack-tile{width:100%;height:100%;box-sizing:border-box}
.wordhunt-anagram-draft .wordhunt-draft-tray{min-height:62px;gap:8px;flex-wrap:nowrap}
.wordhunt-anagram-draft .wordhunt-draft-tile{flex:1 1 0;max-width:56px;min-width:0;min-height:48px}
.wordhunt-board{--wh-error-surface:color-mix(in srgb,#b64a48 12%,var(--wh-surface));--wh-repeat-surface:color-mix(in srgb,#b88626 14%,var(--wh-surface))}
.wordhunt-anagram-feedback.is-error{color:var(--red,#b04444);background:var(--wh-error-surface);border-radius:10px;padding:6px 8px}
.wordhunt-anagram-feedback.is-duplicate{color:var(--ink,var(--wh-ink));background:var(--wh-repeat-surface);border-radius:10px;padding:6px 8px}
@media(max-width:380px){.wordhunt-rack-slot{min-height:48px}.wordhunt-anagram-bank .wordhunt-rack{gap:6px}}
.wordhunt-rack-slot{border-width:0}
.wordhunt-rack-slot.is-vacant{border-width:1px}
@media(max-width:380px){.wordhunt-anagram-bank .wordhunt-rack{gap:4px}.wordhunt-anagram-draft .wordhunt-draft-tray{gap:2px;padding:4px}}
