/* Scene context only; models, movement paths and answers stay in their existing modules. */
#subtractionUnit1Screen[data-park-preview=true] .su-snack,#subtractionUnit1Screen[data-park-preview=true] .su-shop{background:#e1ae6e url('assets/addition-painted-v002/table-scene.webp') center bottom/cover no-repeat!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-snack .su-road,#subtractionUnit1Screen[data-park-preview=true] .su-shop .su-road{background:transparent;border:0;}
#subtractionUnit1Screen[data-park-preview=true] .su-snack .su-table,#subtractionUnit1Screen[data-park-preview=true] .su-shop .su-table{left:5%;width:67%;top:10%;height:80%;border:2px solid #b7cbd0;border-radius:20px;background:linear-gradient(135deg,#fff,#edf3f4,#fff);box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 8px #dbe5e7,0 4px 4px #68401b30;}
#subtractionUnit1Screen[data-park-preview=true] .su-snack .su-figure img,#subtractionUnit1Screen[data-park-preview=true] .su-shop .su-figure img{width:85%!important;height:85%!important;object-fit:contain;}
#subtractionUnit1Screen[data-park-preview=true] .su-snack .su-taker,#subtractionUnit1Screen[data-park-preview=true] .su-shop .su-taker{right:0;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus{background:#aab4bd url('assets/addition-painted-v002/road-scene.webp') center/cover no-repeat!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-road{background:#fff4c4a0;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-ground{display:none;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-figure img{width:100%;height:100%;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone){width:clamp(40px,13vw,70px);height:clamp(52px,16vw,84px);}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone) .su-figure{width:clamp(38px,12vw,64px);height:clamp(38px,12vw,64px);}
#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-bus-body{transform:translateX(140%)!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-item:not(.su-gone){transform:translate(-50%,-50%) translateX(700%)!important;}
/* Other learning routes: the header, artwork, answers and lower guide have stable rows. */
body.learning-polished{background:#b8e86d url('assets/subtraction-park-preview-v001/meadow-high.webp') center/cover fixed no-repeat;overflow-anchor:none;}
body.learning-polished main{max-width:680px;width:100%;box-sizing:border-box;margin:auto;padding:10px 10px 0!important;}
body.learning-polished .app-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:44px 64px!important;gap:12px!important;padding:0!important;margin:0 0 14px!important;height:auto!important;min-height:0!important;max-height:none!important;}
body.learning-polished .shared-nav-row{grid-row:1;height:44px!important;min-height:44px!important;}
body.learning-polished .shared-nav-row button{min-width:44px;min-height:44px;background:#fff0aa url('assets/subtraction-park-preview-v001/wood.webp') center/100% 100% no-repeat!important;color:#164c7b!important;border:0!important;font-size:clamp(12px,3.5vw,17px)!important;padding:4px 8px!important;box-shadow:none!important;}
body.learning-polished #navCardsButton{display:none!important;}
body.learning-polished .app-header #screenTitle{grid-row:2;position:static!important;transform:none!important;margin:0!important;min-height:0!important;height:64px!important;padding:8px 12%!important;display:grid;place-items:center;background:url('assets/subtraction-park-preview-v001/cloud.webp') center/100% 100% no-repeat!important;color:#123f76!important;font-size:clamp(18px,5vw,27px)!important;line-height:1.2!important;border:0;box-shadow:none;box-sizing:border-box;}
.learning-polished .polished-screen{box-sizing:border-box!important;height:var(--polished-height)!important;min-height:0!important;max-height:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:0 0 18px!important;gap:12px!important;color:#214f47;}
.learning-polished .polished-screen button{box-sizing:border-box;touch-action:manipulation;}
.learning-polished .polished-screen .pa-answer,.learning-polished .polished-screen .dl-button,.learning-polished .polished-screen .meaning-choice{border:2px solid #7cb9d2!important;border-radius:20px;background:linear-gradient(#fff,#e4f5ff)!important;color:#145e96!important;font-size:clamp(23px,6vw,34px)!important;font-weight:900;min-height:48px!important;padding:5px!important;}
.learning-polished .polished-screen .pa-answer:nth-child(2),.learning-polished .polished-screen .dl-button:nth-child(2),.learning-polished .polished-screen .meaning-choice:nth-child(2){background:linear-gradient(#fff,#ffeaf7)!important;border-color:#d89bc4!important;color:#b3397d!important;}
.learning-polished .polished-screen .pa-answer:nth-child(3),.learning-polished .polished-screen .dl-button:nth-child(3),.learning-polished .polished-screen .meaning-choice:nth-child(3){background:linear-gradient(#fff,#f0eaff)!important;border-color:#ae92cf!important;color:#7240a7!important;}
.learning-polished .polished-screen .pa-equation,.learning-polished .polished-screen .dl-equation,.learning-polished .polished-screen .meaning-product,.learning-polished .polished-screen .lf-sub-equation{background:url('assets/subtraction-park-preview-v001/wood.webp') center/100% 100% no-repeat!important;color:#15598d!important;border:0!important;border-radius:16px;font-size:clamp(27px,7vw,38px)!important;line-height:1.15!important;font-weight:900;display:grid;place-items:center;margin:0!important;padding:4px 8px!important;box-sizing:border-box;min-height:44px;}
/* Subtraction picture course */
#pictureArithmeticScreen[data-op=sub].polished-screen{display:grid!important;grid-template-rows:24px minmax(145px,1fr) 48px 58px 120px!important;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-heading{grid-row:1;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-heading h2{display:none;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-progress{line-height:24px;margin:0;font-weight:700;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-story{grid-row:2;background:#e1ae6e url('assets/addition-painted-v002/table-scene.webp') center bottom/cover no-repeat;border-radius:24px;padding:14px;grid-template-columns:minmax(0,1fr) 72px;gap:12px;align-items:center;box-sizing:border-box;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-sub-group{height:calc(100% - 16px);max-height:250px;min-height:0;padding:12px;border:2px solid #b7cbd0;border-radius:20px;background:linear-gradient(135deg,#fff,#edf3f4,#fff);box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 8px #dbe5e7;display:grid;grid-template-rows:24px minmax(0,1fr);gap:8px;}
#pictureArithmeticScreen[data-op=sub].polished-screen h3{font-size:17px;line-height:24px;margin:0;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-objects{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:6px;align-items:center;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-item{height:100%;min-height:0;max-height:46px;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-item img{width:100%;height:100%;max-width:40px;max-height:40px;object-fit:contain;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-eater{width:72px;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-eater img{width:72px;height:85px;object-fit:contain;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-equation{grid-row:3;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-actions{grid-row:4;gap:10px;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-guide{grid-row:5;display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;align-items:end;height:120px;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-guide-character{width:82px;height:94px;object-fit:contain;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-guide-bubble{height:120px;box-sizing:border-box;padding:12px;border:2px solid #d1a753;border-radius:24px;background:#fffef6f5;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;}
#pictureArithmeticScreen[data-op=sub].polished-screen .pa-prompt,#pictureArithmeticScreen[data-op=sub].polished-screen .pa-feedback{background:none;padding:0;margin:0;font-size:19px;line-height:1.3;text-align:left;justify-content:flex-start;}
/* Subtraction ten frame: controls never push the bottom guide. */
#learnPlayScreen.polished-screen{display:grid!important;grid-template-rows:38px minmax(230px,1fr) 120px!important;}
#learnPlayScreen.polished-screen .lp-head{grid-row:1;display:flex;align-items:center;justify-content:center;gap:12px;}
#learnPlayScreen.polished-screen .lp-head .lp-title{font-size:17px;}
#learnPlayScreen.polished-screen .lp-prompt-row,#learnPlayScreen.polished-screen .lp-msg:empty{display:none!important;}
#learnPlayScreen.polished-screen .lp-stage{grid-row:2;display:grid!important;grid-template-rows:minmax(115px,1fr) 24px 44px 56px!important;gap:10px;min-height:0!important;height:auto!important;padding:0!important;}
#learnPlayScreen.polished-screen .lf-sub-world{background:#e1ae6e url('assets/addition-painted-v002/table-scene.webp') center bottom/cover no-repeat;border-radius:24px;min-height:0!important;box-sizing:border-box;padding:12px!important;}
#learnPlayScreen.polished-screen .lf-sub-caption{margin:0;font-size:16px;line-height:24px;}
#learnPlayScreen.polished-screen .lf-sub-controls{min-height:0!important;height:56px!important;display:flex;gap:8px;align-items:stretch;justify-content:center;}
#learnPlayScreen.polished-screen .lf-sub-controls button{min-height:44px!important;font-size:22px;}
#learnPlayScreen.polished-screen .slg-guide{grid-row:3!important;height:120px!important;display:grid!important;grid-template-columns:82px minmax(0,1fr);gap:8px;align-items:end;position:static!important;}
#learnPlayScreen.polished-screen .slg-guide>img{width:82px;height:94px;object-fit:contain;}
#learnPlayScreen.polished-screen .slg-bubble{height:120px!important;box-sizing:border-box;border:2px solid #d1a753;border-radius:24px;padding:12px!important;background:#fffef6f5;}
#learnPlayScreen.polished-screen .slg-text{font-size:19px;line-height:1.35;margin:0;}
@media(max-height:720px){body.learning-polished .app-header{grid-template-rows:44px 54px!important;gap:10px!important;margin-bottom:12px!important;}body.learning-polished .app-header #screenTitle{height:54px!important;}.learning-polished .polished-screen{gap:8px!important;padding-bottom:14px!important;}#pictureArithmeticScreen[data-op=sub].polished-screen{grid-template-rows:22px minmax(120px,1fr) 44px 50px 104px!important;}#pictureArithmeticScreen[data-op=sub].polished-screen .pa-guide,#pictureArithmeticScreen[data-op=sub].polished-screen .pa-guide-bubble{height:104px;}#pictureArithmeticScreen[data-op=sub].polished-screen .pa-prompt,#pictureArithmeticScreen[data-op=sub].polished-screen .pa-feedback{font-size:17px;}#learnPlayScreen.polished-screen{grid-template-rows:32px minmax(210px,1fr) 104px!important;}#learnPlayScreen.polished-screen .slg-guide,#learnPlayScreen.polished-screen .slg-bubble{height:104px!important;}#learnPlayScreen.polished-screen .slg-text{font-size:17px;}}
/* Defeat legacy late-loaded geometry only within this candidate's target screens. */
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]:not([hidden]){grid-template-rows:24px minmax(145px,1fr) 48px 58px 120px!important;padding:0 0 18px!important;gap:12px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-heading{height:24px!important;min-height:0!important;margin:0!important;grid-row:1!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-world{height:auto!important;min-height:0!important;grid-row:2!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-equation{height:48px!important;min-height:0!important;grid-row:3!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-actions{height:58px!important;min-height:0!important;grid-row:4!important;margin:0!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-guide{grid-row:5!important;}
body.learning-polished:has(.polished-screen) .app-header{grid-template-rows:44px 64px!important;gap:12px!important;margin:0 0 14px!important;}
body.learning-polished:has(.polished-screen) #screenTitle{height:64px!important;min-height:0!important;grid-row:2!important;}
@media(max-height:720px){body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]:not([hidden]){grid-template-rows:22px minmax(120px,1fr) 44px 50px 104px!important;gap:8px!important;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-equation{height:44px!important;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-actions{height:50px!important;}body.learning-polished:has(.polished-screen) .app-header{grid-template-rows:44px 54px!important;gap:10px!important;margin-bottom:12px!important;}body.learning-polished:has(.polished-screen) #screenTitle{height:54px!important;}}
/* Subject menus: adventure dominates; secondary destinations stay within smaller cards. */
#learningStructureScreen.subject-menu-polished{display:grid!important;grid-template-columns:minmax(0,1fr);gap:16px!important;padding:4px 8px 18px!important;box-sizing:border-box;max-width:680px;margin:auto;}
:is(#learningStructureScreen.subject-menu-polished,#numberTopScreen)>.structure-adventure{position:relative;box-sizing:border-box;width:100%!important;min-height:170px!important;padding:26px 22px 54px!important;border:3px solid #e6bf5a!important;border-radius:26px!important;background:linear-gradient(100deg,#102850e6,#12334b88),url('assets/subtraction-park-preview-v001/meadow-high.webp') center 30%/cover!important;box-shadow:0 6px 0 #17344e, inset 0 0 0 3px #ffffff33!important;color:#fff3bf!important;font-size:clamp(24px,6vw,34px)!important;line-height:1.35!important;font-weight:900!important;white-space:normal!important;overflow-wrap:anywhere;text-shadow:0 2px 2px #123;}
:is(#learningStructureScreen.subject-menu-polished,#numberTopScreen)>.structure-adventure::after{content:'ぼうけんへ すすむ  ›';position:absolute;bottom:18px;left:22px;right:22px;padding:7px;border-radius:12px;background:linear-gradient(#fff2ab,#edbd4a);font-size:17px;line-height:22px;color:#473312;text-shadow:none;}
#learningStructureScreen.subject-menu-polished .structure-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-top:4px;}
#learningStructureScreen.subject-menu-polished .structure-card{height:104px!important;min-height:104px!important;min-width:0;padding:9px 7px!important;gap:6px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;}
#learningStructureScreen.subject-menu-polished .structure-card strong{font-size:clamp(16px,4.3vw,22px)!important;line-height:1.25;white-space:normal;overflow-wrap:anywhere;}
#learningStructureScreen.subject-menu-polished .battle-menu-illustration{width:48px!important;height:40px!important;max-width:100%;object-fit:contain;flex-shrink:0;}
@media(max-height:650px){:is(#learningStructureScreen.subject-menu-polished,#numberTopScreen)>.structure-adventure{min-height:144px!important;padding-top:18px!important;}#learningStructureScreen.subject-menu-polished .structure-card{height:88px!important;min-height:88px!important;}#learningStructureScreen.subject-menu-polished{gap:12px!important;}}
/* Multiplication: concrete groups, two related equations, answers and the guide stay put. */
body.learning-polished #multiplyScreen.polished-screen:has(.meaning-buddy):not([hidden]){display:grid!important;grid-template-rows:24px minmax(130px,1fr) 70px 24px 56px 120px!important;gap:10px!important;}
body.learning-polished #multiplyScreen.polished-screen>.multiply-title{display:none!important;}
body.learning-polished #multiplyScreen.polished-screen>.multiply-sub{grid-row:1;margin:0;line-height:24px;font-size:15px;}
body.learning-polished #multiplyScreen.polished-screen>.meaning-body{display:contents!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates{grid-row:2;grid-column:1;min-height:0;box-sizing:border-box;align-self:stretch;align-content:center;gap:10px;padding:16px;background:#e1ae6e url('assets/addition-painted-v002/table-scene.webp') center bottom/cover no-repeat;border:2px solid #fff8d1;border-radius:24px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plate{min-height:0!important;height:auto!important;padding:10px 8px 24px;border:2px solid #b7cbd0;border-radius:16px;background:linear-gradient(135deg,#fff,#edf3f4,#fff);box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 5px #dbe5e7;}
body.learning-polished #multiplyScreen.polished-screen .meaning-slot{min-height:22px;height:auto;}
body.learning-polished #multiplyScreen.polished-screen .meaning-cookie{width:clamp(20px,5.8vw,34px);height:clamp(20px,5.8vw,34px);object-fit:contain;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array{align-content:center;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate{padding:6px 10px 22px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair,body.learning-polished #multiplyScreen.polished-screen .meaning-body>.meaning-product{grid-row:3;grid-column:1;margin:0!important;height:70px!important;min-height:0!important;box-sizing:border-box;}
body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair{display:grid;grid-template-rows:26px 44px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-sum{margin:0;font-size:22px;line-height:26px;font-weight:800;}
body.learning-polished #multiplyScreen.polished-screen .meaning-product{min-height:0!important;height:100%!important;box-sizing:border-box;font-size:32px!important;}
body.learning-polished #multiplyScreen.polished-screen #multiplyMessage{grid-row:4;grid-column:1;margin:0;min-height:24px;line-height:24px;font-size:17px;}
body.learning-polished #multiplyScreen.polished-screen #multiplyActions{grid-row:5;grid-column:1;height:56px!important;min-height:0!important;margin:0!important;padding:0!important;gap:8px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-choices{height:56px;gap:10px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-buddy{grid-row:6;grid-column:1;display:grid!important;grid-template-columns:82px minmax(0,1fr);gap:8px;height:120px!important;min-height:0!important;margin:0!important;padding:0!important;align-items:end;}
body.learning-polished #multiplyScreen.polished-screen .meaning-buddy>img{width:82px!important;height:94px!important;object-fit:contain;}
body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button{height:120px!important;min-height:0!important;max-height:none!important;box-sizing:border-box;border:2px solid #d1a753;border-radius:24px;background:#fffef6f5;padding:12px 12px 28px!important;color:#214f47;font-size:19px!important;line-height:1.35!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-hint-toggle{position:absolute;right:16px;transform:translateY(-32px);min-height:28px;font-size:13px;padding:2px 8px;}
/* Division: enough room below each spirit for cookies and the quantity. */
body.learning-polished #divisionLessonsScreen.division-lessons.polished-screen:has(.dl-guide):not([hidden]){display:grid!important;grid-template-rows:24px minmax(140px,1fr) 82px 24px 56px 120px!important;gap:10px!important;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-progress{grid-row:1;grid-column:1;margin:0;line-height:24px;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-world{grid-row:2;grid-column:1;display:grid;grid-template-rows:44px 58px minmax(0,1fr);gap:12px;min-height:0!important;padding:12px!important;box-sizing:border-box;border-radius:24px;background:#e1ae6e url('assets/addition-painted-v002/table-scene.webp') center bottom/cover no-repeat;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-information{font-size:18px;line-height:22px;margin:0!important;display:grid;place-items:center;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-tray{margin:0!important;min-height:0!important;height:58px!important;padding:8px!important;display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;border-radius:15px;background:#fff8ddeb;box-sizing:border-box;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-cookie{font-size:23px;line-height:26px;width:26px;height:26px;flex-shrink:0;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowls{min-height:0!important;gap:10px!important;align-items:stretch;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl{display:grid!important;grid-template-rows:46px minmax(30px,1fr) 22px;gap:6px;height:100%!important;min-height:0!important;max-height:none!important;padding:8px!important;border:2px solid #b7cbd0!important;border-radius:18px!important;background:#fffdf5!important;box-sizing:border-box;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-recipient{width:52px;height:46px;object-fit:contain;align-self:center;justify-self:center;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl-pieces{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:3px;min-height:0;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl small{font-size:16px;line-height:22px;margin:0;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equation,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equations{grid-row:3;grid-column:1;height:82px!important;min-height:0!important;display:grid;align-self:stretch;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equations{grid-template-rows:32px 48px;gap:2px;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-inverse{min-height:0!important;font-size:25px;line-height:32px;margin:0!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-equations>.dl-equation{height:48px!important;min-height:0!important;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-feedback{grid-row:4;grid-column:1;min-height:24px;height:24px;margin:0;font-size:17px;line-height:24px;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-actions{grid-row:5;grid-column:1;height:56px!important;min-height:0!important;margin:0!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-choices{height:56px!important;gap:10px;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-guide{grid-row:6;grid-column:1;display:grid!important;grid-template-columns:82px minmax(0,1fr);gap:8px;height:120px!important;min-height:0!important;margin:0!important;align-items:end;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-guide>img{width:82px!important;height:94px!important;object-fit:contain;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-dialogue-button{height:120px!important;min-height:0!important;max-height:none!important;box-sizing:border-box;padding:12px 12px 28px!important;border:2px solid #d1a753;border-radius:24px;background:#fffef6f5;color:#214f47;font-size:19px!important;line-height:1.35!important;}
body.learning-polished #divisionLessonsScreen.polished-screen[data-kind=integrated]>.dl-world{grid-template-rows:44px minmax(0,1fr) 0;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-visual{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;min-height:0;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-visual-set{padding:6px;border:2px solid #a9bf9c;border-radius:10px;background:#fffdf2;}
@media(max-height:720px){body.learning-polished #multiplyScreen.polished-screen:has(.meaning-buddy):not([hidden]),body.learning-polished #divisionLessonsScreen.division-lessons.polished-screen:has(.dl-guide):not([hidden]){grid-template-rows:22px minmax(110px,1fr) 62px 22px 48px 104px!important;gap:8px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair,body.learning-polished #multiplyScreen.polished-screen .meaning-body>.meaning-product{height:62px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair{grid-template-rows:24px 38px;}body.learning-polished #multiplyScreen.polished-screen .meaning-plates{padding:10px;gap:6px;}body.learning-polished #multiplyScreen.polished-screen .meaning-plate{padding:6px 5px 20px;}body.learning-polished #multiplyScreen.polished-screen .meaning-slot{min-height:18px;}body.learning-polished #multiplyScreen.polished-screen .meaning-cookie{width:21px;height:21px;}body.learning-polished #multiplyScreen.polished-screen .meaning-buddy,body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-guide,body.learning-polished #divisionLessonsScreen.polished-screen .dl-dialogue-button{height:104px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button,body.learning-polished #divisionLessonsScreen.polished-screen .dl-dialogue-button{font-size:17px!important;}body.learning-polished #multiplyScreen.polished-screen #multiplyActions,body.learning-polished #multiplyScreen.polished-screen .meaning-choices,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-actions,body.learning-polished #divisionLessonsScreen.polished-screen .dl-choices{height:48px!important;}body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equation,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equations{height:62px!important;}body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equations{grid-template-rows:24px 36px;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-equations>.dl-equation{height:36px!important;}body.learning-polished #divisionLessonsScreen.polished-screen>.dl-world{grid-template-rows:36px 40px minmax(0,1fr);gap:8px;padding:8px!important;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-information{font-size:16px;line-height:18px;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-tray{height:40px!important;padding:4px!important;gap:3px;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-cookie{font-size:18px;line-height:20px;width:20px;height:20px;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl{grid-template-rows:32px minmax(22px,1fr) 20px;gap:4px;padding:5px!important;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-recipient{width:40px;height:32px;}}
@media(prefers-reduced-motion:reduce){body.learning-polished *{scroll-behavior:auto!important;}}
body.learning-polished:has(:is(#learnPlayScreen,#multiplyScreen,#divisionLessonsScreen,#pictureArithmeticScreen).polished-screen) .app-header{display:grid!important;grid-template-rows:44px 64px!important;gap:12px!important;margin:0 0 14px!important;padding:0!important;min-height:0!important;max-height:none!important;}
body.learning-polished:has(:is(#learnPlayScreen,#multiplyScreen,#divisionLessonsScreen,#pictureArithmeticScreen).polished-screen) .app-header #screenTitle{height:64px!important;min-height:0!important;grid-row:2!important;}
body.learning-polished #multiplyScreen.polished-screen>#multiplyBody.multiply-body.meaning-body{display:contents!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates{height:100%!important;max-height:none!important;align-self:stretch!important;margin:0!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-buddy,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-guide,body.learning-polished #learnPlayScreen.polished-screen>.slg-guide{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen:not([hidden]){display:grid!important;grid-template-rows:38px minmax(210px,1fr) 120px!important;padding:0 0 18px!important;gap:12px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen>.lp-stage.lf-subtract{grid-row:2!important;min-height:0!important;grid-template-rows:minmax(115px,1fr) 24px 44px 56px!important;gap:10px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen>.slg-guide{grid-row:3!important;min-height:0!important;height:120px!important;grid-template-rows:120px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .slg-bubble{min-height:0!important;height:120px!important;max-height:120px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-world{background:#e1ae6e url('assets/addition-painted-v002/table-scene.webp') center bottom/cover no-repeat!important;}
#learningStructureScreen.subject-menu-polished .structure-card.structure-card{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:40px auto!important;justify-items:center;align-content:center;gap:6px!important;}
#learningStructureScreen.subject-menu-polished .structure-card::after{content:none!important;display:none!important;}
#learningStructureScreen.subject-menu-polished .structure-card strong{grid-row:2!important;grid-column:1!important;width:100%!important;max-width:none!important;text-align:center!important;font-size:clamp(15px,4vw,21px)!important;}
#learningStructureScreen.subject-menu-polished .battle-menu-illustration{display:block!important;grid-row:1!important;grid-column:1!important;position:static!important;transform:none!important;margin:0!important;}
#learningStructureScreen.subject-menu-polished .structure-card[data-route$='/basic']::before{content:'📖';font-size:30px;line-height:40px;grid-row:1;grid-column:1;}
#learningStructureScreen.subject-menu-polished .structure-card[data-route$='/column']::before{content:'✏️';font-size:30px;line-height:40px;grid-row:1;grid-column:1;}
@media(max-height:720px){body.learning-polished:has(:is(#learnPlayScreen,#multiplyScreen,#divisionLessonsScreen,#pictureArithmeticScreen).polished-screen) .app-header{grid-template-rows:44px 54px!important;gap:10px!important;margin-bottom:12px!important;}body.learning-polished:has(:is(#learnPlayScreen,#multiplyScreen,#divisionLessonsScreen,#pictureArithmeticScreen).polished-screen) .app-header #screenTitle{height:54px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen:not([hidden]){grid-template-rows:32px minmax(190px,1fr) 104px!important;gap:8px!important;padding-bottom:14px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen>.lp-stage.lf-subtract{grid-template-rows:minmax(105px,1fr) 20px 40px 48px!important;gap:6px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen>.slg-guide{height:104px!important;grid-template-rows:104px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .slg-bubble{height:104px!important;max-height:104px!important;}}
body.learning-polished #learnPlayScreen.learn.polished-screen:not([hidden]),body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen:not([hidden]),body.learning-polished #multiplyScreen.polished-screen:not([hidden]),body.learning-polished #divisionLessonsScreen.division-lessons.polished-screen:not([hidden]){height:var(--polished-height)!important;min-height:0!important;max-height:none!important;}
body.learning-polished #multiplyScreen.polished-screen #multiplyActions:has(.meaning-hint-toggle){position:relative!important;}
body.learning-polished #multiplyScreen.polished-screen #multiplyActions>.meaning-hint-toggle{position:absolute!important;top:-28px!important;bottom:auto!important;right:0!important;transform:none!important;height:24px!important;min-height:24px!important;padding:1px 8px!important;line-height:20px!important;font-size:12px!important;border-radius:10px!important;}
body.learning-polished #multiplyScreen.polished-screen:has(.meaning-hint-toggle) #multiplyMessage{max-width:55%;font-size:14px;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-world{height:100%!important;max-height:none!important;align-self:stretch!important;}
@media(max-height:720px){body.learning-polished #learnPlayScreen.learn.polished-screen>.lp-stage.lf-subtract{grid-template-rows:minmax(95px,1fr) 20px 40px 48px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-field{transform-origin:center;}}
body.learning-polished #learnPlayScreen.learn.polished-screen:not([hidden]){width:100%!important;max-width:none!important;grid-template-columns:minmax(0,1fr)!important;justify-items:stretch!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen>*{grid-column:1!important;min-width:0!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen>.lp-head{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lp-dots{display:none;}
body.learning-polished #learnPlayScreen.learn.polished-screen>.lp-stage.lf-subtract{width:100%!important;max-width:none!important;grid-template-columns:minmax(0,1fr)!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen>.slg-guide{grid-template-columns:82px minmax(0,1fr)!important;justify-items:stretch!important;align-items:end!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .slg-bubble{width:100%!important;max-width:none!important;min-width:0!important;display:block!important;align-self:stretch!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-world{width:100%!important;max-width:none!important;box-sizing:border-box;border-radius:24px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-equation,body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-controls{width:100%!important;box-sizing:border-box;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates{align-content:center!important;justify-items:stretch!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plate{align-self:center!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-slot{min-height:32px!important;}
@media(max-height:720px){body.learning-polished #multiplyScreen.polished-screen .meaning-slot{min-height:20px!important;}}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-world{grid-row:1!important;grid-column:1!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-caption{grid-row:2!important;grid-column:1!important;height:24px!important;min-height:0!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-equation{grid-row:3!important;grid-column:1!important;height:44px!important;min-height:0!important;margin:0!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-controls{grid-row:4!important;grid-column:1!important;height:56px!important;min-height:0!important;}
@media(max-height:720px){body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-caption{height:20px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-equation{height:40px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-controls{height:48px!important;}}
/* Use the approved bus illustration, with a separate window frame above the passengers. */
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-bus-unit{position:absolute;inset:0;pointer-events:none;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-bus-unit .su-item{pointer-events:auto;z-index:3!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-bus-body{left:2%!important;top:34%!important;width:76%!important;height:50%!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent url('assets/addition-painted-v002/bus.webp') center/contain no-repeat!important;z-index:2!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-bus-body::after,#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-bus-windows,#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-wheel{display:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-bus-unit::after{content:'';position:absolute;left:2%;top:34%;width:76%;height:50%;background:url('assets/addition-painted-v002/bus-frame.webp') center/contain no-repeat;z-index:4;pointer-events:none;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone){width:44px!important;height:56px!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone) .su-figure{width:34px!important;height:34px!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone) .su-figure img{width:100%!important;height:100%!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-bus-unit{animation:subtractionBusDeparture .9s ease-in forwards;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-bus-body,#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-item:not(.su-gone){animation:none!important;transition:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-bus-body{transform:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-item:not(.su-gone){transform:translate(-50%,-50%)!important;}
@keyframes subtractionBusDeparture{to{transform:translateX(105%);}}
@media(min-width:600px){#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone){width:64px!important;height:76px!important;}#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone) .su-figure{width:48px!important;height:48px!important;}}
@media(prefers-reduced-motion:reduce){#subtractionUnit1Screen[data-park-preview=true] .su-bus.su-depart .su-bus-unit{animation:none;opacity:0;}}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone) .su-figure{position:absolute!important;left:50%;top:50%;transform:translate(-50%,-50%)!important;width:28px!important;height:28px!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone){margin-top:5px;}
@media(min-width:600px){#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-item:not(.su-gone) .su-figure{width:40px!important;height:40px!important;}}
body.learning-polished #learnPlayScreen.polished-screen[data-bubble-next=true]>.lp-next{display:none!important;}
body.learning-polished #learnPlayScreen.polished-screen .slg-bubble{position:relative!important;}
body.learning-polished #learnPlayScreen.polished-screen .slg-next-tap{position:absolute;right:12px;bottom:8px;font-size:12px;line-height:18px;pointer-events:none;color:#35664e;}
body.learning-polished #learnPlayScreen.polished-screen[data-bubble-next=true] .slg-text{padding-bottom:20px;}
#subtractionUnit1Screen[data-park-preview=true] .kug-bubble .kug-text{width:100%;max-width:none;}
/* One positional hint outside the target artwork; never draw hands on faces. */
#subtractionUnit1Screen[data-park-preview=true] .su-going::after{content:none!important;display:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-going::before,#subtractionUnit1Screen[data-park-preview=true] .su-pick::before,#subtractionUnit1Screen[data-park-preview=true] .su-ready::before{content:none!important;display:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-item.su-cued .su-figure img{filter:drop-shadow(0 0 4px #ffdf76);}
#subtractionUnit1Screen[data-park-preview=true] .su-scene>.su-action-finger{position:absolute!important;right:auto!important;bottom:auto!important;width:30px;height:32px;font-size:28px!important;line-height:32px!important;z-index:40!important;pointer-events:none;animation:none!important;transform:none!important;filter:drop-shadow(0 1px 1px white);}
#subtractionUnit1Screen[data-park-preview=true] .su-result{display:none!important;}
/* The bus drives below the raised horizontal sidewalk; nobody waits in its lane. */
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-road{left:2%!important;right:auto!important;top:4%!important;width:96%!important;height:29%!important;box-sizing:border-box;border:0!important;border-bottom:5px solid #faf4e6!important;border-radius:10px 10px 2px 2px;background:repeating-linear-gradient(90deg,transparent 0 48px,#c1bbae 49px 51px),repeating-linear-gradient(0deg,#e9e3d7 0 26px,#cfc8ba 27px 29px)!important;box-shadow:0 4px #96938b!important;z-index:1!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-stop{top:5%!important;right:4%!important;z-index:5;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-gone:not(.su-transit){z-index:6!important;opacity:1!important;}
/* Give equations, answers and narration their own padding and separation. */
body.learning-polished #learnPlayScreen.learn.polished-screen:not([hidden]){grid-template-rows:38px minmax(220px,1fr) 132px!important;gap:14px!important;padding-bottom:24px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen>.lp-stage.lf-subtract{grid-template-rows:minmax(110px,1fr) 24px 52px 56px!important;gap:12px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-equation{height:52px!important;font-size:32px!important;line-height:40px!important;padding:6px 12px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-controls{height:56px!important;gap:12px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-controls button{height:56px!important;min-height:0!important;max-height:56px!important;box-sizing:border-box!important;line-height:1.2!important;padding:4px 12px!important;font-size:26px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen>.slg-guide{height:132px!important;grid-template-rows:132px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .slg-bubble{height:132px!important;max-height:132px!important;padding:14px 16px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-world{padding:18px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle{box-sizing:border-box;padding:10px!important;border-width:3px!important;border-radius:18px!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle>strong{padding:4px 8px;line-height:22px;box-sizing:border-box;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-shortage-note{margin:6px 0!important;padding:3px 8px;font-size:16px!important;line-height:22px!important;}
@media(max-height:720px){body.learning-polished #learnPlayScreen.learn.polished-screen:not([hidden]){grid-template-rows:32px minmax(200px,1fr) 112px!important;gap:10px!important;padding-bottom:18px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen>.lp-stage.lf-subtract{grid-template-rows:minmax(95px,1fr) 20px 44px 48px!important;gap:8px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-equation{height:44px!important;line-height:36px!important;font-size:28px!important;padding:4px 10px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-controls,body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-controls button{height:48px!important;max-height:48px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen>.slg-guide{height:112px!important;grid-template-rows:112px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .slg-bubble{height:112px!important;max-height:112px!important;padding:12px 14px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-sub-world{padding:12px!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle{padding:6px!important;}}
body.learning-polished #learnPlayScreen.polished-screen[data-bubble-action=true] .lf-sub-controls>.lf-sub-go{display:none!important;}
body.learning-polished #learnPlayScreen.polished-screen .slg-action-tap{position:absolute;right:12px;bottom:8px;font-size:28px;line-height:32px;pointer-events:none;}
body.learning-polished #learnPlayScreen.polished-screen:not([data-bubble-action=true]) .slg-action-tap{display:none;}
/* A fitted ten-cookie box: five fixed compartments across, two down, with a raised rim. */
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle{--ten-cell:clamp(24px,6vw,40px);width:max-content!important;max-width:100%!important;justify-self:center!important;align-self:center!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:28px auto!important;gap:8px!important;padding:10px!important;border:4px solid #b77b35!important;border-radius:13px!important;background:linear-gradient(#f3d49a,#e6b76c)!important;box-shadow:0 5px #8e5d2c,inset 0 0 0 2px #fff1c7!important;position:relative;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle>strong{font-size:15px;line-height:22px;padding:3px 6px;border-radius:7px;background:#fff4d3;color:#70461c;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-pack{display:grid!important;grid-template-columns:repeat(5,var(--ten-cell))!important;grid-template-rows:repeat(2,var(--ten-cell))!important;gap:4px!important;padding:0!important;justify-content:center!important;align-content:center!important;width:max-content!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-pack>.lf-sub-object{box-sizing:border-box;width:var(--ten-cell)!important;height:var(--ten-cell)!important;min-width:0!important;min-height:0!important;max-width:none!important;padding:2px!important;border:1px solid #b78952;border-radius:5px;background:#fff6df!important;box-shadow:inset 0 1px 2px #9b6d3230;display:grid;place-items:center;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-pack>.lf-sub-object img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-pack>.lf-prepared-space{border:1px dashed #b89463!important;background:#f6e4bd!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle.lf-open{border:4px solid #b77b35!important;background:linear-gradient(#f9e2b7,#ebc783)!important;}
body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle.lf-open::before,body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle.lf-open::after{display:none!important;content:none!important;}
@media(max-height:720px){body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle{--ten-cell:22px;padding:7px!important;gap:5px!important;grid-template-rows:24px auto!important;}body.learning-polished #learnPlayScreen.learn.polished-screen .lf-ten-bundle>strong{font-size:13px;line-height:20px;padding:2px 4px;}}
/* Subtraction picture: a visible eater, bounded food, and equal breathing space. */
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]:not([hidden]){grid-template-rows:24px minmax(145px,1fr) 52px 56px 132px!important;gap:14px!important;padding-bottom:24px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-world.pa-story{grid-template-columns:minmax(0,1fr) clamp(92px,20vw,136px)!important;padding:18px!important;gap:16px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-eater{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(90px,1fr) 26px;gap:8px;justify-items:center;align-self:center;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-eater>img{width:100%!important;height:auto!important;aspect-ratio:1/1;max-height:150px!important;object-fit:contain;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-actor-note{position:static!important;font-size:16px;line-height:24px;text-align:center;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-eaten{border:0!important;background:transparent!important;box-shadow:none!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-crumbs{position:absolute;left:50%;top:50%;bottom:auto!important;transform:translate(-50%,-50%);width:30px;height:22px;line-height:22px;font-size:15px;text-align:center;color:#ad7d42;background:#fff6df;border:1px dashed #d4b78b;border-radius:50%;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-equation{height:52px!important;font-size:32px!important;line-height:40px!important;padding:6px 12px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-actions{height:56px!important;gap:12px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-actions button{height:56px!important;min-height:0!important;max-height:56px!important;box-sizing:border-box!important;padding:4px 10px!important;line-height:1.2!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-guide,body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-guide-bubble{height:132px!important;min-height:0!important;max-height:132px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-guide-bubble{padding:14px 16px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-munch-heart{position:absolute;right:0;top:0;color:#e8a053;font-size:24px;line-height:28px;pointer-events:none;animation:subtractionMunchHeart .6s ease-out both;}
@keyframes subtractionMunchHeart{from{opacity:0;transform:translateY(5px) scale(.6)}35%{opacity:1}to{opacity:0;transform:translateY(-12px) scale(1)}}
body.learning-polished #learnPlayScreen.polished-screen .slg-next-tap{font-size:28px;line-height:32px;}
/* Division's menu starts with its actual two choices, like the other subjects. */
#divisionLessonsScreen.division-lessons[data-phase=menu]>.dl-guide{display:none!important;}
#divisionLessonsScreen.division-lessons[data-phase=menu]{height:auto!important;min-height:0!important;background:transparent!important;padding:12px 8px!important;}
#divisionLessonsScreen.division-lessons[data-phase=menu] .dl-units{margin:0!important;gap:14px;}
@media(max-height:720px){body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]:not([hidden]){grid-template-rows:22px minmax(120px,1fr) 44px 48px 112px!important;gap:10px!important;padding-bottom:18px!important;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-world.pa-story{grid-template-columns:minmax(0,1fr) 84px!important;gap:10px!important;padding:12px!important;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-eater{grid-template-rows:84px 24px;gap:5px;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-actor-note{font-size:14px;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-equation{height:44px!important;font-size:28px!important;line-height:36px!important;padding:4px 10px!important;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-actions,body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-actions button{height:48px!important;max-height:48px!important;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-guide,body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-guide-bubble{height:112px!important;max-height:112px!important;}body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-guide-bubble{padding:12px 14px!important;}}
@media(prefers-reduced-motion:reduce){.pa-munch-heart{display:none!important;animation:none!important;}}
/* Stable full-width multiplication canvas in every phase. */
body.learning-polished #multiplyScreen.polished-screen:has(.meaning-buddy):not([hidden]){width:100%!important;max-width:none!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:24px minmax(145px,1fr) 76px 24px 56px 132px!important;gap:12px!important;padding:0 0 28px!important;justify-items:stretch!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates,body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair,body.learning-polished #multiplyScreen.polished-screen .meaning-body>.meaning-product,body.learning-polished #multiplyScreen.polished-screen #multiplyActions,body.learning-polished #multiplyScreen.polished-screen .meaning-buddy{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;justify-self:stretch!important;grid-column:1!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-content:center!important;justify-content:center!important;column-gap:12px!important;row-gap:12px!important;padding:18px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates[data-count='1']{grid-template-columns:minmax(0,1fr)!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates[data-count='2']{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates[data-count='4']{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates.meaning-array{grid-template-columns:minmax(0,1fr)!important;row-gap:8px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plate{min-height:100px!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;grid-auto-rows:minmax(28px,auto);gap:6px!important;padding:12px 10px 25px!important;align-content:center!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate{min-height:52px!important;padding:6px 10px 20px!important;grid-auto-rows:26px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-empty{border:0!important;background:none!important;outline:0!important;box-shadow:none!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-empty::before,body.learning-polished #multiplyScreen.polished-screen .meaning-empty::after{display:none!important;content:none!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-cookie{width:clamp(28px,6vw,42px)!important;height:clamp(28px,6vw,42px)!important;max-width:100%!important;object-fit:contain;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-cookie{width:26px!important;height:26px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair,body.learning-polished #multiplyScreen.polished-screen .meaning-body>.meaning-product{height:76px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair{grid-template-rows:28px 48px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-buddy,body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button{height:132px!important;min-height:0!important;max-height:132px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button{width:100%!important;max-width:none!important;box-sizing:border-box!important;padding:14px 16px 34px!important;}
/* Keep a real bottom margin on all currently restyled learning guides. */
body.learning-polished #divisionLessonsScreen.division-lessons.polished-screen:not([hidden]){padding-bottom:28px!important;}
#additionUnit1Screen.au:not(.au-clear):not([hidden]),#additionCarryScreen.carry-learning[data-phase]:not([data-phase=clear]):not([hidden]),#pictureArithmeticScreen.picture-arithmetic[data-op=add]:not([data-phase=clear]){padding-bottom:28px!important;}
/* Subject choices follow a single clear vertical reading order. */
#learningStructureScreen.subject-menu-polished .structure-cards{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
#learningStructureScreen.subject-menu-polished .structure-card.structure-card{height:64px!important;min-height:64px!important;grid-template-columns:48px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;column-gap:12px!important;padding:8px 14px!important;}
#learningStructureScreen.subject-menu-polished .structure-card strong{grid-row:1!important;grid-column:2!important;font-size:clamp(17px,4.5vw,23px)!important;text-align:left!important;}
#learningStructureScreen.subject-menu-polished .battle-menu-illustration,#learningStructureScreen.subject-menu-polished .structure-card[data-route$='/basic']::before,#learningStructureScreen.subject-menu-polished .structure-card[data-route$='/column']::before{grid-row:1!important;grid-column:1!important;}
@media(max-height:720px){body.learning-polished #multiplyScreen.polished-screen:has(.meaning-buddy):not([hidden]){grid-template-rows:22px minmax(120px,1fr) 64px 22px 48px 112px!important;gap:10px!important;padding-bottom:20px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-plates{padding:12px!important;gap:8px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-plate{min-height:76px!important;grid-auto-rows:minmax(20px,auto);padding:8px 6px 21px!important;gap:4px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-cookie{width:24px!important;height:24px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate{min-height:38px!important;padding:4px 6px 17px!important;grid-auto-rows:20px;}body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-cookie{width:20px!important;height:20px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair,body.learning-polished #multiplyScreen.polished-screen .meaning-body>.meaning-product{height:64px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-equation-pair{grid-template-rows:26px 38px;}body.learning-polished #multiplyScreen.polished-screen .meaning-buddy,body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button{height:112px!important;max-height:112px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button{padding:12px 14px 30px!important;}body.learning-polished #divisionLessonsScreen.division-lessons.polished-screen:not([hidden]){padding-bottom:20px!important;}#additionUnit1Screen.au:not(.au-clear):not([hidden]),#additionCarryScreen.carry-learning[data-phase]:not([data-phase=clear]):not([hidden]),#pictureArithmeticScreen.picture-arithmetic[data-op=add]:not([data-phase=clear]){padding-bottom:20px!important;}}
@media(max-height:650px){#learningStructureScreen.subject-menu-polished .structure-card.structure-card{height:60px!important;min-height:60px!important;}#learningStructureScreen.subject-menu-polished .structure-cards{gap:10px!important;}}
/* Dense group diagrams fit the same reserved world instead of enlarging it. */




body.learning-polished #multiplyScreen.polished-screen .meaning-plates.meaning-array{padding:12px!important;gap:6px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate{min-height:44px!important;padding:5px 8px 16px!important;grid-auto-rows:24px;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-slot{min-height:24px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-cookie{width:24px!important;height:24px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate-label{font-size:12px!important;line-height:14px!important;bottom:2px;}
@media(max-height:720px){body.learning-polished #multiplyScreen.polished-screen:has(.meaning-buddy):not([hidden]){grid-template-rows:22px minmax(120px,1fr) 64px 22px 48px 104px!important;gap:8px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-buddy,body.learning-polished #multiplyScreen.polished-screen .meaning-dialogue-button{height:104px!important;max-height:104px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-plates.meaning-array{padding:8px!important;gap:4px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate{min-height:32px!important;padding:3px 4px 14px!important;border-width:1px!important;grid-auto-rows:16px;}body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-slot{min-height:16px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-cookie{width:16px!important;height:16px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate-label{font-size:11px!important;line-height:13px!important;}}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-gone:not(.su-transit) .su-figure{position:absolute!important;left:50%!important;top:50%!important;width:48px!important;height:48px!important;transform:translate(-50%,-50%)!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-gone:not(.su-transit) .su-figure img{width:48px!important;height:48px!important;max-width:none!important;max-height:none!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;object-fit:contain;}
/* Empty capacity markers share the filled cookie's centre and scale. */
body.learning-polished #multiplyScreen.polished-screen .meaning-empty{display:flex!important;align-items:center!important;justify-content:center!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-empty::before{display:block!important;content:''!important;position:static!important;width:clamp(28px,6vw,42px);height:clamp(28px,6vw,42px);box-sizing:border-box;border:1px dashed #d5c9b2;border-radius:50%;background:#fffaf0;}
@media(max-height:720px){body.learning-polished #multiplyScreen.polished-screen .meaning-empty::before{width:24px;height:24px;}}
/* Keep the owned template independent of legacy named areas. */
body.learning-polished #multiplyScreen.polished-screen:has(.meaning-buddy):not([hidden]){grid-template-areas:none!important;}
body.learning-polished #multiplyScreen.polished-screen #multiplyActions{grid-template-areas:none!important;grid-template-columns:minmax(0,1fr)!important;}
/* The old answer-row placeholder must not become a second column next to real answers. */
body.learning-polished #multiplyScreen.polished-screen:has(.meaning-buddy)::after{content:none!important;display:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-bus .su-road{background:#eed9ae url('assets/subtraction-park-preview-v001/sidewalk.webp') center/100% 100% no-repeat!important;border:0!important;box-shadow:0 3px 2px #6a615a66!important;border-radius:6px 6px 2px 2px!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub]>.pa-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-story-go{grid-column:1/-1!important;}
body.learning-polished #pictureArithmeticScreen.picture-arithmetic.polished-screen[data-op=sub] .pa-answer{width:100%!important;min-width:0!important;}
body.learning-polished #learnPlayScreen.polished-screen .lf-sub-controls>div:has(button){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;width:100%!important;height:100%!important;}
body.learning-polished #learnPlayScreen.polished-screen .lf-sub-controls button{min-width:0!important;}
body.learning-polished #learnPlayScreen.polished-screen:has(.lf-subtract.slg-speaking) .slg-action-tap,body.learning-polished #learnPlayScreen.polished-screen:has(.lf-subtract.slg-more) .slg-action-tap,body.learning-polished #learnPlayScreen.polished-screen:has(.lf-subtract.slg-speaking) .slg-next-tap,body.learning-polished #learnPlayScreen.polished-screen:has(.lf-subtract.slg-more) .slg-next-tap{visibility:hidden;}
body.learning-polished #learnPlayScreen.polished-screen .slg-bubble{padding-right:46px!important;}
body.learning-polished #learnPlayScreen.polished-screen[data-bubble-next=true] .slg-text{padding-bottom:0!important;}
body.learning-polished #multiplyScreen.polished-screen #multiplyActions>.meaning-choices{width:100%!important;height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-choice{box-sizing:border-box!important;height:100%!important;min-height:0!important;max-height:100%!important;min-width:0!important;padding:4px 8px!important;line-height:1.15!important;display:grid!important;place-items:center;align-self:stretch!important;font-size:clamp(23px,5vw,30px)!important;}

/* Legacy button margin must not push answers into the dialogue row. */
body.learning-polished #multiplyScreen.polished-screen .meaning-choice{margin:0!important;}


/* Pointer taps do not need the browser's dark focus ring. Keyboard focus remains visible. */
body.subtraction-park-preview #subtractionUnit1Screen button:focus:not(:focus-visible),
body.learning-polished #pictureArithmeticScreen[data-op=sub] button:focus:not(:focus-visible),
body.learning-polished #learnPlayScreen:has(.lf-subtract) button:focus:not(:focus-visible){outline:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-item{border:0!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent;}
#subtractionUnit1Screen[data-park-preview=true] .su-item:focus:not(:focus-visible){outline:none!important;}
#subtractionUnit1Screen[data-park-preview=true] .su-item:focus-visible,
body.learning-polished #pictureArithmeticScreen[data-op=sub] button:focus-visible,
body.learning-polished #learnPlayScreen:has(.lf-subtract) button:focus-visible{outline:3px solid #e8ae22!important;outline-offset:3px;}
#subtractionUnit1Screen[data-park-preview=true] .su-park .su-home{top:2%!important;height:34%;width:17%;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;}
#subtractionUnit1Screen[data-park-preview=true] .su-park .su-home img{height:calc(100% - 24px);min-height:0;width:100%;margin:0 0 4px;object-fit:contain;}
#subtractionUnit1Screen[data-park-preview=true] .su-park .su-home:after{flex:0 0 auto;padding:3px 4px;font-size:clamp(10px,2.9vw,15px);line-height:1.2;white-space:nowrap;}
#subtractionUnit1Screen[data-park-preview=true] .su-park .su-gone:not(.su-transit){width:var(--su-return-size);height:var(--su-return-size);min-width:0;min-height:0;padding:0;}
#subtractionUnit1Screen[data-park-preview=true] .su-park .su-gone:not(.su-transit) .su-figure,
#subtractionUnit1Screen[data-park-preview=true] .su-park .su-gone:not(.su-transit) .su-figure img{position:absolute!important;left:50%;top:50%;transform:translate(-50%,-50%)!important;width:var(--su-return-size)!important;height:var(--su-return-size)!important;object-fit:contain;}

/* The missing amount is a separate intermediate question, not the subtraction answer. */
body.learning-polished #learnPlayScreen.polished-screen .lf-sub-actor:has(.lf-shortage-note){align-self:center;transform:translateY(-10px);gap:4px;}
body.learning-polished #learnPlayScreen.polished-screen .lf-sub-actor .lf-shortage-note{margin:0!important;padding:4px 2px!important;font-size:clamp(13px,3vw,17px)!important;line-height:1.3!important;white-space:nowrap;color:#5f481c;}
body.learning-polished #learnPlayScreen.polished-screen .lf-sub-field:has(.lf-shortage-row){gap:12px!important;align-self:center;}
body.learning-polished #learnPlayScreen.polished-screen .lf-loose.lf-shortage-row{grid-template-columns:repeat(var(--wanted),minmax(0,1fr))!important;grid-template-rows:auto!important;width:100%!important;gap:4px!important;justify-items:center;align-items:center;}
body.learning-polished #learnPlayScreen.polished-screen .lf-loose.lf-shortage-row>.lf-sub-object{width:100%!important;max-width:36px!important;height:auto!important;aspect-ratio:1;min-width:0!important;min-height:0!important;box-sizing:border-box;}
body.learning-polished #learnPlayScreen.polished-screen .lf-loose.lf-shortage-row>.lf-sub-object img{width:100%;height:100%;object-fit:contain;}
body.learning-polished #learnPlayScreen.polished-screen [data-phase=shortage] .lf-shortage-slot{border:3px dashed #d16b13!important;background:#fff4b0!important;box-shadow:0 0 0 3px #fff9;animation:lpMissing 1.8s ease-in-out infinite;}
body.learning-polished #learnPlayScreen.polished-screen [data-phase=shortage] .lf-sub-equation{font-size:clamp(20px,5vw,30px)!important;color:#9e3a20!important;}
@keyframes lpMissing{50%{background:#ffd76d;box-shadow:0 0 0 4px #ffbd4890;}}
@media(prefers-reduced-motion:reduce){body.learning-polished #learnPlayScreen.polished-screen [data-phase=shortage] .lf-shortage-slot{animation:none;}}
body.learning-polished #pictureArithmeticScreen[data-op=sub] button,body.learning-polished #learnPlayScreen:has(.lf-subtract) button{-webkit-tap-highlight-color:transparent;}

/* Fit whole groups inside the reserved table, then size cookies to the actual cells. */
body.learning-polished #multiplyScreen.polished-screen .meaning-plates{height:100%!important;min-height:0!important;grid-template-rows:minmax(0,1fr)!important;align-content:stretch!important;align-items:stretch!important;padding:14px!important;gap:12px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates[data-count='4']:not(.meaning-array){grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates.meaning-array{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(var(--group-count),minmax(0,1fr))!important;padding:12px!important;gap:8px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates .meaning-plate{min-height:0!important;height:100%!important;box-sizing:border-box!important;grid-template-columns:repeat(var(--plate-cols),minmax(0,1fr))!important;grid-template-rows:repeat(var(--plate-rows),minmax(0,1fr))!important;grid-auto-rows:minmax(0,1fr)!important;padding:8px 10px 23px!important;gap:6px!important;align-content:stretch!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates.meaning-array .meaning-plate{padding:5px 10px!important;gap:4px!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-array .meaning-plate-label{display:none!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates .meaning-slot{min-height:0!important;min-width:0!important;height:100%!important;display:grid!important;place-items:center;position:relative;background:transparent!important;border:0!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates .meaning-cookie{width:var(--cookie-fit,32px)!important;height:var(--cookie-fit,32px)!important;max-width:none!important;max-height:none!important;object-fit:contain;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates .meaning-empty:before,body.learning-polished #multiplyScreen.polished-screen .meaning-plates .meaning-empty:after{content:none!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-plates .meaning-empty{outline:none!important;box-shadow:none!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-empty{background:none!important;}
body.learning-polished #multiplyScreen.polished-screen .meaning-sum{color:#16558b!important;}
@media(max-height:720px){body.learning-polished #multiplyScreen.polished-screen .meaning-plates{padding:10px!important;gap:8px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-plates .meaning-plate{padding:5px 6px 18px!important;gap:3px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-plates.meaning-array{padding:8px!important;gap:6px!important;}body.learning-polished #multiplyScreen.polished-screen .meaning-plates.meaning-array .meaning-plate{padding:3px 6px!important;}}

/* Division: give cookies directly to visible spirits, without a table or plate frame. */
body.learning-polished #divisionLessonsScreen.division-lessons.polished-screen:not([hidden]){grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:none!important;justify-items:stretch!important;}
body.learning-polished #divisionLessonsScreen.polished-screen:after{content:none!important;display:none!important;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-world,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equation,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-equations,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-actions,body.learning-polished #divisionLessonsScreen.polished-screen>.dl-guide{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box;justify-self:stretch;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-world{background:transparent!important;border:0!important;box-shadow:none!important;padding:8px!important;grid-template-rows:32px 48px minmax(0,1fr)!important;gap:10px!important;}
body.learning-polished #divisionLessonsScreen.polished-screen[data-kind=integrated]>.dl-world{grid-template-rows:32px minmax(0,1fr) 0!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-information{font-size:clamp(16px,3vw,20px)!important;line-height:1.3!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-tray{height:48px!important;background:#ffffffb8!important;border:0!important;padding:6px!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl{border:0!important;box-shadow:none!important;background:transparent!important;grid-template-rows:minmax(36px,1fr) minmax(28px,.55fr) 22px!important;padding:4px!important;gap:6px!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-recipient{width:100%!important;height:100%!important;max-height:100px!important;object-fit:contain;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl-pieces{gap:4px!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl small{background:#fff9dfd9;border-radius:10px;padding:0 8px;justify-self:center;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-choices button{box-sizing:border-box;height:100%!important;min-height:0!important;margin:0!important;padding:4px 8px!important;line-height:1.2!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-visual{display:grid!important;grid-template-columns:repeat(var(--group-cols),minmax(0,1fr))!important;grid-template-rows:repeat(var(--group-rows),minmax(0,1fr))!important;width:100%!important;height:100%!important;min-height:0!important;gap:10px!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-visual-set{display:grid!important;grid-template-columns:repeat(var(--piece-cols),minmax(0,1fr))!important;grid-template-rows:var(--recipient-fit) repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-content:start;justify-items:center;align-items:center;min-height:0;min-width:0;padding:4px!important;border:0!important;border-radius:16px;background:#ffffff50!important;gap:3px;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-recipient{grid-column:1/-1;width:100%;height:var(--recipient-fit);object-fit:contain;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-dot{display:block!important;width:var(--piece-fit)!important;height:var(--piece-fit)!important;line-height:1!important;font-size:var(--piece-fit)!important;border:0!important;background:none!important;border-radius:0!important;box-shadow:none!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-dot:before,body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-dot:after{content:none!important;}
@media(max-height:720px){body.learning-polished #divisionLessonsScreen.polished-screen>.dl-world{padding:4px!important;gap:6px!important;grid-template-rows:28px 40px minmax(0,1fr)!important;}body.learning-polished #divisionLessonsScreen.polished-screen[data-kind=integrated]>.dl-world{grid-template-rows:28px minmax(0,1fr) 0!important;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-tray{height:40px!important;}body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-visual{gap:6px!important;}}
.nq-bracket-screen>.nq-link{display:none!important;}

@media(max-height:720px){body.learning-polished #learnPlayScreen.polished-screen .lf-sub-actor:has(.lf-shortage-note){transform:translateY(-4px);}}
body.learning-polished #learnPlayScreen.polished-screen .lf-gather-flight{grid-template-columns:repeat(var(--wanted,5),minmax(0,1fr))!important;gap:4px!important;} body.learning-polished #learnPlayScreen.polished-screen .lf-gather-flight .lf-sub-object{height:auto!important;max-width:36px!important;aspect-ratio:1;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-world{grid-template-columns:minmax(0,1fr)!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-world:after{content:none!important;display:none!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-information{grid-column:1!important;grid-row:1!important;width:100%!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-tray{grid-column:1!important;grid-row:2!important;width:100%!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowls{grid-column:1!important;grid-row:3!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;grid-template-rows:minmax(0,1fr)!important;margin:0!important;padding:0!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-group-visual{grid-column:1!important;grid-row:2!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-hint-slot{grid-column:1!important;grid-row:3!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl>small{position:static!important;inset:auto!important;transform:none!important;grid-row:3;line-height:22px!important;height:22px!important;margin:0!important;} body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl-pieces{position:static!important;grid-row:2;} body.learning-polished #divisionLessonsScreen.polished-screen .dl-recipient{grid-row:1;}
body.learning-polished #divisionLessonsScreen.polished-screen>.dl-world{height:100%!important;max-height:100%!important;align-self:stretch!important;}

body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl{grid-template-rows:minmax(0,1fr) minmax(0,.55fr) 20px!important;gap:4px!important;}
body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl>small{height:20px!important;line-height:20px!important;}
@media(max-height:720px){body.learning-polished #divisionLessonsScreen.polished-screen .dl-bowl .dl-cookie{width:20px!important;height:20px!important;font-size:19px!important;line-height:20px!important;}}

/* Keep the two ways to start each arithmetic grid in a clear vertical order. */
#addSubMasuMenuScreen .sam-level-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
#addSubMasuMenuScreen .sam-level-actions>.sam-button{width:100%!important;min-width:0!important;min-height:48px!important;box-sizing:border-box;padding:10px 12px!important;white-space:normal!important;line-height:1.3!important;}
#courseMasuScreen .cm-size-choice{display:flex!important;flex-direction:column!important;gap:10px!important;}
#courseMasuScreen .cm-size-choice>.fm-button{width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;box-sizing:border-box;padding:10px 12px!important;white-space:normal!important;line-height:1.3!important;}

/* Subject menus: cancel the legacy negative margin so adventure and menu cards share their center. */
:is(#learningStructureScreen.subject-menu-polished,#numberTopScreen) > .structure-adventure { margin-inline: 0 !important; }

/* Map-only shortcut: no layout shift, 44px target, hidden at the top. */
.adv-scroll-top:not([hidden]){position:fixed;z-index:25;min-height:44px;max-width:calc(100vw - 24px);padding:10px 14px;border:2px solid #c79c35;border-radius:16px;background:linear-gradient(#fff6be,#f4ce61);color:#233e46;font:800 14px/20px sans-serif;box-shadow:0 3px 0 #765e2d;touch-action:manipulation;}
.adv-scroll-top[hidden]{display:none!important;}
.adv-scroll-top:focus-visible{outline:3px solid #1b7596;outline-offset:3px;}

/* Compact two-line label leaves space for map names and current-location flags. */
.adv-scroll-top:not([hidden]){width:56px;min-height:52px;padding:5px 6px;white-space:pre-line;line-height:18px;font-size:13px;box-sizing:border-box;}
