/* Home dialogue only: transparent warm artwork, stable opaque reading copy.
   Load after reference-shell-v1.css and before readable-theme-v1.css. */
body[data-page='home'] #home .home-logo-dialogue{
 font-size:11px;line-height:1.35;
}
body[data-page='home'] #home :is(.home-logo-speech,.home-logo-thought){
 box-sizing:border-box;padding:8px 14px;
 color:#fff;opacity:0;transition:none;
}
body[data-page='home'] #home .home-logo-thought{
 top:-57px;bottom:auto;right:calc(50% - 16px);
 width:min(127.5px,calc((100vw - 24px) * .425));min-height:65px;
}
body[data-page='home'] #home .home-logo-speech{
 top:58%;bottom:auto;
 right:calc((var(--home-mascot-size) - var(--viewport-home-width))/2 + 36px);
 width:min(136px,calc((100vw - 24px) * .425));min-height:65px;
}
body[data-page='home'] #home .home-logo-dialogue-text{
 box-sizing:border-box;position:relative;z-index:1;
 padding:3px 4px;border-radius:10px;background:rgb(8 10 17 / .84);
 font-size:11px;line-height:1.35;color:#fff;opacity:1;
 text-align:center;text-shadow:0 1px 1px rgb(0 0 0 / .6);
 transform:none;filter:none;animation:none;
}
body[data-page='home'] #home .home-logo-bubble-art{
 /* Hide only the SVG cloud/speech silhouette; typed copy stays independent. */
 display:none!important;filter:none!important;
}
body[data-page='home'] #home .home-logo-bubble-art path:nth-of-type(2),
body[data-page='home'] #home .home-logo-bubble-art circle:nth-of-type(even){
 fill:#0b0d16;fill-opacity:.20;
 stroke:#ffb36b;stroke-opacity:.60;stroke-width:1.1;
}
body[data-page='home'] #home :is(.home-logo-speech,.home-logo-thought)[data-dialogue-phase='waiting']{
 opacity:0;
}
body[data-page='home'] #home :is(.home-logo-speech,.home-logo-thought)[data-dialogue-phase='entering']{
 opacity:1;animation:homeDialogueEnterV2 180ms ease-out both;
}
body[data-page='home'] #home :is(.home-logo-speech,.home-logo-thought)[data-dialogue-phase='exiting']{
 opacity:0;animation:homeDialogueExitV2 260ms ease-in both;
}
body[data-page='home'] #home :is(.home-logo-speech,.home-logo-thought):is([data-dialogue-phase='typing'],[data-dialogue-phase='holding'],[data-dialogue-phase='static']){
 opacity:1;animation:none;
}
body[data-page='home'] #home :is(.home-logo-speech,.home-logo-thought)[data-dialogue-phase='entering'] .home-logo-bubble-art{
 animation:homeDialogueArtGlitchV2 180ms steps(1,end) 1;
}
body[data-page='home'] #home :is(.home-logo-speech,.home-logo-thought)[data-dialogue-phase='exiting'] .home-logo-bubble-art{
 animation:homeDialogueArtGlitchV2 260ms steps(1,end) 1;
}
body[data-page='home'] #home .home-logo-speech[data-dialogue-phase='holding'] .home-logo-bubble-art{
 animation:homeDialogueArtAmbientV2 120ms steps(1,end) 1;animation-delay:2200ms;
}
body[data-page='home'] #home .home-logo-thought[data-dialogue-phase='holding'] .home-logo-bubble-art{
 animation:homeDialogueArtAmbientV2 120ms steps(1,end) 1;animation-delay:3300ms;
}
body[data-page='home'] #home .home-logo-dialogue[data-dialogue-running='false'] :is(.home-logo-speech,.home-logo-thought,.home-logo-bubble-art){
 animation-play-state:paused;
}
@keyframes homeDialogueEnterV2{from{opacity:0}to{opacity:1}}
@keyframes homeDialogueExitV2{from{opacity:1}to{opacity:0}}
@keyframes homeDialogueArtGlitchV2{
 0%,17%,43%,71%,100%{transform:translate(0,0)}
 18%,44%{transform:translate(1px,0)}
 30%,58%{transform:translate(-1px,1px)}
 72%,86%{transform:translate(0,-1px)}
}
@keyframes homeDialogueArtAmbientV2{
 0%,24%,50%,75%,100%{transform:translate(0,0)}
 25%,76%{transform:translate(1px,0)}
 40%,88%{transform:translate(-1px,0)}
}
@media(max-height:680px){
 body[data-page='home'] #home .home-logo-speech{top:72%;}
}
@media(max-height:500px) and (min-width:550px){
 body[data-page='home'] #home .home-logo-thought{top:-57px;width:120.7px;min-height:62px;}
 body[data-page='home'] #home .home-logo-speech{
  right:calc((var(--home-mascot-size) - (var(--viewport-home-width) - 24px)/2)/2 + 24px);
  width:122.4px;min-height:62px;
 }
}
@media(prefers-reduced-motion:reduce){
 body[data-page='home'] #home .home-logo-dialogue :is(.home-logo-speech,.home-logo-thought)[data-dialogue-phase]{
  opacity:1;animation:none;transition:none;
 }
 body[data-page='home'] #home .home-logo-dialogue :is(.home-logo-speech,.home-logo-thought)[data-dialogue-phase] .home-logo-bubble-art{
  animation:none;transition:none;transform:none;
 }
}

