/* v616 — room/salon regression authority. Loaded last. */

/* Room blackout: use the real avatar/familiar eye shapes only. Kill detached legacy overlays. */
body.avatar-room-page:not(.gg-salon-room-v206) #avatarRoom #ggBlackoutEyeLayerV387,
body.avatar-room-page:not(.gg-salon-room-v206) #avatarRoom .gg-blackout-avatar-eyes-v385,
body.avatar-room-page:not(.gg-salon-room-v206) #avatarRoom .gg-blackout-pet-eyes-v385{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}
body.avatar-room-page:not(.gg-salon-room-v206) #avatarRoom.gg-blackout-v232 #roomExactAvatar svg #eyes > *,
body.avatar-room-page:not(.gg-salon-room-v206) #avatarRoom.gg-blackout-v232 .room-avatar-exact svg #eyes > *{
  fill:#ff2647!important;stroke:#ff9cac!important;stroke-width:1.2!important;
  filter:drop-shadow(0 0 5px #ff2647) drop-shadow(0 0 12px rgba(255,38,71,.88))!important;
}
body.avatar-room-page:not(.gg-salon-room-v206) #avatarRoom.gg-blackout-v232 #ggFamiliarRoomHostV339 .owl-eye-v345{
  fill:#ff2647!important;stroke:#ff9cac!important;
  filter:drop-shadow(0 0 5px #ff2647) drop-shadow(0 0 11px rgba(255,38,71,.85))!important;
}

/* Stable Avatar/Familiar room switcher in normal flow, above room controls and below stage. */
body.avatar-room-page:not(.gg-salon-room-v206) #ggRoomAvatarFamiliarSwitcherV616{
  display:flex;gap:8px;align-items:center;justify-content:center;
  width:min(360px,calc(100% - 34px));margin:12px auto 10px;padding:6px;
  border:1px solid #aab2bd;border-radius:16px;
  background:linear-gradient(145deg,#f4f6f8,#d6dce4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 7px 18px rgba(55,65,80,.12);
  position:relative;z-index:20;box-sizing:border-box;overflow:visible;
}
body.avatar-room-page:not(.gg-salon-room-v206) #ggRoomAvatarFamiliarSwitcherV616 button{
  flex:1 1 0;min-width:0;min-height:40px;border-radius:12px;border:1px solid #a88832;
  background:linear-gradient(180deg,#f2d16d,#d9ad44);color:#17120a;font-weight:900;font-size:13px;
}
body.avatar-room-page:not(.gg-salon-room-v206) #ggRoomAvatarFamiliarSwitcherV616 button.active{
  background:#17151d;color:#f4d36e;border-color:#d8b452;box-shadow:0 0 0 2px rgba(216,180,82,.18);
}

/* Robot Owl: room-only continuous ease-in/out hover. Special v615 actions take priority. */
body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="robotOwl"] > .gg-familiar-room-avatar-v339.robot-owl > .pet-hover,
body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="moonOwl"] > .gg-familiar-room-avatar-v339 > .pet-hover{
  animation:ggV616OwlRoomHover 3.2s ease-in-out infinite!important;
  transform-origin:50% 50%!important;will-change:transform;
}
@keyframes ggV616OwlRoomHover{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="robotOwl"] .gg-familiar-room-avatar-v339.gg-v615-owl-teleport > .pet-hover,
body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="moonOwl"] .gg-familiar-room-avatar-v339.gg-v615-owl-teleport > .pet-hover{
  animation:ggV615OwlTeleport 3.45s linear!important;
}
body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="robotOwl"] .gg-familiar-room-avatar-v339.gg-v615-owl-scan > .pet-hover,
body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="moonOwl"] .gg-familiar-room-avatar-v339.gg-v615-owl-scan > .pet-hover{
  animation:ggV615OwlSteady 2.75s ease-in-out!important;
}

/* Salon scene/client authority. No duplicate renderer; existing node stays above scene/chair back. */
body.gg-salon-room-v206 #avatarRoom{position:relative!important;isolation:isolate!important;overflow:visible!important}
body.gg-salon-room-v206 #roomSceneWindowV055,
body.gg-salon-room-v206 #roomSceneVisualV055,
body.gg-salon-room-v206 .room-scene-window-v055{z-index:120!important}
body.gg-salon-room-v206 #ggSalonChairLeftV230{z-index:420!important}
body.gg-salon-room-v206 #ggSalonClientV230,
body.gg-salon-room-v206 #ggSalonClientV230.walking-to-chair,
body.gg-salon-room-v206 #ggSalonClientV230.seated,
body.gg-salon-room-v206 #ggSalonClientV230.gg-salon-seated-lock-v262{
  z-index:760!important;opacity:1!important;visibility:visible!important;overflow:visible!important;
  clip:auto!important;clip-path:none!important;mask:none!important;filter:none!important;isolation:auto!important;
  max-width:none!important;max-height:none!important;
}
body.gg-salon-room-v206 #ggSalonClientV230:not([hidden]){display:block!important}
body.gg-salon-room-v206 #ggSalonClientV230 svg{display:block!important;opacity:1!important;visibility:visible!important;overflow:visible!important;position:relative!important;z-index:2!important}
body.gg-salon-room-v206 #avatarRoom .room-avatar.room-avatar-exact{z-index:820!important;overflow:visible!important}

/* Studio Cut preview renderer stays above the dark preview background. */
#ggSalonStudioCutV327 .gg-v327-preview{position:relative!important;overflow:hidden!important;isolation:isolate!important}
#ggSalonStudioCutV327 .gg-v327-cut-avatar{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:3!important;opacity:1!important;visibility:visible!important}
#ggSalonStudioCutV327 .gg-v327-cut-avatar svg{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;opacity:1!important;visibility:visible!important;overflow:visible!important;position:relative!important;z-index:3!important}
#ggSalonStudioCutV327 .gg-v327-title{position:relative!important;z-index:6!important}

@media (prefers-reduced-motion:reduce){
  body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="robotOwl"] .pet-hover,
  body.avatar-room-page:not(.gg-salon-room-v206) #ggFamiliarRoomHostV339[data-pet-type="moonOwl"] .pet-hover{animation:none!important}
}
