/* Clues are the primary reading surface; the word bank is optional help. */
.play-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"board clue" "board tools";align-content:center;align-items:start;gap:14px 22px}
#boardArea{grid-area:board;min-width:0;height:100%}
.workbench{grid-area:tools}
.clue-card{grid-area:clue;min-width:0;border:1px solid #dfc87d;border-left:5px solid #d6a126;border-radius:9px;background:#fff9e8;padding:12px 14px;color:#182a36}
.clue-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.clue-heading h3{margin:0;font-size:16px;font-weight:800;letter-spacing:.3px}
.clue-controls{flex:1;min-width:0}
.clue-controls select{font-size:14px}
#enlargeClue{flex:none;padding:5px 7px;font-size:16px;font-weight:700;line-height:1.2;border-color:#a08339}
#clue{font-size:23px;font-weight:600;line-height:1.4;min-height:0;margin:0;color:#182a36;overflow-wrap:break-word}
.word-bank-panel:has(#bank[hidden]){display:none}
.word-bank-panel{border:1px dashed #abbac5;border-radius:6px;padding:8px 10px;background:#f3f6f8}
.word-bank-panel h3{font-size:12px;color:#465766;margin:0 0 4px;font-weight:700}
#bank{font-size:13px;line-height:1.5;min-height:0;color:#465766}
#largeClueDialog{width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:22px;border:1px solid #c9b477;border-radius:12px;background:#fffdf4;color:#182a36;box-shadow:0 15px 65px #172b4540}
#largeClueDialog::backdrop{background:#122b3b88}
#largeClueDialog .large-clue-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#largeClueDialog h2{font-size:20px;margin:0}
#largeClueDialog p{font-size:26px;font-weight:600;line-height:1.5;margin:18px 0 0}
#largeClueDialog button{font-size:16px;padding:7px 12px}
@media(max-width:620px) and (min-height:440px){
 .play-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(70px,1fr) auto auto;grid-template-areas:"board" "clue" "tools";align-content:stretch;gap:8px}
 .clue-card{padding:9px 10px;border-left-width:4px}.clue-heading{gap:7px;margin-bottom:6px}.clue-heading h3{font-size:15px}.clue-controls{gap:5px}.clue-controls select{font-size:12px}.clue-controls button,.clue-controls select{padding:5px}
 #clue{font-size:18px;line-height:1.35}#enlargeClue{padding:4px 6px;font-size:15px}.word-bank-panel{padding:6px 8px}#bank{font-size:12px;line-height:1.35}
}
@media(max-height:439px){
 .play-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"clue clue" "board tools";align-content:stretch;gap:6px 12px}
 .clue-card{padding:6px 9px;border-left-width:4px}.clue-heading{margin-bottom:4px;gap:8px}.clue-heading h3{font-size:14px}.clue-controls select{font-size:12px}.clue-controls button,.clue-controls select{padding:3px 5px}#enlargeClue{padding:3px 6px;font-size:14px}
 #clue{font-size:16px;line-height:1.25}.workbench{gap:4px}.tools button{padding:4px 2px}#feedback{min-height:0}.key-row button{padding:3px 0}#keyboard,.key-row{gap:2px}.word-bank-panel{padding:4px 6px}.word-bank-panel h3{font-size:10px;margin-bottom:2px}#bank{font-size:11px;line-height:1.2}
}
/* The optional answer list has its own reading surface, leaving the clue in place. */
#wordBankDialog{position:fixed;inset:0;margin:auto;width:min(540px,calc(100vw - 28px));height:fit-content;max-height:calc(100dvh - 28px);overflow:auto;padding:20px;background:#fff;border:1px solid #a9bac8;border-radius:12px;color:#253847;box-shadow:0 15px 65px #172b4540}
#wordBankDialog::backdrop{background:#122b3b88}
#wordBankDialog .bank-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
#wordBankDialog h3{font-size:18px;margin:0;color:#253847}
#wordBankDialog #bank{font-size:20px;line-height:1.7;color:#253847;font-weight:500}
#closeWordBank{font-size:14px;padding:6px 9px}
