/* Sight Words uses the app's cream paper, warm borders, fonts and original cat. */
.tone-mint{--mode-tint:#e6f1df;--mode-edge:#b9cfa6;}
.sw-entry-art{position:relative;display:block;flex:none;width:126px;height:126px;}
.sw-entry-art i{position:absolute;display:grid;place-items:center;width:53px;height:58px;border:2px solid #cda66b;border-radius:14px;background:#ffe39a;box-shadow:inset 0 3px #fff7d9,0 4px #b7976c24;font:600 38px/1 "Lexend",sans-serif;font-style:normal;color:#885929;}
.sw-entry-art i:nth-child(1){left:13px;top:17px;transform:rotate(-10deg);background:#ffe5a3;}
.sw-entry-art i:nth-child(2){right:8px;top:28px;transform:rotate(9deg);background:#d5ebec;border-color:#a6c4ce;color:#487986;}
.sw-entry-art i:nth-child(3){left:35px;bottom:6px;transform:rotate(-4deg);background:#f5dce5;border-color:#d9b4c3;color:#9a617c;}
#game-category-dialog[data-step=modes] .game-category-options{justify-content:flex-start;}
/* Four choices stay discoverable without changing the original card materials. */
#game-category-dialog.has-sight-entry[data-step=modes] .game-category-options{gap:10px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{min-height:112px;flex-basis:112px;max-height:132px;gap:12px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:140px;flex-basis:140px;max-height:150px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{width:94px;height:94px;}
#game-category-dialog.has-sight-entry[data-step=modes] .sw-entry-art{width:94px;height:94px;transform:scale(.78);transform-origin:center;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-copy strong{font-size:23px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-subtitle{font-size:14px;}
@media(max-height:740px) and (max-width:650px){
 #game-category-dialog.has-sight-entry[data-step=modes] .game-category-header{padding-top:14px;padding-bottom:3px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .game-category-options{gap:8px;padding-top:8px;padding-bottom:12px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{min-height:94px;flex-basis:94px;max-height:102px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:120px;flex-basis:120px;max-height:124px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{width:78px;height:78px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-copy strong{font-size:21px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-subtitle{font-size:12px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-section-label{font-size:8px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{min-height:42px;padding:5px 7px;font-size:12px;gap:5px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entries{gap:6px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{height:15px;width:15px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:24px;}
}
@media(max-height:600px) and (min-width:651px){
 #game-category-dialog.has-sight-entry[data-step=modes] .game-category-options{grid-template-columns:repeat(2,minmax(0,1fr));}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card,#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:0;max-height:none;flex-direction:row;gap:8px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{height:70px;width:70px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-copy strong{font-size:18px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-subtitle{font-size:11px;}
}
.sw-screen{background:#fff8e9;color:var(--sw-ink);font-family:"Baloo 2","Nunito",sans-serif;align-items:center;justify-content:center;}
.sw-shell{position:relative;display:flex;flex-direction:column;width:min(100%,440px);height:100%;max-height:956px;background:linear-gradient(#fff8e9,#fffdf5 55%,#f9f2df);overflow:hidden;box-shadow:0 0 44px #7f6e4214;}
.sw-screen [hidden]{display:none!important;}
.sw-screen button{font-family:inherit;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.sw-screen button:disabled{cursor:default;}
.sw-screen button:focus-visible{outline:3px solid #40899d;outline-offset:3px;}
.sw-header{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:9px;padding:calc(16px + env(safe-area-inset-top)) 16px 16px;flex:none;}
.sw-header h1{font-size:30px;margin:0;padding-bottom:8px;}
.sw-screen svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.sw-icon,.sw-sound{display:grid;place-items:center;border:1.5px solid var(--sw-line);color:var(--sw-ink);background:var(--sw-paper);box-shadow:inset 0 2px #fff,var(--sw-raised);border-radius:16px;width:48px;height:48px;}
.sw-icon:active,.sw-sound:active,.sw-letter:active:not(:disabled),.sw-primary:active,.sw-word-tile:active{transform:translateY(2px);}
#sw-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px calc(22px + env(safe-area-inset-bottom));scrollbar-width:thin;}
.sw-library-hero{display:flex;align-items:center;gap:12px;padding:12px 0 22px;}
.sw-library-hero>img{width:32%;height:132px;object-fit:contain;}
.sw-eyebrow,.sw-lesson-meta{font:900 11px/1.3 "Nunito",sans-serif;letter-spacing:.09em;color:#9b7954;}
.sw-library-hero h2{font-size:26px;line-height:1.12;color:#89634b;margin:8px 0 7px;font-weight:800;}
.sw-library-hero p{font:700 14px/1.5 "Nunito",sans-serif;margin:0;color:#9a7c5c;}
.sw-library-tools{display:grid;grid-template-columns:1.15fr 1fr;gap:10px;}
.sw-primary,.sw-secondary{display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--sw-gold-line);border-radius:17px;min-height:49px;padding:9px 14px;background:var(--sw-gold);color:var(--sw-ink);box-shadow:inset 0 2px #fff8d5,var(--sw-raised);font-size:16px;font-weight:800;line-height:1.25;}
.sw-secondary{background:var(--sw-paper);border-color:var(--sw-line);font-size:14px;}
.sw-secondary:disabled{opacity:.4;}
.sw-library-count{display:flex;align-items:center;gap:4px;font:700 12px/1.5 "Nunito",sans-serif;color:#967859;margin:23px 0 12px;}
.sw-library-count b{font-weight:900;color:#638361;}.sw-library-count>span{margin-left:auto;}
.sw-word-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 10px;}
.sw-word-tile{position:relative;min-width:0;min-height:68px;border:1.5px solid var(--sw-line);border-radius:17px;background:var(--sw-paper);box-shadow:inset 0 2px white,var(--sw-raised);color:#775035;}
.sw-word-tile>span{display:block;font:600 18px/1.2 "Lexend",sans-serif;padding:5px 2px 12px;}
.sw-word-dot{position:absolute;bottom:9px;left:calc(50% - 3px);height:6px;width:6px;border-radius:50%;background:#e4daca;}
.sw-word-dot.is-practiced{background:#dfb96d;}.sw-word-dot.is-independent{background:#83ac8e;box-shadow:0 0 0 2px #e6f0dd;}
.sw-lesson-meta{display:flex;justify-content:space-between;margin:2px 3px 14px;}
.sw-phase-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1.5px solid var(--sw-line);border-radius:18px;background:#f5eedf;padding:5px;gap:4px;margin-bottom:18px;}
.sw-phase-track button{border:0;background:transparent;color:#a28b73;display:flex;justify-content:center;align-items:center;gap:5px;min-height:44px;border-radius:13px;font-size:13px;font-weight:800;padding:4px;}
.sw-phase-track button svg{width:19px;height:19px;}.sw-phase-track .is-active{background:#fffdf6;color:#8b6536;box-shadow:0 2px 3px #7d5e2620;}
.sw-word-board{position:relative;padding:16px 16px 21px;border:2px solid var(--sw-line);border-radius:29px;background:var(--sw-paper);box-shadow:inset 0 3px #fff,0 5px #b5976920;}
.sw-word-board::before{content:"";position:absolute;inset:6px;pointer-events:none;border:1px solid #efe4ce;border-radius:23px;}
.sw-cue-row{display:flex;align-items:center;gap:10px;min-height:58px;}
.sw-cue-row img{width:48px;height:58px;object-fit:contain;}.sw-cue-row p{position:relative;font:800 13px/1.6 "Nunito",sans-serif;background:#f9f0d5;color:#9a774c;border-radius:14px;padding:9px 10px;margin:0;}
.sw-target-line{display:flex;align-items:center;justify-content:center;gap:15px;min-height:95px;padding:15px 0 5px;}
.sw-target{font:600 clamp(38px,12vw,54px)/1.2 "Lexend",sans-serif;letter-spacing:.015em;color:#765137;text-align:center;min-width:40px;}
.sw-target.is-hidden{display:grid;place-items:center;width:90px;color:#91b4b6;}.sw-target.is-hidden svg{width:52px;height:52px;stroke-width:1.5;}
.sw-sound{flex:none;background:#ffe8a1;border-color:#ddbf74;border-radius:50%;width:55px;height:55px;}.sw-sound svg{width:28px;height:28px;}
.sw-example{text-align:center;color:#8a6850;font:800 17px/1.5 "Nunito",sans-serif;min-height:26px;margin:7px 0 6px;overflow-wrap:anywhere;}
.sw-listen-note{color:#89a5a1;font-size:15px;}
.sw-meaning{font:700 14px/1.5 "Nunito",sans-serif;text-align:center;color:#9e805e;margin:4px 0;}
.sw-sentence-zh{font:600 12px/1.6 "Nunito",sans-serif;text-align:center;color:#ab9176;margin:4px 0 10px;}
.sw-learn-foot{display:flex;align-items:center;justify-content:center;gap:7px;color:#ad956c;font:700 12px/1.5 "Nunito",sans-serif;border-top:1px dashed #e6d8bd;margin-top:19px;padding:16px 0 0;}.sw-learn-foot svg{width:20px;height:20px;}
.sw-slots{display:flex;gap:5px;justify-content:center;flex-wrap:nowrap;margin-top:22px;}
.sw-slots button{width:44px;max-width:calc((100% - 30px) / 6);height:52px;padding:0;border:0;border-bottom:3px solid #d8bd86;border-radius:10px 10px 4px 4px;background:#f7f1e1;color:#71502f;font:600 28px/1 "Lexend",sans-serif;flex:0 1 44px;}
.sw-slots button:disabled{opacity:1;color:#71502f;}
.sw-slots.is-wrong button{border-color:#dba08b;background:#fff1e9;}.sw-slots.is-complete button{border-color:#93b58a;background:#eef5e6;color:#63825b;}
.sw-letters{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:24px 0 14px;min-height:89px;}
.sw-letter{border:1.5px solid #d8b578;border-radius:14px;display:grid;place-items:center;background:#ffe7aa;box-shadow:inset 0 3px #fff6d8,0 4px #b69b6a2b;width:49px;height:55px;font:600 28px/1 "Lexend",sans-serif;color:#86602e;padding:0;}
.sw-letter-1{background:#dcecf2;border-color:#b4cbd6;color:#527d8d;box-shadow:inset 0 3px #f4fbff,0 4px #789aa426;}.sw-letter-2{background:#f4dfe6;border-color:#d7b8c7;color:#9b637c;box-shadow:inset 0 3px #fff2f6,0 4px #b593a326;}.sw-letter-3{background:#e2edcf;border-color:#bdcfa3;color:#75864e;box-shadow:inset 0 3px #f4f9e9,0 4px #8f9e6926;}
.sw-letter:disabled{opacity:.23;box-shadow:none;transform:translateY(3px);}
.sw-small-tools{display:flex;justify-content:center;gap:12px;}.sw-small-tools button{min-height:44px;padding:8px 13px;font-size:12px;background:transparent;border-color:#e3d6c0;box-shadow:none;}.sw-small-tools svg{width:19px;height:19px;}
.sw-feedback{font:700 13px/1.6 "Nunito",sans-serif;color:#9e805e;text-align:center;margin:19px 0 8px;min-height:22px;}.sw-feedback.has-warning{color:#b47e5e;}
.sw-lesson-footer{padding:10px 10px 5px;}.sw-lesson-footer .sw-primary{width:100%;min-height:54px;font-size:18px;}
.sw-quiet{display:flex;justify-content:center;align-items:center;gap:5px;margin:auto;padding:6px 12px;min-height:44px;border:0;background:none;color:#a48b6a;font:700 12px/1.3 "Nunito",sans-serif;}.sw-quiet svg{width:17px;height:17px;}
.sw-load-error{text-align:center;padding:80px 10px;}
#sw-error,#sw-speech-error{flex:none;border:1px solid #dcaf91;border-radius:12px;background:#fff1df;padding:10px 14px;margin:0 16px 12px;color:#9a5439;font:700 12px/1.5 "Nunito",sans-serif;}
@media(min-width:600px){.sw-screen{background:#f3eddd;}.sw-shell{border-left:1px solid #e4d9c5;border-right:1px solid #e4d9c5;}}
@media(max-width:390px){#sw-body{padding-left:16px;padding-right:16px;}.sw-header{gap:5px;padding-left:13px;padding-right:13px;}.sw-header h1{font-size:28px;}.sw-library-hero h2{font-size:23px;}.sw-word-tile>span{font-size:16px;}.sw-word-grid{gap:10px 8px;}.sw-letters{gap:7px;}.sw-letter{width:45px;height:53px;}.sw-entry-art{width:101px;height:101px;}.sw-entry-art i{width:44px;height:47px;font-size:30px;}.sw-entry-art i:nth-child(1){left:8px;top:8px;}.sw-entry-art i:nth-child(2){right:4px;top:20px;}.sw-entry-art i:nth-child(3){left:26px;bottom:2px;}}
@media(max-height:740px){.sw-header{padding-top:12px;padding-bottom:12px;}.sw-phase-track{margin-bottom:12px;}.sw-word-board{padding-top:12px;padding-bottom:17px;}.sw-cue-row{min-height:46px;}.sw-cue-row img{height:46px;width:39px;}.sw-target-line{min-height:79px;padding-top:8px;}.sw-letters{padding-top:18px;padding-bottom:12px;}.sw-feedback{margin-top:12px;}.sw-slots{margin-top:16px;}.sw-lesson-footer{padding-top:6px;}}
@media(prefers-reduced-motion:reduce){.sw-screen button:active{transform:none;}}
/* Revision 2: one paper frame, larger unused thinking pose and separate audio. */
.sw-library-hero>img{width:40%;height:164px;}
.sw-word-board{border:0;border-radius:0;background:transparent;box-shadow:none;}
.sw-word-board::before{inset:6px;border:1.5px solid var(--sw-line);border-radius:23px;background:var(--sw-paper);z-index:0;}
.sw-word-board>*{position:relative;z-index:1;}
.sw-cue-row{min-height:104px;gap:12px;}
.sw-cue-row img{width:98px;height:104px;flex:none;}
.sw-cue-row p{background:transparent;padding:5px 0;}
.sw-example-row{display:flex;align-items:center;justify-content:center;gap:9px;margin:5px 0 8px;}
.sw-example-row .sw-example{margin:0;min-height:0;}
.sw-sentence-target{color:#d66a87;background:transparent;font-weight:900;}
.sw-sentence-sound{display:grid;place-items:center;flex:none;border:1.5px solid #c3d8dc;background:#edf5f5;color:#658f98;border-radius:50%;width:44px;height:44px;padding:0;}
.sw-sentence-sound svg{height:21px;width:21px;}
.sw-letters.is-ten{display:grid;grid-template-columns:repeat(5,49px);gap:11px 10px;}
.sw-letters.is-ten .sw-letter{width:49px;height:53px;}
@media(max-width:390px){
 .sw-cue-row img{width:88px;height:96px;}.sw-cue-row{min-height:96px;}
 .sw-letters.is-ten{grid-template-columns:repeat(5,45px);gap:10px 9px;}
 .sw-letters.is-ten .sw-letter{width:45px;height:51px;}
 .sw-example{font-size:16px;}
}
@media(max-height:740px){
 .sw-cue-row img{width:80px;height:88px;}.sw-cue-row{min-height:88px;}
 .sw-target-line{min-height:72px;}.sw-word-board{padding-top:12px;padding-bottom:17px;}
 .sw-letters.is-ten{padding-top:16px;}
}

/* Annotated entry-card refinement: picture-led choices and larger original badges. */
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{width:116px;height:116px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entries{gap:10px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{flex:1;min-width:0;min-height:64px;padding:7px 10px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon{gap:4px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{width:24px;height:24px;font-size:17px;}
#game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:40px;}
@media(max-height:740px) and (max-width:650px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{width:96px;height:96px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{min-height:57px;padding:5px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{width:22px;height:22px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:38px;}
}
@media(max-width:360px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{width:88px;height:88px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entries{gap:6px;}
}
@media(max-height:600px) and (min-width:651px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{width:94px;height:94px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{flex-direction:column;text-align:center;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card .learning-mode-copy{width:100%;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-arrow{display:none;}
}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{min-height:124px;flex-basis:124px;max-height:140px;padding-top:4px;padding-bottom:4px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:146px;flex-basis:146px;max-height:156px;}
@media(max-height:740px) and (max-width:650px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{min-height:104px;flex-basis:104px;max-height:112px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:130px;flex-basis:130px;max-height:138px;}
}
@media(max-width:360px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{min-height:96px;flex-basis:96px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:120px;flex-basis:120px;}
}
@media(max-height:600px) and (min-width:651px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card,#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:0;max-height:none;}
}
@media(max-height:600px) and (min-width:651px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{flex-direction:row;text-align:left;gap:8px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-logo{width:80px;height:80px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card .learning-mode-copy{flex:1;min-width:0;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{min-height:52px;padding:4px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{width:20px;height:20px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:36px;}
}
/* Spell Test owns the category level; each category keeps its own word data. */
.sw-category-invitation{margin:12px 0 25px;text-align:center;color:#9b7954;font:800 15px/1.5 "Nunito",sans-serif;}
.sw-category-card{display:flex;align-items:center;gap:17px;width:100%;min-height:154px;padding:17px 16px;border:1.5px solid #d5c0a1;border-radius:25px;background:linear-gradient(120deg,#fffaf0,#edf4e5);box-shadow:inset 0 2px white,var(--sw-raised);color:var(--sw-ink);text-align:left;}
.sw-category-art{position:relative;width:94px;height:108px;flex:none;}
.sw-category-art i{position:absolute;display:grid;place-items:center;width:73px;height:38px;border:1.5px solid #d3b481;border-radius:10px;background:#ffe7a2;color:#8b6536;font:600 20px/1 "Lexend",sans-serif;box-shadow:inset 0 2px #fff9e4;}
.sw-category-art i:nth-child(1){top:3px;left:1px;transform:rotate(-8deg);}
.sw-category-art i:nth-child(2){top:37px;right:0;transform:rotate(7deg);background:#dcebf1;border-color:#abc7d2;color:#527d8d;}
.sw-category-art i:nth-child(3){bottom:0;left:4px;transform:rotate(-4deg);background:#f5dfe7;border-color:#d9b9c8;color:#9a637e;}
.sw-category-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:10px;}.sw-category-copy strong{font-size:25px;line-height:1.1;}.sw-category-copy>span{font:800 13px/1.5 "Nunito",sans-serif;color:#9a7d5b;}.sw-category-arrow{color:#b7976b;font-size:36px;}
@media(max-width:360px){.sw-category-card{gap:12px;padding:14px 12px;}.sw-category-art{width:78px;}.sw-category-art i{width:65px;}.sw-category-copy strong{font-size:23px;}.sw-category-copy>span{font-size:12px;}}
/* Sight Words levels: only the implemented Pre-Primer can be entered. */
.sw-levels{padding-bottom:8px;}.sw-levels .sw-category-invitation{margin-bottom:19px;}
.sw-level-card{display:flex;align-items:center;gap:16px;width:100%;min-height:91px;margin:0 0 13px;padding:15px 17px;border:1.5px solid #d6be99;border-radius:23px;background:linear-gradient(120deg,#fff8df,#f4efdb);box-shadow:inset 0 2px #fff,var(--sw-raised);color:var(--sw-ink);text-align:left;}
.sw-level-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;}.sw-level-copy strong{font-size:23px;line-height:1.15;}.sw-level-copy>span{font:700 12px/1.5 "Nunito",sans-serif;color:#9e8464;}
.sw-level-state{display:grid;place-items:center;flex:none;color:#ae906b;}.sw-level-state svg{width:22px;height:22px;}
.sw-level-card.is-locked{background:#f7f3e9;border-color:#e1d5c2;color:#aa9981;box-shadow:inset 0 2px #fffcf5;opacity:1;}
.sw-level-card.is-locked .sw-level-state{color:#b9aa94;}
@media(max-width:360px){.sw-level-card{gap:12px;padding:13px;min-height:85px;}.sw-level-copy strong{font-size:21px;}}
/* Equal visible badge diameter despite the supplied PNGs' unequal alpha margins.
   Scales/offsets derive from alpha>128 bounds; original bitmap bytes are untouched. */
#game-category-dialog.has-sight-entry[data-step=modes]{--entry-badge-size:116px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-badge{position:relative;display:block;width:var(--entry-badge-size);height:var(--entry-badge-size);flex:none;pointer-events:none;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-badge .learning-mode-logo{display:block;width:100%;height:100%;object-fit:contain;transform:scale(var(--badge-scale,1)) translate(var(--badge-x,0%),var(--badge-y,0%));transform-origin:center;}
.badge-learn{--badge-scale:1;--badge-x:.1953125%;--badge-y:.48828125%;}
.badge-play{--badge-scale:1.039215686;--badge-x:1.3671875%;--badge-y:-.68359375%;}
.badge-practice{--badge-scale:1.01059322;--badge-x:.29296875%;--badge-y:0%;}
.badge-spell{--badge-scale:.98505744;--badge-x:.43859649%;--badge-y:1.35566188%;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:124px;flex-basis:124px;max-height:140px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{min-height:54px;padding:5px 8px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon{gap:3px;}
#game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{width:20px;height:20px;font-size:14px;}
#game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:34px;}
@media(max-height:740px) and (max-width:650px){
 #game-category-dialog.has-sight-entry[data-step=modes]{--entry-badge-size:96px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:104px;flex-basis:104px;max-height:112px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{min-height:48px;padding:4px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{width:18px;height:18px;font-size:13px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:30px;}
}
@media(max-width:360px){
 #game-category-dialog.has-sight-entry[data-step=modes]{--entry-badge-size:88px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:96px;flex-basis:96px;max-height:112px;}
}
@media(max-height:600px) and (min-width:651px){
 #game-category-dialog.has-sight-entry[data-step=modes]{--entry-badge-size:80px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:0;max-height:none;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{min-height:48px;padding:4px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{width:18px;height:18px;font-size:13px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:30px;}
}

/* Sentence audio: blue male, pink female. */
.sw-sentence-voices{display:flex;align-items:center;gap:8px;flex:none;}
#screen-sight-words .sw-sentence-male{background:#d8efff;border-color:#79bce8;color:#287eb8;border-radius:50%;}
#screen-sight-words .sw-sentence-female{background:#ffe1ee;border-color:#ed9cbd;color:#b94f80;border-radius:50%;}
@media(max-width:430px){.sw-example-row{flex-wrap:wrap;}.sw-example-row .sw-example{flex:0 0 100%;text-align:center;}.sw-sentence-voices{justify-content:center;}}

/* Selected Voice Silhouettes: identical hit areas and optical glyph scale. */
body #screen-sight-words .sw-sentence-voices :is(#sw-sentence-male,#sw-sentence-speak){box-sizing:border-box;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border-radius:50%;display:grid;place-items:center;}
body #screen-sight-words .sw-narrator-glyph{display:block;width:40px;height:40px;object-fit:contain;pointer-events:none;}


/* Approved Sight Words staircase badges, scaled from the 76px design. */
.sw-level-stairs {
  position:relative;
  box-sizing:border-box;
  flex:none;
  width:clamp(52px,15vw,64px);
  aspect-ratio:1;
  border:2px solid white;
  border-radius:29%;
  background:#fffcf2;
  box-shadow:0 2px 6px #33465522;
  overflow:hidden;
}
.sw-level-stairs[data-level-icon="1"]{--step-light:#ffd7cd;--step-fill:#f5a698;--step-edge:#9b4d43;}
.sw-level-stairs[data-level-icon="2"]{--step-light:#ffedb0;--step-fill:#f5ca65;--step-edge:#866127;}
.sw-level-stairs[data-level-icon="3"]{--step-light:#e3efba;--step-fill:#aed37e;--step-edge:#496b33;}
.sw-level-stairs[data-level-icon="4"]{--step-light:#d9efff;--step-fill:#92c9eb;--step-edge:#325e86;}
.sw-level-stairs[data-level-icon="5"]{--step-light:#efe1fc;--step-fill:#c9a6ee;--step-edge:#65458b;}
.sw-level-steps {
  position:absolute;
  inset:14% 13% 13%;
  display:flex;
  align-items:flex-end;
  gap:3%;
}
.sw-level-steps i {
  flex:1;
  height:calc((12 + var(--step)*7)*100% / 51);
  box-sizing:border-box;
  border:1px solid var(--step-edge);
  border-radius:3px 3px 2px 2px;
  background:linear-gradient(var(--step-light),var(--step-fill));
}
.sw-level-digit {
  position:absolute;
  top:7%;
  left:13%;
  color:var(--step-edge);
  font:900 clamp(14px,4vw,17px)/1 system-ui,sans-serif;
}
