/* Falamigo Mundo — ilustração vetorial, profundidade tátil e animação discreta.
   Nenhuma dependência externa. Conteúdo funcional continua no HTML. */
:root{--world-cream:#fffaf2;--world-sky:#e5f3ff;--world-lavender:#eee7fa;--world-coral:#ffe5d5;--world-mint:#dff5ec;--world-navy:#344b54}
.migo{display:block;overflow:visible;max-width:100%;height:auto}
.migo-body{transform-origin:120px 215px;animation:migo-breathe 4.8s ease-in-out infinite}
.migo-shadow{transform-origin:120px 226px;animation:migo-shadow 4.8s ease-in-out infinite}
.migo-eye{transform-box:fill-box;transform-origin:center;animation:migo-blink 6.7s infinite}
.migo-eye-right{animation-delay:.07s}
.migo-wing-left{transform-origin:62px 146px}.migo-wing-right{transform-origin:176px 148px}
.migo-wave .migo-wing-left{animation:migo-wave 4.8s ease-in-out 2}
.migo-celebrate .migo-wing-left{transform:rotate(100deg)}
.migo-celebrate .migo-wing-right{transform:rotate(-100deg)}
.migo-celebrate .migo-body{animation:migo-cheer .65s ease-in-out 3}
.migo-celebrate .migo-sparkles{transform-origin:120px 125px;animation:migo-sparkles .8s ease-in-out 3}
.migo-think .migo-wing-left{transform:rotate(-48deg)}
.migo-listen .migo-body{transform:rotate(-4deg);animation:none}
.migo-rest .migo-body{animation:none}
.migo-run .migo-body{animation:migo-run .65s ease-in-out infinite}
.migo-run .migo-foot-left{transform-origin:86px 212px;animation:migo-foot .65s ease-in-out infinite}
.migo-run .migo-foot-right{transform-origin:153px 212px;animation:migo-foot .65s ease-in-out infinite reverse}
.migo-run .migo-wing-left{transform:rotate(30deg)}.migo-run .migo-wing-right{transform:rotate(-26deg)}
@keyframes migo-breathe{0%,100%{transform:translateY(0) scaleY(1)}50%{transform:translateY(-3px) scaleY(1.015)}}
@keyframes migo-shadow{0%,100%{transform:scaleX(1);opacity:.12}50%{transform:scaleX(.92);opacity:.09}}
@keyframes migo-blink{0%,91%,95%,100%{transform:scaleY(1)}93%{transform:scaleY(.07)}}
@keyframes migo-wave{0%,50%,100%{transform:rotate(0)}8%,22%,36%{transform:rotate(95deg)}15%,29%{transform:rotate(67deg)}44%{transform:rotate(0)}}
@keyframes migo-cheer{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px) rotate(-3deg)}}
@keyframes migo-sparkles{0%,100%{opacity:.8;transform:scale(.98)}50%{opacity:1;transform:scale(1.08)}}
@keyframes migo-run{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(3deg)}}
@keyframes migo-foot{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}
.world-scene{display:block;width:100%;height:auto;overflow:visible}
.world-cloud{transform-box:fill-box;transform-origin:center}
.world-cloud.cloud-a{animation:cloud-drift 9s ease-in-out infinite alternate}
.world-cloud.cloud-b{animation:cloud-drift 12s ease-in-out infinite alternate-reverse}
.world-cloud.cloud-c{animation:cloud-drift 11s ease-in-out infinite alternate}
/* translate preserva as coordenadas SVG do grupo. */
@keyframes cloud-drift{from{translate:-3px 0}to{translate:6px 0}}
.world-plane{transform-box:fill-box;transform-origin:center;animation:plane-drift 7s ease-in-out infinite}
@keyframes plane-drift{0%,100%{translate:0 0}50%{translate:3px -4px}}
.world-hero{position:relative;isolation:isolate;overflow:hidden;border:1.5px solid var(--line);border-radius:30px;background:var(--card);box-shadow:0 5px 0 var(--line-soft)}
.world-art{position:relative;display:block;overflow:hidden;background:var(--world-sky);min-width:0}
.world-art>.world-scene{margin:-1px;width:calc(100% + 2px);max-width:none}
.world-copy{position:relative;padding:20px 23px 24px;display:flex;flex-direction:column;gap:12px}
.world-kicker{font-size:.66rem;font-weight:850;color:var(--deep);letter-spacing:.12em;text-transform:uppercase;line-height:1.5}
.world-title{font-size:clamp(1.65rem,6vw,2.35rem);font-weight:850;line-height:1.08;letter-spacing:-.045em;max-width:16ch}
.world-subtitle{font-size:.91rem;line-height:1.65;color:var(--ink-2);max-width:46ch}
.world-copy .btn{align-self:flex-start;min-width:180px;margin-top:3px}
.world-copy .btn.block{align-self:stretch}
.world-hero .hero-stats{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.world-hero.compact .world-art{max-height:190px}
.world-hero.compact .world-scene{margin-top:-9px}
.world-hero.compact .world-copy{padding-top:16px}
.world-hero.compact .world-title{font-size:1.65rem;max-width:100%}
.world-inline{display:flex;align-items:center;gap:14px}
.world-inline>.migo{width:90px;flex:0 0 90px}
.world-inline>div{min-width:0}
.world-inline h2{font-size:1.25rem;line-height:1.25}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:3px 0 12px}
.section-title h2{font-size:1.15rem;letter-spacing:-.03em;line-height:1.3}
.section-title .btn{flex:0 0 auto}
.section-title a,.section-title>button{color:var(--deep);font-size:.78rem;font-weight:750;min-height:44px}
.migo-dialog{display:flex;align-items:center;gap:12px;padding:13px 15px;background:var(--deep-soft);border-radius:23px;border:1px solid var(--line-soft);color:var(--ink-2);line-height:1.5;font-size:.84rem}
.migo-dialog>.migo,.migo-dialog>.avatar{width:76px;flex:0 0 76px}
.migo-dialog>div{min-width:0}
.migo-dialog strong{display:block;font-family:var(--f-display);font-size:1.02rem;font-weight:800;line-height:1.3;margin-bottom:4px;color:var(--ink)}
.migo-dialog p{font-size:.82rem}
.migo-dialog .btn{margin-top:8px}
.welcome-world{padding-top:max(12px,env(safe-area-inset-top,0px));position:relative;text-align:center}
.welcome-world>.world-scene{margin:0 auto;max-height:300px}
.welcome-world>.migo{width:155px;margin:0 auto}
.welcome-brand{display:flex;justify-content:center;align-items:center;gap:9px;font-family:var(--f-display);font-size:1.45rem;line-height:1.2;font-weight:900;letter-spacing:-.05em;color:var(--deep);padding:10px 0}
.welcome-brand .migo{width:36px;height:37px}
.welcome-copy{text-align:center;max-width:460px;margin:0 auto;padding:0 12px}
.welcome-copy h1{font-size:clamp(1.8rem,7.5vw,2.6rem);letter-spacing:-.05em;line-height:1.1}
.welcome-copy h1 em{font-style:normal;color:var(--deep)}
.welcome-copy p{font-size:.93rem;color:var(--ink-2);line-height:1.65;margin-top:12px}
.welcome-copy .eyebrow{color:var(--deep);margin-bottom:9px}
.welcome-actions{display:flex;flex-direction:column;gap:14px;width:100%;max-width:430px;margin:0 auto;padding:0 8px 20px}
.welcome-actions .panel{box-shadow:none}
.welcome-notes{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 0 2px}
.welcome-notes span{display:inline-flex;gap:5px;align-items:center;font-size:.71rem;color:var(--muted);font-weight:650}
.welcome-caption{font-size:.71rem;line-height:1.55;color:var(--muted);text-align:center}
.welcome-char-row{display:flex;align-items:flex-end;justify-content:center;gap:0;max-height:172px;overflow:hidden;margin-bottom:4px}
.welcome-char-row>.avatar{width:104px;flex:0 1 104px;margin:0 -5px}
.welcome-char-row>.migo{width:122px;flex:0 1 122px;margin:0 -2px 2px}
.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.quick-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;border:1.5px solid var(--line);background:var(--card);padding:17px;border-radius:23px;box-shadow:0 4px 0 var(--line-soft);min-height:140px;position:relative;overflow:hidden}
.quick-card .quick-icon{height:44px;width:44px;display:grid;place-items:center;border-radius:15px;background:var(--deep-soft);color:var(--deep)}
.quick-card:nth-child(2) .quick-icon{background:var(--live-soft);color:var(--live-ink)}
.quick-card:nth-child(3) .quick-icon{background:var(--warn-soft);color:var(--warn-ink)}
.quick-card h3,.quick-card strong{font-family:var(--f-display);font-size:1.05rem;line-height:1.25;color:var(--ink)}
.quick-card p,.quick-card small{font-size:.76rem;color:var(--muted);line-height:1.5}
.quick-card .arrow{position:absolute;right:15px;top:18px;opacity:.65}
.mission-card{display:flex;align-items:center;gap:14px;padding:17px;border:1.5px solid var(--line);border-radius:23px;background:var(--card);box-shadow:0 4px 0 var(--line-soft);text-align:left;width:100%;position:relative}
.mission-icon{width:52px;height:52px;display:grid;place-items:center;flex:0 0 52px;border-radius:18px;background:var(--warn-soft);color:var(--warn-ink);font-size:1.3rem}
.mission-copy{min-width:0;flex:1}.mission-copy h3{font-size:1rem;line-height:1.3}.mission-copy p{font-size:.78rem;color:var(--muted);line-height:1.5;margin-top:4px}
.mission-copy .bar{margin-top:9px}.mission-card>.ic{flex:0 0 20px;color:var(--deep)}
.adventure-feature{display:flex;align-items:center;gap:15px;padding:20px;background:var(--deep-soft);border-radius:26px;border:1.5px solid var(--line);box-shadow:0 4px 0 var(--line-soft);text-align:left;overflow:hidden;position:relative}
.adventure-art{width:104px;flex:0 0 104px}.adventure-art>.migo{width:100%;height:auto}.adventure-art>.world-scene{width:100%;height:auto}
.adventure-copy{flex:1;min-width:0}.adventure-copy h2{font-size:1.25rem;line-height:1.2}.adventure-copy p{font-size:.82rem;line-height:1.55;color:var(--ink-2);margin-top:6px}.adventure-copy .btn{margin-top:12px}
.character-portrait{display:grid;place-items:center;position:relative;isolation:isolate;overflow:hidden;border-radius:19px;background:var(--card-2);padding:7px 0 0}
.character-portrait>.avatar{max-height:168px;width:142px}
.character-check{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:25px;height:25px;background:var(--deep);color:var(--on-deep);font-weight:800;border-radius:50%}
.character-card-v2 .character-info{position:relative}.character-card-v2 .nm{font-size:1.05rem;line-height:1.3}.character-card-v2 .desc{font-size:.78rem;line-height:1.5}
.character-card-v2.sel::after{display:none}
.friend-strip{display:flex;gap:12px;overflow-x:auto;padding:3px 2px 7px;scroll-snap-type:x proximity;scrollbar-width:thin}
.friend-strip>.charcard{min-width:146px;width:146px;scroll-snap-align:start;flex:0 0 146px}
.friend-strip .desc{display:none}.friend-strip .flagline{font-size:.68rem}
.world-goal{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);padding:15px 17px;border:1.5px solid var(--line);border-radius:20px;box-shadow:0 3px 0 var(--line-soft)}
.world-goal>.grow{flex:1;min-width:0}.world-goal b{font-family:var(--f-display);font-size:1.02rem}.world-goal p{font-size:.75rem;color:var(--muted);line-height:1.5}.world-goal .bar{margin-top:8px}
.world-checklist{display:grid;gap:9px;padding:0;list-style:none;margin:0}.world-checklist li{display:flex;align-items:flex-start;gap:8px;font-size:.83rem;line-height:1.5}.world-checklist li::before{content:"✓";color:var(--deep);font-weight:900}
@media(hover:hover) and (pointer:fine){.quick-card,.mission-card,.adventure-feature{transition:transform .18s ease,border-color .18s ease}.quick-card:hover,.mission-card:hover,button.adventure-feature:hover{transform:translateY(-2px);border-color:var(--deep)}}
@media(min-width:480px){.world-hero:not(.compact) .world-art{max-height:255px}.world-copy{padding:23px 26px 26px}.world-copy .world-title{max-width:20ch}.welcome-world>.world-scene{max-height:315px}}
@media(max-width:380px){.world-hero{border-radius:25px}.world-copy{padding:17px}.world-title{font-size:1.7rem}.world-subtitle{font-size:.84rem}.world-copy .btn{min-width:0;width:100%}.migo-dialog{gap:9px;padding:12px}.migo-dialog>.migo{flex-basis:61px;width:61px}.migo-dialog strong{font-size:.94rem}.migo-dialog p{font-size:.78rem}.quick-card{padding:14px;min-height:136px}.quick-card h3{font-size:.96rem}.adventure-feature{padding:15px;gap:10px}.adventure-art{width:77px;flex-basis:77px}.adventure-copy h2{font-size:1.1rem}.welcome-copy{padding:0 4px}.welcome-copy p{font-size:.86rem}.welcome-world>.world-scene{min-height:165px}.character-portrait>.avatar{width:121px}.character-card-v2 .nm{font-size:.92rem}}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--world-cream:#313c41;--world-sky:#354c5c;--world-lavender:#443f59;--world-coral:#57463f;--world-mint:#354d48;--world-navy:#f8f4ee}:root:not([data-theme="light"]) .world-art{background:var(--world-sky)}:root:not([data-theme="light"]) .world-art>.world-scene,:root:not([data-theme="light"]) .welcome-world>.world-scene{filter:brightness(.86) saturate(.85)}}
:root[data-theme="dark"]{--world-cream:#313c41;--world-sky:#354c5c;--world-lavender:#443f59;--world-coral:#57463f;--world-mint:#354d48;--world-navy:#f8f4ee}
:root[data-theme="dark"] .world-art{background:var(--world-sky)}
:root[data-theme="dark"] .world-art>.world-scene,:root[data-theme="dark"] .welcome-world>.world-scene{filter:brightness(.86) saturate(.85)}
@media(prefers-reduced-motion:reduce){.migo *,.world-scene *{animation:none!important;transition:none!important}.migo-wave .migo-wing-left{transform:rotate(65deg)}.migo-eye{transform:none}}
:root[data-motion="reduce"] .migo *, :root[data-motion="reduce"] .world-scene *{animation:none!important;transition:none!important}
:root[data-motion="reduce"] .migo-eye{transform:none}
/* Integração com as telas: títulos reais continuam sem classes de decoração. */
.world-copy>h1,.world-copy>h2{font-size:clamp(1.7rem,5.8vw,2.15rem);line-height:1.12;font-weight:850;letter-spacing:-.04em;max-width:23ch}
.world-copy>p{font-size:.91rem;line-height:1.65;color:var(--ink-2);max-width:48ch}
.welcome-copy{width:100%;display:flex;flex-direction:column;gap:18px;padding-bottom:24px}
#s-onboard>.welcome-copy{padding-top:calc(env(safe-area-inset-top,0px) + 22px)}
.welcome-copy .welcome-world{padding-top:0;margin:-6px -12px -6px}
.welcome-copy>.world-kicker{font-size:.68rem;letter-spacing:.1em}
.welcome-copy>.migo-dialog{text-align:left;gap:10px}
.welcome-copy>.panel{text-align:left}
.welcome-copy>.welcome-actions{padding-bottom:0}
.welcome-copy>.section-title{margin:4px 0 -5px}
.welcome-copy>.small,.welcome-copy>.tiny{margin-top:0}
.welcome-copy .migo-dialog h1{font-size:1.45rem;line-height:1.2;letter-spacing:-.04em;text-wrap:balance}
.welcome-copy .migo-dialog p{font-size:.81rem;line-height:1.55;margin-top:7px}
.migo-dialog>div:first-child{flex:0 0 84px}
.migo-dialog>div:first-child>.migo{width:84px}
.migo-dialog>p{flex:1;min-width:0;text-align:left;margin:0;font-size:.83rem;line-height:1.6}
.quick-card>b{font-family:var(--f-display);font-size:1.05rem;line-height:1.25}
.quick-card>span{font-size:.76rem;color:var(--muted);line-height:1.5}
.quick-card>svg.ic{box-sizing:content-box;width:23px;height:23px;padding:10px;border-radius:15px;background:var(--deep-soft);color:var(--deep)}
.quick-card:nth-child(2)>svg.ic{background:var(--live-soft);color:var(--live-ink)}
.quick-card:nth-child(3)>svg.ic{background:var(--warn-soft);color:var(--warn-ink)}
#s-chars>.charlist{margin-top:20px}
.world-stats>span{display:inline-flex;align-items:center;gap:6px}
.world-stats .ic{width:16px;height:16px;color:var(--deep)}
.home-cast button svg{margin:0 auto}
@media(max-width:380px){
 .world-copy>h1,.world-copy>h2{font-size:1.65rem}.world-copy>p{font-size:.85rem}
 .welcome-copy{gap:16px}.welcome-copy .migo-dialog h1{font-size:1.26rem}
 .migo-dialog>div:first-child{flex-basis:65px}.migo-dialog>div:first-child>.migo{width:65px}
 .migo-dialog>.migo-touch{flex-basis:73px}.migo-dialog>.migo-touch>.migo{width:73px}
 .quick-card>b{font-size:.98rem}
}

/* V4 — cartões de um livro ilustrado, com espaço para respirar. */
.world-hero{border-width:2px;border-radius:34px;background:var(--card);box-shadow:0 6px 0 var(--line-soft),0 14px 30px rgba(62,84,75,.045)}
.world-copy{padding:24px;gap:14px}
.world-copy:before{content:"";position:absolute;left:0;right:0;top:-12px;height:14px;background:var(--card);border-radius:50% 50% 0 0;pointer-events:none}
.world-kicker{letter-spacing:.07em;font-weight:800}.world-copy>h1,.world-copy>h2,.world-title{letter-spacing:-.025em;line-height:1.18}
.world-copy>p,.world-subtitle{line-height:1.75}.world-inline{background:var(--world-cream);border:2px solid var(--line);border-radius:28px;padding:12px 16px}
.migo-dialog{background:var(--world-mint);border:2px solid var(--line);border-radius:28px;padding:15px;box-shadow:0 3px 0 var(--line-soft)}
.quick-grid{gap:14px}.quick-card{border-width:2px;border-radius:27px;padding:18px;gap:12px;min-height:156px;box-shadow:0 5px 0 var(--line-soft)}
.quick-card:nth-child(4n+1){background:var(--world-mint)}.quick-card:nth-child(4n+2){background:var(--world-coral)}.quick-card:nth-child(4n+3){background:var(--world-lavender)}.quick-card:nth-child(4n){background:var(--world-sky)}
.quick-card>svg.ic,.quick-card .quick-icon{border:1px solid var(--line);background:var(--card);border-radius:17px;transform:rotate(-4deg);color:var(--deep)}
.quick-card:nth-child(even)>svg.ic{transform:rotate(4deg);background:var(--card);color:var(--deep)}.quick-card:nth-child(3)>svg.ic{background:var(--card);color:var(--deep)}
.quick-card>span,.quick-card small,.quick-card p{color:var(--ink-2)}
.mission-card{border-width:2px;border-radius:26px;padding:18px;box-shadow:0 4px 0 var(--line-soft)}.mission-icon{border:1px solid var(--line);border-radius:19px;background:var(--world-lavender);color:var(--deep);transform:rotate(-4deg)}
.adventure-feature{border-width:2px;border-radius:30px;background:var(--world-mint);box-shadow:0 5px 0 var(--line-soft);padding:22px}.adventure-feature:nth-of-type(2n){background:var(--world-lavender)}
.character-portrait{border:1px solid var(--line-soft);border-radius:24px;background:var(--world-mint);padding:9px 0 0;min-height:158px}
.character-card-v2:nth-child(4n+2) .character-portrait{background:var(--world-lavender)}.character-card-v2:nth-child(4n+3) .character-portrait{background:var(--world-coral)}.character-card-v2:nth-child(4n) .character-portrait{background:var(--world-sky)}
.character-portrait:before,.character-portrait:after{content:"";position:absolute;width:48px;height:23px;border-radius:50%;background:var(--card);opacity:.75;z-index:-1;top:26px;left:9px;transform:rotate(-18deg);pointer-events:none}.character-portrait:after{width:30px;height:16px;top:52px;left:auto;right:7px;transform:rotate(19deg)}
.character-check{width:29px;height:29px;background:var(--action);color:var(--action-ink);border:2px solid var(--action-edge);box-shadow:0 2px 0 var(--line-soft)}
.character-trait{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 9px;border:1px solid var(--line);border-radius:12px;background:var(--world-lavender);color:var(--ink-2);font-size:.68rem;font-weight:750;line-height:1.4;overflow-wrap:anywhere;margin-top:8px}
.character-card-v2 .nm{font-family:var(--f-display);font-weight:850}.character-card-v2 .desc{margin-top:8px;color:var(--ink-2)}
.world-goal{border-width:2px;border-radius:25px;background:var(--world-cream);padding:17px}.welcome-world{isolation:isolate}.welcome-brand{letter-spacing:-.025em}.welcome-copy h1{line-height:1.18;letter-spacing:-.03em}.welcome-copy>.panel{border-radius:28px}
@media(hover:hover) and (pointer:fine){.character-card-v2:hover .character-portrait>.avatar{translate:0 -2px}.character-portrait>.avatar{transition:translate .18s ease}.quick-card:hover,.mission-card:hover,button.adventure-feature:hover{transform:translateY(-3px)}}
@media(max-width:380px){.world-hero{border-radius:28px}.world-copy{padding:19px}.quick-card{padding:14px;border-radius:23px;min-height:147px}.adventure-feature{padding:16px}.character-portrait{min-height:142px}.character-trait{font-size:.64rem;padding:4px 7px}.world-inline{padding:10px}}
@media(prefers-reduced-motion:reduce){.character-portrait>.avatar{transition:none!important}.character-card-v2:hover .character-portrait>.avatar{translate:none}.quick-card:hover,.mission-card:hover,button.adventure-feature:hover{transform:none}}
:root[data-motion="reduce"] .character-portrait>.avatar{transition:none!important}:root[data-motion="reduce"] .character-card-v2:hover .character-portrait>.avatar{translate:none}:root[data-motion="reduce"] .quick-card:hover,:root[data-motion="reduce"] .mission-card:hover,:root[data-motion="reduce"] button.adventure-feature:hover{transform:none}
