/* MADA V108 — curriculum controls, easier song library and visible teacher answers. */
.v108-games-level-heading{grid-column:1/-1;display:flex;gap:8px 18px;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:15px 19px;margin:15px 0 2px;border-radius:18px;background:#eef3fc;border:1px solid #cad8ed;color:#172b46}
.v108-games-level-heading strong{font-size:clamp(17px,2.4vw,23px);font-weight:900}.v108-games-level-heading small{color:#344966;font-size:13px}.v108-games-level-heading[hidden]{display:none!important}
body[data-mada-page="musicgames"] .game-card{color:#142840;background:#fff;border:2px solid #dce7f5;min-height:175px}
body[data-mada-page="musicgames"] .game-card b{color:#152943;font-weight:900}
body[data-mada-page="musicgames"] .game-card small{color:#384e6b}
body[data-mada-page="musicgames"] .game-level-legend button{min-width:65px}
.game-admin-row.v108-hidden-game{background:#faf0f0;border-color:#e2aaaa;opacity:.7}
#gameAdminSearch{display:block;width:min(100%,420px);margin-block:10px;font-size:15px}
.game-admin-toggles{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.game-admin-toggles select{min-width:185px;max-width:100%;font-size:14px;color:#1b304e;background:white;border:1px solid #bacbe0;border-radius:10px;padding:10px}
.v108-attempt-details{display:grid;gap:10px;max-height:60vh;overflow:auto}
.v108-attempt-details article{margin:0;padding:16px;background:#fff}
.v108-attempt-details .success{color:#136444}.v108-attempt-details .error{color:#992e33}
#quiz .question{background:#f9fbff;padding:16px;border-radius:17px;border:1px solid #dce6f5;margin:13px 0}
#quiz .question h3{color:#172a47;margin-bottom:14px}
#quiz .choice{background:#fff;color:#1e3653;border-radius:12px;margin:7px 0;padding:12px;border:1px solid #d2deec}
#quiz button[type="submit"]{font-weight:800;min-height:48px}
.v108-song-action{background:#fff8e8;border:1px solid #f4dfb1}
.number-library-tools{padding:18px!important}.number-library-tools h2{margin:0 0 6px;color:#172f4c}.number-library-tools p{margin:0 0 14px}
.number-level-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 13px;scrollbar-width:thin}
.number-level-tabs button{flex:none;min-height:43px;white-space:nowrap;border-radius:12px;color:#183455;background:#eff4ff}
.number-level-tabs button.selected{background:#1a6fbd!important;color:white!important}
.number-library{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.number-library .number-lesson-card{min-width:0;display:grid!important;grid-template-columns:90px minmax(0,1fr);min-height:142px;overflow:hidden;background:white;border:1px solid #d9e4f5;box-shadow:0 7px 15px rgba(28,58,100,.05)}
.number-library .number-lesson-card[hidden]{display:none!important}
.number-library .number-card-art{min-height:100%;border-radius:0;display:flex;justify-content:center;align-items:center;flex-direction:column}
.number-library .number-card-art span{font-size:32px}.number-library .cardbody{min-width:0;padding:12px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.number-library .cardbody h2{font-size:clamp(15px,1.5vw,19px);color:#172c47;line-height:1.35;margin:0;overflow-wrap:anywhere}
.number-library .cardbody p{margin:0;font-size:12px;color:#52657f}
.number-library .cardbody>small{display:none}
.number-library .cardfooter{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0 0}
.number-library .cardfooter button{min-height:39px;font-weight:800;flex:1}
.number-library .cardfooter .badge{font-size:10px}
.v108-number-return{position:sticky;top:max(0px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;z-index:75;border-bottom:1px solid #d9e5f4;background:rgba(248,251,255,.97);backdrop-filter:blur(10px);color:#1e334e}
.v108-number-return button{min-height:42px;font-size:14px;font-weight:800;white-space:nowrap;background:#f2f5fc;color:#1e3551;border:1px solid #bdcee4}
.v108-number-return b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:63%}
@media(max-width:740px){
 .number-library{grid-template-columns:minmax(0,1fr)}
 .number-library .number-lesson-card{grid-template-columns:83px minmax(0,1fr);min-height:125px}
 .number-library .cardbody{padding:10px}
 .number-library .number-card-art span{font-size:27px}
 .v108-number-return{padding:8px 11px}
 .v108-number-return b{font-size:12px;max-width:53%}
 .v108-games-level-heading{padding:12px}
 .game-admin-toggles{align-items:stretch}
}
@media(orientation:landscape) and (max-height:530px){
 .v108-number-return{position:relative;z-index:2;padding:5px 9px}.v108-number-return button{min-height:32px}
}

/* Follow HTML hidden semantics even when legacy CSS forces display:grid/flex. */
.number-learning-journey[hidden],.v108-games-level-heading[hidden],.v108-games-level-heading button[hidden],.game-card[hidden]{display:none!important}
.number-hero p,.number-hero h1{color:#1b2f4c!important;text-shadow:none!important}
.v108-game-search{padding:16px 18px!important;margin-bottom:16px}.v108-game-search label{font-size:15px;color:#243b56;font-weight:800}.v108-game-search input{width:100%;min-height:48px;margin-top:8px;border:1px solid #b6cbdf;border-radius:12px;background:#fff;color:#152f4d}.v108-game-search p{font-size:12px;color:#53687c;margin-top:8px}
.v108-games-level-heading button{min-height:38px;white-space:nowrap;color:#1b4368;background:#fff}
.v108-games-level-heading small{flex-basis:100%}
