/* Placement styles extracted from the approved app preview. Load after existing app styles. Requires the existing .app, .stage, .stage-message and .toolbar layout. Adapt visibility to the real camera state if markup differs. */
/* Phone friend stands on the start-logo card; Six Seven is retired. */
.stage-message:has(.btn-primary)::before{content:none!important;display:none!important}
.start-logo-scene{position:relative;flex:none;width:145px;height:155px;margin-bottom:12px;pointer-events:none}
.start-logo-card{position:absolute;inset:0;padding:3px;border:8px solid white;border-radius:25px;background:white;box-shadow:8px 9px 0 #e8daff}
.start-logo-card img{display:block;width:100%;height:100%;object-fit:contain}
.start-phone{position:absolute;z-index:1;left:calc(50% - 24px);bottom:calc(100% - 3px);display:block;width:132px;height:143px;transform:translateX(-41%);pointer-events:none}
.start-phone img{display:block;width:100%;height:100%;object-fit:contain}
@media(min-width:600px){.start-logo-scene{width:170px;height:181px}.start-phone{width:164px;height:177px}}
@media(max-width:599px){.start-logo-scene{width:132px;height:141px}}
@media(max-width:359px){.start-logo-scene{width:115px;height:123px;margin-bottom:7px}}
@media(max-height:670px) and (orientation:portrait){.start-logo-scene{width:95px;height:102px;margin-bottom:5px}.start-phone{width:100px;height:108px;bottom:calc(100% - 2px)}}

/* Pencil helper is anchored to the camera-start button, not viewport height. */
.stage-message .btn-primary{position:relative;overflow:visible}
.stage-message .btn-primary::after{content:'';position:absolute;z-index:4;left:calc(50% + 50vw - 215px);top:-231px;width:300px;height:296px;background:url('assets/pencil-peek-animated.svg') center/contain no-repeat;pointer-events:none;user-select:none;animation:pencil-peek-in .75s cubic-bezier(.2,.7,.3,1) both}
@keyframes pencil-peek-in{from{opacity:0;transform:translateX(70px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:359px){.stage-message .btn-primary::after{left:calc(50% + 50vw - 157px);top:-167px;width:220px;height:217px}}
@media(prefers-reduced-motion:reduce){.stage-message .btn-primary::after{animation:none!important;background-image:url('assets/pencil-peek-static.svg')}}

/* Paper friend leans on the top edge of the idle toolbar. */
.app:has(.stage-message) .toolbar:not(.toolbar-hidden)::before{content:'';position:absolute;z-index:1;left:50%;bottom:calc(100% - 10px);width:160px;height:154px;background:url('assets/paper-peek-animated.svg') center/contain no-repeat;pointer-events:none;user-select:none;transform:translateX(-50%);animation:paper-peek-in .65s cubic-bezier(.2,.7,.3,1) both}
@keyframes paper-peek-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@media(min-width:600px){.app:has(.stage-message) .toolbar:not(.toolbar-hidden)::before{width:184px;height:177px}}
@media(max-height:670px) and (orientation:portrait){.app:has(.stage-message) .toolbar:not(.toolbar-hidden)::before{width:112px;height:108px;left:calc(50% - 20px)}}
@media(prefers-reduced-motion:reduce){.app:has(.stage-message) .toolbar:not(.toolbar-hidden)::before{animation:none!important;background-image:url('assets/paper-peek-static.svg')}}

/* Wide-screen poses follow actual controls, not a fixed diagonal. */
.phone-body{display:block;position:relative;z-index:1;width:100%;height:100%}
.phone-wide-arm{display:none}
@media(min-width:600px){
 .stage-message .btn-primary::after{left:calc(50% + 50vw - 255px);top:calc(50% - 145.3125px);width:300px;height:300px;background-image:url('assets/pencil-wide-animated.svg')}
 .start-phone{width:128px;height:182.4px;left:calc(50% - 16px);transform:translateX(-50%)}
 .phone-wide-arm{display:block;position:absolute;z-index:0;left:83.75%;top:31.842105%;width:62.5%;height:17.54386%;transform-origin:0 50%;transform:rotate(var(--phone-aim,-30deg));pointer-events:none}
 .phone-wide-arm img{display:block;width:100%;height:100%;object-fit:contain}
}
@media(min-width:600px) and (prefers-reduced-motion:reduce){.stage-message .btn-primary::after{background-image:url('assets/pencil-wide-static.svg')}}
