/* User-requested transient letter cue and optional letter-name read-along. */
#screen-sight-words .sw-letter-guide-row{display:flex;justify-content:center;margin:4px 0 12px;}
#screen-sight-words .sw-letter-guide{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 14px;font:800 13px/1.2 Nunito,sans-serif;}
#screen-sight-words .sw-letter-guide svg{width:18px;height:18px;flex:none;}
#screen-sight-words .sw-target [data-guide-letter]{display:inline-block;border-radius:6px;}
#screen-sight-words .sw-target [data-guide-letter].is-reading,
#screen-sight-words .sw-target.is-reading-word [data-guide-letter]{color:#ad3f69;background:transparent;box-shadow:none;}
#screen-sight-words .sw-slots button.is-letter-hint{position:relative;color:transparent!important;}
#screen-sight-words .sw-slots button.is-letter-hint::after{content:attr(data-hint-letter);position:absolute;inset:0;display:grid;place-items:center;border-radius:inherit;background:#fff2b2;color:#ad3f69;font:inherit;pointer-events:none;animation:sw-letter-hint 1s ease-in-out;}
@keyframes sw-letter-hint{0%,100%{opacity:.15}25%,65%{opacity:1}}
@media(prefers-reduced-motion:reduce){#screen-sight-words .sw-slots button.is-letter-hint::after{animation:none;}}

/* Learn can advance without entering a spelling phase. */
.sw-lesson-footer .sw-primary + .sw-quiet{margin-top:8px;}


/* v1.35: retain letter timing/state, with ink-only reading emphasis. */
#screen-sight-words .sw-target:not(.is-hidden){padding:4px 10px;border-radius:12px;}
#screen-sight-words .sw-target:has([data-guide-letter].is-reading),
#screen-sight-words .sw-target.is-reading-word{background:transparent;box-shadow:none;}
#screen-sight-words .sw-target [data-guide-letter].is-reading,
#screen-sight-words .sw-target.is-reading-word [data-guide-letter]{background:transparent;box-shadow:none;}

/* Every level page uses the same complete title and can wrap on a small phone. */
body #screen-sight-words #sw-title{white-space:normal!important;line-height:1.16!important;}
body #screen-sight-words .sw-library-title-art{flex:1;min-width:0;}
body #screen-sight-words .sw-library-title-art img{display:block;width:100%;height:auto;object-fit:contain;}
body #screen-sight-words .sw-library-hero{gap:8px;}
body #screen-sight-words .sw-library-hero>img{width:30%;height:144px;}
body #screen-sight-words .sw-phase-glyph{fill:currentColor;stroke:none;width:18.2px;height:18.2px;}
body #screen-sight-words .sw-phase-track button{gap:4px;font-size:12px;min-width:0;}
body #screen-sight-words :is(#sw-speak,#sw-sentence-speak){box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:20px;}
body #screen-sight-words :is(#sw-speak,#sw-sentence-speak,#sw-letter-guide) svg{width:21px;height:21px;min-width:21px;min-height:21px;}
body #screen-sight-words .sw-shared-slogan{font:700 13px/1.4 Nunito,sans-serif;}
@media(max-width:360px){body #screen-sight-words .sw-phase-track button{gap:3px;font-size:11px;}}


/* User-confirmed v1.2 jump cat: show the complete PNG including ground shadow. */
#screen-sight-words .sw-encouraging-cat{position:relative;display:block;flex:none;aspect-ratio:1122/1402;overflow:hidden;}
#screen-sight-words .sw-encouraging-cat img{position:static;display:block;max-width:100%!important;width:100%!important;height:auto!important;object-fit:contain;}
#screen-sight-words .sw-library-hero>.sw-encouraging-cat{width:30%;max-width:108px;}
#screen-sight-words .sw-cue-row>.sw-encouraging-cat{width:80px;}
#screen-sight-words .sw-level-caption{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:stretch;}
#screen-sight-words .sw-level-caption::after{content:"";display:block;height:4px;width:100%;margin-top:9px;border-radius:50%;background:linear-gradient(90deg,#f66b7b,#ff9c60,#f6cf4f,#91b768,#65ade9,#b28ae2,#de597e,#34a8b6);}
body #screen-sight-words .sw-level-name{font:600 24px/1.25 Fredoka,sans-serif!important;text-align:center;margin:0;padding:0;background:transparent;letter-spacing:0;}
#screen-sight-words .sw-level-name .ui-subtitle-letter{color:var(--ui-subtitle-letter-ink)!important;-webkit-text-fill-color:var(--ui-subtitle-letter-ink)!important;font:inherit;}
#screen-sight-words .sw-phase-track button>svg{width:18.2px;height:18.2px;}
#screen-sight-words .sw-lesson-meta{justify-content:flex-end;}
/* Keep the hidden-word marker for accessibility without an ear taking space. */
#screen-sight-words .sw-target.is-hidden{position:absolute;display:block;width:1px;height:1px;min-width:0;overflow:hidden;clip-path:inset(50%);padding:0;}
#screen-sight-words .sw-target-line:has(.sw-target.is-hidden){gap:0;justify-content:center;}
