.bubble-revealed-picture{width:65%;height:52%;object-fit:contain;display:block;margin:0 auto 3px;border-radius:50%;background:white}.colour-options{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;flex:0 0 75px!important}.colour-options button{border:3px solid white!important;min-height:55px!important}.colour-options button.correct{outline:4px solid #138360}body[data-activity=colourchoice] #card>.picture{flex:1;min-height:0;object-fit:contain}body[data-activity=projectsteps] .meaning{font-size:18px}.optional-help a{overflow-wrap:anywhere}.bubble{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px}.bubble-revealed-picture{max-height:70px;flex:0 1 52%}.drawing-palette{display:flex;gap:7px;justify-content:center;flex:0 0 auto}.drawing-palette button{width:38px;height:32px;min-height:32px;padding:0;border:2px solid white;border-radius:50%}
/* One replay control in the instruction, leaving space for the learning image. */
body[data-activity=speed] .speed-time{margin:0 0 2px;line-height:1.4}
@media(orientation:landscape) and (max-height:500px){
 #card{gap:3px!important;padding:5px!important}
 #card>.title-row,#card>.title-row h2{min-height:26px!important;height:26px!important;padding:0!important;line-height:26px!important;font-size:17px!important}
 #card>.instruction{min-height:38px!important;height:38px!important;padding:2px 6px!important;font-size:12px!important;margin:0!important}
 #card>.instruction .speaker{min-height:32px!important;height:32px!important;min-width:40px!important;padding:0 4px!important;font-size:18px!important}
 #card>.instruction .speaker small{display:none}
 #card>.status-stars,#card>.bubble-hint,#card>.speed-time{display:none!important}
 #card>.feedback{min-height:15px!important;height:15px!important;line-height:15px!important;font-size:12px!important;margin:0!important}
 #card>.audio-error:empty{display:none!important}
 body:is([data-activity=spell],[data-activity=speed]) #card{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:26px 38px minmax(0,1fr) 15px;column-gap:8px!important}
 body:is([data-activity=spell],[data-activity=speed]) #card>.title-row{grid-column:1/3;grid-row:1}
 body:is([data-activity=spell],[data-activity=speed]) #card>.instruction{grid-column:1/3;grid-row:2}
 body:is([data-activity=spell],[data-activity=speed]) #card>.picture{grid-column:1;grid-row:3;min-height:0!important;max-height:none!important;height:100%!important;width:100%!important;margin:0!important}
 body:is([data-activity=spell],[data-activity=speed]) #card>.feedback{grid-column:1/3;grid-row:4}
 body[data-activity=speed] #card>.choices{grid-column:2;grid-row:3;min-height:0!important;height:100%!important;margin:0!important;gap:6px!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
 body[data-activity=speed] #card>.choices button{min-height:44px!important;font-size:27px!important;padding:2px!important}
 body[data-activity=spell] #card{grid-template-rows:26px 38px 32px minmax(44px,1fr) 15px}
 body[data-activity=spell] #card>.picture{grid-row:3/5}
 body[data-activity=spell] #card>.slots{grid-column:2;grid-row:3;min-height:0!important;font-size:25px!important;line-height:32px!important;margin:0!important}
 body[data-activity=spell] #card>.letters{grid-column:2;grid-row:4;min-height:0!important;align-items:stretch!important}
 body[data-activity=spell] #card>.letters button{min-height:44px!important;height:100%!important;font-size:27px!important;line-height:1!important;padding:2px!important}
 body[data-activity=spell] #card>.feedback{grid-row:5}
 body[data-activity=bubbles] #card>.choices{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;margin:2px 0!important;gap:8px!important}
 body[data-activity=bubbles] .bubble{min-height:76px!important;font-size:25px!important;padding:3px!important}
 body[data-activity=bubbles] .bubble:after{display:none!important}
 body[data-activity=bubbles] .bubble-revealed-picture{max-height:46px!important}
 body[data-activity=memory] #card>.title-row{min-height:26px!important}
 body[data-activity=memory] .memory-replay{min-height:26px!important;height:26px!important;font-size:11px!important;padding:0 7px!important}
 body[data-activity=memory] .memory-stats{flex:none;min-height:18px!important;line-height:18px!important;margin:0!important;font-size:11px!important}
 body[data-activity=memory] .memory{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 body[data-activity=memory] .memory button{min-height:44px!important;font-size:24px!important}
}

.bubble:has(.bubble-revealed-picture):after{display:none!important}.bubble:has(.bubble-revealed-picture){font-size:24px!important}

.colour-options button.correct{background:var(--choice-colour)!important}
