/* Leitura de Frase com Imagem e Leitura de Frase (só palavras): a frase em peças grandes (palavras e figuras) ocupa a área do treino.
   Usa o palco da Leitura Silábica (.sr-stage, .sr-sweep, .sr-hint, .sr-next em syllable-reading.css). */
body:is([data-active-module="sentenceReading"], [data-active-module="sentenceWords"]) .trainer .stage-strip,
body:is([data-active-module="sentenceReading"], [data-active-module="sentenceWords"]) .trainer .prompt-zone,
body:is([data-active-module="sentenceReading"], [data-active-module="sentenceWords"]) .trainer .feedback {display:none!important}
body:is([data-active-module="sentenceReading"], [data-active-module="sentenceWords"]) .trainer {grid-template-rows:minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important}
body:is([data-active-module="sentenceReading"], [data-active-module="sentenceWords"]) .choices.sentence-reading-workspace {display:block;width:100%;min-width:0;max-width:none;height:100%;min-height:0;padding:0;margin:0}

.srf-sentence {display:flex;flex-wrap:nowrap;flex:none;align-items:stretch;gap:calc(clamp(10px,1.6vw,20px) * var(--sr-fit,1));padding:10px;touch-action:none;user-select:none;-webkit-user-select:none}
/* --sr-fit encolhe tudo por igual quando a frase não cabe na largura (frases longas). */
.srf-piece {display:grid;place-items:center;min-width:calc(clamp(96px,13vw,170px) * var(--sr-fit,1));--srf-h:calc(clamp(120px,22vh,200px) * var(--sr-fit,1));height:var(--srf-h);padding:0 calc(clamp(14px,2.2vw,30px) * var(--sr-fit,1));border:0;border-radius:26px;background:#fff;color:#2b3f59;font:900 calc(clamp(40px,7vw,96px) * var(--sr-fit,1))/1 "Nunito","Arial Rounded MT Bold",system-ui,sans-serif;letter-spacing:.03em;box-shadow:0 8px 0 #c9d8e6,0 14px 26px #2c5f8a29;cursor:pointer;transition:transform .15s ease,background .2s ease,box-shadow .2s ease;touch-action:none}
.srf-piece:nth-child(4n+1) {color:#e2574c}.srf-piece:nth-child(4n+2) {color:#2f8fd8}.srf-piece:nth-child(4n+3) {color:#3aa568}.srf-piece:nth-child(4n) {color:#d98a14}
/* Cartão de figura: a largura acompanha o formato da figura (--srf-ratio, medido ao carregar),
   para figuras largas (gato entre as caixas) e altas (copo) preencherem o cartão. */
.srf-piece.is-image {width:calc((var(--srf-h) - 20px * var(--sr-fit,1)) * var(--srf-ratio,1) + 20px * var(--sr-fit,1));min-width:0;padding:calc(10px * var(--sr-fit,1))}
.srf-piece.is-image {position:relative}
.srf-piece.is-image img {position:absolute;top:calc(10px * var(--sr-fit,1));left:calc(10px * var(--sr-fit,1));width:calc(100% - 20px * var(--sr-fit,1));height:calc(100% - 20px * var(--sr-fit,1));object-fit:contain;mix-blend-mode:multiply;pointer-events:none;user-select:none;-webkit-user-drag:none}
.srf-piece.is-lit {background:#fff6cf;transform:translateY(-6px) scale(1.05);box-shadow:0 12px 0 #f1d98c,0 18px 30px #d8a41a33}
.srf-sentence.is-read .srf-piece {background:#e3f7e8;box-shadow:0 8px 0 #b9e4c6,0 14px 26px #3aa56826}
@media (prefers-reduced-motion:reduce) {.srf-piece {transition:none}}
@media (max-height:520px) {.srf-piece {--srf-h:calc(clamp(90px,26vh,140px) * var(--sr-fit,1))}}
/* As peças não encolhem (palavra comprida ficava cortada): a frase inteira diminui junto pelo --sr-fit. */
.srf-piece {flex:none}
