/* Listening-first layouts. Text remains available for captions and assistive tech. */
[hidden]{display:none!important}
.mg-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.mg-welcome h1{margin:8px 0}.mg-welcome>.mg-art{width:90px;color:#6c4eb7;background:#eee7ff;border-radius:28px;padding:12px}.mg-art{width:88px;height:88px;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.mg-next-lesson{display:grid;grid-template-columns:minmax(150px,.7fr) 1.3fr;gap:28px;align-items:center;padding:30px;background:#f2ecff;border:1px solid #ded0fa;border-radius:28px;margin-bottom:24px}.mg-next-picture{display:grid;place-items:center;min-height:220px;border-radius:24px;background:#dfedba;color:#514376}.mg-next-picture .mg-art{width:150px;height:150px}.mg-next-lesson h2{font-size:clamp(1.5rem,3vw,2rem);margin:16px 0}.mg-home-paths{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.mg-home-paths>a{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-decoration:none;color:inherit;background:white;border:1px solid #e4dfed;border-radius:20px;padding:20px;min-height:190px}.mg-home-paths .mg-art{width:46px;height:46px;color:#7056a8}.mg-home-paths strong{font-size:1.05rem}.mg-home-paths span{font-size:.85rem;color:#615a6e}.mg-more{margin:24px 0;padding:16px;border:1px solid #e4dfed;border-radius:14px}.mg-more summary,.mg-caption summary{cursor:pointer;padding:10px;font-weight:600;min-height:44px}.mg-more[open] summary{margin-bottom:14px}
.mg-story-world{position:relative;overflow:hidden;min-height:280px;display:grid;place-items:center;padding:42px 14px 22px;background:linear-gradient(180deg,#f5eeff 0%,#f5eeff 77%,#e2ecc8 77%);border-radius:20px}.mg-story-sun{position:absolute;right:25px;top:18px;width:42px;height:42px;border-radius:50%;background:#f2ce72;box-shadow:0 0 0 12px #f7e4ae66}.mg-story-objects{position:relative;display:flex;align-items:flex-end;justify-content:center;flex-wrap:wrap;gap:18px;width:100%;z-index:1}.mg-story-object{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;width:clamp(80px,20%,140px);min-height:165px;background:#ffffffdd;border:2px solid #d6c9ed;padding:12px 8px;border-radius:20px;animation:mg-arrive .65s both;animation-delay:calc(var(--order,0)*.2s);color:#5b458a}.mg-story-object strong{font-size:1.45rem;color:#252138}.mg-story-object span{text-align:center;font-weight:650;font-size:.85rem;overflow-wrap:anywhere}.mg-story-object .mg-art{max-width:100%;width:76px;height:76px;animation:mg-float 4s ease-in-out infinite;animation-delay:calc(var(--order,0)*.3s)}.mg-caption{margin-top:12px;background:#fff9;border-radius:14px}.mg-caption .caption{font-size:1rem;line-height:1.7;padding:0 14px 14px;margin:0}.mg-large-art{width:125px;height:125px;color:#71599a}.mg-shares{display:grid;grid-template-columns:repeat(5,42px);gap:7px;padding:14px;background:#fff;border-radius:15px}.mg-share{height:42px;display:grid;place-items:center;background:#ded6ec;border:2px solid #cabbdf;border-radius:9px;font-weight:700;animation:mg-arrive .4s both;animation-delay:calc(var(--order)*.08s)}.mg-your-share{background:#d6ed97;border-color:#77923b}.mg-outcomes{display:flex;gap:24px;justify-content:center;width:100%;font-weight:700}.mg-outcomes span{background:white;padding:10px 14px;border-radius:12px}
.mg-step-status{font-weight:700;font-size:1.1rem;margin:18px 0}.mg-step-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}.mg-step-controls .button{min-height:48px}.product-exam fieldset[hidden],.longterm-practice fieldset[hidden],.mg-slide-deck>[hidden]{display:none!important}.mg-slide-deck{display:block;min-height:230px}.mg-slide-deck>.product-point{max-width:800px;margin:auto;min-height:210px;border:2px solid #dfd3f0}.product-option{position:relative;min-height:66px;gap:14px!important;align-items:center!important;padding:14px!important}.mg-option-marker{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:50%;background:#eee7fa;color:#654591;font-weight:800}.product-option input{flex:0 0 auto}.longterm-practice,.product-exam{scroll-margin-top:20px}.mg-number-stepper{display:inline-flex;align-items:stretch;gap:5px;max-width:100%}.mg-number-stepper button{font-size:1.4rem;min-width:44px;min-height:46px;border-radius:12px;border:1px solid #d8d0e5;background:#f1eafa;color:#51406c}.mg-number-stepper input{min-width:50px;max-width:105px;text-align:center}.mg-video-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.mg-video-card{display:flex;align-items:center;gap:16px;padding:20px;text-decoration:none;color:inherit;border:1px solid #d9cee9;border-radius:20px;background:#fff}.mg-video-card>.mg-art{width:64px;height:64px;color:#78649c}.mg-video-card>span{display:flex;flex-direction:column;gap:8px}.mg-video-card small{color:#625a71}.mg-creator-stories{margin:24px 0}.mg-creator-stories h2{font-size:1.35rem}.mg-audio-controls{display:flex;gap:8px;flex-wrap:wrap}.mg-no-typing{border:1px solid #d7d1e2;border-radius:16px;padding:16px;margin:12px 0}.mg-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.mg-choice{display:flex;gap:8px;align-items:center;border:1px solid #cfc3e1;border-radius:14px;padding:12px;min-height:60px;background:#fff}.mg-choice:has(input:checked){background:#e7f0d3;border-color:#758e40}.mg-choice input{width:20px;height:20px}.mg-choice .mg-listen{min-width:44px;padding:8px;margin-left:auto}.mg-choice-text{flex:1}.mg-choice-feedback{background:#f1ecf8;padding:12px;border-radius:12px;margin-top:10px}
@keyframes mg-arrive{from{opacity:0;transform:translateY(20px) scale(.94)}to{opacity:1;transform:none}}@keyframes mg-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(max-width:900px){.mg-home-paths{grid-template-columns:repeat(2,1fr)}.mg-next-lesson{padding:20px;gap:20px}.mg-story-objects{gap:10px}}@media(max-width:520px){.mg-next-lesson{grid-template-columns:1fr}.mg-next-picture{min-height:130px}.mg-next-picture .mg-art{width:100px;height:100px}.mg-home-paths>a{padding:15px;min-height:175px}.mg-story-world{padding:42px 8px 16px;min-height:245px}.mg-story-object{width:calc(33.33% - 8px);min-height:140px;padding:8px 4px}.mg-story-object .mg-art{width:55px;height:55px}.mg-story-object strong{font-size:1.15rem}.mg-story-object span{font-size:.75rem}.mg-shares{grid-template-columns:repeat(5,30px);gap:5px}.mg-share{height:30px}.mg-large-art{width:85px;height:85px}.mg-choice-grid{grid-template-columns:1fr}.mg-welcome>.mg-art{width:65px;height:65px}.mg-video-card{padding:14px}.mg-step-controls{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.mg-story-object,.mg-story-object .mg-art,.mg-share{animation:none}}

.mg-compact-detail{margin:12px 0;border:1px solid #e2daee;border-radius:14px;background:white;padding:12px}.mg-compact-detail>summary{cursor:pointer;min-height:44px;padding:10px;font-weight:650}.mg-choice[aria-pressed="true"]{background:#e7f0d3;border-color:#758e40}.mg-audio-controls select{border:1px solid #d8cfea;border-radius:9px;padding:9px;min-height:44px;background:white}.mg-audio-controls label{display:flex;gap:8px;align-items:center}.mg-source-story{padding:24px;border:1px solid #ddd0ef;border-radius:20px;background:#f1eafa}@media(max-width:520px){.mg-audio-controls .button{padding:10px;font-size:.82rem}.mg-audio-controls{gap:7px;margin-top:10px}.mg-transfer{padding:16px}.mg-transfer .mg-choice{font-size:.9rem;line-height:1.6}}

@media(max-width:680px){.page-audio-guide{gap:8px;padding:10px 12px;margin-bottom:16px}.page-audio-guide>span{font-size:.78rem}.mg-audio-controls{width:100%;align-items:center;flex-wrap:nowrap;gap:8px;margin:0}.page-audio-guide .mg-audio-controls .button,.sb-header .mg-audio-controls .button{width:44px;min-width:44px;min-height:44px;padding:8px;flex:0 0 44px;font-size:1rem}.mg-audio-controls .mg-control-word{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mg-audio-controls label{font-size:0;gap:0;margin-left:auto}.mg-audio-controls select{font-size:.85rem;max-width:155px}.page-audio-guide>.button{min-height:44px;padding:9px 12px}}

.mg-family-path{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding:0;margin:1.4rem 0}.mg-family-path li{display:flex;gap:.8rem;padding:1rem;border:1px solid #dfd9ee;border-radius:1rem;background:#fff}.mg-family-path li.current{border-color:#6b4eff;box-shadow:0 0 0 2px #6b4eff18}.mg-family-path p{font-size:.95rem;margin:.4rem 0}.mg-family-step{flex:0 0 2rem;height:2rem;border-radius:50%;display:grid;place-items:center;background:#ede7ff;color:#463091;font-weight:800}@media(max-width:800px){.mg-family-path{grid-template-columns:1fr}}
