/* Expanded companion stage. Host UI remains outside the hit target. */
.p-app .p-calm-scene .p-hero-pet{width:100%;height:clamp(320px,52dvh,620px);background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;overflow:visible}
.p-app .p-calm-scene{width:100%;min-width:0;min-height:320px}
.p-app .p-main.is-home{max-width:1120px;width:100%}
.p-app .p-calm-scene .p-hero-pet:before,.p-app .p-calm-scene .p-hero-pet:after{display:none}
.p-app .p-dock{position:fixed;left:12px;right:auto;bottom:calc(88px + env(safe-area-inset-bottom));width:190px;height:220px;max-width:55vw;background:transparent!important;border:0!important;box-shadow:none!important;z-index:35;overflow:visible;touch-action:none}
.p-app .p-dock-pet{width:100%;height:150px;background:transparent;border:0;box-shadow:none}
.p-app .p-dock-toggle{background:#fffefaed;border:0;border-radius:24px;min-height:44px;font-size:12px;box-shadow:0 2px 12px #40566a12}
.p-app .p-dock.is-collapsed{width:130px;height:44px;max-width:55vw}
.p-app .p-dock.is-collapsed .p-pet-size-controls{display:none}
.p-pet-size-controls{display:flex;align-items:center;justify-content:center;gap:4px;font-size:11px;color:#5d7480}
.p-pet-size-controls button{min-width:44px;min-height:44px;border:0;background:#fffefaed;border-radius:50%;font-size:20px;color:inherit}
.p-pet-sleep{position:absolute;top:25%;left:58%;font-size:20px;letter-spacing:3px;font-weight:700;color:#6e88a1;pointer-events:none;transform:rotate(-12deg)}
.p-pet-sleep[hidden]{display:none}
[data-runtime-character][data-unavailable=true]{filter:saturate(.12);opacity:.5}
.p-character-unavailable{font-size:10px;display:block;color:#7c858b}
@media(pointer:fine){body,button,a,[role=button],[data-picku-root]{cursor:url('/picku-hand.svg') 12 7,auto}input,textarea,[contenteditable=true]{cursor:text}button:disabled{cursor:not-allowed}}
@media(max-width:639px){.p-app .p-calm-scene .p-hero-pet{height:clamp(300px,48dvh,500px)}.p-app .p-dock{width:166px;height:200px}.p-app .p-dock-pet{height:130px}}
@media(prefers-reduced-motion:reduce){.p-pet-sleep{animation:none}}

/* Higher-specificity companion rules must not override the landscape clock layout. */
@media(orientation:landscape) and (max-height:600px){
 .p-app .p-main.is-home .p-calm-scene{min-height:0}
 .p-app .p-main.is-home .p-calm-scene .p-hero-pet{min-height:0;height:clamp(130px,48dvh,260px)}
 .p-app .p-main.is-home{min-height:calc(100dvh - 110px)}
 .p-app .p-dock{max-height:calc(100dvh - 100px)}
}
