.quick-modes button:nth-child(1){background:#f9e9bd;color:#50361c}
.quick-modes button:nth-child(2){background:#e8dcfa;color:#42206d}
.quick-modes button:nth-child(3){background:#d9efe4;color:#214b3a}
.quick-modes button:nth-child(4){background:#f8dfeb;color:#602a47}
#themePicker{border:1px solid #dfd1f4;border-radius:20px;padding:14px;width:min(34rem,calc(100% - 24px));max-height:85dvh;color:#332153}
#themePicker::backdrop{background:#28154380}
#themePicker>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:8px}
#themePicker>header h2{margin:0}
#themeCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.theme-card{margin:0;min-height:48px;color:#332153;text-align:left;padding:8px 10px}
.theme-card[aria-pressed=true]{box-shadow:inset 0 0 0 2px #6544a9}
.shade-0{background:#eadffb}.shade-1{background:#f9e8c8}.shade-2{background:#e1efe4}
.shade-3{background:#f8e0ec}.shade-4{background:#dfeafa}.shade-5{background:#f5e5fb}
#onlinePanel:has(#onlineResults:not([hidden])) #onlinePlayers{display:none}
#onlinePanel #fullStandings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:7px;padding:0}
#onlinePanel .rank-card{display:grid;gap:5px;border:1px solid #e4d8f6;border-radius:12px;padding:9px;background:#faf6ff}
.rank-stats{display:flex;gap:5px;flex-wrap:wrap}
.rank-stats span,.answer-mark{border-radius:8px;padding:3px 6px;font-size:.78rem}
.rank-stats .correct,.answer-row.correct .answer-mark{background:#d9f2df;color:#205533}
.rank-stats .wrong,.answer-row.wrong .answer-mark{background:#f9dfe4;color:#7b2735}
.rank-stats .pending,.answer-row.pending .answer-mark{background:#eee5f8;color:#50376c}
.rank-stats .points,.rank-stats .time{background:#fff1cb;color:#67450e}
.round-question{border:1px solid #e4d8f6;border-radius:12px;margin:6px 0;padding:7px 9px;background:white}
.round-question summary{cursor:pointer;line-height:1.35;padding:3px 0}
.question-letter{display:inline-grid;place-items:center;min-width:24px;padding:1px;background:#e8ddfb;border-radius:7px;margin:0 6px}
.solution{color:#245e3d;font-weight:650}
#onlinePanel .round-answers{list-style:none;padding:0;margin:6px 0}
#onlinePanel .answer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:6px;border-radius:8px;background:#f7f1fd;margin:4px 0}
.answer-text{grid-column:1;overflow-wrap:anywhere;white-space:pre-wrap}
.answer-mark{grid-column:2;grid-row:1/3;align-self:center}
body.esp-keyboard #game:not([hidden]),body.esp-keyboard #onlineRound:not([hidden]){
 display:grid;grid-template-columns:minmax(105px, min(43%,165px)) minmax(0,1fr);
 gap:3px 6px;align-items:start;grid-auto-flow:row;
}
body.esp-keyboard #onlineRound .answer-area{display:contents}
body.esp-keyboard #game>*,body.esp-keyboard #onlineRound>*,
body.esp-keyboard #onlineRound .answer-area>*{grid-column:1/-1}
body.esp-keyboard #game #ring,body.esp-keyboard #onlineRound #onlineLetters{
 grid-column:1;grid-row:2/4;width:100%;height:auto;max-height:165px;margin:auto;
}
body.esp-keyboard #game #questionCard,body.esp-keyboard #onlineRound #onlineQuestion{
 grid-column:2;grid-row:2/4;margin:0;align-self:center;
}
body.esp-keyboard #game #theme,body.esp-keyboard #game #duelStatus,
body.esp-keyboard #game #score{margin:0;line-height:1.15}
body.esp-keyboard .spiral-letter text{font-size:16px}
