/* Keep the center and all four source words together on phone screens.
   Secondary tools and detailed evidence follow the playing area. */
.mobile-board-tools{display:contents}
@media(max-width:760px){
 .game-grid.center-active{display:flex;flex-direction:column;gap:8px}
 .center-active .center-panel{order:0;width:100%;padding:12px 10px;border-radius:12px}
 .center-active .source-column{order:1;width:100%;gap:5px}
 .center-active>.mobile-board-tools{order:2;display:block;width:100%;padding:2px 0}
 .center-active>.knowledge-panel{order:3;width:100%}
 .center-active .source-prompt{display:none}
 .center-active .source{padding:6px 8px;border-radius:9px;box-shadow:none}
 .center-active .source-top{margin-bottom:3px;min-height:17px}
 .center-active .source-label{font-size:9px;letter-spacing:.06em}
 .center-active .quota{font-size:10px;padding:2px 6px}
 .center-active .bank{gap:4px;flex-wrap:nowrap;justify-content:flex-start}
 .center-active .bank-letter{width:32px;min-width:0;flex:0 1 32px;height:44px;font-size:18px;border-radius:5px}
 .center-active .allocation{margin:3px 0 0;font-size:10px;line-height:13px;gap:5px;flex-wrap:wrap}
 .center-active .allocation strong{font-size:10px}
 .center-active .over-label{flex-basis:auto;margin-left:auto}
 .center-active .center-clue{font-size:19px;line-height:1.25;margin:8px 0 0}
 .center-active .center-top{gap:6px}
 .center-active .center-label{font-size:9px;letter-spacing:.12em}
 .center-active .checks-count{font-size:10px}
 .center-active .slots{margin:12px 0 5px;gap:4px}
 .center-active .slot-wrap{min-width:0;max-width:44px}
 .center-active .slot{height:44px;font-size:20px}
 .center-active .position-label{font-size:9px;margin-top:3px}
 .center-active .chosen-source{font-size:9px;line-height:14px;margin-top:2px;min-width:20px}
 .center-active .position-memory{gap:2px;margin-top:3px}
 .center-active .excluded-letter{font-size:9px;min-width:12px;min-height:15px;padding:0 1px}
 .center-active .center-instruction{font-size:11px;line-height:1.35;margin:7px 0;min-height:30px}
 .center-active .position-knowledge{font-size:10px;margin:3px 0}
 .center-active .check-center{padding:9px 10px;min-height:40px;font-size:13px}
 .center-active .check-note{font-size:10px;line-height:1.3;margin:5px 0 0}
 .mobile-board-tools .center-edits{display:grid;grid-template-columns:1fr 1fr;gap:2px 12px;margin:0}
 .mobile-board-tools .text-button{min-height:40px;padding:7px 3px;font-size:11px}
 .mobile-board-tools .legend{margin:6px 0;font-size:10px}
 .mobile-board-tools .position-memory-key{margin:4px 0;font-size:10px}
}
@media(max-width:380px){
 .center-active .bank{gap:3px}
 .center-active .bank-letter{flex-basis:30px;width:30px}
 .center-active .center-clue{font-size:18px}
}
@media(max-width:760px){
 .center-active .allocation{display:none}
 .center-active .over-quota .quota{color:#883c14;background:#fff0d8;font-weight:700}
 .mobile-board-tools .toast{position:static;transform:none;max-width:none;margin:7px 0;padding:9px 11px;font-size:11px;box-shadow:none}
}
@media(max-width:760px){html{overflow-anchor:none}}

/* Primary editing actions stay directly above Check on every screen. */
.center-edits{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.center-edits .text-button{min-height:40px;padding:7px 3px;font-size:11px}
.cleanup-tools{text-align:center;margin:8px 0}
@media(max-width:760px){
 .center-active .center-panel{padding:10px}
 .center-active .center-edits{gap:6px;margin:4px 0}
 .center-active .center-edits .text-button{min-height:40px}
 .center-active .center-instruction{min-height:0;margin:5px 0}
 .center-active .slots{margin-top:8px}
 .center-active .source-column{gap:4px}
 .center-active .source{padding:5px 8px}
 .center-active .source-top{min-height:15px}
 .mobile-board-tools .cleanup-tools{margin:0}
}

@media(max-width:760px){.mobile-board-tools .check-note{font-size:11px;line-height:1.4;margin:5px 0;color:var(--muted)}}
