.morrown-animation{display:block;position:relative;width:256px;max-width:100%;aspect-ratio:var(--morrown-ratio,1);margin-inline:auto;overflow:visible;pointer-events:none;isolation:isolate;flex-shrink:0}
.morrown-stage,.morrown-poster{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.morrown-stage>svg{display:block;width:100%;height:100%;overflow:visible}
.morrown-animation.morrown-small{width:128px}.morrown-animation.morrown-hero{width:min(340px,70vw,39dvh)}
.morrown-animation.morrown-inline{width:176px}.morrown-animation.morrown-toast{width:36px;min-width:36px;display:inline-block;vertical-align:middle;margin:0 8px 0 0}
.morrown-feedback{position:fixed;z-index:1090;left:50%;top:40%;width:196px;transform:translate(-50%,-50%);pointer-events:none;contain:layout style}
.morrown-feedback .morrown-animation{width:100%}
.day-celebration__flame:has(.morrown-animation){width:auto;height:auto;min-height:0;animation:none;margin:0 auto}
.day-celebration__flame>.morrown-animation{width:min(350px,70vw,37dvh)}
.goal-moment-art:has(.morrown-animation){width:auto;height:auto;max-height:none;margin:0 auto}
.goal-moment-art>.morrown-animation{width:min(320px,70vw,35dvh)}
.practice-medal:has(.morrown-animation){width:auto;height:auto;animation:none}
.practice-medal>.morrown-animation{width:min(280px,65vw,33dvh)}
.protection-full-art:has(.morrown-animation){height:auto;animation:none}
.protection-full-art>.morrown-animation{width:min(270px,62vw,32dvh)}
.series-screen .series-hero-flame>.morrown-animation{width:100%;height:100%;max-width:100%;min-width:0;aspect-ratio:auto}
.morrown-focus-art{width:min(160px,32dvh);margin:0 auto 8px}
.morrown-empty-art{width:min(200px,42vw);margin:0 auto 8px}
@media(max-height:600px){.day-celebration__flame>.morrown-animation,.goal-moment-art>.morrown-animation,.practice-medal>.morrown-animation{width:min(210px,35dvh)}}

html[data-mode=light] .morrown-animation.morrown-night{background:#171425;border-radius:24px}

/* Compact badges: the real count is text below the drawing, never a reason
   to enlarge the medal. Only the next milestone plays, the rest use posters. */
.series-milestone-track{gap:12px;align-items:start}
.series-milestone-track>div{flex:1 1 72px;min-width:0;display:grid;justify-items:center;gap:8px}
.series-milestone-track>div>.series-medal,.series-roadmap-step .series-medal{display:grid;justify-items:center;gap:5px;width:100%;height:auto;min-width:0;max-width:100%;aspect-ratio:auto;margin:0}
.series-medal>.series-medal-art{--medal-art-size:64px;position:relative;inset:auto;display:block;width:var(--medal-art-size);height:calc(var(--medal-art-size)*1.14);max-width:none;aspect-ratio:auto;margin:0;white-space:normal}
.series-medal-art>.morrown-stage,.series-medal-art>.morrown-poster{inset:auto;left:calc(var(--medal-art-size)*-.70);top:calc(var(--medal-art-size)*-.646);width:calc(var(--medal-art-size)*2.4);height:calc(var(--medal-art-size)*2.4);max-width:none}
.series-medal>.series-medal-copy{position:static;inset:auto;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;min-width:0;max-width:100%;white-space:normal;color:var(--text);z-index:1}
.series-medal-copy>b{font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.series-medal-copy>small{font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.series-medal .morrown-stage>svg{padding:0;background:none;border-radius:0}
.series-roadmap-step{grid-template-columns:72px minmax(0,1fr) 20px;gap:14px;min-height:112px;padding-block:10px}
.series-roadmap-step .series-medal-art{--medal-art-size:48px}
.series-roadmap-step .series-medal-copy>b{font-size:16px}
.series-roadmap-step:not(:last-child):before{left:35px;top:auto;bottom:-1px;height:12px;width:2px}
.series-screen .series-hero-flame{width:136px;height:136px;margin-bottom:12px}

/* A scene owns a real rectangle. Contain keeps its entire choreography visible,
   including the full height of the 50/100-day flame and the character's hands. */
.morrown-animation.morrown-hero{width:min(100%,400px);height:clamp(230px,38svh,340px);aspect-ratio:auto}
.day-celebration__flame>.morrown-animation,.goal-moment-art>.morrown-animation{width:min(100%,400px);height:clamp(240px,38svh,350px);aspect-ratio:auto}
.goal-moment-art:has(.morrown-animation){width:100%;aspect-ratio:auto}
.day-celebration__flame:has(.morrown-animation){width:100%}
.practice-medal>.morrown-animation{width:min(100%,250px);height:clamp(190px,28svh,240px);aspect-ratio:auto}
.morrown-feedback{width:min(280px,72vw);height:240px;max-height:36svh;transition:opacity 180ms ease-out}
.morrown-feedback.is-finished{opacity:0}
.morrown-feedback>.morrown-animation{width:100%;height:100%;aspect-ratio:auto}
.morrown-intro-question{width:min(100%,360px);height:clamp(200px,30svh,260px);max-height:none;aspect-ratio:auto}
.morrown-intro-routine,.morrown-intro-notification{width:min(100%,350px);height:clamp(210px,31svh,270px);max-height:none;aspect-ratio:auto}
.morrown-preparation-slot,.morrown-intro-preparing{width:min(100%,380px);height:clamp(240px,36svh,320px);max-height:none;aspect-ratio:auto}
.morrown-intro-ready{width:min(100%,360px);height:clamp(190px,29svh,250px);max-height:none;aspect-ratio:auto}
.morrown-intro-appearance{width:100px;height:88px;aspect-ratio:auto;margin:0 auto 16px}
.morrown-empty-art{width:min(260px,76vw);height:180px;aspect-ratio:auto;margin:0 auto 12px}
@media(max-height:650px){.morrown-intro-question{height:180px}.morrown-intro-routine,.morrown-intro-notification{height:190px}.morrown-preparation-slot,.morrown-intro-preparing{height:220px}.morrown-intro-ready{height:180px}.day-celebration__flame>.morrown-animation,.goal-moment-art>.morrown-animation{height:230px}}
/* The flame gets its own column instead of overflowing the old 88px slot. */
.series-screen .activity-series-summary{grid-template-columns:136px minmax(0,1fr);align-items:center}
@media(max-width:380px){.series-screen .activity-series-summary{grid-template-columns:minmax(0,1fr);text-align:center}.series-screen .series-hero-flame{justify-self:center;margin-inline:auto}.series-screen .series-hero-number{text-align:center}}

/* Timer feedback occupies the space above the clock and leaves digits readable. */
.morrown-feedback.morrown-feedback-timer{top:22%;width:min(180px,44vw);height:150px;max-height:20svh}
