#kdModeRule>span{min-width:0;flex:1}#kdModeRule .kdStarGoalButton{flex:none;padding:6px 5px;min-height:29px;border:1px solid #a18143;border-radius:9px;background:#211d15;color:#eac875;font-size:10px;letter-spacing:0}
.kdLessonNotice{display:flex;align-items:center;gap:7px;width:100%;margin:0;padding:7px 9px;border:1px solid #7b643e;border-radius:10px;background:#211d15;color:#e6cb8e}.kdLessonNotice>span{flex:1;min-width:0}.kdLessonNotice b,.kdLessonNotice small{display:block;font-size:9px;line-height:1.5}.kdLessonNotice button{padding:8px;min-height:32px;font-size:9px;border:1px solid #927743;border-radius:8px;background:#171b1b;color:#ead19d}
.kdLearningOverlay{position:fixed;inset:0;z-index:25000;background:#000d;display:grid;place-items:center;padding:16px}.kdLearningCard{position:relative;width:min(100%,430px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:23px 18px 18px;border:1px solid #c29d58;border-radius:20px;background:linear-gradient(150deg,#282116,#0c1215);color:#e9d9b6;box-sizing:border-box}.kdLearningCard h2{font:24px Georgia,serif;margin:17px 30px 12px 0}.kdLearningCard p{font-size:12px;line-height:1.65}.kdLearningClose{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;border:1px solid #a8894d;background:#141a1c;color:#e6c686;font-size:23px}.kdLearningContinue,.kdLessonPlay{display:block;width:100%;min-height:42px;border-radius:10px;padding:10px;margin-top:12px;border:1px solid #a98a4c;background:linear-gradient(120deg,#efcf8b,#ad813b);color:#241c10;font-size:12px;font-weight:700}.kdLessonPlay{background:#171d1e;color:#e6c986}.kdLessonPhase{display:block;font-size:10px;letter-spacing:1px;text-align:center;margin:14px 0 9px}.kdLessonBoard{display:grid;gap:3px;max-width:320px;margin:auto;background:#05090c;padding:6px;border:1px solid #806a3d;border-radius:10px;direction:ltr}.kdLessonTile{position:relative;aspect-ratio:1;min-width:0;display:grid;place-items:center;overflow:hidden}.kdLessonTile svg{width:100%;height:100%}.kdLessonTile small{position:absolute;top:0;right:0;font-size:10px}.kdLessonTile.kdLessonAffected{outline:1px solid var(--skin-metal,#edca78);outline-offset:-2px}.kdLessonTile.kdLessonSelected{outline:2px solid #fff1be;outline-offset:-3px}.kdLearningCard .kdLessonSafe{font-size:10px;color:#b5b8a7}.kdStarGoals h3{font-size:13px;color:#edcc83;margin:18px 0 6px}.kdStarGoals p{margin:5px 0}.kdStarFeedback{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:12px;margin:10px 0;border:1px solid #655632;border-radius:12px;background:#0b1112;color:#cfbc91;font-size:10px;text-align:left}.kdStarFeedback>strong{grid-column:1/-1;font-size:12px}.kdStarFeedback .met{color:#c4d5a7}.kdStarFeedback .missed{color:#e0b485}
@media(orientation:landscape) and (max-height:550px){.kdLessonNotice{padding:4px 8px}.kdLearningCard{max-width:600px}.kdLessonBoard{max-width:200px}}

.kdLessonBoard.kdMiniBoard{position:relative;isolation:isolate;inset:auto;width:100%;box-sizing:border-box;max-width:320px;padding:7px;gap:2px;box-shadow:none;overflow:visible}.kdLessonBoard>.kdBoardOrnament{inset:-7px;width:calc(100% + 14px);height:calc(100% + 14px)}.kdLessonBoard .tile{padding:0;margin:0;pointer-events:none}

/* Reserve the width of all three stars; the shared help-button rule is 25px wide. */
html[data-kd-theme] #kdGame #kdModeRule>.kdStarGoalButton{box-sizing:border-box;flex:0 0 auto;width:auto!important;min-width:50px;height:29px!important;min-height:29px;display:grid;place-items:center;padding:4px!important;font-size:12px!important;line-height:1!important;letter-spacing:0;white-space:nowrap}
#kdGame #kdModeRule{gap:6px!important}#kdModeRule>span{overflow-wrap:anywhere}
/* Long translated star targets and lesson actions wrap without covering the close control. */
.kdLearningCard h2{overflow-wrap:anywhere;margin-inline-end:34px}.kdLearningCard .kdEyebrow{display:block;padding-inline-end:36px;overflow-wrap:anywhere}.kdLearningCard button{overflow-wrap:anywhere}.kdStarGoals p,.kdStarFeedback span{overflow-wrap:anywhere}.kdLearningClose{min-width:44px;min-height:44px}.kdLessonNotice button{min-height:44px;min-width:44px}.kdLessonNotice small{overflow-wrap:anywhere}
