/* Board primitives also used by the private replay. */
.feedback-pulse{animation:wordAccepted .5s ease}.feedback-reject{animation:wordRejected .32s ease}
@keyframes wordAccepted{0%{box-shadow:0 0 0 0 #42836780;transform:scale(.97)}60%{box-shadow:0 0 0 5px #42836722;transform:scale(1.02)}100%{box-shadow:0 0 0 0 transparent;transform:scale(1)}}
@keyframes wordRejected{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
#modeMessage,#messageArea{min-height:30px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2;font-size:12px;margin:4px 0;}
#modeMessage.game-feedback,#messageArea.game-feedback{position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;white-space:normal!important;font-weight:750;font-size:14px;border-radius:8px;padding:4px 8px;background:#e1eedb;color:#21503c;box-sizing:border-box;}
.game-feedback[data-kind="error"]{background:#f9e5df!important;color:#8d352c!important}.game-feedback[data-kind="info"]{background:#f0ebda!important;color:#60522d!important}
.challenge-intro{max-width:420px;width:calc(100% - 32px);max-height:85dvh;border:1px solid #d5dccb;border-radius:20px;padding:24px;color:#223c32;background:#fbfaf5;box-shadow:0 20px 70px #102b3040}
.challenge-intro::backdrop{background:#183b3255;backdrop-filter:blur(3px)}.challenge-intro h2{font-size:28px;margin:8px 0 12px}.challenge-intro ul{padding-left:20px}.challenge-intro li{margin:10px 0}.challenge-intro button{background:#245749;color:white;border:0;border-radius:10px;padding:12px;width:100%;font-weight:700}.challenge-intro .intro-power{padding:12px;border-radius:10px;background:#f1ebce}.challenge-intro .intro-rack{display:flex;gap:4px;justify-content:center;margin:12px 0}.intro-rack span{padding:8px;background:white;border:1px solid #d5dccb;border-radius:5px;font-weight:bold}
.objective-help{border:0;background:transparent;font:inherit;font-weight:700;color:inherit;cursor:pointer;padding:0}.pace-control{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;margin:10px 0}.pace-control select{font:inherit;background:#fff;border:1px solid #d5dccb;border-radius:7px;padding:7px;color:#245749}.mode-word-slot .slotSelect{cursor:pointer}
@media(max-width:720px) and (max-height:600px){#modeMessage{min-height:26px!important;margin:2px 0!important;}#modeMessage.game-feedback{font-size:12px}.mode-editor{padding-top:5px!important;padding-bottom:2px!important}.mode-rack-section{padding-top:2px!important}.mode-saved{padding-top:5px!important}.mode-finish{margin-top:4px!important}}
@media(prefers-reduced-motion:reduce){.feedback-pulse,.feedback-reject{animation:none;outline:2px solid #739b78}}

/* Reserve the same line for hints and confirmations, including short screens. */
#modeMessage{position:static!important;clip-path:none!important;clip:auto!important;width:auto!important;height:32px!important;min-height:32px!important;overflow:visible!important;margin:2px 0!important;padding:2px 4px!important;font-size:11px;}
#objectiveHelp{margin-left:0;text-decoration:none;padding-left:0;white-space:nowrap}#modeSkip{margin-left:auto}
@media(max-width:720px){#modeDraft .word-editor-placeholder{font-size:clamp(20px,6vw,28px)}#modeMessage.game-feedback{font-size:12px}}
@media(max-width:720px) and (max-height:540px){
 .modes-page .site-header{height:40px}
 .objective-heading,.objective-heading button{min-height:36px}
 #objectiveList li{font-size:11px;line-height:1.2;padding:2px 5px}
 #modeDraft{min-height:36px}
 #modeMessage{height:30px!important;min-height:30px!important}
 .mode-finish{margin-top:0!important}
 .mode-finish p{font-size:10px}
}
@media(max-width:720px) and (max-height:540px){
 .mode-editor .editor-heading{display:none}
 .mode-editor{padding-top:2px!important}
 .mode-saved{padding-block:3px!important}
}

/* Compact mechanic vocabulary: symbol + count + confirmation, never colour alone. */
.mechanic-visual{grid-column:2/-1;display:flex;gap:3px;flex-wrap:wrap;align-items:center;line-height:1.2}
.mechanic-chip,.length-pip{display:inline-flex;align-items:center;justify-content:center;border:1px solid #a7aaa3;border-radius:4px;padding:1px 4px;font-size:10px;color:#454b44;background:#fff;min-height:16px}
.mechanic-chip.met,.length-pip.met{background:#e1f0df;border-color:#4f7648;color:#254820}
.length-pip{min-width:12px;padding:0 2px}.length-pip.preview{border-style:dashed;background:#fff0cb}
.mechanic-visual progress{width:100%;height:5px;accent-color:#50754a}
.mechanic-card{list-style:none;border-top:1px solid #dcded5;padding:10px 0}.mechanic-card p{font-size:14px;line-height:1.45;margin:5px 0}
.challenge-intro #introObjectives{padding:0}.challenge-intro{max-height:85dvh;overflow:auto}
.tile-target{outline:2px dashed #867022;outline-offset:1px}.tile-covered{box-shadow:inset 0 -3px #547847}
.coverage-mark{position:absolute;top:1px;left:3px;font-size:11px;color:#34552b}
@media(max-height:600px){.mechanic-chip,.length-pip{font-size:9px;min-height:12px}.mechanic-visual{gap:2px}#objectiveList li{row-gap:1px}.objective-instruction{display:none}}

.saved-joker{font-size:9px;font-weight:600;color:#795523}.coverage-mark{top:auto;bottom:2px}

/* Original compact cards, clearer labels. */
#objectiveList li{grid-template-columns:15px minmax(0,1fr) auto}
#objectiveList li>small{grid-column:auto;white-space:nowrap;font-size:10px}
.mechanic-visual{grid-column:2/-1;gap:4px}
.mechanic-chip{font-size:10px;padding:2px 4px;min-height:16px}
@media(max-width:360px){.mechanic-chip{font-size:9px;padding:1px 3px}.mechanic-visual{gap:3px}#objectiveList li>small{font-size:9px}}
