/* Desktop hero fits its artwork, copy and controls inside the visible stage. */
.ya110-hero,.ya110-hero__slides{min-height:clamp(700px,calc(100svh - var(--ya110-header)),900px)!important}
.ya110-hero-slide{grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr)!important;gap:clamp(20px,3vw,54px)!important;padding:clamp(56px,6vh,76px) clamp(24px,4vw,72px) 90px!important}
.ya110-hero-slide__copy h1{font-size:clamp(3.2rem,5.5vw,6.6rem)!important;line-height:1.06!important}
.ya110-hero-slide__art{min-width:0;min-height:0!important;max-height:min(70svh,680px);place-items:center!important}
.ya110-hero-slide__art>img,.ya110-hero-slide.is-music .ya110-hero-slide__art>img,.ya110-hero-slide.is-gallery .ya110-hero-slide__art>img{width:min(100%,790px)!important;max-height:min(70svh,680px)!important;object-fit:contain!important;object-position:center!important}
.ya131-slide-art-link{position:absolute;inset:0;z-index:7;border-radius:30px}
.ya131-slide-art-link:focus-visible{outline:4px solid #8566ad;outline-offset:4px}

/* One legible page, rather than story text over the patterned background. */
.ya110-character-story{position:relative;isolation:isolate;display:block!important;width:min(1300px,calc(100% - 36px));margin:0 auto 110px;padding:clamp(38px,5vw,76px) clamp(40px,6.5vw,116px)!important;overflow:hidden;border:1px solid #ead9ea;border-radius:34px;background:radial-gradient(circle at 25px 28px,#d5bfdd 0 5px,#fffafd 6px 10px,transparent 11px) 0 0/100% 58px repeat-y,linear-gradient(90deg,transparent 0 76px,#efc4d2 77px,transparent 78px),repeating-linear-gradient(to bottom,#fffafd 0 43px,#e8dced 44px,#fffafd 45px)!important;box-shadow:0 28px 75px #60457925,inset 0 0 0 6px #fff8!important;color:#4b3959}
.ya110-character-story:after{content:'✦  ୨୧  ♡';position:absolute;right:26px;top:19px;color:#b98db9;font-size:1rem;letter-spacing:.35em;pointer-events:none}
.ya110-character-story>.ya131-story-heading,.ya110-character-story>details{display:block;width:auto;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
.ya110-character-story h2{max-width:24ch;margin:5px 0 24px;font-size:clamp(2rem,3.6vw,3.8rem)!important;line-height:1.3!important;color:#5f4271;overflow-wrap:anywhere}
.ya110-character-story .ya131-story-heading .ya110-kicker{margin:0;color:#8e679d;font-size:.82rem;letter-spacing:.16em}
.ya110-character-story .ya131-story-preview,.ya110-character-story .ya131-story-text{max-width:78ch;margin:0;font-size:clamp(1rem,1.14vw,1.125rem);line-height:2.15!important;color:#4f3e5a!important}
.ya110-character-story .ya131-story-preview{margin-bottom:22px}
.ya110-character-story:has(details[open]) .ya131-story-preview{display:none}
.ya110-character-story summary{display:inline-flex;align-items:center;gap:16px;width:auto;padding:12px 18px;margin:4px 0 18px;border:1px solid #e6c9e0;border-radius:999px;background:#fbe9f4;color:#654178!important;font-size:1rem;font-weight:700;cursor:pointer;list-style:none;box-shadow:0 6px 18px #85639a1a}
.ya110-character-story summary::-webkit-details-marker{display:none}
.ya110-character-story summary span{color:#9e6bab}
.ya110-character-story summary:focus-visible{outline:3px solid #8566ad;outline-offset:3px}
.ya110-character-story .ya131-story-text{padding:16px 0 3px!important}
.ya110-character-story .ya131-story-text p{margin:0 0 1.35em;color:inherit!important;font-size:inherit;line-height:inherit!important}
.ya131-story-heading{padding-right:145px!important}
.ya110-character-story mark{color:inherit;background:linear-gradient(transparent 54%,#f8d7e8 54%,#f8d7e8 88%,transparent 88%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em}
.ya110-character-story .ya131-story-preview mark{background:linear-gradient(transparent 55%,#fff0a9 55%,#fff0a9 88%,transparent 88%)}
.ya132-story-sticker{position:absolute;z-index:2;top:27px;right:48px;display:grid;place-content:center;width:128px;min-height:110px;padding:18px 12px;text-align:center;background:#ffeda9;color:#785372;font:700 .85rem/1.6 var(--ya-font-accent);box-shadow:3px 8px 16px #7659752b;transform:rotate(7deg)}
.ya132-story-sticker:before{content:'';position:absolute;top:-9px;left:38px;width:52px;height:19px;background:#d6b8ddaa;transform:rotate(-8deg)}
.ya132-story-sticker span{font-size:1.35rem;color:#da83a9}
@media(max-width:980px){
 .ya110-hero,.ya110-hero__slides{min-height:0!important;height:auto!important}
 .ya110-hero-slide{position:relative!important;inset:auto!important;display:none!important;grid-template-columns:1fr!important;align-content:start!important;gap:16px!important;min-height:0!important;padding:96px 20px 28px!important;text-align:center;transform:none!important}
 .ya110-hero-slide.is-active{display:grid!important;opacity:1!important;visibility:visible!important}
 .ya110-hero-slide__copy{margin:0 auto}
 .ya110-hero-slide__art{min-height:0!important;max-height:none!important;place-items:center!important}
 .ya110-hero-slide__art:before{content:'';position:absolute;z-index:0;inset:5% 3%;border:1px solid #fff9;border-radius:38px;background:radial-gradient(circle at 18% 22%,#fff9 0 4px,transparent 5px),radial-gradient(circle at 78% 74%,#fff9 0 3px,transparent 4px),linear-gradient(135deg,#fff7fd99,#eee8ff88);box-shadow:0 22px 48px #71568319;transform:rotate(-2deg)}
 .ya110-hero-slide__art>img,.ya110-hero-slide.is-music .ya110-hero-slide__art>img,.ya110-hero-slide.is-gallery .ya110-hero-slide__art>img{width:min(90vw,720px)!important;max-height:min(54svh,500px)!important}
 .ya110-hero-controls{position:relative!important;left:auto!important;bottom:auto!important;translate:none!important;width:max-content;margin:0 auto 24px}
 /* The MV uses an inline desktop grid; keep the same art and text on a narrow screen. */
 .ya120-home-mv{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px){
 .ya110-hero,.ya110-hero__slides{min-height:0!important}
 .ya110-hero-slide{padding:72px 16px 20px!important;align-content:start!important;gap:14px!important}
 .ya110-hero-slide__copy h1{font-size:clamp(2.5rem,10.5vw,4rem)!important;line-height:1.14!important}
 .ya110-hero-slide__index{margin-bottom:9px!important}
 .ya110-lead{margin:12px 0 18px!important;line-height:1.65!important}
 .ya110-hero-slide__art{max-height:none!important}
 .ya110-hero-slide__art:before{inset:6% 2%;border-radius:28px}
 .ya110-hero-slide__art>img,.ya110-hero-slide.is-music .ya110-hero-slide__art>img,.ya110-hero-slide.is-gallery .ya110-hero-slide__art>img{width:min(92vw,420px)!important;max-height:min(48svh,390px)!important}
 .ya110-hero-controls{margin-bottom:20px}
 .ya120-home-mv{width:calc(100% - 20px)!important;margin-bottom:76px!important;border-radius:28px!important}
 .ya110-character-story{width:calc(100% - 20px);padding:52px 22px 30px 53px!important;border-radius:24px;background:radial-gradient(circle at 15px 25px,#d5bfdd 0 4px,#fffafd 5px 8px,transparent 9px) 0 0/100% 55px repeat-y,linear-gradient(90deg,transparent 0 40px,#efc4d2 41px,transparent 42px),repeating-linear-gradient(to bottom,#fffafd 0 39px,#e8dced 40px,#fffafd 41px)!important}
 .ya110-character-story h2{font-size:clamp(1.9rem,8vw,2.65rem)!important}
 .ya110-character-story:after{right:14px;top:13px;font-size:.8rem}
 .ya131-story-heading{padding-right:0!important}
 .ya132-story-sticker{position:relative;top:auto;right:auto;float:right;width:96px;min-height:75px;margin:-30px -4px 14px 12px;padding:12px 6px;font-size:.68rem;transform:rotate(6deg)}
 .ya132-story-sticker:before{left:27px;width:40px}
}
@media(prefers-reduced-motion:reduce){.ya131-slide-art-link{transition:none}}
.ya131-video-frame{position:relative;min-height:clamp(300px,43vw,690px);aspect-ratio:16/9;background:#312343}
.ya131-video-frame iframe,.ya131-video-poster{display:block;width:100%;height:100%;min-height:inherit;border:0}
.ya131-video-poster{position:absolute;inset:0;padding:0;overflow:hidden;cursor:pointer;background:#d6c3e8}
.ya131-video-poster img{display:block;width:100%;height:100%;object-fit:cover}
.ya131-video-poster span{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:76px;height:76px;border:2px solid #fff;border-radius:50%;background:#fffefaef;box-shadow:0 10px 32px #38254a66;color:#684486;font-size:1.7rem;transform:translate(-50%,-50%)}
.ya131-video-poster:focus-visible{outline:4px solid #8566ad;outline-offset:-4px}
@media(max-width:600px){.ya131-video-frame{min-height:0;aspect-ratio:16/9}}

.ya110-character-story .ya131-story-close-label{display:none}
.ya110-character-story details[open] .ya131-story-open-label{display:none}
.ya110-character-story details[open] .ya131-story-close-label{display:inline}

/* 13.3: keep the phone stage full and remove the empty one-card stage. */
@media(max-width:980px){
 .ya110-scene-character{min-height:0;grid-template-columns:minmax(0,1fr);gap:24px;padding:54px 0 36px}
 .ya110-scene-character .ya110-scene__copy{max-width:640px;margin:0 auto;text-align:center}
 .ya110-profile-stage.is-single-profile{min-height:0;display:flex;justify-content:center;padding:28px 8px 34px}
 .ya110-profile-stage.is-single-profile .ya110-profile-card{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:min(78vw,320px);min-height:0}
 .ya110-profile-stage.is-single-profile .ya110-profile-card__photo{height:clamp(240px,62vw,340px)}
 .ya110-profile-stage.is-single-profile .ya110-sticker.sticker-a{left:1%;top:0}
 .ya110-profile-stage.is-single-profile .ya110-sticker.sticker-b{right:0;bottom:8px}
 .ya110-hero-slide__art>img,.ya110-hero-slide.is-music .ya110-hero-slide__art>img,.ya110-hero-slide.is-gallery .ya110-hero-slide__art>img{width:min(96vw,760px)!important;max-height:min(65svh,650px)!important}
}
@media(max-width:600px){
 .ya110-hero-slide{padding:76px 12px 10px!important;gap:8px!important}
 .ya110-hero-slide__copy{width:100%}
 .ya110-hero-slide__art{width:100%;margin:0 auto}
 .ya110-hero-slide__art>img,.ya110-hero-slide.is-music .ya110-hero-slide__art>img,.ya110-hero-slide.is-gallery .ya110-hero-slide__art>img{width:min(98vw,560px)!important;max-height:min(62svh,590px)!important}
 .ya110-hero-controls{margin:0 auto 12px!important}
 .ya110-scene-character{padding:40px 0 26px;gap:12px}
 .ya110-profile-stage.is-single-profile{padding-bottom:26px}
}
.ya110-character-story .ya131-story-text mark{background:linear-gradient(transparent 59%,#fff0a9 59%,#fff0a9 88%,transparent 88%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .08em}
.ya110-character-story .ya131-story-text p:nth-child(even) mark{background:linear-gradient(transparent 59%,#f5d5e7 59%,#f5d5e7 88%,transparent 88%)}

/* 13.3.1: Study has one compact entry and a natural-height lesson panel. */
.ya130-study-intro{min-height:0!important;margin-bottom:16px!important;padding:clamp(26px,3.2vw,48px)!important;gap:18px!important}
.ya130-study-intro p:not(.ya110-kicker){max-width:48ch;line-height:1.75!important}
.ya110-study-app-frame{padding:clamp(10px,1.5vw,22px)!important}
.ya110-study-app-frame .ya92-study-dashboard{padding-top:0!important}
.ya110-study-app-frame .ya92-study-topbar{position:relative!important;top:auto!important}
.ya110-study-app-frame .ya92-study-main-card{min-height:0!important}
@media(max-width:720px){.ya130-study-intro{width:calc(100% - 16px)!important;margin:8px auto 12px!important;padding:28px 18px!important}.ya130-study-intro__route{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.ya110-study-app-frame{width:calc(100% - 12px)!important;padding:6px!important;margin-bottom:50px!important}.ya110-study-app-frame .ya92-study-topbar{border-radius:20px!important}.ya110-study-app-frame .ya92-study-main-card{padding:20px!important}}

/* 13.4: a five-room public atlas and a balanced three-card public row. */
.ya110-atlas__map.is-public{min-height:680px}
.ya110-atlas__map.is-public .ya110-atlas-spot.s5{left:16%;bottom:19%}
.ya110-play-grid.is-public{grid-template-columns:repeat(3,minmax(0,1fr))}
.ya110-play-grid.is-public a{min-width:0}
@media(max-width:1000px){.ya110-play-scene:has(.ya110-play-grid.is-public){gap:28px}.ya110-play-grid.is-public{grid-template-columns:1fr 1fr}.ya110-play-grid.is-public a:last-child{grid-column:1/-1;min-height:160px}}
@media(max-width:720px){.ya110-atlas__map.is-public{min-height:550px}.ya110-atlas__map.is-public .ya110-atlas-spot.s5{left:8%;bottom:17%}.ya110-play-grid.is-public{grid-template-columns:1fr}.ya110-play-grid.is-public a:last-child{grid-column:auto}.ya110-play-grid.is-public a{min-height:150px}}

/* Show the reasoning and next action inside each short lesson. */
.ya134-answer-line{padding:9px 12px;border-radius:12px;background:#f7f2ff;color:#5f5277}
.ya134-answer-line b{display:block;color:#604a9b}
.ya134-next-line{margin-top:10px;padding:8px 12px;border-left:3px solid #d99cce;background:#fff7fc}
.ya134-lesson-summary{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px auto;max-width:630px}
.ya134-lesson-summary b,.ya134-lesson-summary span{padding:8px 14px;border-radius:999px;background:#fff;color:#695496;font-size:.85rem}
.ya134-lesson-summary small{flex-basis:100%;line-height:1.7;color:#776987}
.ya134-last-review{max-width:630px;margin:12px auto;padding:12px 18px;border-radius:17px;background:#fffaf5;text-align:left}
.ya134-last-review summary{cursor:pointer;color:#695496;font-weight:800}
.ya134-last-review p{line-height:1.7}
.ya134-last-review b{color:#594183}

/* 13.5: review mission, contextual questions, and a second guided hint. */
.ya135-due-card{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:14px auto;padding:22px 28px;border:2px solid #fff;border-radius:27px;background:linear-gradient(115deg,#fff8e7,#fff,#f5edff);box-shadow:0 12px 30px #74658c16}
.ya135-due-card span{font:800 .72rem Georgia,serif;letter-spacing:.15em;color:#9c729d}.ya135-due-card h2{margin:6px 0;font-size:1.15rem;color:#624c85}.ya135-due-card p{margin:0;line-height:1.7;color:#786b81}.ya135-due-card button{min-width:170px;padding:13px 18px;border:0;border-radius:999px;background:#7d6ac1;color:#fff;font-weight:900;cursor:pointer}
.ya135-hint-more{display:block;margin-top:12px;padding:10px 14px;border:1px solid #d9caee;border-radius:14px;background:#fff;color:#65529c;font-weight:800;cursor:pointer}.ya135-hint-more:disabled{opacity:.55}.ya135-hint-result{padding:12px 15px!important;border-left:4px solid #c4a1df;border-radius:10px;background:#fff!important;font-weight:700;color:#5e4a84}
.ya135-ask-teacher{display:inline-flex;margin:0 0 17px;padding:8px 13px;border-radius:999px;background:#f4edff;color:#6953a2;font-size:.83rem;font-weight:800;text-decoration:none}.ya135-ask-teacher:hover{text-decoration:underline}
.ya135-asking{padding:15px 19px;border-radius:18px;background:#fff7ef;color:#5e4c77}.ya135-asking p{margin:6px 0 0;line-height:1.6}.ya135-question-prompts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.ya135-question-prompts button{padding:9px 13px;border:1px solid #dfd4ee;border-radius:999px;background:#fff;color:#685493;font-weight:800;cursor:pointer}
@media(max-width:720px){.ya135-due-card{display:block;padding:19px}.ya135-due-card form{margin-top:14px}.ya135-due-card button{width:100%}.ya135-question-prompts button{font-size:.8rem}}

/* 13.6: Study on narrow screens is a vertical lesson, without overlapping cast. */
@media(max-width:720px){
 body.ya90-scene-study.ya110-body{padding-top:0!important}
 .ya90-scene-study .ya110-header{position:relative!important;left:auto!important;right:auto!important;top:auto!important;width:calc(100% - 16px)!important;margin:8px auto 12px!important}
 .ya130-study-room{overflow:visible!important}
 .ya130-study-intro{margin-top:0!important}
 .ya110-study-app-frame .ya92-study-dashboard{width:100%!important;max-width:100%!important}
 .ya110-study-app-frame .ya92-study-topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:10px 12px!important}
 .ya110-study-app-frame .ya92-study-logo{min-width:0}.ya110-study-app-frame .ya92-study-logo strong{font-size:.8rem!important;white-space:normal}
 .ya110-study-app-frame .ya92-study-stars{justify-self:end}
 .ya110-study-app-frame .ya92-study-controls{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:7px;min-width:0}
 .ya110-study-app-frame .ya92-study-main-card{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;min-height:0!important;margin:12px auto 20px!important;padding:18px 16px!important;overflow:visible!important}
 .ya110-study-app-frame .ya92-study-main-card .ya92-teacher-corner{position:relative!important;inset:auto!important;order:1!important;width:100%!important;margin:0!important}
 .ya110-study-app-frame .ya92-teacher-slot{width:100%!important;margin:0!important}
 .ya110-study-app-frame .ya85-teacher,.ya110-study-app-frame .ya86-teacher{align-items:center!important}
 .ya110-study-app-frame .ya85-teacher__face{width:52px!important;height:52px!important;flex:0 0 52px!important;font-size:28px!important}
 .ya110-study-app-frame .ya85-teacher__bubble{flex:1;max-width:none;padding:10px 12px!important}
 .ya110-study-app-frame .ya85-teacher__bubble span{font-size:.76rem!important;line-height:1.5!important}
 .ya110-study-app-frame .ya92-recommend{order:2!important;width:100%!important;max-width:none!important;min-width:0!important}
 .ya110-study-app-frame .ya92-recommend h1{font-size:clamp(1.65rem,7.4vw,2.2rem)!important;line-height:1.24!important;letter-spacing:-.03em!important;overflow-wrap:anywhere}
 .ya110-study-app-frame .ya92-recommend p{font-size:.89rem!important;line-height:1.7!important;margin-bottom:14px!important}
 .ya110-study-app-frame .ya92-feature-chips{display:flex;flex-wrap:wrap;gap:6px}
 .ya110-study-app-frame .ya92-feature-chips span{font-size:.7rem;padding:7px 9px}
 .ya110-study-app-frame .ya92-recommend .ya81-study-start,.ya110-study-app-frame .ya92-recommend .ya92-main-button{display:block;width:100%;max-width:100%}
 .ya110-study-app-frame .ya92-recommend .ya81-study-start button,.ya110-study-app-frame .ya92-main-button{width:100%!important;min-width:0!important;min-height:54px!important;padding:10px 14px!important;font-size:.9rem!important}
 .ya110-study-app-frame .ya92-companion-peek{position:relative!important;inset:auto!important;translate:none!important;order:3!important;display:flex!important;align-items:center;gap:10px;width:100%!important;margin:0!important;text-align:left!important}
 .ya110-study-app-frame .ya92-companion-face{flex:0 0 48px;width:48px!important;height:48px!important;margin:0!important;font-size:30px!important}
 .ya110-study-app-frame .ya92-companion-peek p{flex:1;min-width:0;padding:8px 11px!important}
 .ya110-study-app-frame .ya92-companion-peek span{font-size:.7rem!important}
 .ya92-study-main-card:before{width:180px;height:180px;right:-40px;top:-80px}.ya92-study-main-card:after{width:160px;height:90px}
}

.ya136-mini-check{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:16px auto;padding:22px 28px;border:2px solid #fff;border-radius:26px;background:linear-gradient(120deg,#fff,#edf4ff 65%,#fce9f5);box-shadow:0 12px 32px #65558c18}
.ya136-mini-check span{font:800 .66rem Georgia,serif;letter-spacing:.14em;color:#9a75a8}.ya136-mini-check h2{margin:5px 0 8px;font:700 clamp(1.15rem,2.5vw,1.55rem) var(--ya-font-heading);color:#614d89}.ya136-mini-check p{margin:0;line-height:1.7;color:#756986}.ya136-mini-check form{flex:0 0 auto}.ya136-mini-check button{padding:13px 18px;border:0;border-radius:18px;background:linear-gradient(130deg,#7c75ca,#d58fbe);color:#fff;font-weight:900;cursor:pointer}.ya136-mini-result{max-width:620px;margin:16px auto!important;padding:13px 18px;border-radius:16px;background:#fff7e8;color:#695489}
@media(max-width:720px){.ya136-mini-check{display:block;padding:20px}.ya136-mini-check form{margin-top:14px}.ya136-mini-check button{width:100%}}
